prismic-ts-codegen 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/prismic-ts-codegen.js +3 -0
- package/dist/_node_modules/@babel/code-frame/lib/index.cjs +144 -0
- package/dist/_node_modules/@babel/code-frame/lib/index.cjs.map +1 -0
- package/dist/_node_modules/@babel/code-frame/lib/index.js +143 -0
- package/dist/_node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.cjs +82 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.cjs.map +1 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.js +83 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +62 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs.map +1 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +61 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.cjs +35 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.cjs.map +1 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.js +36 -0
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/dist/_node_modules/@babel/highlight/lib/index.cjs +100 -0
- package/dist/_node_modules/@babel/highlight/lib/index.cjs.map +1 -0
- package/dist/_node_modules/@babel/highlight/lib/index.js +99 -0
- package/dist/_node_modules/@babel/highlight/lib/index.js.map +1 -0
- package/dist/_node_modules/ansi-styles/index.cjs +146 -0
- package/dist/_node_modules/ansi-styles/index.cjs.map +1 -0
- package/dist/_node_modules/ansi-styles/index.js +146 -0
- package/dist/_node_modules/ansi-styles/index.js.map +1 -0
- package/dist/_node_modules/arrify/index.cjs +10 -0
- package/dist/_node_modules/arrify/index.cjs.map +1 -0
- package/dist/_node_modules/arrify/index.js +10 -0
- package/dist/_node_modules/arrify/index.js.map +1 -0
- package/dist/_node_modules/camelcase/index.cjs +83 -0
- package/dist/_node_modules/camelcase/index.cjs.map +1 -0
- package/dist/_node_modules/camelcase/index.js +84 -0
- package/dist/_node_modules/camelcase/index.js.map +1 -0
- package/dist/_node_modules/camelcase-keys/index.cjs +55 -0
- package/dist/_node_modules/camelcase-keys/index.cjs.map +1 -0
- package/dist/_node_modules/camelcase-keys/index.js +56 -0
- package/dist/_node_modules/camelcase-keys/index.js.map +1 -0
- package/dist/_node_modules/chalk/index.cjs +172 -0
- package/dist/_node_modules/chalk/index.cjs.map +1 -0
- package/dist/_node_modules/chalk/index.js +172 -0
- package/dist/_node_modules/chalk/index.js.map +1 -0
- package/dist/_node_modules/chalk/templates.cjs +108 -0
- package/dist/_node_modules/chalk/templates.cjs.map +1 -0
- package/dist/_node_modules/chalk/templates.js +108 -0
- package/dist/_node_modules/chalk/templates.js.map +1 -0
- package/dist/_node_modules/color-convert/conversions.cjs +710 -0
- package/dist/_node_modules/color-convert/conversions.cjs.map +1 -0
- package/dist/_node_modules/color-convert/conversions.js +710 -0
- package/dist/_node_modules/color-convert/conversions.js.map +1 -0
- package/dist/_node_modules/color-convert/index.cjs +59 -0
- package/dist/_node_modules/color-convert/index.cjs.map +1 -0
- package/dist/_node_modules/color-convert/index.js +59 -0
- package/dist/_node_modules/color-convert/index.js.map +1 -0
- package/dist/_node_modules/color-convert/route.cjs +69 -0
- package/dist/_node_modules/color-convert/route.cjs.map +1 -0
- package/dist/_node_modules/color-convert/route.js +69 -0
- package/dist/_node_modules/color-convert/route.js.map +1 -0
- package/dist/_node_modules/color-name/index.cjs +154 -0
- package/dist/_node_modules/color-name/index.cjs.map +1 -0
- package/dist/_node_modules/color-name/index.js +154 -0
- package/dist/_node_modules/color-name/index.js.map +1 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs +41 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs.map +1 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.js +41 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.js.map +1 -0
- package/dist/_node_modules/decamelize/index.cjs +38 -0
- package/dist/_node_modules/decamelize/index.cjs.map +1 -0
- package/dist/_node_modules/decamelize/index.js +39 -0
- package/dist/_node_modules/decamelize/index.js.map +1 -0
- package/dist/_node_modules/decamelize-keys/index.cjs +50 -0
- package/dist/_node_modules/decamelize-keys/index.cjs.map +1 -0
- package/dist/_node_modules/decamelize-keys/index.js +51 -0
- package/dist/_node_modules/decamelize-keys/index.js.map +1 -0
- package/dist/_node_modules/error-ex/index.cjs +109 -0
- package/dist/_node_modules/error-ex/index.cjs.map +1 -0
- package/dist/_node_modules/error-ex/index.js +109 -0
- package/dist/_node_modules/error-ex/index.js.map +1 -0
- package/dist/_node_modules/escape-string-regexp/index.cjs +11 -0
- package/dist/_node_modules/escape-string-regexp/index.cjs.map +1 -0
- package/dist/_node_modules/escape-string-regexp/index.js +11 -0
- package/dist/_node_modules/escape-string-regexp/index.js.map +1 -0
- package/dist/_node_modules/fetch-blob/file.cjs +61 -0
- package/dist/_node_modules/fetch-blob/file.cjs.map +1 -0
- package/dist/_node_modules/fetch-blob/file.js +61 -0
- package/dist/_node_modules/fetch-blob/file.js.map +1 -0
- package/dist/_node_modules/fetch-blob/index.cjs +223 -0
- package/dist/_node_modules/fetch-blob/index.cjs.map +1 -0
- package/dist/_node_modules/fetch-blob/index.js +223 -0
- package/dist/_node_modules/fetch-blob/index.js.map +1 -0
- package/dist/_node_modules/fetch-blob/streams.cjs +43 -0
- package/dist/_node_modules/fetch-blob/streams.cjs.map +1 -0
- package/dist/_node_modules/fetch-blob/streams.js +42 -0
- package/dist/_node_modules/fetch-blob/streams.js.map +1 -0
- package/dist/_node_modules/formdata-polyfill/esm.min.cjs +116 -0
- package/dist/_node_modules/formdata-polyfill/esm.min.cjs.map +1 -0
- package/dist/_node_modules/formdata-polyfill/esm.min.js +116 -0
- package/dist/_node_modules/formdata-polyfill/esm.min.js.map +1 -0
- package/dist/_node_modules/function-bind/implementation.cjs +47 -0
- package/dist/_node_modules/function-bind/implementation.cjs.map +1 -0
- package/dist/_node_modules/function-bind/implementation.js +47 -0
- package/dist/_node_modules/function-bind/implementation.js.map +1 -0
- package/dist/_node_modules/function-bind/index.cjs +7 -0
- package/dist/_node_modules/function-bind/index.cjs.map +1 -0
- package/dist/_node_modules/function-bind/index.js +7 -0
- package/dist/_node_modules/function-bind/index.js.map +1 -0
- package/dist/_node_modules/hard-rejection/index.cjs +25 -0
- package/dist/_node_modules/hard-rejection/index.cjs.map +1 -0
- package/dist/_node_modules/hard-rejection/index.js +26 -0
- package/dist/_node_modules/hard-rejection/index.js.map +1 -0
- package/dist/_node_modules/has/src/index.cjs +7 -0
- package/dist/_node_modules/has/src/index.cjs.map +1 -0
- package/dist/_node_modules/has/src/index.js +7 -0
- package/dist/_node_modules/has/src/index.js.map +1 -0
- package/dist/_node_modules/hosted-git-info/lib/from-url.cjs +93 -0
- package/dist/_node_modules/hosted-git-info/lib/from-url.cjs.map +1 -0
- package/dist/_node_modules/hosted-git-info/lib/from-url.js +93 -0
- package/dist/_node_modules/hosted-git-info/lib/from-url.js.map +1 -0
- package/dist/_node_modules/hosted-git-info/lib/hosts.cjs +164 -0
- package/dist/_node_modules/hosted-git-info/lib/hosts.cjs.map +1 -0
- package/dist/_node_modules/hosted-git-info/lib/hosts.js +164 -0
- package/dist/_node_modules/hosted-git-info/lib/hosts.js.map +1 -0
- package/dist/_node_modules/hosted-git-info/lib/index.cjs +168 -0
- package/dist/_node_modules/hosted-git-info/lib/index.cjs.map +1 -0
- package/dist/_node_modules/hosted-git-info/lib/index.js +168 -0
- package/dist/_node_modules/hosted-git-info/lib/index.js.map +1 -0
- package/dist/_node_modules/hosted-git-info/lib/parse-url.cjs +51 -0
- package/dist/_node_modules/hosted-git-info/lib/parse-url.cjs.map +1 -0
- package/dist/_node_modules/hosted-git-info/lib/parse-url.js +51 -0
- package/dist/_node_modules/hosted-git-info/lib/parse-url.js.map +1 -0
- package/dist/_node_modules/indent-string/index.cjs +34 -0
- package/dist/_node_modules/indent-string/index.cjs.map +1 -0
- package/dist/_node_modules/indent-string/index.js +35 -0
- package/dist/_node_modules/indent-string/index.js.map +1 -0
- package/dist/_node_modules/is-arrayish/index.cjs +10 -0
- package/dist/_node_modules/is-arrayish/index.cjs.map +1 -0
- package/dist/_node_modules/is-arrayish/index.js +10 -0
- package/dist/_node_modules/is-arrayish/index.js.map +1 -0
- package/dist/_node_modules/is-core-module/core.json.cjs +496 -0
- package/dist/_node_modules/is-core-module/core.json.cjs.map +1 -0
- package/dist/_node_modules/is-core-module/core.json.js +496 -0
- package/dist/_node_modules/is-core-module/core.json.js.map +1 -0
- package/dist/_node_modules/is-core-module/index.cjs +62 -0
- package/dist/_node_modules/is-core-module/index.cjs.map +1 -0
- package/dist/_node_modules/is-core-module/index.js +62 -0
- package/dist/_node_modules/is-core-module/index.js.map +1 -0
- package/dist/_node_modules/is-plain-obj/index.cjs +9 -0
- package/dist/_node_modules/is-plain-obj/index.cjs.map +1 -0
- package/dist/_node_modules/is-plain-obj/index.js +9 -0
- package/dist/_node_modules/is-plain-obj/index.js.map +1 -0
- package/dist/_node_modules/js-tokens/index.cjs +27 -0
- package/dist/_node_modules/js-tokens/index.cjs.map +1 -0
- package/dist/_node_modules/js-tokens/index.js +26 -0
- package/dist/_node_modules/js-tokens/index.js.map +1 -0
- package/dist/_node_modules/json-parse-even-better-errors/index.cjs +90 -0
- package/dist/_node_modules/json-parse-even-better-errors/index.cjs.map +1 -0
- package/dist/_node_modules/json-parse-even-better-errors/index.js +90 -0
- package/dist/_node_modules/json-parse-even-better-errors/index.js.map +1 -0
- package/dist/_node_modules/kind-of/index.cjs +129 -0
- package/dist/_node_modules/kind-of/index.cjs.map +1 -0
- package/dist/_node_modules/kind-of/index.js +129 -0
- package/dist/_node_modules/kind-of/index.js.map +1 -0
- package/dist/_node_modules/lines-and-columns/build/index.cjs +67 -0
- package/dist/_node_modules/lines-and-columns/build/index.cjs.map +1 -0
- package/dist/_node_modules/lines-and-columns/build/index.js +66 -0
- package/dist/_node_modules/lines-and-columns/build/index.js.map +1 -0
- package/dist/_node_modules/lru-cache/index.cjs +1015 -0
- package/dist/_node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/_node_modules/lru-cache/index.js +1015 -0
- package/dist/_node_modules/lru-cache/index.js.map +1 -0
- package/dist/_node_modules/map-obj/index.cjs +49 -0
- package/dist/_node_modules/map-obj/index.cjs.map +1 -0
- package/dist/_node_modules/map-obj/index.js +50 -0
- package/dist/_node_modules/map-obj/index.js.map +1 -0
- package/dist/_node_modules/meow/source/index.cjs +88 -0
- package/dist/_node_modules/meow/source/index.cjs.map +1 -0
- package/dist/_node_modules/meow/source/index.js +89 -0
- package/dist/_node_modules/meow/source/index.js.map +1 -0
- package/dist/_node_modules/meow/source/options.cjs +83 -0
- package/dist/_node_modules/meow/source/options.cjs.map +1 -0
- package/dist/_node_modules/meow/source/options.js +83 -0
- package/dist/_node_modules/meow/source/options.js.map +1 -0
- package/dist/_node_modules/meow/source/parser.cjs +61 -0
- package/dist/_node_modules/meow/source/parser.cjs.map +1 -0
- package/dist/_node_modules/meow/source/parser.js +61 -0
- package/dist/_node_modules/meow/source/parser.js.map +1 -0
- package/dist/_node_modules/meow/source/utils.cjs +8 -0
- package/dist/_node_modules/meow/source/utils.cjs.map +1 -0
- package/dist/_node_modules/meow/source/utils.js +8 -0
- package/dist/_node_modules/meow/source/utils.js.map +1 -0
- package/dist/_node_modules/meow/source/validate.cjs +102 -0
- package/dist/_node_modules/meow/source/validate.cjs.map +1 -0
- package/dist/_node_modules/meow/source/validate.js +102 -0
- package/dist/_node_modules/meow/source/validate.js.map +1 -0
- package/dist/_node_modules/min-indent/index.cjs +12 -0
- package/dist/_node_modules/min-indent/index.cjs.map +1 -0
- package/dist/_node_modules/min-indent/index.js +13 -0
- package/dist/_node_modules/min-indent/index.js.map +1 -0
- package/dist/_node_modules/minimist-options/index.cjs +94 -0
- package/dist/_node_modules/minimist-options/index.cjs.map +1 -0
- package/dist/_node_modules/minimist-options/index.js +95 -0
- package/dist/_node_modules/minimist-options/index.js.map +1 -0
- package/dist/_node_modules/node-domexception/index.cjs +11 -0
- package/dist/_node_modules/node-domexception/index.cjs.map +1 -0
- package/dist/_node_modules/node-domexception/index.js +10 -0
- package/dist/_node_modules/node-domexception/index.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/body.cjs +262 -0
- package/dist/_node_modules/node-fetch/src/body.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/body.js +262 -0
- package/dist/_node_modules/node-fetch/src/body.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs +10 -0
- package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/abort-error.js +10 -0
- package/dist/_node_modules/node-fetch/src/errors/abort-error.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/base.cjs +17 -0
- package/dist/_node_modules/node-fetch/src/errors/base.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/base.js +17 -0
- package/dist/_node_modules/node-fetch/src/errors/base.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs +19 -0
- package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/fetch-error.js +19 -0
- package/dist/_node_modules/node-fetch/src/errors/fetch-error.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/headers.cjs +190 -0
- package/dist/_node_modules/node-fetch/src/headers.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/headers.js +190 -0
- package/dist/_node_modules/node-fetch/src/headers.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/index.cjs +292 -0
- package/dist/_node_modules/node-fetch/src/index.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/index.js +292 -0
- package/dist/_node_modules/node-fetch/src/index.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/request.cjs +206 -0
- package/dist/_node_modules/node-fetch/src/request.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/request.js +206 -0
- package/dist/_node_modules/node-fetch/src/request.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/response.cjs +122 -0
- package/dist/_node_modules/node-fetch/src/response.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/response.js +123 -0
- package/dist/_node_modules/node-fetch/src/response.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/get-search.cjs +12 -0
- package/dist/_node_modules/node-fetch/src/utils/get-search.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/get-search.js +12 -0
- package/dist/_node_modules/node-fetch/src/utils/get-search.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs +8 -0
- package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is-redirect.js +8 -0
- package/dist/_node_modules/node-fetch/src/utils/is-redirect.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is.cjs +28 -0
- package/dist/_node_modules/node-fetch/src/utils/is.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is.js +28 -0
- package/dist/_node_modules/node-fetch/src/utils/is.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs +356 -0
- package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js +356 -0
- package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/referrer.cjs +149 -0
- package/dist/_node_modules/node-fetch/src/utils/referrer.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/referrer.js +149 -0
- package/dist/_node_modules/node-fetch/src/utils/referrer.js.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/extract_description.cjs +24 -0
- package/dist/_node_modules/normalize-package-data/lib/extract_description.cjs.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/extract_description.js +24 -0
- package/dist/_node_modules/normalize-package-data/lib/extract_description.js.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/fixer.cjs +438 -0
- package/dist/_node_modules/normalize-package-data/lib/fixer.cjs.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/fixer.js +438 -0
- package/dist/_node_modules/normalize-package-data/lib/fixer.js.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/make_warning.cjs +26 -0
- package/dist/_node_modules/normalize-package-data/lib/make_warning.cjs.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/make_warning.js +26 -0
- package/dist/_node_modules/normalize-package-data/lib/make_warning.js.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/normalize.cjs +58 -0
- package/dist/_node_modules/normalize-package-data/lib/normalize.cjs.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/normalize.js +59 -0
- package/dist/_node_modules/normalize-package-data/lib/normalize.js.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/typos.json.cjs +41 -0
- package/dist/_node_modules/normalize-package-data/lib/typos.json.cjs.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/typos.json.js +41 -0
- package/dist/_node_modules/normalize-package-data/lib/typos.json.js.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.cjs +90 -0
- package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +1 -0
- package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.js +90 -0
- package/dist/_node_modules/normalize-package-data/lib/warning_messages.json.js.map +1 -0
- package/dist/_node_modules/parse-json/index.cjs +54 -0
- package/dist/_node_modules/parse-json/index.cjs.map +1 -0
- package/dist/_node_modules/parse-json/index.js +55 -0
- package/dist/_node_modules/parse-json/index.js.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs +159 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js +159 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs +88 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js +88 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +180 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +180 -0
- package/dist/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs +268 -0
- package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.js +268 -0
- package/dist/_node_modules/read-pkg/_node_modules/lru-cache/index.js.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs +20 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js +20 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs +438 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js +438 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs +26 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js +26 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs +58 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js +59 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.cjs +41 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.js +41 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.js.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.cjs +90 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.js +90 -0
- package/dist/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.js.map +1 -0
- package/dist/_node_modules/read-pkg/index.cjs +20 -0
- package/dist/_node_modules/read-pkg/index.cjs.map +1 -0
- package/dist/_node_modules/read-pkg/index.js +20 -0
- package/dist/_node_modules/read-pkg/index.js.map +1 -0
- package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.cjs +48 -0
- package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.cjs.map +1 -0
- package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.js +48 -0
- package/dist/_node_modules/read-pkg-up/_node_modules/find-up/index.js.map +1 -0
- package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.cjs +43 -0
- package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.cjs.map +1 -0
- package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.js +43 -0
- package/dist/_node_modules/read-pkg-up/_node_modules/locate-path/index.js.map +1 -0
- package/dist/_node_modules/read-pkg-up/index.cjs +17 -0
- package/dist/_node_modules/read-pkg-up/index.cjs.map +1 -0
- package/dist/_node_modules/read-pkg-up/index.js +17 -0
- package/dist/_node_modules/read-pkg-up/index.js.map +1 -0
- package/dist/_node_modules/redent/index.cjs +8 -0
- package/dist/_node_modules/redent/index.cjs.map +1 -0
- package/dist/_node_modules/redent/index.js +9 -0
- package/dist/_node_modules/redent/index.js.map +1 -0
- package/dist/_node_modules/semver/classes/semver.cjs +245 -0
- package/dist/_node_modules/semver/classes/semver.cjs.map +1 -0
- package/dist/_node_modules/semver/classes/semver.js +245 -0
- package/dist/_node_modules/semver/classes/semver.js.map +1 -0
- package/dist/_node_modules/semver/functions/clean.cjs +11 -0
- package/dist/_node_modules/semver/functions/clean.cjs.map +1 -0
- package/dist/_node_modules/semver/functions/clean.js +11 -0
- package/dist/_node_modules/semver/functions/clean.js.map +1 -0
- package/dist/_node_modules/semver/functions/parse.cjs +20 -0
- package/dist/_node_modules/semver/functions/parse.cjs.map +1 -0
- package/dist/_node_modules/semver/functions/parse.js +20 -0
- package/dist/_node_modules/semver/functions/parse.js.map +1 -0
- package/dist/_node_modules/semver/functions/valid.cjs +11 -0
- package/dist/_node_modules/semver/functions/valid.cjs.map +1 -0
- package/dist/_node_modules/semver/functions/valid.js +11 -0
- package/dist/_node_modules/semver/functions/valid.js.map +1 -0
- package/dist/_node_modules/semver/internal/constants.cjs +29 -0
- package/dist/_node_modules/semver/internal/constants.cjs.map +1 -0
- package/dist/_node_modules/semver/internal/constants.js +29 -0
- package/dist/_node_modules/semver/internal/constants.js.map +1 -0
- package/dist/_node_modules/semver/internal/debug.cjs +7 -0
- package/dist/_node_modules/semver/internal/debug.cjs.map +1 -0
- package/dist/_node_modules/semver/internal/debug.js +7 -0
- package/dist/_node_modules/semver/internal/debug.js.map +1 -0
- package/dist/_node_modules/semver/internal/identifiers.cjs +19 -0
- package/dist/_node_modules/semver/internal/identifiers.cjs.map +1 -0
- package/dist/_node_modules/semver/internal/identifiers.js +19 -0
- package/dist/_node_modules/semver/internal/identifiers.js.map +1 -0
- package/dist/_node_modules/semver/internal/parse-options.cjs +16 -0
- package/dist/_node_modules/semver/internal/parse-options.cjs.map +1 -0
- package/dist/_node_modules/semver/internal/parse-options.js +16 -0
- package/dist/_node_modules/semver/internal/parse-options.js.map +1 -0
- package/dist/_node_modules/semver/internal/re.cjs +82 -0
- package/dist/_node_modules/semver/internal/re.cjs.map +1 -0
- package/dist/_node_modules/semver/internal/re.js +82 -0
- package/dist/_node_modules/semver/internal/re.js.map +1 -0
- package/dist/_node_modules/spdx-correct/index.cjs +334 -0
- package/dist/_node_modules/spdx-correct/index.cjs.map +1 -0
- package/dist/_node_modules/spdx-correct/index.js +334 -0
- package/dist/_node_modules/spdx-correct/index.js.map +1 -0
- package/dist/_node_modules/spdx-exceptions/index.json.cjs +43 -0
- package/dist/_node_modules/spdx-exceptions/index.json.cjs.map +1 -0
- package/dist/_node_modules/spdx-exceptions/index.json.js +44 -0
- package/dist/_node_modules/spdx-exceptions/index.json.js.map +1 -0
- package/dist/_node_modules/spdx-expression-parse/index.cjs +11 -0
- package/dist/_node_modules/spdx-expression-parse/index.cjs.map +1 -0
- package/dist/_node_modules/spdx-expression-parse/index.js +11 -0
- package/dist/_node_modules/spdx-expression-parse/index.js.map +1 -0
- package/dist/_node_modules/spdx-expression-parse/parse.cjs +111 -0
- package/dist/_node_modules/spdx-expression-parse/parse.cjs.map +1 -0
- package/dist/_node_modules/spdx-expression-parse/parse.js +111 -0
- package/dist/_node_modules/spdx-expression-parse/parse.js.map +1 -0
- package/dist/_node_modules/spdx-expression-parse/scan.cjs +104 -0
- package/dist/_node_modules/spdx-expression-parse/scan.cjs.map +1 -0
- package/dist/_node_modules/spdx-expression-parse/scan.js +104 -0
- package/dist/_node_modules/spdx-expression-parse/scan.js.map +1 -0
- package/dist/_node_modules/spdx-license-ids/deprecated.json.cjs +30 -0
- package/dist/_node_modules/spdx-license-ids/deprecated.json.cjs.map +1 -0
- package/dist/_node_modules/spdx-license-ids/deprecated.json.js +31 -0
- package/dist/_node_modules/spdx-license-ids/deprecated.json.js.map +1 -0
- package/dist/_node_modules/spdx-license-ids/index.json.cjs +510 -0
- package/dist/_node_modules/spdx-license-ids/index.json.cjs.map +1 -0
- package/dist/_node_modules/spdx-license-ids/index.json.js +511 -0
- package/dist/_node_modules/spdx-license-ids/index.json.js.map +1 -0
- package/dist/_node_modules/strip-indent/index.cjs +12 -0
- package/dist/_node_modules/strip-indent/index.cjs.map +1 -0
- package/dist/_node_modules/strip-indent/index.js +13 -0
- package/dist/_node_modules/strip-indent/index.js.map +1 -0
- package/dist/_node_modules/supports-color/browser.cjs +8 -0
- package/dist/_node_modules/supports-color/browser.cjs.map +1 -0
- package/dist/_node_modules/supports-color/browser.js +8 -0
- package/dist/_node_modules/supports-color/browser.js.map +1 -0
- package/dist/_node_modules/trim-newlines/index.cjs +15 -0
- package/dist/_node_modules/trim-newlines/index.cjs.map +1 -0
- package/dist/_node_modules/trim-newlines/index.js +15 -0
- package/dist/_node_modules/trim-newlines/index.js.map +1 -0
- package/dist/_node_modules/validate-npm-package-license/index.cjs +71 -0
- package/dist/_node_modules/validate-npm-package-license/index.cjs.map +1 -0
- package/dist/_node_modules/validate-npm-package-license/index.js +71 -0
- package/dist/_node_modules/validate-npm-package-license/index.js.map +1 -0
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs +3822 -0
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs.map +1 -0
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +3822 -0
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +1 -0
- package/dist/_node_modules/yallist/iterator.cjs +19 -0
- package/dist/_node_modules/yallist/iterator.cjs.map +1 -0
- package/dist/_node_modules/yallist/iterator.js +19 -0
- package/dist/_node_modules/yallist/iterator.js.map +1 -0
- package/dist/_node_modules/yallist/yallist.cjs +367 -0
- package/dist/_node_modules/yallist/yallist.cjs.map +1 -0
- package/dist/_node_modules/yallist/yallist.js +367 -0
- package/dist/_node_modules/yallist/yallist.js.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/index.cjs +56 -0
- package/dist/_node_modules/yargs-parser/build/lib/index.cjs.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/index.js +57 -0
- package/dist/_node_modules/yargs-parser/build/lib/index.js.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs +63 -0
- package/dist/_node_modules/yargs-parser/build/lib/string-utils.cjs.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/string-utils.js +63 -0
- package/dist/_node_modules/yargs-parser/build/lib/string-utils.js.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs +39 -0
- package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js +39 -0
- package/dist/_node_modules/yargs-parser/build/lib/tokenize-arg-string.js.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs +15 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.cjs.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.js +16 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser-types.js.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs +847 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +1 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js +847 -0
- package/dist/_node_modules/yargs-parser/build/lib/yargs-parser.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.cjs +9 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +9 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/conversions.cjs +5 -0
- package/dist/_virtual/conversions.cjs.map +1 -0
- package/dist/_virtual/conversions.js +5 -0
- package/dist/_virtual/conversions.js.map +1 -0
- package/dist/_virtual/identifier.cjs +5 -0
- package/dist/_virtual/identifier.cjs.map +1 -0
- package/dist/_virtual/identifier.js +5 -0
- package/dist/_virtual/identifier.js.map +1 -0
- package/dist/_virtual/index.cjs +5 -0
- package/dist/_virtual/index.cjs.map +1 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index10.cjs +5 -0
- package/dist/_virtual/index10.cjs.map +1 -0
- package/dist/_virtual/index10.js +5 -0
- package/dist/_virtual/index10.js.map +1 -0
- package/dist/_virtual/index11.cjs +5 -0
- package/dist/_virtual/index11.cjs.map +1 -0
- package/dist/_virtual/index11.js +5 -0
- package/dist/_virtual/index11.js.map +1 -0
- package/dist/_virtual/index2.cjs +5 -0
- package/dist/_virtual/index2.cjs.map +1 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.cjs +5 -0
- package/dist/_virtual/index3.cjs.map +1 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/index4.cjs +5 -0
- package/dist/_virtual/index4.cjs.map +1 -0
- package/dist/_virtual/index4.js +5 -0
- package/dist/_virtual/index4.js.map +1 -0
- package/dist/_virtual/index5.cjs +5 -0
- package/dist/_virtual/index5.cjs.map +1 -0
- package/dist/_virtual/index5.js +5 -0
- package/dist/_virtual/index5.js.map +1 -0
- package/dist/_virtual/index6.cjs +5 -0
- package/dist/_virtual/index6.cjs.map +1 -0
- package/dist/_virtual/index6.js +5 -0
- package/dist/_virtual/index6.js.map +1 -0
- package/dist/_virtual/index7.cjs +5 -0
- package/dist/_virtual/index7.cjs.map +1 -0
- package/dist/_virtual/index7.js +5 -0
- package/dist/_virtual/index7.js.map +1 -0
- package/dist/_virtual/index8.cjs +5 -0
- package/dist/_virtual/index8.cjs.map +1 -0
- package/dist/_virtual/index8.js +5 -0
- package/dist/_virtual/index8.js.map +1 -0
- package/dist/_virtual/index9.cjs +5 -0
- package/dist/_virtual/index9.cjs.map +1 -0
- package/dist/_virtual/index9.js +5 -0
- package/dist/_virtual/index9.js.map +1 -0
- package/dist/_virtual/keyword.cjs +5 -0
- package/dist/_virtual/keyword.cjs.map +1 -0
- package/dist/_virtual/keyword.js +5 -0
- package/dist/_virtual/keyword.js.map +1 -0
- package/dist/_virtual/ponyfill.es2018.cjs +5 -0
- package/dist/_virtual/ponyfill.es2018.cjs.map +1 -0
- package/dist/_virtual/ponyfill.es2018.js +5 -0
- package/dist/_virtual/ponyfill.es2018.js.map +1 -0
- package/dist/_virtual/re.cjs +5 -0
- package/dist/_virtual/re.cjs.map +1 -0
- package/dist/_virtual/re.js +5 -0
- package/dist/_virtual/re.js.map +1 -0
- package/dist/cli/loadLocaleIDs.cjs +2 -2
- package/dist/cli/loadLocaleIDs.cjs.map +1 -1
- package/dist/cli/loadLocaleIDs.js +1 -1
- package/dist/cli/loadModels.cjs +2 -2
- package/dist/cli/loadModels.cjs.map +1 -1
- package/dist/cli/loadModels.js +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/lib/buildFieldProperties.cjs +2 -0
- package/dist/lib/buildFieldProperties.cjs.map +1 -1
- package/dist/lib/buildFieldProperties.js +2 -0
- package/dist/lib/buildFieldProperties.js.map +1 -1
- package/dist/lib/buildSharedSliceType.cjs +2 -0
- package/dist/lib/buildSharedSliceType.cjs.map +1 -1
- package/dist/lib/buildSharedSliceType.js +2 -0
- package/dist/lib/buildSharedSliceType.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/buildFieldProperties.ts +2 -0
- package/src/lib/buildSharedSliceType.ts +2 -0
- package/bin/prismic-ts-codegen.mjs +0 -3
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const debug$1 = require("../internal/debug.cjs");
|
|
4
|
+
const constants = require("../internal/constants.cjs");
|
|
5
|
+
const re$1 = require("../internal/re.cjs");
|
|
6
|
+
const parseOptions$1 = require("../internal/parse-options.cjs");
|
|
7
|
+
const identifiers = require("../internal/identifiers.cjs");
|
|
8
|
+
const debug = debug$1.debug_1;
|
|
9
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = constants.constants;
|
|
10
|
+
const { safeRe: re, t } = re$1.reExports;
|
|
11
|
+
const parseOptions = parseOptions$1.parseOptions_1;
|
|
12
|
+
const { compareIdentifiers } = identifiers.identifiers;
|
|
13
|
+
class SemVer {
|
|
14
|
+
constructor(version, options) {
|
|
15
|
+
options = parseOptions(options);
|
|
16
|
+
if (version instanceof SemVer) {
|
|
17
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
18
|
+
return version;
|
|
19
|
+
} else {
|
|
20
|
+
version = version.version;
|
|
21
|
+
}
|
|
22
|
+
} else if (typeof version !== "string") {
|
|
23
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
24
|
+
}
|
|
25
|
+
if (version.length > MAX_LENGTH) {
|
|
26
|
+
throw new TypeError(
|
|
27
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
debug("SemVer", version, options);
|
|
31
|
+
this.options = options;
|
|
32
|
+
this.loose = !!options.loose;
|
|
33
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
34
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
35
|
+
if (!m) {
|
|
36
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
37
|
+
}
|
|
38
|
+
this.raw = version;
|
|
39
|
+
this.major = +m[1];
|
|
40
|
+
this.minor = +m[2];
|
|
41
|
+
this.patch = +m[3];
|
|
42
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
43
|
+
throw new TypeError("Invalid major version");
|
|
44
|
+
}
|
|
45
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
46
|
+
throw new TypeError("Invalid minor version");
|
|
47
|
+
}
|
|
48
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
49
|
+
throw new TypeError("Invalid patch version");
|
|
50
|
+
}
|
|
51
|
+
if (!m[4]) {
|
|
52
|
+
this.prerelease = [];
|
|
53
|
+
} else {
|
|
54
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
55
|
+
if (/^[0-9]+$/.test(id)) {
|
|
56
|
+
const num = +id;
|
|
57
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
58
|
+
return num;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return id;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
65
|
+
this.format();
|
|
66
|
+
}
|
|
67
|
+
format() {
|
|
68
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
69
|
+
if (this.prerelease.length) {
|
|
70
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
71
|
+
}
|
|
72
|
+
return this.version;
|
|
73
|
+
}
|
|
74
|
+
toString() {
|
|
75
|
+
return this.version;
|
|
76
|
+
}
|
|
77
|
+
compare(other) {
|
|
78
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
79
|
+
if (!(other instanceof SemVer)) {
|
|
80
|
+
if (typeof other === "string" && other === this.version) {
|
|
81
|
+
return 0;
|
|
82
|
+
}
|
|
83
|
+
other = new SemVer(other, this.options);
|
|
84
|
+
}
|
|
85
|
+
if (other.version === this.version) {
|
|
86
|
+
return 0;
|
|
87
|
+
}
|
|
88
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
89
|
+
}
|
|
90
|
+
compareMain(other) {
|
|
91
|
+
if (!(other instanceof SemVer)) {
|
|
92
|
+
other = new SemVer(other, this.options);
|
|
93
|
+
}
|
|
94
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
95
|
+
}
|
|
96
|
+
comparePre(other) {
|
|
97
|
+
if (!(other instanceof SemVer)) {
|
|
98
|
+
other = new SemVer(other, this.options);
|
|
99
|
+
}
|
|
100
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
101
|
+
return -1;
|
|
102
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
103
|
+
return 1;
|
|
104
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
105
|
+
return 0;
|
|
106
|
+
}
|
|
107
|
+
let i = 0;
|
|
108
|
+
do {
|
|
109
|
+
const a = this.prerelease[i];
|
|
110
|
+
const b = other.prerelease[i];
|
|
111
|
+
debug("prerelease compare", i, a, b);
|
|
112
|
+
if (a === void 0 && b === void 0) {
|
|
113
|
+
return 0;
|
|
114
|
+
} else if (b === void 0) {
|
|
115
|
+
return 1;
|
|
116
|
+
} else if (a === void 0) {
|
|
117
|
+
return -1;
|
|
118
|
+
} else if (a === b) {
|
|
119
|
+
continue;
|
|
120
|
+
} else {
|
|
121
|
+
return compareIdentifiers(a, b);
|
|
122
|
+
}
|
|
123
|
+
} while (++i);
|
|
124
|
+
}
|
|
125
|
+
compareBuild(other) {
|
|
126
|
+
if (!(other instanceof SemVer)) {
|
|
127
|
+
other = new SemVer(other, this.options);
|
|
128
|
+
}
|
|
129
|
+
let i = 0;
|
|
130
|
+
do {
|
|
131
|
+
const a = this.build[i];
|
|
132
|
+
const b = other.build[i];
|
|
133
|
+
debug("prerelease compare", i, a, b);
|
|
134
|
+
if (a === void 0 && b === void 0) {
|
|
135
|
+
return 0;
|
|
136
|
+
} else if (b === void 0) {
|
|
137
|
+
return 1;
|
|
138
|
+
} else if (a === void 0) {
|
|
139
|
+
return -1;
|
|
140
|
+
} else if (a === b) {
|
|
141
|
+
continue;
|
|
142
|
+
} else {
|
|
143
|
+
return compareIdentifiers(a, b);
|
|
144
|
+
}
|
|
145
|
+
} while (++i);
|
|
146
|
+
}
|
|
147
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
148
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
149
|
+
inc(release, identifier, identifierBase) {
|
|
150
|
+
switch (release) {
|
|
151
|
+
case "premajor":
|
|
152
|
+
this.prerelease.length = 0;
|
|
153
|
+
this.patch = 0;
|
|
154
|
+
this.minor = 0;
|
|
155
|
+
this.major++;
|
|
156
|
+
this.inc("pre", identifier, identifierBase);
|
|
157
|
+
break;
|
|
158
|
+
case "preminor":
|
|
159
|
+
this.prerelease.length = 0;
|
|
160
|
+
this.patch = 0;
|
|
161
|
+
this.minor++;
|
|
162
|
+
this.inc("pre", identifier, identifierBase);
|
|
163
|
+
break;
|
|
164
|
+
case "prepatch":
|
|
165
|
+
this.prerelease.length = 0;
|
|
166
|
+
this.inc("patch", identifier, identifierBase);
|
|
167
|
+
this.inc("pre", identifier, identifierBase);
|
|
168
|
+
break;
|
|
169
|
+
case "prerelease":
|
|
170
|
+
if (this.prerelease.length === 0) {
|
|
171
|
+
this.inc("patch", identifier, identifierBase);
|
|
172
|
+
}
|
|
173
|
+
this.inc("pre", identifier, identifierBase);
|
|
174
|
+
break;
|
|
175
|
+
case "major":
|
|
176
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
177
|
+
this.major++;
|
|
178
|
+
}
|
|
179
|
+
this.minor = 0;
|
|
180
|
+
this.patch = 0;
|
|
181
|
+
this.prerelease = [];
|
|
182
|
+
break;
|
|
183
|
+
case "minor":
|
|
184
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
185
|
+
this.minor++;
|
|
186
|
+
}
|
|
187
|
+
this.patch = 0;
|
|
188
|
+
this.prerelease = [];
|
|
189
|
+
break;
|
|
190
|
+
case "patch":
|
|
191
|
+
if (this.prerelease.length === 0) {
|
|
192
|
+
this.patch++;
|
|
193
|
+
}
|
|
194
|
+
this.prerelease = [];
|
|
195
|
+
break;
|
|
196
|
+
case "pre": {
|
|
197
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
198
|
+
if (!identifier && identifierBase === false) {
|
|
199
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
200
|
+
}
|
|
201
|
+
if (this.prerelease.length === 0) {
|
|
202
|
+
this.prerelease = [base];
|
|
203
|
+
} else {
|
|
204
|
+
let i = this.prerelease.length;
|
|
205
|
+
while (--i >= 0) {
|
|
206
|
+
if (typeof this.prerelease[i] === "number") {
|
|
207
|
+
this.prerelease[i]++;
|
|
208
|
+
i = -2;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
if (i === -1) {
|
|
212
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
213
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
214
|
+
}
|
|
215
|
+
this.prerelease.push(base);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
if (identifier) {
|
|
219
|
+
let prerelease = [identifier, base];
|
|
220
|
+
if (identifierBase === false) {
|
|
221
|
+
prerelease = [identifier];
|
|
222
|
+
}
|
|
223
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
224
|
+
if (isNaN(this.prerelease[1])) {
|
|
225
|
+
this.prerelease = prerelease;
|
|
226
|
+
}
|
|
227
|
+
} else {
|
|
228
|
+
this.prerelease = prerelease;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
default:
|
|
234
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
235
|
+
}
|
|
236
|
+
this.raw = this.format();
|
|
237
|
+
if (this.build.length) {
|
|
238
|
+
this.raw += `+${this.build.join(".")}`;
|
|
239
|
+
}
|
|
240
|
+
return this;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
var semver = SemVer;
|
|
244
|
+
exports.semver = semver;
|
|
245
|
+
//# sourceMappingURL=semver.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semver.cjs","sources":["../../../../node_modules/semver/classes/semver.js"],"sourcesContent":["const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.join('.')}`\n }\n return this\n }\n}\n\nmodule.exports = SemVer\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;AAAA,MAAM,QAAQA,QAA4B;AAC1C,MAAM,EAAE,YAAY,iBAAgB,IAAKC,UAAgC;AACzE,MAAM,EAAE,QAAQ,IAAI,EAAC,IAAKC,KAAyB;AAEnD,MAAM,eAAeC,eAAoC;AACzD,MAAM,EAAE,mBAAoB,IAAGC,YAAkC;AACjE,MAAM,OAAO;AAAA,EACX,YAAa,SAAS,SAAS;AAC7B,cAAU,aAAa,OAAO;AAE9B,QAAI,mBAAmB,QAAQ;AAC7B,UAAI,QAAQ,UAAU,CAAC,CAAC,QAAQ,SAC5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kBAAI;AAAA,YACL;AAAA,UACF;AACD,cAAI,MAAM,IAAI;AAEZ,gBAAI,eAAe,KAAK,WAAW,KAAK,GAAG,KAAK,mBAAmB,OAAO;AACxE,oBAAM,IAAI,MAAM,uDAAuD;AAAA,YACxE;AACD,iBAAK,WAAW,KAAK,IAAI;AAAA,UAC1B;AAAA,QACF;AACD,YAAI,YAAY;AAGd,cAAI,aAAa,CAAC,YAAY,IAAI;AAClC,cAAI,mBAAmB,OAAO;AAC5B,yBAAa,CAAC,UAAU;AAAA,UACzB;AACD,cAAI,mBAAmB,KAAK,WAAW,CAAC,GAAG,UAAU,MAAM,GAAG;AAC5D,gBAAI,MAAM,KAAK,WAAW,CAAC,CAAC,GAAG;AAC7B,mBAAK,aAAa;AAAA,YACnB;AAAA,UACb,OAAiB;AACL,iBAAK,aAAa;AAAA,UACnB;AAAA,QACF;AACD;AAAA,MACD;AAAA,MACD;AACE,cAAM,IAAI,MAAM,+BAA+B,SAAS;AAAA,IAC3D;AACD,SAAK,MAAM,KAAK,OAAQ;AACxB,QAAI,KAAK,MAAM,QAAQ;AACrB,WAAK,OAAO,IAAI,KAAK,MAAM,KAAK,GAAG;AAAA,IACpC;AACD,WAAO;AAAA,EACR;AACH;AAEA,IAAA,SAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { d as debug_1 } from "../internal/debug.js";
|
|
2
|
+
import { c as constants } from "../internal/constants.js";
|
|
3
|
+
import { r as reExports } from "../internal/re.js";
|
|
4
|
+
import { p as parseOptions_1 } from "../internal/parse-options.js";
|
|
5
|
+
import { i as identifiers } from "../internal/identifiers.js";
|
|
6
|
+
const debug = debug_1;
|
|
7
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = constants;
|
|
8
|
+
const { safeRe: re, t } = reExports;
|
|
9
|
+
const parseOptions = parseOptions_1;
|
|
10
|
+
const { compareIdentifiers } = identifiers;
|
|
11
|
+
class SemVer {
|
|
12
|
+
constructor(version, options) {
|
|
13
|
+
options = parseOptions(options);
|
|
14
|
+
if (version instanceof SemVer) {
|
|
15
|
+
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
16
|
+
return version;
|
|
17
|
+
} else {
|
|
18
|
+
version = version.version;
|
|
19
|
+
}
|
|
20
|
+
} else if (typeof version !== "string") {
|
|
21
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
22
|
+
}
|
|
23
|
+
if (version.length > MAX_LENGTH) {
|
|
24
|
+
throw new TypeError(
|
|
25
|
+
`version is longer than ${MAX_LENGTH} characters`
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
debug("SemVer", version, options);
|
|
29
|
+
this.options = options;
|
|
30
|
+
this.loose = !!options.loose;
|
|
31
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
32
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
33
|
+
if (!m) {
|
|
34
|
+
throw new TypeError(`Invalid Version: ${version}`);
|
|
35
|
+
}
|
|
36
|
+
this.raw = version;
|
|
37
|
+
this.major = +m[1];
|
|
38
|
+
this.minor = +m[2];
|
|
39
|
+
this.patch = +m[3];
|
|
40
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
41
|
+
throw new TypeError("Invalid major version");
|
|
42
|
+
}
|
|
43
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
44
|
+
throw new TypeError("Invalid minor version");
|
|
45
|
+
}
|
|
46
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
47
|
+
throw new TypeError("Invalid patch version");
|
|
48
|
+
}
|
|
49
|
+
if (!m[4]) {
|
|
50
|
+
this.prerelease = [];
|
|
51
|
+
} else {
|
|
52
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
53
|
+
if (/^[0-9]+$/.test(id)) {
|
|
54
|
+
const num = +id;
|
|
55
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
56
|
+
return num;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return id;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
63
|
+
this.format();
|
|
64
|
+
}
|
|
65
|
+
format() {
|
|
66
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
67
|
+
if (this.prerelease.length) {
|
|
68
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
69
|
+
}
|
|
70
|
+
return this.version;
|
|
71
|
+
}
|
|
72
|
+
toString() {
|
|
73
|
+
return this.version;
|
|
74
|
+
}
|
|
75
|
+
compare(other) {
|
|
76
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
77
|
+
if (!(other instanceof SemVer)) {
|
|
78
|
+
if (typeof other === "string" && other === this.version) {
|
|
79
|
+
return 0;
|
|
80
|
+
}
|
|
81
|
+
other = new SemVer(other, this.options);
|
|
82
|
+
}
|
|
83
|
+
if (other.version === this.version) {
|
|
84
|
+
return 0;
|
|
85
|
+
}
|
|
86
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
87
|
+
}
|
|
88
|
+
compareMain(other) {
|
|
89
|
+
if (!(other instanceof SemVer)) {
|
|
90
|
+
other = new SemVer(other, this.options);
|
|
91
|
+
}
|
|
92
|
+
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
|
93
|
+
}
|
|
94
|
+
comparePre(other) {
|
|
95
|
+
if (!(other instanceof SemVer)) {
|
|
96
|
+
other = new SemVer(other, this.options);
|
|
97
|
+
}
|
|
98
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
99
|
+
return -1;
|
|
100
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
101
|
+
return 1;
|
|
102
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
103
|
+
return 0;
|
|
104
|
+
}
|
|
105
|
+
let i = 0;
|
|
106
|
+
do {
|
|
107
|
+
const a = this.prerelease[i];
|
|
108
|
+
const b = other.prerelease[i];
|
|
109
|
+
debug("prerelease compare", i, a, b);
|
|
110
|
+
if (a === void 0 && b === void 0) {
|
|
111
|
+
return 0;
|
|
112
|
+
} else if (b === void 0) {
|
|
113
|
+
return 1;
|
|
114
|
+
} else if (a === void 0) {
|
|
115
|
+
return -1;
|
|
116
|
+
} else if (a === b) {
|
|
117
|
+
continue;
|
|
118
|
+
} else {
|
|
119
|
+
return compareIdentifiers(a, b);
|
|
120
|
+
}
|
|
121
|
+
} while (++i);
|
|
122
|
+
}
|
|
123
|
+
compareBuild(other) {
|
|
124
|
+
if (!(other instanceof SemVer)) {
|
|
125
|
+
other = new SemVer(other, this.options);
|
|
126
|
+
}
|
|
127
|
+
let i = 0;
|
|
128
|
+
do {
|
|
129
|
+
const a = this.build[i];
|
|
130
|
+
const b = other.build[i];
|
|
131
|
+
debug("prerelease compare", i, a, b);
|
|
132
|
+
if (a === void 0 && b === void 0) {
|
|
133
|
+
return 0;
|
|
134
|
+
} else if (b === void 0) {
|
|
135
|
+
return 1;
|
|
136
|
+
} else if (a === void 0) {
|
|
137
|
+
return -1;
|
|
138
|
+
} else if (a === b) {
|
|
139
|
+
continue;
|
|
140
|
+
} else {
|
|
141
|
+
return compareIdentifiers(a, b);
|
|
142
|
+
}
|
|
143
|
+
} while (++i);
|
|
144
|
+
}
|
|
145
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
146
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
147
|
+
inc(release, identifier, identifierBase) {
|
|
148
|
+
switch (release) {
|
|
149
|
+
case "premajor":
|
|
150
|
+
this.prerelease.length = 0;
|
|
151
|
+
this.patch = 0;
|
|
152
|
+
this.minor = 0;
|
|
153
|
+
this.major++;
|
|
154
|
+
this.inc("pre", identifier, identifierBase);
|
|
155
|
+
break;
|
|
156
|
+
case "preminor":
|
|
157
|
+
this.prerelease.length = 0;
|
|
158
|
+
this.patch = 0;
|
|
159
|
+
this.minor++;
|
|
160
|
+
this.inc("pre", identifier, identifierBase);
|
|
161
|
+
break;
|
|
162
|
+
case "prepatch":
|
|
163
|
+
this.prerelease.length = 0;
|
|
164
|
+
this.inc("patch", identifier, identifierBase);
|
|
165
|
+
this.inc("pre", identifier, identifierBase);
|
|
166
|
+
break;
|
|
167
|
+
case "prerelease":
|
|
168
|
+
if (this.prerelease.length === 0) {
|
|
169
|
+
this.inc("patch", identifier, identifierBase);
|
|
170
|
+
}
|
|
171
|
+
this.inc("pre", identifier, identifierBase);
|
|
172
|
+
break;
|
|
173
|
+
case "major":
|
|
174
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
175
|
+
this.major++;
|
|
176
|
+
}
|
|
177
|
+
this.minor = 0;
|
|
178
|
+
this.patch = 0;
|
|
179
|
+
this.prerelease = [];
|
|
180
|
+
break;
|
|
181
|
+
case "minor":
|
|
182
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
183
|
+
this.minor++;
|
|
184
|
+
}
|
|
185
|
+
this.patch = 0;
|
|
186
|
+
this.prerelease = [];
|
|
187
|
+
break;
|
|
188
|
+
case "patch":
|
|
189
|
+
if (this.prerelease.length === 0) {
|
|
190
|
+
this.patch++;
|
|
191
|
+
}
|
|
192
|
+
this.prerelease = [];
|
|
193
|
+
break;
|
|
194
|
+
case "pre": {
|
|
195
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
196
|
+
if (!identifier && identifierBase === false) {
|
|
197
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
198
|
+
}
|
|
199
|
+
if (this.prerelease.length === 0) {
|
|
200
|
+
this.prerelease = [base];
|
|
201
|
+
} else {
|
|
202
|
+
let i = this.prerelease.length;
|
|
203
|
+
while (--i >= 0) {
|
|
204
|
+
if (typeof this.prerelease[i] === "number") {
|
|
205
|
+
this.prerelease[i]++;
|
|
206
|
+
i = -2;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (i === -1) {
|
|
210
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
211
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
212
|
+
}
|
|
213
|
+
this.prerelease.push(base);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
if (identifier) {
|
|
217
|
+
let prerelease = [identifier, base];
|
|
218
|
+
if (identifierBase === false) {
|
|
219
|
+
prerelease = [identifier];
|
|
220
|
+
}
|
|
221
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
222
|
+
if (isNaN(this.prerelease[1])) {
|
|
223
|
+
this.prerelease = prerelease;
|
|
224
|
+
}
|
|
225
|
+
} else {
|
|
226
|
+
this.prerelease = prerelease;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
default:
|
|
232
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
233
|
+
}
|
|
234
|
+
this.raw = this.format();
|
|
235
|
+
if (this.build.length) {
|
|
236
|
+
this.raw += `+${this.build.join(".")}`;
|
|
237
|
+
}
|
|
238
|
+
return this;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
var semver = SemVer;
|
|
242
|
+
export {
|
|
243
|
+
semver as s
|
|
244
|
+
};
|
|
245
|
+
//# sourceMappingURL=semver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semver.js","sources":["../../../../node_modules/semver/classes/semver.js"],"sourcesContent":["const debug = require('../internal/debug')\nconst { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')\nconst { safeRe: re, t } = require('../internal/re')\n\nconst parseOptions = require('../internal/parse-options')\nconst { compareIdentifiers } = require('../internal/identifiers')\nclass SemVer {\n constructor (version, options) {\n options = parseOptions(options)\n\n if (version instanceof SemVer) {\n if (version.loose === !!options.loose &&\n version.includePrerelease === !!options.includePrerelease) {\n return version\n } else {\n version = version.version\n }\n } else if (typeof version !== 'string') {\n throw new TypeError(`Invalid version. Must be a string. Got type \"${typeof version}\".`)\n }\n\n if (version.length > MAX_LENGTH) {\n throw new TypeError(\n `version is longer than ${MAX_LENGTH} characters`\n )\n }\n\n debug('SemVer', version, options)\n this.options = options\n this.loose = !!options.loose\n // this isn't actually relevant for versions, but keep it so that we\n // don't run into trouble passing this.options around.\n this.includePrerelease = !!options.includePrerelease\n\n const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])\n\n if (!m) {\n throw new TypeError(`Invalid Version: ${version}`)\n }\n\n this.raw = version\n\n // these are actually numbers\n this.major = +m[1]\n this.minor = +m[2]\n this.patch = +m[3]\n\n if (this.major > MAX_SAFE_INTEGER || this.major < 0) {\n throw new TypeError('Invalid major version')\n }\n\n if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {\n throw new TypeError('Invalid minor version')\n }\n\n if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {\n throw new TypeError('Invalid patch version')\n }\n\n // numberify any prerelease numeric ids\n if (!m[4]) {\n this.prerelease = []\n } else {\n this.prerelease = m[4].split('.').map((id) => {\n if (/^[0-9]+$/.test(id)) {\n const num = +id\n if (num >= 0 && num < MAX_SAFE_INTEGER) {\n return num\n }\n }\n return id\n })\n }\n\n this.build = m[5] ? m[5].split('.') : []\n this.format()\n }\n\n format () {\n this.version = `${this.major}.${this.minor}.${this.patch}`\n if (this.prerelease.length) {\n this.version += `-${this.prerelease.join('.')}`\n }\n return this.version\n }\n\n toString () {\n return this.version\n }\n\n compare (other) {\n debug('SemVer.compare', this.version, this.options, other)\n if (!(other instanceof SemVer)) {\n if (typeof other === 'string' && other === this.version) {\n return 0\n }\n other = new SemVer(other, this.options)\n }\n\n if (other.version === this.version) {\n return 0\n }\n\n return this.compareMain(other) || this.comparePre(other)\n }\n\n compareMain (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n return (\n compareIdentifiers(this.major, other.major) ||\n compareIdentifiers(this.minor, other.minor) ||\n compareIdentifiers(this.patch, other.patch)\n )\n }\n\n comparePre (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n // NOT having a prerelease is > having one\n if (this.prerelease.length && !other.prerelease.length) {\n return -1\n } else if (!this.prerelease.length && other.prerelease.length) {\n return 1\n } else if (!this.prerelease.length && !other.prerelease.length) {\n return 0\n }\n\n let i = 0\n do {\n const a = this.prerelease[i]\n const b = other.prerelease[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n compareBuild (other) {\n if (!(other instanceof SemVer)) {\n other = new SemVer(other, this.options)\n }\n\n let i = 0\n do {\n const a = this.build[i]\n const b = other.build[i]\n debug('prerelease compare', i, a, b)\n if (a === undefined && b === undefined) {\n return 0\n } else if (b === undefined) {\n return 1\n } else if (a === undefined) {\n return -1\n } else if (a === b) {\n continue\n } else {\n return compareIdentifiers(a, b)\n }\n } while (++i)\n }\n\n // preminor will bump the version up to the next minor release, and immediately\n // down to pre-release. premajor and prepatch work the same way.\n inc (release, identifier, identifierBase) {\n switch (release) {\n case 'premajor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor = 0\n this.major++\n this.inc('pre', identifier, identifierBase)\n break\n case 'preminor':\n this.prerelease.length = 0\n this.patch = 0\n this.minor++\n this.inc('pre', identifier, identifierBase)\n break\n case 'prepatch':\n // If this is already a prerelease, it will bump to the next version\n // drop any prereleases that might already exist, since they are not\n // relevant at this point.\n this.prerelease.length = 0\n this.inc('patch', identifier, identifierBase)\n this.inc('pre', identifier, identifierBase)\n break\n // If the input is a non-prerelease version, this acts the same as\n // prepatch.\n case 'prerelease':\n if (this.prerelease.length === 0) {\n this.inc('patch', identifier, identifierBase)\n }\n this.inc('pre', identifier, identifierBase)\n break\n\n case 'major':\n // If this is a pre-major version, bump up to the same major version.\n // Otherwise increment major.\n // 1.0.0-5 bumps to 1.0.0\n // 1.1.0 bumps to 2.0.0\n if (\n this.minor !== 0 ||\n this.patch !== 0 ||\n this.prerelease.length === 0\n ) {\n this.major++\n }\n this.minor = 0\n this.patch = 0\n this.prerelease = []\n break\n case 'minor':\n // If this is a pre-minor version, bump up to the same minor version.\n // Otherwise increment minor.\n // 1.2.0-5 bumps to 1.2.0\n // 1.2.1 bumps to 1.3.0\n if (this.patch !== 0 || this.prerelease.length === 0) {\n this.minor++\n }\n this.patch = 0\n this.prerelease = []\n break\n case 'patch':\n // If this is not a pre-release version, it will increment the patch.\n // If it is a pre-release it will bump up to the same patch version.\n // 1.2.0-5 patches to 1.2.0\n // 1.2.0 patches to 1.2.1\n if (this.prerelease.length === 0) {\n this.patch++\n }\n this.prerelease = []\n break\n // This probably shouldn't be used publicly.\n // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.\n case 'pre': {\n const base = Number(identifierBase) ? 1 : 0\n\n if (!identifier && identifierBase === false) {\n throw new Error('invalid increment argument: identifier is empty')\n }\n\n if (this.prerelease.length === 0) {\n this.prerelease = [base]\n } else {\n let i = this.prerelease.length\n while (--i >= 0) {\n if (typeof this.prerelease[i] === 'number') {\n this.prerelease[i]++\n i = -2\n }\n }\n if (i === -1) {\n // didn't increment anything\n if (identifier === this.prerelease.join('.') && identifierBase === false) {\n throw new Error('invalid increment argument: identifier already exists')\n }\n this.prerelease.push(base)\n }\n }\n if (identifier) {\n // 1.2.0-beta.1 bumps to 1.2.0-beta.2,\n // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0\n let prerelease = [identifier, base]\n if (identifierBase === false) {\n prerelease = [identifier]\n }\n if (compareIdentifiers(this.prerelease[0], identifier) === 0) {\n if (isNaN(this.prerelease[1])) {\n this.prerelease = prerelease\n }\n } else {\n this.prerelease = prerelease\n }\n }\n break\n }\n default:\n throw new Error(`invalid increment argument: ${release}`)\n }\n this.raw = this.format()\n if (this.build.length) {\n this.raw += `+${this.build.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
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const parse$1 = require("./parse.cjs");
|
|
4
|
+
const parse = parse$1.parse_1;
|
|
5
|
+
const clean = (version, options) => {
|
|
6
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
7
|
+
return s ? s.version : null;
|
|
8
|
+
};
|
|
9
|
+
var clean_1 = clean;
|
|
10
|
+
exports.clean_1 = clean_1;
|
|
11
|
+
//# sourceMappingURL=clean.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean.cjs","sources":["../../../../node_modules/semver/functions/clean.js"],"sourcesContent":["const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n"],"names":["require$$0"],"mappings":";;;AAAA,MAAM,QAAQA,QAAkB;AAChC,MAAM,QAAQ,CAAC,SAAS,YAAY;AAClC,QAAM,IAAI,MAAM,QAAQ,KAAI,EAAG,QAAQ,UAAU,EAAE,GAAG,OAAO;AAC7D,SAAO,IAAI,EAAE,UAAU;AACzB;AACA,IAAA,UAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { p as parse_1 } from "./parse.js";
|
|
2
|
+
const parse = parse_1;
|
|
3
|
+
const clean = (version, options) => {
|
|
4
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
5
|
+
return s ? s.version : null;
|
|
6
|
+
};
|
|
7
|
+
var clean_1 = clean;
|
|
8
|
+
export {
|
|
9
|
+
clean_1 as c
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=clean.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean.js","sources":["../../../../node_modules/semver/functions/clean.js"],"sourcesContent":["const parse = require('./parse')\nconst clean = (version, options) => {\n const s = parse(version.trim().replace(/^[=v]+/, ''), options)\n return s ? s.version : null\n}\nmodule.exports = clean\n"],"names":["require$$0"],"mappings":";AAAA,MAAM,QAAQA;AACd,MAAM,QAAQ,CAAC,SAAS,YAAY;AAClC,QAAM,IAAI,MAAM,QAAQ,KAAI,EAAG,QAAQ,UAAU,EAAE,GAAG,OAAO;AAC7D,SAAO,IAAI,EAAE,UAAU;AACzB;AACA,IAAA,UAAiB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const semver = require("../classes/semver.cjs");
|
|
4
|
+
const SemVer = semver.semver;
|
|
5
|
+
const parse = (version, options, throwErrors = false) => {
|
|
6
|
+
if (version instanceof SemVer) {
|
|
7
|
+
return version;
|
|
8
|
+
}
|
|
9
|
+
try {
|
|
10
|
+
return new SemVer(version, options);
|
|
11
|
+
} catch (er) {
|
|
12
|
+
if (!throwErrors) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
throw er;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var parse_1 = parse;
|
|
19
|
+
exports.parse_1 = parse_1;
|
|
20
|
+
//# sourceMappingURL=parse.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.cjs","sources":["../../../../node_modules/semver/functions/parse.js"],"sourcesContent":["const SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n"],"names":["require$$0"],"mappings":";;;AAAA,MAAM,SAASA,OAA4B;AAC3C,MAAM,QAAQ,CAAC,SAAS,SAAS,cAAc,UAAU;AACvD,MAAI,mBAAmB,QAAQ;AAC7B,WAAO;AAAA,EACR;AACD,MAAI;AACF,WAAO,IAAI,OAAO,SAAS,OAAO;AAAA,EACnC,SAAQ,IAAP;AACA,QAAI,CAAC,aAAa;AAChB,aAAO;AAAA,IACR;AACD,UAAM;AAAA,EACP;AACH;AAEA,IAAA,UAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { s as semver } from "../classes/semver.js";
|
|
2
|
+
const SemVer = semver;
|
|
3
|
+
const parse = (version, options, throwErrors = false) => {
|
|
4
|
+
if (version instanceof SemVer) {
|
|
5
|
+
return version;
|
|
6
|
+
}
|
|
7
|
+
try {
|
|
8
|
+
return new SemVer(version, options);
|
|
9
|
+
} catch (er) {
|
|
10
|
+
if (!throwErrors) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
throw er;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
var parse_1 = parse;
|
|
17
|
+
export {
|
|
18
|
+
parse_1 as p
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=parse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.js","sources":["../../../../node_modules/semver/functions/parse.js"],"sourcesContent":["const SemVer = require('../classes/semver')\nconst parse = (version, options, throwErrors = false) => {\n if (version instanceof SemVer) {\n return version\n }\n try {\n return new SemVer(version, options)\n } catch (er) {\n if (!throwErrors) {\n return null\n }\n throw er\n }\n}\n\nmodule.exports = parse\n"],"names":["require$$0"],"mappings":";AAAA,MAAM,SAASA;AACf,MAAM,QAAQ,CAAC,SAAS,SAAS,cAAc,UAAU;AACvD,MAAI,mBAAmB,QAAQ;AAC7B,WAAO;AAAA,EACR;AACD,MAAI;AACF,WAAO,IAAI,OAAO,SAAS,OAAO;AAAA,EACnC,SAAQ,IAAP;AACA,QAAI,CAAC,aAAa;AAChB,aAAO;AAAA,IACR;AACD,UAAM;AAAA,EACP;AACH;AAEA,IAAA,UAAiB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const parse$1 = require("./parse.cjs");
|
|
4
|
+
const parse = parse$1.parse_1;
|
|
5
|
+
const valid = (version, options) => {
|
|
6
|
+
const v = parse(version, options);
|
|
7
|
+
return v ? v.version : null;
|
|
8
|
+
};
|
|
9
|
+
var valid_1 = valid;
|
|
10
|
+
exports.valid_1 = valid_1;
|
|
11
|
+
//# sourceMappingURL=valid.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valid.cjs","sources":["../../../../node_modules/semver/functions/valid.js"],"sourcesContent":["const parse = require('./parse')\nconst valid = (version, options) => {\n const v = parse(version, options)\n return v ? v.version : null\n}\nmodule.exports = valid\n"],"names":["require$$0"],"mappings":";;;AAAA,MAAM,QAAQA,QAAkB;AAChC,MAAM,QAAQ,CAAC,SAAS,YAAY;AAClC,QAAM,IAAI,MAAM,SAAS,OAAO;AAChC,SAAO,IAAI,EAAE,UAAU;AACzB;AACA,IAAA,UAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { p as parse_1 } from "./parse.js";
|
|
2
|
+
const parse = parse_1;
|
|
3
|
+
const valid = (version, options) => {
|
|
4
|
+
const v = parse(version, options);
|
|
5
|
+
return v ? v.version : null;
|
|
6
|
+
};
|
|
7
|
+
var valid_1 = valid;
|
|
8
|
+
export {
|
|
9
|
+
valid_1 as v
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=valid.js.map
|