diff --git a/package.json b/package.json index a3094731..fbf3a0e5 100644 --- a/package.json +++ b/package.json @@ -20,43 +20,53 @@ }, "type": "commonjs", "main": "./index.js", + "module": "./index.esm.js", "types": "./index.d.ts", "exports": { ".": { "types": "./index.d.ts", - "default": "./index.js" + "import": "./index.mjs", + "require": "./index.js" }, "./oas": { "types": "./oas/index.d.ts", - "default": "./oas/index.js" + "import": "./oas/index.mjs", + "require": "./oas/index.js" }, "./oas2": { "types": "./oas2/index.d.ts", - "default": "./oas2/index.js" + "import": "./oas2/index.mjs", + "require": "./oas2/index.js" }, "./oas2/operation": { "types": "./oas2/operation.d.ts", - "default": "./oas2/operation.js" + "import": "./oas2/operation.mjs", + "require": "./oas2/operation.js" }, "./oas3": { "types": "./oas3/index.d.ts", - "default": "./oas3/index.js" + "import": "./oas3/index.mjs", + "require": "./oas3/index.js" }, "./oas3/operation": { "types": "./oas3/operation.d.ts", - "default": "./oas3/operation.js" + "import": "./oas3/operation.mjs", + "require": "./oas3/operation.js" }, "./postman": { "types": "./postman/index.d.ts", - "default": "./postman/index.js" + "import": "./postman/index.mjs", + "require": "./postman/index.js" }, "./postman/operation": { "types": "./postman/operation.d.ts", - "default": "./postman/operation.js" + "import": "./postman/operation.mjs", + "require": "./postman/operation.js" } }, "scripts": { - "build": "sl-scripts build", + "build": "rollup -c && cp ./dist/index.mjs ./dist/index.esm.js && tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --declarationDir dist", + "postbuild": "cp package.json README.md LICENSE dist && yarn test.packaging", "lint": "eslint 'src/**/*.ts'", "lint.fix": "yarn lint --fix", "release": "sl-scripts release", diff --git a/rollup.config.js b/rollup.config.js new file mode 100644 index 00000000..74dd23e5 --- /dev/null +++ b/rollup.config.js @@ -0,0 +1,36 @@ +import * as path from 'path'; +import typescript from 'rollup-plugin-typescript2'; + +import pkg from './package.json'; + +module.exports = { + input: Object.values(pkg.exports).map(({ default: entry }) => + path.join('src', path.dirname(entry), path.basename(entry, path.extname(entry)) + '.ts'), + ), + output: [ + { + dir: './dist', + entryFileNames: '[name].js', + exports: 'named', + format: 'cjs', + name: pkg.name, + preserveModules: true, + sourcemap: true, + }, + { + dir: './dist', + entryFileNames: '[name].mjs', + format: 'es', + name: pkg.name, + preserveModules: true, + sourcemap: true, + }, + ], + external: Object.keys(pkg.dependencies), + plugins: [ + typescript({ + tsconfig: './tsconfig.build.json', + useTsconfigDeclarationDir: true, + }), + ], +}; diff --git a/src/oas/operation.ts b/src/oas/operation.ts index 8f8aa763..efa6a188 100644 --- a/src/oas/operation.ts +++ b/src/oas/operation.ts @@ -1,6 +1,6 @@ import { isPlainObject } from '@stoplight/json'; import type { DeepPartial, IHttpOperation } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import type { OpenAPIObject, OperationObject, PathsObject } from 'openapi3-ts'; import type { Spec } from 'swagger-schema-official'; diff --git a/src/oas/service.ts b/src/oas/service.ts index c8fc8b81..b28f0c25 100644 --- a/src/oas/service.ts +++ b/src/oas/service.ts @@ -1,6 +1,6 @@ import { isPlainObject } from '@stoplight/json'; import { DeepPartial, IHttpService } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import { OpenAPIObject } from 'openapi3-ts'; import { Spec } from 'swagger-schema-official'; diff --git a/src/oas/tags.ts b/src/oas/tags.ts index 573ca598..641b97cb 100644 --- a/src/oas/tags.ts +++ b/src/oas/tags.ts @@ -1,6 +1,6 @@ import { isPlainObject } from '@stoplight/json'; import type { INodeTag, Optional } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import { withContext } from '../context'; import { isNonNullable, isSerializablePrimitive, isString } from '../guards'; diff --git a/src/oas/transformers/security.ts b/src/oas/transformers/security.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/src/oas/transformers/translateLogo.ts b/src/oas/transformers/translateLogo.ts index 2e5da953..e05529d0 100644 --- a/src/oas/transformers/translateLogo.ts +++ b/src/oas/transformers/translateLogo.ts @@ -1,7 +1,7 @@ import type { DeepPartial, Dictionary, IHttpService } from '@stoplight/types'; +import pickBy from 'lodash.pickby'; import type { InfoObject } from 'openapi3-ts/src/model/OpenApi'; import type { Info } from 'swagger-schema-official'; -import pickBy = require('lodash.pickby'); export function translateLogo({ 'x-logo': logo, diff --git a/src/oas2/accessors.ts b/src/oas2/accessors.ts index 1230a42b..06c85878 100644 --- a/src/oas2/accessors.ts +++ b/src/oas2/accessors.ts @@ -1,7 +1,7 @@ import { isPlainObject } from '@stoplight/json'; import type { DeepPartial } from '@stoplight/types'; +import pickBy from 'lodash.pickby'; import type { Operation, Security, Spec } from 'swagger-schema-official'; -import pickBy = require('lodash.pickby'); import { isNonNullable, isString } from '../guards'; import { isSecurityScheme } from './guards'; diff --git a/src/oas2/service.ts b/src/oas2/service.ts index 344282f5..7c4c2ced 100644 --- a/src/oas2/service.ts +++ b/src/oas2/service.ts @@ -1,5 +1,5 @@ import { isPlainObject } from '@stoplight/json'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import { createContext, DEFAULT_ID_GENERATOR } from '../context'; import { isNonNullable, isString } from '../guards'; diff --git a/src/oas2/transformers/content.ts b/src/oas2/transformers/content.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/src/oas2/transformers/params.ts b/src/oas2/transformers/params.ts index 894c3520..e6adf613 100644 --- a/src/oas2/transformers/params.ts +++ b/src/oas2/transformers/params.ts @@ -10,6 +10,8 @@ import { Optional, } from '@stoplight/types'; import type { JSONSchema7 } from 'json-schema'; +import pick from 'lodash.pick'; +import pickBy from 'lodash.pickby'; import type { BodyParameter, FormDataParameter, @@ -18,8 +20,6 @@ import type { PathParameter, QueryParameter, } from 'swagger-schema-official'; -import pickBy = require('lodash.pickby'); -import pick = require('lodash.pick'); import { withContext } from '../../context'; import { isBoolean, isNonNullable, isString } from '../../guards'; diff --git a/src/oas2/transformers/request.ts b/src/oas2/transformers/request.ts index d75b616e..a3d4a6ed 100644 --- a/src/oas2/transformers/request.ts +++ b/src/oas2/transformers/request.ts @@ -1,8 +1,10 @@ import type { IHttpOperationRequest } from '@stoplight/types'; +import pickBy from 'lodash.pickby'; import { isNonNullable } from '../../guards'; import { OasVersion } from '../../oas'; import { createOasParamsIterator } from '../../oas/accessors'; +import { Oas2ParamBase } from '../../oas/guards'; import { getConsumes } from '../accessors'; import { isBodyParam, isFormDataParam, isHeaderParam, isPathParam, isQueryParam } from '../guards'; import { Oas2TranslateFunction } from '../types'; @@ -13,8 +15,6 @@ import { translateToPathParameter, translateToQueryParameter, } from './params'; -import pickBy = require('lodash.pickby'); -import { Oas2ParamBase } from '../../oas/guards'; const iterateOasParams = createOasParamsIterator(OasVersion.OAS2); diff --git a/src/oas2/transformers/responses.ts b/src/oas2/transformers/responses.ts index c41ed3a6..65135675 100644 --- a/src/oas2/transformers/responses.ts +++ b/src/oas2/transformers/responses.ts @@ -1,6 +1,6 @@ import { isPlainObject } from '@stoplight/json'; import type { DeepPartial, IHttpOperationResponse, IMediaTypeContent, Optional } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import type { Operation } from 'swagger-schema-official'; import { withContext } from '../../context'; diff --git a/src/oas2/transformers/securities.ts b/src/oas2/transformers/securities.ts index ed674d04..ba2bf25e 100644 --- a/src/oas2/transformers/securities.ts +++ b/src/oas2/transformers/securities.ts @@ -8,7 +8,7 @@ import type { IOauthFlowObjects, Optional, } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import type { ApiKeySecurity, BasicAuthenticationSecurity, diff --git a/src/oas2/transformers/servers.ts b/src/oas2/transformers/servers.ts index af564d5a..c7494076 100644 --- a/src/oas2/transformers/servers.ts +++ b/src/oas2/transformers/servers.ts @@ -1,8 +1,7 @@ import type { IServer, Optional } from '@stoplight/types'; +import pickBy from 'lodash.pickby'; import { withContext } from '../../context'; -import pickBy = require('lodash.pickby'); - import { isNonNullable, isString } from '../../guards'; import { ArrayCallbackParameters } from '../../types'; import { isValidScheme } from '../guards'; diff --git a/src/oas3/accessors.ts b/src/oas3/accessors.ts index 79ea47bb..d1e8abb2 100644 --- a/src/oas3/accessors.ts +++ b/src/oas3/accessors.ts @@ -1,6 +1,6 @@ import { isPlainObject } from '@stoplight/json'; import type { DeepPartial, Dictionary, HttpSecurityScheme, Optional } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import type { OpenAPIObject } from 'openapi3-ts'; import { isNonNullable } from '../guards'; diff --git a/src/oas3/operation.ts b/src/oas3/operation.ts index ca08e7ca..63deba8b 100644 --- a/src/oas3/operation.ts +++ b/src/oas3/operation.ts @@ -1,5 +1,5 @@ import type { DeepPartial, IHttpOperation } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import type { OpenAPIObject } from 'openapi3-ts'; import { createContext, DEFAULT_ID_GENERATOR } from '../context'; diff --git a/src/oas3/service.ts b/src/oas3/service.ts index 984418ad..c241a84a 100644 --- a/src/oas3/service.ts +++ b/src/oas3/service.ts @@ -1,6 +1,6 @@ import { isPlainObject } from '@stoplight/json'; import type { HttpSecurityScheme, Optional } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import { createContext, DEFAULT_ID_GENERATOR, withContext } from '../context'; import { isNonNullable } from '../guards'; diff --git a/src/oas3/transformers/content.ts b/src/oas3/transformers/content.ts index da16f366..e5dce8c7 100644 --- a/src/oas3/transformers/content.ts +++ b/src/oas3/transformers/content.ts @@ -8,7 +8,7 @@ import { Optional, } from '@stoplight/types'; import type { JSONSchema7 } from 'json-schema'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import { withContext } from '../../context'; import { isBoolean, isNonNullable, isString } from '../../guards'; diff --git a/src/oas3/transformers/examples.ts b/src/oas3/transformers/examples.ts index 5bfb8032..db20fe25 100644 --- a/src/oas3/transformers/examples.ts +++ b/src/oas3/transformers/examples.ts @@ -1,6 +1,6 @@ import { isPlainObject } from '@stoplight/json'; import { INodeExample, Optional } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import { withContext } from '../../context'; import { isString } from '../../guards'; diff --git a/src/oas3/transformers/request.ts b/src/oas3/transformers/request.ts index 11533957..cfa40fee 100644 --- a/src/oas3/transformers/request.ts +++ b/src/oas3/transformers/request.ts @@ -8,8 +8,8 @@ import type { } from '@stoplight/types'; import { HttpParamStyles } from '@stoplight/types'; import type { JSONSchema7 } from 'json-schema'; +import pickBy from 'lodash.pickby'; import type { ParameterObject } from 'openapi3-ts'; -import pickBy = require('lodash.pickby'); import { withContext } from '../../context'; import { isBoolean, isNonNullable, isString } from '../../guards'; diff --git a/src/oas3/transformers/responses.ts b/src/oas3/transformers/responses.ts index a569b283..54824df1 100644 --- a/src/oas3/transformers/responses.ts +++ b/src/oas3/transformers/responses.ts @@ -1,5 +1,5 @@ import type { IHttpOperationResponse, Optional } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import { withContext } from '../../context'; import { isNonNullable, isString } from '../../guards'; diff --git a/src/oas3/transformers/servers.ts b/src/oas3/transformers/servers.ts index 6e9f5265..9a958635 100644 --- a/src/oas3/transformers/servers.ts +++ b/src/oas3/transformers/servers.ts @@ -1,5 +1,5 @@ import type { INodeVariable, IServer, Optional } from '@stoplight/types'; -import pickBy = require('lodash.pickby'); +import pickBy from 'lodash.pickby'; import { withContext } from '../../context'; import { isNonNullable, isString } from '../../guards'; diff --git a/src/postman/transformers/params.ts b/src/postman/transformers/params.ts index 0bc1b8f5..cf2f168d 100644 --- a/src/postman/transformers/params.ts +++ b/src/postman/transformers/params.ts @@ -8,7 +8,7 @@ import { } from '@stoplight/types'; import type { JSONSchema7 } from 'json-schema'; // @ts-ignore -import * as jsonSchemaGenerator from 'json-schema-generator'; +import jsonSchemaGenerator from 'json-schema-generator'; import type { FormParam, Header, PropertyList, QueryParam, RequestBody } from 'postman-collection'; import * as typeIs from 'type-is'; diff --git a/src/utils.ts b/src/utils.ts index 39c3dee5..3c676cfc 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,5 @@ import { isPlainObject } from '@stoplight/json'; -import isEqualWith = require('lodash.isequalwith'); +import isEqualWith from 'lodash.isequalwith'; export function entries>(o: { [s: string]: T } | ArrayLike): [string, T][]; export function entries(o: T): [string, T][]; diff --git a/tsconfig.build.json b/tsconfig.build.json index 2efb299d..a80a38fc 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -11,7 +11,6 @@ ], "compilerOptions": { "outDir": "dist", - "moduleResolution": "node", - "target": "ES2019" + "moduleResolution": "node" } } diff --git a/tsconfig.json b/tsconfig.json index c8d501a8..388fc86b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,9 @@ "." ], "compilerOptions": { - "module": "commonjs", - "noUnusedLocals": false + "module": "ESNext", + "noUnusedLocals": false, + "target": "ES2019", + "esModuleInterop": true } } diff --git a/yarn.lock b/yarn.lock index e8658755..08daded9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -357,6 +357,11 @@ minimatch "^3.0.4" strip-json-comments "^3.1.1" +"@faker-js/faker@6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@faker-js/faker/-/faker-6.0.0.tgz#b613ebf5f5ebb2ab987afb567d8b7fe860199c13" + integrity sha512-10zLCKhp3YEmBuko71ivcMoIZcCLXgQVck6aNswX+AWwaek/L8S3yz9i8m3tHigRkcF6F2vI+qtdtyySHK+bGA== + "@humanwhocodes/config-array@^0.9.2": version "0.9.5" resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.5.tgz#2cbaf9a89460da24b5ca6531b8bbfc23e1df50c7" @@ -833,9 +838,9 @@ resolve "^1.19.0" "@rollup/pluginutils@4.x", "@rollup/pluginutils@^4.1.0": - version "4.2.0" - resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.2.0.tgz#a14bbd058fdbba0a5647143b16ed0d86fb60bd08" - integrity sha512-2WUyJNRkyH5p487pGnn4tWAsxhEFKN/pT8CMgHshd5H+IXkOnKvKZwsz5ZWz+YCXkleZRAU5kwbfgF8CPfDRqA== + version "4.1.2" + resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-4.1.2.tgz#ed5821c15e5e05e32816f5fb9ec607cdf5a75751" + integrity sha512-ROn4qvkxP9SyPeHaf7uQC/GPFY6L/OWy9+bd9AwcjOAWQwxRscoEyAUD8qCY5o5iL4jqQwoLk2kaTKJPb/HwzQ== dependencies: estree-walker "^2.0.1" picomatch "^2.2.2" @@ -1411,9 +1416,9 @@ acorn-walk@^7.1.1: integrity sha512-wdlPY2tm/9XBr7QkKlq0WQVgiuGTX6YWPyRyBviSoScBuLfTVQhvwg6wJ369GJ/1nPfTLMfnrFIfjqVg6d+jQQ== acorn@^7.1.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.3.1.tgz#85010754db53c3fbaf3b9ea3e083aa5c5d147ffd" - integrity sha512-tLc0wSnatxAQHVHUapaHdz72pi9KUyHjq5KyHjGg9Y8Ifdc79pTh2XvI6I1/chZbnM7QtNKzh66ooDogPZSleA== + version "7.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" + integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== acorn@^8.5.0, acorn@^8.7.0: version "8.7.0" @@ -3490,11 +3495,6 @@ extsprintf@^1.2.0: resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= -faker@5.5.3: - version "5.5.3" - resolved "https://registry.yarnpkg.com/faker/-/faker-5.5.3.tgz#c57974ee484431b25205c2c8dc09fda861e51e0e" - integrity sha512-wLTv2a28wjUyWkbnX7u/ABZBkUkIF2fCd73V6P2oFqEGEktDfzWx4UxrSqtPRw0xPRAcjeAOIiJWqZm3pP4u3g== - fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" @@ -5274,7 +5274,15 @@ jest-watcher@^26.1.0: jest-util "^26.1.0" string-length "^4.0.1" -jest-worker@^26.1.0, jest-worker@^26.2.1: +jest-worker@^26.1.0: + version "26.1.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.1.0.tgz#65d5641af74e08ccd561c240e7db61284f82f33d" + integrity sha512-Z9P5pZ6UC+kakMbNJn+tA2RdVdNX5WH1x+5UCBZ9MxIK24pjYtFt96fK+UwBTrjLYm232g1xz0L3eTh51OW+yQ== + dependencies: + merge-stream "^2.0.0" + supports-color "^7.0.0" + +jest-worker@^26.2.1: version "26.6.2" resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed" integrity sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ== @@ -6012,11 +6020,11 @@ macos-release@^2.2.0: integrity sha512-OHhSbtcviqMPt7yfw5ef5aghS2jzFVKEFyCJndQt2YpSQ9qRVSEv2axSJI1paVThEu+FFGs584h/1YhxjVqajA== magic-string@0.25.x, magic-string@^0.25.7: - version "0.25.9" - resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.9.tgz#de7f9faf91ef8a1c91d02c2e5314c8277dbcdd1c" - integrity sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ== + version "0.25.7" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051" + integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA== dependencies: - sourcemap-codec "^1.4.8" + sourcemap-codec "^1.4.4" make-dir@^1.0.0: version "1.3.0" @@ -6210,6 +6218,11 @@ mime-db@1.49.0: resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.49.0.tgz#f3dfde60c99e9cf3bc9701d687778f537001cbed" integrity sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA== +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + mime-format@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/mime-format/-/mime-format-2.0.1.tgz#1274876d58bc803332427a515f5f7036e07b9413" @@ -6217,7 +6230,14 @@ mime-format@2.0.1: dependencies: charset "^1.0.0" -mime-types@2.1.32, mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.24: +mime-types@2.1.35: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.24: version "2.1.32" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.32.tgz#1d00e89e7de7fe02008db61001d9e02852670fd5" integrity sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A== @@ -7289,18 +7309,18 @@ posix-character-classes@^0.1.0: integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= postman-collection@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/postman-collection/-/postman-collection-4.1.0.tgz#c5833aa3cb82df79cc5d16e5d7399c71a84ea4fa" - integrity sha512-J9IpCMXpGDLN7MGhdMcUbZ0SIWLCcTVdrjTgKVYubkW1sn1KcDqJgsdTr/ItkO8dOXKLuhvnq2QnE5Vrzb3WMA== + version "4.1.2" + resolved "https://registry.yarnpkg.com/postman-collection/-/postman-collection-4.1.2.tgz#977f702a68d680743628938259d72e31f3ff476f" + integrity sha512-nRYgzeo2VwQZZXF8YUMUvG8wKXPmjQ+BZPMXix+tNRWBHWAdqa191AwBL80LQxvHzECYp8Lp1JXMpg4OMXHLnw== dependencies: - faker "5.5.3" + "@faker-js/faker" "6.0.0" file-type "3.9.0" http-reasons "0.1.0" iconv-lite "0.6.3" liquid-json "0.3.1" lodash "4.17.21" mime-format "2.0.1" - mime-types "2.1.32" + mime-types "2.1.35" postman-url-encoder "3.0.5" semver "7.3.5" uuid "8.3.2" @@ -7955,9 +7975,9 @@ rollup-plugin-typescript2@^0.30.0: tslib "2.1.0" rollup@^2.47.0: - version "2.70.1" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.70.1.tgz#824b1f1f879ea396db30b0fc3ae8d2fead93523e" - integrity sha512-CRYsI5EuzLbXdxC6RnYhOuRdtz4bhejPMSWjsFLfVM/7w/85n2szZv6yExqUXsBdz5KT8eoubeyDUDjhLHEslA== + version "2.63.0" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.63.0.tgz#fe2f7fec2133f3fab9e022b9ac245628d817c6bb" + integrity sha512-nps0idjmD+NXl6OREfyYXMn/dar3WGcyKn+KBzPdaLecub3x/LrId0wUcthcr8oZUAcZAR8NKcfGGFlNgGL1kQ== optionalDependencies: fsevents "~2.3.2" @@ -8336,7 +8356,7 @@ source-map@^0.7.3, source-map@~0.7.2: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== -sourcemap-codec@^1.4.8: +sourcemap-codec@^1.4.4: version "1.4.8" resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" integrity sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA== @@ -8768,11 +8788,10 @@ terminal-link@^2.0.0: supports-hyperlinks "^2.0.0" terser@^5.0.0: - version "5.12.1" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.12.1.tgz#4cf2ebed1f5bceef5c83b9f60104ac4a78b49e9c" - integrity sha512-NXbs+7nisos5E+yXwAD+y7zrcTkMqb0dEJxIGtSKPdCBzopf7ni4odPul2aechpV7EXNvOudYOX2bb5tln1jbQ== + version "5.10.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.10.0.tgz#b86390809c0389105eb0a0b62397563096ddafcc" + integrity sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA== dependencies: - acorn "^8.5.0" commander "^2.20.0" source-map "~0.7.2" source-map-support "~0.5.20"