diff --git a/package-lock.json b/package-lock.json index 40433b5333..982ce10ec3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13332,13 +13332,12 @@ } }, "node_modules/nock": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.2.tgz", - "integrity": "sha512-CwbljitiWJhF1gL83NbanhoKs1l23TDlRioNraPTZrzZIEooPemrHRj5m0FZCPkB1ecdYCSWWGcHysJgX/ngnQ==", + "version": "13.3.8", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.8.tgz", + "integrity": "sha512-96yVFal0c/W1lG7mmfRe7eO+hovrhJYd2obzzOZ90f6fjpeU/XNvd9cYHZKZAQJumDfhXgoTpkpJ9pvMj+hqHw==", "dependencies": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.21", "propagate": "^2.0.0" }, "engines": { @@ -24252,9 +24251,9 @@ } }, "packages/contentstack-dev-dependencies/node_modules/fancy-test": { - "version": "2.0.30", - "resolved": "https://registry.npmjs.org/fancy-test/-/fancy-test-2.0.30.tgz", - "integrity": "sha512-bDQnAXYYODKwjb/6VEwAovEN0uJ1iRMTahEqOpQCRxIX7rIqoFHCy0LEqWYAU3kVw4ERgK4HQSn6GISEA1ipxg==", + "version": "2.0.42", + "resolved": "https://registry.npmjs.org/fancy-test/-/fancy-test-2.0.42.tgz", + "integrity": "sha512-TX8YTALYAmExny+f+G24MFxWry3Pk09+9uykwRjfwjibRxJ9ZjJzrnHYVBZK46XQdyli7d+rQc5U/KK7V6uLsw==", "dependencies": { "@types/chai": "*", "@types/lodash": "*", @@ -24262,7 +24261,7 @@ "@types/sinon": "*", "lodash": "^4.17.13", "mock-stdin": "^1.0.0", - "nock": "^13.3.2", + "nock": "^13.3.3", "stdout-stderr": "^0.1.9" }, "engines": { @@ -28853,9 +28852,9 @@ } }, "fancy-test": { - "version": "2.0.30", - "resolved": "https://registry.npmjs.org/fancy-test/-/fancy-test-2.0.30.tgz", - "integrity": "sha512-bDQnAXYYODKwjb/6VEwAovEN0uJ1iRMTahEqOpQCRxIX7rIqoFHCy0LEqWYAU3kVw4ERgK4HQSn6GISEA1ipxg==", + "version": "2.0.42", + "resolved": "https://registry.npmjs.org/fancy-test/-/fancy-test-2.0.42.tgz", + "integrity": "sha512-TX8YTALYAmExny+f+G24MFxWry3Pk09+9uykwRjfwjibRxJ9ZjJzrnHYVBZK46XQdyli7d+rQc5U/KK7V6uLsw==", "requires": { "@types/chai": "*", "@types/lodash": "*", @@ -28863,7 +28862,7 @@ "@types/sinon": "*", "lodash": "^4.17.13", "mock-stdin": "^1.0.0", - "nock": "^13.3.2", + "nock": "^13.3.3", "stdout-stderr": "^0.1.9" } }, @@ -39773,13 +39772,12 @@ } }, "nock": { - "version": "13.3.2", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.2.tgz", - "integrity": "sha512-CwbljitiWJhF1gL83NbanhoKs1l23TDlRioNraPTZrzZIEooPemrHRj5m0FZCPkB1ecdYCSWWGcHysJgX/ngnQ==", + "version": "13.3.8", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.3.8.tgz", + "integrity": "sha512-96yVFal0c/W1lG7mmfRe7eO+hovrhJYd2obzzOZ90f6fjpeU/XNvd9cYHZKZAQJumDfhXgoTpkpJ9pvMj+hqHw==", "requires": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", - "lodash": "^4.17.21", "propagate": "^2.0.0" } }, diff --git a/packages/contentstack-dev-dependencies/package.json b/packages/contentstack-dev-dependencies/package.json index c27e15bebe..4b302c79e1 100644 --- a/packages/contentstack-dev-dependencies/package.json +++ b/packages/contentstack-dev-dependencies/package.json @@ -6,7 +6,7 @@ "types": "lib/index.d.ts", "scripts": { "prepack": "npm run clean && npm run compile", - "clean": "rm -rf ./lib ./node_modules tsconfig.build.tsbuildinfo", + "clean": "rm -rf ./lib tsconfig.build.tsbuildinfo", "compile": "tsc -b tsconfig.json", "lint": "eslint src/**/*.ts", "format": "eslint src/**/*.ts --fix" diff --git a/packages/contentstack-dev-dependencies/types/contentstack-management-sdk.d.ts b/packages/contentstack-dev-dependencies/types/contentstack-management-sdk.d.ts deleted file mode 100644 index de19848faa..0000000000 --- a/packages/contentstack-dev-dependencies/types/contentstack-management-sdk.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { AnyProperty } from '@contentstack/management/types/utility/fields'; -import { Pagination } from '@contentstack/management/types/utility/pagination'; -type QueryType = { - find: () => Promise | Promise; - count: () => Promise | Promise; - findOne: () => Promise | Promise; -}; -type AssetType = { - query: (param?: Pagination & AnyProperty) => QueryType; - download: () => Promise | Promise; - replace: (data: any) => Promise | Promise; - publish: (data: any) => Promise | Promise; - fetch: (param?: AnyProperty) => Promise | Promise; - folder: () => { - create: (param?: AnyProperty) => Promise | Promise; - }; -}; -type StackType = { - query: (param?: Pagination & AnyProperty) => QueryType; - asset: (uid?: string) => AssetType; - fetch: (param?: AnyProperty) => Promise | Promise; -}; -type SdkType = { - stack: () => StackType; -}; -export declare function sdk(mocData?: any): SdkType; -export declare function client(mocData?: any): StackType; -export {}; diff --git a/packages/contentstack-dev-dependencies/types/csdx-test-suite/index.d.ts b/packages/contentstack-dev-dependencies/types/csdx-test-suite/index.d.ts deleted file mode 100644 index 8e0efc622b..0000000000 --- a/packages/contentstack-dev-dependencies/types/csdx-test-suite/index.d.ts +++ /dev/null @@ -1,114 +0,0 @@ -import { Config } from '@oclif/core'; -import { expect, FancyTypes } from 'fancy-test'; -import { command } from './command'; -import { loadConfig } from './load-config'; -export declare const test: FancyTypes.Base any), opts?: { - raiseIfNotThrown?: boolean; - }]; - }; -} & { - env: { - output: unknown; - args: [env: { - [k: string]: string; - }, opts?: FancyTypes.EnvOptions]; - }; -} & { - stub: { - output: { - stubs: any[]; - }; - args: [object: any, path: any, value: () => any]; - }; -} & { - stdin: { - output: unknown; - args: [input: string, delay?: number]; - }; -} & { - stderr: { - output: { - readonly stderr: string; - }; - args: [opts?: { - print?: boolean; - stripColor?: boolean; - }]; - }; -} & { - stdout: { - output: { - readonly stdout: string; - }; - args: [opts?: { - print?: boolean; - stripColor?: boolean; - }]; - }; -} & { - nock: { - output: { - nock: number; - }; - args: [host: string, options: FancyTypes.NockOptions | FancyTypes.NockCallback, cb?: FancyTypes.NockCallback]; - }; -} & { - timeout: { - output: { - timeout: number; - }; - args: [timeout?: number]; - }; -} & { - loadConfig: { - output: { - config: import("@oclif/core/lib/interfaces").Config; - }; - args: [opts?: loadConfig.Options]; - }; -} & { - command: { - output: { - config: import("@oclif/core/lib/interfaces").Config; - expectation: string; - }; - args: [commandInstance: import("@oclif/core/lib/interfaces").Command.Class, args: string | string[], opts?: loadConfig.Options]; - }; -} & { - exit: { - output: { - error: any; - }; - args: [code?: number]; - }; -} & { - hook: { - output: { - config: import("@oclif/core/lib/interfaces").Config; - expectation: string; - }; - args: [event: string, hookOpts?: Record, options?: loadConfig.Options]; - }; -}>; -export default test; -export { expect, FancyTypes, Config, command }; diff --git a/packages/contentstack-dev-dependencies/types/csdx-unit-test-utilities/contentstack-management-sdk.d.ts b/packages/contentstack-dev-dependencies/types/csdx-unit-test-utilities/contentstack-management-sdk.d.ts deleted file mode 100644 index 372d6f0d63..0000000000 --- a/packages/contentstack-dev-dependencies/types/csdx-unit-test-utilities/contentstack-management-sdk.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { AnyProperty } from '@contentstack/management/types/utility/fields'; -import { Pagination } from '@contentstack/management/types/utility/pagination'; -type QueryType = { - find: () => Promise | Promise; - count: () => Promise | Promise; - findOne: () => Promise | Promise; -}; -type AssetType = { - query: (param?: Pagination & AnyProperty) => QueryType; - download: () => Promise | Promise; - replace: (data: any) => Promise | Promise; - publish: (data: any) => Promise | Promise; - fetch: (param?: AnyProperty) => Promise | Promise; - create: (param?: AnyProperty) => Promise | Promise; - folder: () => { - create: (param?: AnyProperty) => Promise | Promise; - }; -}; -type StackType = { - query: (param?: Pagination & AnyProperty) => QueryType; - asset: (uid?: string) => AssetType; - fetch: (param?: AnyProperty) => Promise | Promise; -}; -type SdkType = { - stack: () => StackType; -}; -export declare function sdk(mocData?: any): SdkType; -export declare function client(mocData?: any): StackType; -export {}; diff --git a/packages/contentstack-dev-dependencies/types/csdx-unit-test-utilities/fs.d.ts b/packages/contentstack-dev-dependencies/types/csdx-unit-test-utilities/fs.d.ts deleted file mode 100644 index 4faaec95cb..0000000000 --- a/packages/contentstack-dev-dependencies/types/csdx-unit-test-utilities/fs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function overrideFsMethods(): void; -export { overrideFsMethods }; diff --git a/packages/contentstack-dev-dependencies/types/csdx-unit-test-utilities/index.d.ts b/packages/contentstack-dev-dependencies/types/csdx-unit-test-utilities/index.d.ts deleted file mode 100644 index b8a3c27aef..0000000000 --- a/packages/contentstack-dev-dependencies/types/csdx-unit-test-utilities/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './fs'; -export * from './contentstack-management-sdk'; diff --git a/packages/contentstack-dev-dependencies/types/index.d.ts b/packages/contentstack-dev-dependencies/types/index.d.ts deleted file mode 100644 index 0cd8746e83..0000000000 --- a/packages/contentstack-dev-dependencies/types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './csdx-test-suite';