prismic-ts-codegen 0.1.16 → 0.1.18
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 +3 -0
- package/dist/lib/buildFieldProperties.cjs.map +1 -1
- package/dist/lib/buildFieldProperties.js +3 -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 +3 -0
- package/src/lib/buildSharedSliceType.ts +2 -0
- package/bin/prismic-ts-codegen.mjs +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../node_modules/js-tokens/index.js"],"sourcesContent":["// Copyright 2014, 2015, 2016, 2017, 2018 Simon Lydell\n// License: MIT. (See LICENSE.)\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n})\n\n// This regex comes from regex.coffee, and is inserted here by generate-index.js\n// (run `npm run build`).\nexports.default = /((['\"])(?:(?!\\2|\\\\).|\\\\(?:\\r\\n|[\\s\\S]))*(\\2)?|`(?:[^`\\\\$]|\\\\[\\s\\S]|\\$(?!\\{)|\\$\\{(?:[^{}]|\\{[^}]*\\}?)*\\}?)*(`)?)|(\\/\\/.*)|(\\/\\*(?:[^*]|\\*(?!\\/))*(\\*\\/)?)|(\\/(?!\\*)(?:\\[(?:(?![\\]\\\\]).|\\\\.)*\\]|(?![\\/\\]\\\\]).|\\\\.)+\\/(?:(?!\\s*(?:\\b|[\\u0080-\\uFFFF$\\\\'\"~({]|[+\\-!](?!=)|\\.?\\d))|[gmiyus]{1,6}\\b(?![\\u0080-\\uFFFF$\\\\]|\\s*(?:[+\\-*%&|^<>!=?({]|\\/(?![\\/*])))))|(0[xX][\\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?)|((?!\\d)(?:(?!\\s)[$\\w\\u0080-\\uFFFF]|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+)|(--|\\+\\+|&&|\\|\\||=>|\\.{3}|(?:[+\\-\\/%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\\](){}])|(\\s+)|(^$|[\\s\\S])/g\n\nexports.matchToToken = function(match) {\n var token = {type: \"invalid\", value: match[0], closed: undefined}\n if (match[ 1]) token.type = \"string\" , token.closed = !!(match[3] || match[4])\n else if (match[ 5]) token.type = \"comment\"\n else if (match[ 6]) token.type = \"comment\", token.closed = !!match[7]\n else if (match[ 8]) token.type = \"regex\"\n else if (match[ 9]) token.type = \"number\"\n else if (match[10]) token.type = \"name\"\n else if (match[11]) token.type = \"punctuator\"\n else if (match[12]) token.type = \"whitespace\"\n return token\n}\n"],"names":["jsTokens"],"mappings":";;AAGA,OAAO,eAAeA,MAAO,WAAE,cAAc;AAAA,EAC3C,OAAO;AACT,CAAC;AAIDA,MAAA,UAAA,UAAkB;AAEEA,MAAAA,UAAA,eAAG,SAAS,OAAO;AACrC,MAAI,QAAQ,EAAC,MAAM,WAAW,OAAO,MAAM,CAAC,GAAG,QAAQ,OAAS;AAC3D,MAAI,MAAO,CAAC;AAAG,UAAM,OAAO,UAAW,MAAM,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC;AAAA,WACxE,MAAO,CAAC;AAAG,UAAM,OAAO;AAAA,WACxB,MAAO,CAAC;AAAG,UAAM,OAAO,WAAW,MAAM,SAAS,CAAC,CAAC,MAAM,CAAC;AAAA,WAC3D,MAAO,CAAC;AAAG,UAAM,OAAO;AAAA,WACxB,MAAO,CAAC;AAAG,UAAM,OAAO;AAAA,WACxB,MAAM,EAAE;AAAG,UAAM,OAAO;AAAA,WACxB,MAAM,EAAE;AAAG,UAAM,OAAO;AAAA,WACxB,MAAM,EAAE;AAAG,UAAM,OAAO;AACjC,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __exports as jsTokens } from "../../_virtual/index7.js";
|
|
2
|
+
Object.defineProperty(jsTokens, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
jsTokens.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;
|
|
6
|
+
jsTokens.matchToToken = function(match) {
|
|
7
|
+
var token = { type: "invalid", value: match[0], closed: void 0 };
|
|
8
|
+
if (match[1])
|
|
9
|
+
token.type = "string", token.closed = !!(match[3] || match[4]);
|
|
10
|
+
else if (match[5])
|
|
11
|
+
token.type = "comment";
|
|
12
|
+
else if (match[6])
|
|
13
|
+
token.type = "comment", token.closed = !!match[7];
|
|
14
|
+
else if (match[8])
|
|
15
|
+
token.type = "regex";
|
|
16
|
+
else if (match[9])
|
|
17
|
+
token.type = "number";
|
|
18
|
+
else if (match[10])
|
|
19
|
+
token.type = "name";
|
|
20
|
+
else if (match[11])
|
|
21
|
+
token.type = "punctuator";
|
|
22
|
+
else if (match[12])
|
|
23
|
+
token.type = "whitespace";
|
|
24
|
+
return token;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/js-tokens/index.js"],"sourcesContent":["// Copyright 2014, 2015, 2016, 2017, 2018 Simon Lydell\n// License: MIT. (See LICENSE.)\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n})\n\n// This regex comes from regex.coffee, and is inserted here by generate-index.js\n// (run `npm run build`).\nexports.default = /((['\"])(?:(?!\\2|\\\\).|\\\\(?:\\r\\n|[\\s\\S]))*(\\2)?|`(?:[^`\\\\$]|\\\\[\\s\\S]|\\$(?!\\{)|\\$\\{(?:[^{}]|\\{[^}]*\\}?)*\\}?)*(`)?)|(\\/\\/.*)|(\\/\\*(?:[^*]|\\*(?!\\/))*(\\*\\/)?)|(\\/(?!\\*)(?:\\[(?:(?![\\]\\\\]).|\\\\.)*\\]|(?![\\/\\]\\\\]).|\\\\.)+\\/(?:(?!\\s*(?:\\b|[\\u0080-\\uFFFF$\\\\'\"~({]|[+\\-!](?!=)|\\.?\\d))|[gmiyus]{1,6}\\b(?![\\u0080-\\uFFFF$\\\\]|\\s*(?:[+\\-*%&|^<>!=?({]|\\/(?![\\/*])))))|(0[xX][\\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?)|((?!\\d)(?:(?!\\s)[$\\w\\u0080-\\uFFFF]|\\\\u[\\da-fA-F]{4}|\\\\u\\{[\\da-fA-F]+\\})+)|(--|\\+\\+|&&|\\|\\||=>|\\.{3}|(?:[+\\-\\/%&|^]|\\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\\](){}])|(\\s+)|(^$|[\\s\\S])/g\n\nexports.matchToToken = function(match) {\n var token = {type: \"invalid\", value: match[0], closed: undefined}\n if (match[ 1]) token.type = \"string\" , token.closed = !!(match[3] || match[4])\n else if (match[ 5]) token.type = \"comment\"\n else if (match[ 6]) token.type = \"comment\", token.closed = !!match[7]\n else if (match[ 8]) token.type = \"regex\"\n else if (match[ 9]) token.type = \"number\"\n else if (match[10]) token.type = \"name\"\n else if (match[11]) token.type = \"punctuator\"\n else if (match[12]) token.type = \"whitespace\"\n return token\n}\n"],"names":[],"mappings":";AAGA,OAAO,eAAe,UAAS,cAAc;AAAA,EAC3C,OAAO;AACT,CAAC;AAID,SAAA,UAAkB;AAEE,SAAA,eAAG,SAAS,OAAO;AACrC,MAAI,QAAQ,EAAC,MAAM,WAAW,OAAO,MAAM,CAAC,GAAG,QAAQ,OAAS;AAC3D,MAAI,MAAO,CAAC;AAAG,UAAM,OAAO,UAAW,MAAM,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC;AAAA,WACxE,MAAO,CAAC;AAAG,UAAM,OAAO;AAAA,WACxB,MAAO,CAAC;AAAG,UAAM,OAAO,WAAW,MAAM,SAAS,CAAC,CAAC,MAAM,CAAC;AAAA,WAC3D,MAAO,CAAC;AAAG,UAAM,OAAO;AAAA,WACxB,MAAO,CAAC;AAAG,UAAM,OAAO;AAAA,WACxB,MAAM,EAAE;AAAG,UAAM,OAAO;AAAA,WACxB,MAAM,EAAE;AAAG,UAAM,OAAO;AAAA,WACxB,MAAM,EAAE;AAAG,UAAM,OAAO;AACjC,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const hexify = (char) => {
|
|
4
|
+
const h = char.charCodeAt(0).toString(16).toUpperCase();
|
|
5
|
+
return "0x" + (h.length % 2 ? "0" : "") + h;
|
|
6
|
+
};
|
|
7
|
+
const parseError = (e, txt, context) => {
|
|
8
|
+
if (!txt) {
|
|
9
|
+
return {
|
|
10
|
+
message: e.message + " while parsing empty string",
|
|
11
|
+
position: 0
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
|
|
15
|
+
const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
|
|
16
|
+
const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
|
|
17
|
+
if (errIdx !== null && errIdx !== void 0) {
|
|
18
|
+
const start = errIdx <= context ? 0 : errIdx - context;
|
|
19
|
+
const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
|
|
20
|
+
const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
|
|
21
|
+
const near = txt === slice ? "" : "near ";
|
|
22
|
+
return {
|
|
23
|
+
message: msg + ` while parsing ${near}${JSON.stringify(slice)}`,
|
|
24
|
+
position: errIdx
|
|
25
|
+
};
|
|
26
|
+
} else {
|
|
27
|
+
return {
|
|
28
|
+
message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
|
|
29
|
+
position: 0
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
class JSONParseError extends SyntaxError {
|
|
34
|
+
constructor(er, txt, context, caller) {
|
|
35
|
+
context = context || 20;
|
|
36
|
+
const metadata = parseError(er, txt, context);
|
|
37
|
+
super(metadata.message);
|
|
38
|
+
Object.assign(this, metadata);
|
|
39
|
+
this.code = "EJSONPARSE";
|
|
40
|
+
this.systemError = er;
|
|
41
|
+
Error.captureStackTrace(this, caller || this.constructor);
|
|
42
|
+
}
|
|
43
|
+
get name() {
|
|
44
|
+
return this.constructor.name;
|
|
45
|
+
}
|
|
46
|
+
set name(n) {
|
|
47
|
+
}
|
|
48
|
+
get [Symbol.toStringTag]() {
|
|
49
|
+
return this.constructor.name;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const kIndent = Symbol.for("indent");
|
|
53
|
+
const kNewline = Symbol.for("newline");
|
|
54
|
+
const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
|
|
55
|
+
const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
|
|
56
|
+
const parseJson = (txt, reviver, context) => {
|
|
57
|
+
const parseText = stripBOM(txt);
|
|
58
|
+
context = context || 20;
|
|
59
|
+
try {
|
|
60
|
+
const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [, "", ""];
|
|
61
|
+
const result = JSON.parse(parseText, reviver);
|
|
62
|
+
if (result && typeof result === "object") {
|
|
63
|
+
result[kNewline] = newline;
|
|
64
|
+
result[kIndent] = indent;
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
67
|
+
} catch (e) {
|
|
68
|
+
if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
|
|
69
|
+
const isEmptyArray = Array.isArray(txt) && txt.length === 0;
|
|
70
|
+
throw Object.assign(new TypeError(
|
|
71
|
+
`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`
|
|
72
|
+
), {
|
|
73
|
+
code: "EJSONPARSE",
|
|
74
|
+
systemError: e
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
throw new JSONParseError(e, parseText, context, parseJson);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
|
|
81
|
+
var jsonParseEvenBetterErrors = parseJson;
|
|
82
|
+
parseJson.JSONParseError = JSONParseError;
|
|
83
|
+
parseJson.noExceptions = (txt, reviver) => {
|
|
84
|
+
try {
|
|
85
|
+
return JSON.parse(stripBOM(txt), reviver);
|
|
86
|
+
} catch (e) {
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
exports.jsonParseEvenBetterErrors = jsonParseEvenBetterErrors;
|
|
90
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../node_modules/json-parse-even-better-errors/index.js"],"sourcesContent":["'use strict'\n\nconst hexify = char => {\n const h = char.charCodeAt(0).toString(16).toUpperCase()\n return '0x' + (h.length % 2 ? '0' : '') + h\n}\n\nconst parseError = (e, txt, context) => {\n if (!txt) {\n return {\n message: e.message + ' while parsing empty string',\n position: 0,\n }\n }\n const badToken = e.message.match(/^Unexpected token (.) .*position\\s+(\\d+)/i)\n const errIdx = badToken ? +badToken[2]\n : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1\n : null\n\n const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${\n JSON.stringify(badToken[1])\n } (${hexify(badToken[1])})`)\n : e.message\n\n if (errIdx !== null && errIdx !== undefined) {\n const start = errIdx <= context ? 0\n : errIdx - context\n\n const end = errIdx + context >= txt.length ? txt.length\n : errIdx + context\n\n const slice = (start === 0 ? '' : '...') +\n txt.slice(start, end) +\n (end === txt.length ? '' : '...')\n\n const near = txt === slice ? '' : 'near '\n\n return {\n message: msg + ` while parsing ${near}${JSON.stringify(slice)}`,\n position: errIdx,\n }\n } else {\n return {\n message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,\n position: 0,\n }\n }\n}\n\nclass JSONParseError extends SyntaxError {\n constructor (er, txt, context, caller) {\n context = context || 20\n const metadata = parseError(er, txt, context)\n super(metadata.message)\n Object.assign(this, metadata)\n this.code = 'EJSONPARSE'\n this.systemError = er\n Error.captureStackTrace(this, caller || this.constructor)\n }\n get name () { return this.constructor.name }\n set name (n) {}\n get [Symbol.toStringTag] () { return this.constructor.name }\n}\n\nconst kIndent = Symbol.for('indent')\nconst kNewline = Symbol.for('newline')\n// only respect indentation if we got a line break, otherwise squash it\n// things other than objects and arrays aren't indented, so ignore those\n// Important: in both of these regexps, the $1 capture group is the newline\n// or undefined, and the $2 capture group is the indent, or undefined.\nconst formatRE = /^\\s*[{\\[]((?:\\r?\\n)+)([\\s\\t]*)/\nconst emptyRE = /^(?:\\{\\}|\\[\\])((?:\\r?\\n)+)?$/\n\nconst parseJson = (txt, reviver, context) => {\n const parseText = stripBOM(txt)\n context = context || 20\n try {\n // get the indentation so that we can save it back nicely\n // if the file starts with {\" then we have an indent of '', ie, none\n // otherwise, pick the indentation of the next line after the first \\n\n // If the pattern doesn't match, then it means no indentation.\n // JSON.stringify ignores symbols, so this is reasonably safe.\n // if the string is '{}' or '[]', then use the default 2-space indent.\n const [, newline = '\\n', indent = ' '] = parseText.match(emptyRE) ||\n parseText.match(formatRE) ||\n [, '', '']\n\n const result = JSON.parse(parseText, reviver)\n if (result && typeof result === 'object') {\n result[kNewline] = newline\n result[kIndent] = indent\n }\n return result\n } catch (e) {\n if (typeof txt !== 'string' && !Buffer.isBuffer(txt)) {\n const isEmptyArray = Array.isArray(txt) && txt.length === 0\n throw Object.assign(new TypeError(\n `Cannot parse ${isEmptyArray ? 'an empty array' : String(txt)}`\n ), {\n code: 'EJSONPARSE',\n systemError: e,\n })\n }\n\n throw new JSONParseError(e, parseText, context, parseJson)\n }\n}\n\n// Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n// because the buffer-to-string conversion in `fs.readFileSync()`\n// translates it to FEFF, the UTF-16 BOM.\nconst stripBOM = txt => String(txt).replace(/^\\uFEFF/, '')\n\nmodule.exports = parseJson\nparseJson.JSONParseError = JSONParseError\n\nparseJson.noExceptions = (txt, reviver) => {\n try {\n return JSON.parse(stripBOM(txt), reviver)\n } catch (e) {}\n}\n"],"names":[],"mappings":";;AAEA,MAAM,SAAS,UAAQ;AACrB,QAAM,IAAI,KAAK,WAAW,CAAC,EAAE,SAAS,EAAE,EAAE,YAAa;AACvD,SAAO,QAAQ,EAAE,SAAS,IAAI,MAAM,MAAM;AAC5C;AAEA,MAAM,aAAa,CAAC,GAAG,KAAK,YAAY;AACtC,MAAI,CAAC,KAAK;AACR,WAAO;AAAA,MACL,SAAS,EAAE,UAAU;AAAA,MACrB,UAAU;AAAA,IACX;AAAA,EACF;AACD,QAAM,WAAW,EAAE,QAAQ,MAAM,2CAA2C;AAC5E,QAAM,SAAS,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
|
4
|
+
};
|
|
5
|
+
const parseError = (e, txt, context) => {
|
|
6
|
+
if (!txt) {
|
|
7
|
+
return {
|
|
8
|
+
message: e.message + " while parsing empty string",
|
|
9
|
+
position: 0
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const badToken = e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i);
|
|
13
|
+
const errIdx = badToken ? +badToken[2] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
|
|
14
|
+
const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${JSON.stringify(badToken[1])} (${hexify(badToken[1])})`) : e.message;
|
|
15
|
+
if (errIdx !== null && errIdx !== void 0) {
|
|
16
|
+
const start = errIdx <= context ? 0 : errIdx - context;
|
|
17
|
+
const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
|
|
18
|
+
const slice = (start === 0 ? "" : "...") + txt.slice(start, end) + (end === txt.length ? "" : "...");
|
|
19
|
+
const near = txt === slice ? "" : "near ";
|
|
20
|
+
return {
|
|
21
|
+
message: msg + ` while parsing ${near}${JSON.stringify(slice)}`,
|
|
22
|
+
position: errIdx
|
|
23
|
+
};
|
|
24
|
+
} else {
|
|
25
|
+
return {
|
|
26
|
+
message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,
|
|
27
|
+
position: 0
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
class JSONParseError extends SyntaxError {
|
|
32
|
+
constructor(er, txt, context, caller) {
|
|
33
|
+
context = context || 20;
|
|
34
|
+
const metadata = parseError(er, txt, context);
|
|
35
|
+
super(metadata.message);
|
|
36
|
+
Object.assign(this, metadata);
|
|
37
|
+
this.code = "EJSONPARSE";
|
|
38
|
+
this.systemError = er;
|
|
39
|
+
Error.captureStackTrace(this, caller || this.constructor);
|
|
40
|
+
}
|
|
41
|
+
get name() {
|
|
42
|
+
return this.constructor.name;
|
|
43
|
+
}
|
|
44
|
+
set name(n) {
|
|
45
|
+
}
|
|
46
|
+
get [Symbol.toStringTag]() {
|
|
47
|
+
return this.constructor.name;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const kIndent = Symbol.for("indent");
|
|
51
|
+
const kNewline = Symbol.for("newline");
|
|
52
|
+
const formatRE = /^\s*[{\[]((?:\r?\n)+)([\s\t]*)/;
|
|
53
|
+
const emptyRE = /^(?:\{\}|\[\])((?:\r?\n)+)?$/;
|
|
54
|
+
const parseJson = (txt, reviver, context) => {
|
|
55
|
+
const parseText = stripBOM(txt);
|
|
56
|
+
context = context || 20;
|
|
57
|
+
try {
|
|
58
|
+
const [, newline = "\n", indent = " "] = parseText.match(emptyRE) || parseText.match(formatRE) || [, "", ""];
|
|
59
|
+
const result = JSON.parse(parseText, reviver);
|
|
60
|
+
if (result && typeof result === "object") {
|
|
61
|
+
result[kNewline] = newline;
|
|
62
|
+
result[kIndent] = indent;
|
|
63
|
+
}
|
|
64
|
+
return result;
|
|
65
|
+
} catch (e) {
|
|
66
|
+
if (typeof txt !== "string" && !Buffer.isBuffer(txt)) {
|
|
67
|
+
const isEmptyArray = Array.isArray(txt) && txt.length === 0;
|
|
68
|
+
throw Object.assign(new TypeError(
|
|
69
|
+
`Cannot parse ${isEmptyArray ? "an empty array" : String(txt)}`
|
|
70
|
+
), {
|
|
71
|
+
code: "EJSONPARSE",
|
|
72
|
+
systemError: e
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
throw new JSONParseError(e, parseText, context, parseJson);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const stripBOM = (txt) => String(txt).replace(/^\uFEFF/, "");
|
|
79
|
+
var jsonParseEvenBetterErrors = parseJson;
|
|
80
|
+
parseJson.JSONParseError = JSONParseError;
|
|
81
|
+
parseJson.noExceptions = (txt, reviver) => {
|
|
82
|
+
try {
|
|
83
|
+
return JSON.parse(stripBOM(txt), reviver);
|
|
84
|
+
} catch (e) {
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
export {
|
|
88
|
+
jsonParseEvenBetterErrors as j
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/json-parse-even-better-errors/index.js"],"sourcesContent":["'use strict'\n\nconst hexify = char => {\n const h = char.charCodeAt(0).toString(16).toUpperCase()\n return '0x' + (h.length % 2 ? '0' : '') + h\n}\n\nconst parseError = (e, txt, context) => {\n if (!txt) {\n return {\n message: e.message + ' while parsing empty string',\n position: 0,\n }\n }\n const badToken = e.message.match(/^Unexpected token (.) .*position\\s+(\\d+)/i)\n const errIdx = badToken ? +badToken[2]\n : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1\n : null\n\n const msg = badToken ? e.message.replace(/^Unexpected token ./, `Unexpected token ${\n JSON.stringify(badToken[1])\n } (${hexify(badToken[1])})`)\n : e.message\n\n if (errIdx !== null && errIdx !== undefined) {\n const start = errIdx <= context ? 0\n : errIdx - context\n\n const end = errIdx + context >= txt.length ? txt.length\n : errIdx + context\n\n const slice = (start === 0 ? '' : '...') +\n txt.slice(start, end) +\n (end === txt.length ? '' : '...')\n\n const near = txt === slice ? '' : 'near '\n\n return {\n message: msg + ` while parsing ${near}${JSON.stringify(slice)}`,\n position: errIdx,\n }\n } else {\n return {\n message: msg + ` while parsing '${txt.slice(0, context * 2)}'`,\n position: 0,\n }\n }\n}\n\nclass JSONParseError extends SyntaxError {\n constructor (er, txt, context, caller) {\n context = context || 20\n const metadata = parseError(er, txt, context)\n super(metadata.message)\n Object.assign(this, metadata)\n this.code = 'EJSONPARSE'\n this.systemError = er\n Error.captureStackTrace(this, caller || this.constructor)\n }\n get name () { return this.constructor.name }\n set name (n) {}\n get [Symbol.toStringTag] () { return this.constructor.name }\n}\n\nconst kIndent = Symbol.for('indent')\nconst kNewline = Symbol.for('newline')\n// only respect indentation if we got a line break, otherwise squash it\n// things other than objects and arrays aren't indented, so ignore those\n// Important: in both of these regexps, the $1 capture group is the newline\n// or undefined, and the $2 capture group is the indent, or undefined.\nconst formatRE = /^\\s*[{\\[]((?:\\r?\\n)+)([\\s\\t]*)/\nconst emptyRE = /^(?:\\{\\}|\\[\\])((?:\\r?\\n)+)?$/\n\nconst parseJson = (txt, reviver, context) => {\n const parseText = stripBOM(txt)\n context = context || 20\n try {\n // get the indentation so that we can save it back nicely\n // if the file starts with {\" then we have an indent of '', ie, none\n // otherwise, pick the indentation of the next line after the first \\n\n // If the pattern doesn't match, then it means no indentation.\n // JSON.stringify ignores symbols, so this is reasonably safe.\n // if the string is '{}' or '[]', then use the default 2-space indent.\n const [, newline = '\\n', indent = ' '] = parseText.match(emptyRE) ||\n parseText.match(formatRE) ||\n [, '', '']\n\n const result = JSON.parse(parseText, reviver)\n if (result && typeof result === 'object') {\n result[kNewline] = newline\n result[kIndent] = indent\n }\n return result\n } catch (e) {\n if (typeof txt !== 'string' && !Buffer.isBuffer(txt)) {\n const isEmptyArray = Array.isArray(txt) && txt.length === 0\n throw Object.assign(new TypeError(\n `Cannot parse ${isEmptyArray ? 'an empty array' : String(txt)}`\n ), {\n code: 'EJSONPARSE',\n systemError: e,\n })\n }\n\n throw new JSONParseError(e, parseText, context, parseJson)\n }\n}\n\n// Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n// because the buffer-to-string conversion in `fs.readFileSync()`\n// translates it to FEFF, the UTF-16 BOM.\nconst stripBOM = txt => String(txt).replace(/^\\uFEFF/, '')\n\nmodule.exports = parseJson\nparseJson.JSONParseError = JSONParseError\n\nparseJson.noExceptions = (txt, reviver) => {\n try {\n return JSON.parse(stripBOM(txt), reviver)\n } catch (e) {}\n}\n"],"names":[],"mappings":"AAEA,MAAM,SAAS,UAAQ;AACrB,QAAM,IAAI,KAAK,WAAW,CAAC,EAAE,SAAS,EAAE,EAAE,YAAa;AACvD,SAAO,QAAQ,EAAE,SAAS,IAAI,MAAM,MAAM;AAC5C;AAEA,MAAM,aAAa,CAAC,GAAG,KAAK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,EAAY;AAChB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var toString = Object.prototype.toString;
|
|
4
|
+
var kindOf = function kindOf2(val) {
|
|
5
|
+
if (val === void 0)
|
|
6
|
+
return "undefined";
|
|
7
|
+
if (val === null)
|
|
8
|
+
return "null";
|
|
9
|
+
var type = typeof val;
|
|
10
|
+
if (type === "boolean")
|
|
11
|
+
return "boolean";
|
|
12
|
+
if (type === "string")
|
|
13
|
+
return "string";
|
|
14
|
+
if (type === "number")
|
|
15
|
+
return "number";
|
|
16
|
+
if (type === "symbol")
|
|
17
|
+
return "symbol";
|
|
18
|
+
if (type === "function") {
|
|
19
|
+
return isGeneratorFn(val) ? "generatorfunction" : "function";
|
|
20
|
+
}
|
|
21
|
+
if (isArray(val))
|
|
22
|
+
return "array";
|
|
23
|
+
if (isBuffer(val))
|
|
24
|
+
return "buffer";
|
|
25
|
+
if (isArguments(val))
|
|
26
|
+
return "arguments";
|
|
27
|
+
if (isDate(val))
|
|
28
|
+
return "date";
|
|
29
|
+
if (isError(val))
|
|
30
|
+
return "error";
|
|
31
|
+
if (isRegexp(val))
|
|
32
|
+
return "regexp";
|
|
33
|
+
switch (ctorName(val)) {
|
|
34
|
+
case "Symbol":
|
|
35
|
+
return "symbol";
|
|
36
|
+
case "Promise":
|
|
37
|
+
return "promise";
|
|
38
|
+
case "WeakMap":
|
|
39
|
+
return "weakmap";
|
|
40
|
+
case "WeakSet":
|
|
41
|
+
return "weakset";
|
|
42
|
+
case "Map":
|
|
43
|
+
return "map";
|
|
44
|
+
case "Set":
|
|
45
|
+
return "set";
|
|
46
|
+
case "Int8Array":
|
|
47
|
+
return "int8array";
|
|
48
|
+
case "Uint8Array":
|
|
49
|
+
return "uint8array";
|
|
50
|
+
case "Uint8ClampedArray":
|
|
51
|
+
return "uint8clampedarray";
|
|
52
|
+
case "Int16Array":
|
|
53
|
+
return "int16array";
|
|
54
|
+
case "Uint16Array":
|
|
55
|
+
return "uint16array";
|
|
56
|
+
case "Int32Array":
|
|
57
|
+
return "int32array";
|
|
58
|
+
case "Uint32Array":
|
|
59
|
+
return "uint32array";
|
|
60
|
+
case "Float32Array":
|
|
61
|
+
return "float32array";
|
|
62
|
+
case "Float64Array":
|
|
63
|
+
return "float64array";
|
|
64
|
+
}
|
|
65
|
+
if (isGeneratorObj(val)) {
|
|
66
|
+
return "generator";
|
|
67
|
+
}
|
|
68
|
+
type = toString.call(val);
|
|
69
|
+
switch (type) {
|
|
70
|
+
case "[object Object]":
|
|
71
|
+
return "object";
|
|
72
|
+
case "[object Map Iterator]":
|
|
73
|
+
return "mapiterator";
|
|
74
|
+
case "[object Set Iterator]":
|
|
75
|
+
return "setiterator";
|
|
76
|
+
case "[object String Iterator]":
|
|
77
|
+
return "stringiterator";
|
|
78
|
+
case "[object Array Iterator]":
|
|
79
|
+
return "arrayiterator";
|
|
80
|
+
}
|
|
81
|
+
return type.slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
82
|
+
};
|
|
83
|
+
function ctorName(val) {
|
|
84
|
+
return typeof val.constructor === "function" ? val.constructor.name : null;
|
|
85
|
+
}
|
|
86
|
+
function isArray(val) {
|
|
87
|
+
if (Array.isArray)
|
|
88
|
+
return Array.isArray(val);
|
|
89
|
+
return val instanceof Array;
|
|
90
|
+
}
|
|
91
|
+
function isError(val) {
|
|
92
|
+
return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
|
|
93
|
+
}
|
|
94
|
+
function isDate(val) {
|
|
95
|
+
if (val instanceof Date)
|
|
96
|
+
return true;
|
|
97
|
+
return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
|
|
98
|
+
}
|
|
99
|
+
function isRegexp(val) {
|
|
100
|
+
if (val instanceof RegExp)
|
|
101
|
+
return true;
|
|
102
|
+
return typeof val.flags === "string" && typeof val.ignoreCase === "boolean" && typeof val.multiline === "boolean" && typeof val.global === "boolean";
|
|
103
|
+
}
|
|
104
|
+
function isGeneratorFn(name, val) {
|
|
105
|
+
return ctorName(name) === "GeneratorFunction";
|
|
106
|
+
}
|
|
107
|
+
function isGeneratorObj(val) {
|
|
108
|
+
return typeof val.throw === "function" && typeof val.return === "function" && typeof val.next === "function";
|
|
109
|
+
}
|
|
110
|
+
function isArguments(val) {
|
|
111
|
+
try {
|
|
112
|
+
if (typeof val.length === "number" && typeof val.callee === "function") {
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
} catch (err) {
|
|
116
|
+
if (err.message.indexOf("callee") !== -1) {
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
function isBuffer(val) {
|
|
123
|
+
if (val.constructor && typeof val.constructor.isBuffer === "function") {
|
|
124
|
+
return val.constructor.isBuffer(val);
|
|
125
|
+
}
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
exports.kindOf = kindOf;
|
|
129
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../node_modules/kind-of/index.js"],"sourcesContent":["var toString = Object.prototype.toString;\n\nmodule.exports = function kindOf(val) {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n\n var type = typeof val;\n if (type === 'boolean') return 'boolean';\n if (type === 'string') return 'string';\n if (type === 'number') return 'number';\n if (type === 'symbol') return 'symbol';\n if (type === 'function') {\n return isGeneratorFn(val) ? 'generatorfunction' : 'function';\n }\n\n if (isArray(val)) return 'array';\n if (isBuffer(val)) return 'buffer';\n if (isArguments(val)) return 'arguments';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n if (isRegexp(val)) return 'regexp';\n\n switch (ctorName(val)) {\n case 'Symbol': return 'symbol';\n case 'Promise': return 'promise';\n\n // Set, Map, WeakSet, WeakMap\n case 'WeakMap': return 'weakmap';\n case 'WeakSet': return 'weakset';\n case 'Map': return 'map';\n case 'Set': return 'set';\n\n // 8-bit typed arrays\n case 'Int8Array': return 'int8array';\n case 'Uint8Array': return 'uint8array';\n case 'Uint8ClampedArray': return 'uint8clampedarray';\n\n // 16-bit typed arrays\n case 'Int16Array': return 'int16array';\n case 'Uint16Array': return 'uint16array';\n\n // 32-bit typed arrays\n case 'Int32Array': return 'int32array';\n case 'Uint32Array': return 'uint32array';\n case 'Float32Array': return 'float32array';\n case 'Float64Array': return 'float64array';\n }\n\n if (isGeneratorObj(val)) {\n return 'generator';\n }\n\n // Non-plain objects\n type = toString.call(val);\n switch (type) {\n case '[object Object]': return 'object';\n // iterators\n case '[object Map Iterator]': return 'mapiterator';\n case '[object Set Iterator]': return 'setiterator';\n case '[object String Iterator]': return 'stringiterator';\n case '[object Array Iterator]': return 'arrayiterator';\n }\n\n // other\n return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n};\n\nfunction ctorName(val) {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\n\nfunction isArray(val) {\n if (Array.isArray) return Array.isArray(val);\n return val instanceof Array;\n}\n\nfunction isError(val) {\n return val instanceof Error || (typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number');\n}\n\nfunction isDate(val) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function'\n && typeof val.getDate === 'function'\n && typeof val.setDate === 'function';\n}\n\nfunction isRegexp(val) {\n if (val instanceof RegExp) return true;\n return typeof val.flags === 'string'\n && typeof val.ignoreCase === 'boolean'\n && typeof val.multiline === 'boolean'\n && typeof val.global === 'boolean';\n}\n\nfunction isGeneratorFn(name, val) {\n return ctorName(name) === 'GeneratorFunction';\n}\n\nfunction isGeneratorObj(val) {\n return typeof val.throw === 'function'\n && typeof val.return === 'function'\n && typeof val.next === 'function';\n}\n\nfunction isArguments(val) {\n try {\n if (typeof val.length === 'number' && typeof val.callee === 'function') {\n return true;\n }\n } catch (err) {\n if (err.message.indexOf('callee') !== -1) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * If you need to support Safari 5-7 (8-10 yr-old browser),\n * take a look at https://github.com/feross/is-buffer\n */\n\nfunction isBuffer(val) {\n if (val.constructor && typeof val.constructor.isBuffer === 'function') {\n return val.constructor.isBuffer(val);\n }\n return false;\n}\n"],"names":["kindOf"],"mappings":";;AAAA,IAAI,WAAW,OAAO,UAAU;AAEhC,IAAA,SAAiB,SAASA,QAAO,KAAK;AACpC,MAAI,QAAQ;AAAQ,WAAO;AAC3B,MAAI,QAAQ;AAAM,WAAO;AAEzB,MAAI,OAAO,OAAO;AAClB,MAAI,SAAS;AAAW,WAAO;AAC/B,MAAI,SAAS;AAAU,WAAO;AAC9B,MAAI,SAAS;AAAU,WAAO;AAC9B,MAAI,SAAS;AAAU,WAAO;AAC9B,MAAI,SAAS,YAAY;AACvB,WAAO,cAAc,GAAG,IAAI,sBAAsB;AAAA,EACnD;AAED,MAAI,QAAQ,GAAG;AAAG,WAAO;AACzB,MAAI,SAAS,GAAG;AAAG,WAAO;AAC1B,MAAI,YAAY,GAAG;AAAG,WAAO;AAC7B,MAAI,OAAO,GAAG;AAAG,WAAO;AACxB,MAAI,QAAQ,GAAG;AAAG,WAAO;AACzB,MAAI,SAAS,GAAG;AAAG,WAAO;AAE1B,UAAQ,SAAS,GAAG,GAAC;AAAA,IACnB,KAAK;AAAU,aAAO;AAAA,IACtB,KAAK;AAAW,aAAO;AAAA,IAGvB,KAAK;AAAW,aAAO;AAAA,IACvB,KAAK;AAAW,aAAO;AAAA,IACvB,KAAK;AAAO,aAAO;AAAA,IACnB,KAAK;AAAO,aAAO;AAAA,IAGnB,KAAK;AAAa,aAAO;AAAA,IACzB,KAAK;AAAc,aAAO;AAAA,IAC1B,KAAK;AAAqB,aAAO;AAAA,IAGjC,KAAK;AAAc,aAAO;AAAA,IAC1B,KAAK;AAAe,aAAO;AAAA,IAG3B,KAAK;AAAc,aA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AO,IAAI,SAAS;AAC3B;AAEA,SAAS,YAAY,KAAK;AACxB,MAAI;AACF,QAAI,OAAO,IAAI,WAAW,YAAY,OAAO,IAAI,WAAW,YAAY;AACtE,aAAO;AAAA,IACR;AAAA,EACF,SAAQ,KAAP;AACA,QAAI,IAAI,QAAQ,QAAQ,QAAQ,MAAM,IAAI;AACxC,aAAO;AAAA,IACR;AAAA,EACF;AACD,SAAO;AACT;AAOA,SAAS,SAAS,KAAK;AACrB,MAAI,IAAI,eAAe,OAAO,IAAI,YAAY,aAAa,YAAY;AACrE,WAAO,IAAI,YAAY,SAAS,GAAG;AAAA,EACpC;AACD,SAAO;AACT;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
var toString = Object.prototype.toString;
|
|
2
|
+
var kindOf = function kindOf2(val) {
|
|
3
|
+
if (val === void 0)
|
|
4
|
+
return "undefined";
|
|
5
|
+
if (val === null)
|
|
6
|
+
return "null";
|
|
7
|
+
var type = typeof val;
|
|
8
|
+
if (type === "boolean")
|
|
9
|
+
return "boolean";
|
|
10
|
+
if (type === "string")
|
|
11
|
+
return "string";
|
|
12
|
+
if (type === "number")
|
|
13
|
+
return "number";
|
|
14
|
+
if (type === "symbol")
|
|
15
|
+
return "symbol";
|
|
16
|
+
if (type === "function") {
|
|
17
|
+
return isGeneratorFn(val) ? "generatorfunction" : "function";
|
|
18
|
+
}
|
|
19
|
+
if (isArray(val))
|
|
20
|
+
return "array";
|
|
21
|
+
if (isBuffer(val))
|
|
22
|
+
return "buffer";
|
|
23
|
+
if (isArguments(val))
|
|
24
|
+
return "arguments";
|
|
25
|
+
if (isDate(val))
|
|
26
|
+
return "date";
|
|
27
|
+
if (isError(val))
|
|
28
|
+
return "error";
|
|
29
|
+
if (isRegexp(val))
|
|
30
|
+
return "regexp";
|
|
31
|
+
switch (ctorName(val)) {
|
|
32
|
+
case "Symbol":
|
|
33
|
+
return "symbol";
|
|
34
|
+
case "Promise":
|
|
35
|
+
return "promise";
|
|
36
|
+
case "WeakMap":
|
|
37
|
+
return "weakmap";
|
|
38
|
+
case "WeakSet":
|
|
39
|
+
return "weakset";
|
|
40
|
+
case "Map":
|
|
41
|
+
return "map";
|
|
42
|
+
case "Set":
|
|
43
|
+
return "set";
|
|
44
|
+
case "Int8Array":
|
|
45
|
+
return "int8array";
|
|
46
|
+
case "Uint8Array":
|
|
47
|
+
return "uint8array";
|
|
48
|
+
case "Uint8ClampedArray":
|
|
49
|
+
return "uint8clampedarray";
|
|
50
|
+
case "Int16Array":
|
|
51
|
+
return "int16array";
|
|
52
|
+
case "Uint16Array":
|
|
53
|
+
return "uint16array";
|
|
54
|
+
case "Int32Array":
|
|
55
|
+
return "int32array";
|
|
56
|
+
case "Uint32Array":
|
|
57
|
+
return "uint32array";
|
|
58
|
+
case "Float32Array":
|
|
59
|
+
return "float32array";
|
|
60
|
+
case "Float64Array":
|
|
61
|
+
return "float64array";
|
|
62
|
+
}
|
|
63
|
+
if (isGeneratorObj(val)) {
|
|
64
|
+
return "generator";
|
|
65
|
+
}
|
|
66
|
+
type = toString.call(val);
|
|
67
|
+
switch (type) {
|
|
68
|
+
case "[object Object]":
|
|
69
|
+
return "object";
|
|
70
|
+
case "[object Map Iterator]":
|
|
71
|
+
return "mapiterator";
|
|
72
|
+
case "[object Set Iterator]":
|
|
73
|
+
return "setiterator";
|
|
74
|
+
case "[object String Iterator]":
|
|
75
|
+
return "stringiterator";
|
|
76
|
+
case "[object Array Iterator]":
|
|
77
|
+
return "arrayiterator";
|
|
78
|
+
}
|
|
79
|
+
return type.slice(8, -1).toLowerCase().replace(/\s/g, "");
|
|
80
|
+
};
|
|
81
|
+
function ctorName(val) {
|
|
82
|
+
return typeof val.constructor === "function" ? val.constructor.name : null;
|
|
83
|
+
}
|
|
84
|
+
function isArray(val) {
|
|
85
|
+
if (Array.isArray)
|
|
86
|
+
return Array.isArray(val);
|
|
87
|
+
return val instanceof Array;
|
|
88
|
+
}
|
|
89
|
+
function isError(val) {
|
|
90
|
+
return val instanceof Error || typeof val.message === "string" && val.constructor && typeof val.constructor.stackTraceLimit === "number";
|
|
91
|
+
}
|
|
92
|
+
function isDate(val) {
|
|
93
|
+
if (val instanceof Date)
|
|
94
|
+
return true;
|
|
95
|
+
return typeof val.toDateString === "function" && typeof val.getDate === "function" && typeof val.setDate === "function";
|
|
96
|
+
}
|
|
97
|
+
function isRegexp(val) {
|
|
98
|
+
if (val instanceof RegExp)
|
|
99
|
+
return true;
|
|
100
|
+
return typeof val.flags === "string" && typeof val.ignoreCase === "boolean" && typeof val.multiline === "boolean" && typeof val.global === "boolean";
|
|
101
|
+
}
|
|
102
|
+
function isGeneratorFn(name, val) {
|
|
103
|
+
return ctorName(name) === "GeneratorFunction";
|
|
104
|
+
}
|
|
105
|
+
function isGeneratorObj(val) {
|
|
106
|
+
return typeof val.throw === "function" && typeof val.return === "function" && typeof val.next === "function";
|
|
107
|
+
}
|
|
108
|
+
function isArguments(val) {
|
|
109
|
+
try {
|
|
110
|
+
if (typeof val.length === "number" && typeof val.callee === "function") {
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
} catch (err) {
|
|
114
|
+
if (err.message.indexOf("callee") !== -1) {
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
function isBuffer(val) {
|
|
121
|
+
if (val.constructor && typeof val.constructor.isBuffer === "function") {
|
|
122
|
+
return val.constructor.isBuffer(val);
|
|
123
|
+
}
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
kindOf as k
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/kind-of/index.js"],"sourcesContent":["var toString = Object.prototype.toString;\n\nmodule.exports = function kindOf(val) {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n\n var type = typeof val;\n if (type === 'boolean') return 'boolean';\n if (type === 'string') return 'string';\n if (type === 'number') return 'number';\n if (type === 'symbol') return 'symbol';\n if (type === 'function') {\n return isGeneratorFn(val) ? 'generatorfunction' : 'function';\n }\n\n if (isArray(val)) return 'array';\n if (isBuffer(val)) return 'buffer';\n if (isArguments(val)) return 'arguments';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n if (isRegexp(val)) return 'regexp';\n\n switch (ctorName(val)) {\n case 'Symbol': return 'symbol';\n case 'Promise': return 'promise';\n\n // Set, Map, WeakSet, WeakMap\n case 'WeakMap': return 'weakmap';\n case 'WeakSet': return 'weakset';\n case 'Map': return 'map';\n case 'Set': return 'set';\n\n // 8-bit typed arrays\n case 'Int8Array': return 'int8array';\n case 'Uint8Array': return 'uint8array';\n case 'Uint8ClampedArray': return 'uint8clampedarray';\n\n // 16-bit typed arrays\n case 'Int16Array': return 'int16array';\n case 'Uint16Array': return 'uint16array';\n\n // 32-bit typed arrays\n case 'Int32Array': return 'int32array';\n case 'Uint32Array': return 'uint32array';\n case 'Float32Array': return 'float32array';\n case 'Float64Array': return 'float64array';\n }\n\n if (isGeneratorObj(val)) {\n return 'generator';\n }\n\n // Non-plain objects\n type = toString.call(val);\n switch (type) {\n case '[object Object]': return 'object';\n // iterators\n case '[object Map Iterator]': return 'mapiterator';\n case '[object Set Iterator]': return 'setiterator';\n case '[object String Iterator]': return 'stringiterator';\n case '[object Array Iterator]': return 'arrayiterator';\n }\n\n // other\n return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n};\n\nfunction ctorName(val) {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\n\nfunction isArray(val) {\n if (Array.isArray) return Array.isArray(val);\n return val instanceof Array;\n}\n\nfunction isError(val) {\n return val instanceof Error || (typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number');\n}\n\nfunction isDate(val) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function'\n && typeof val.getDate === 'function'\n && typeof val.setDate === 'function';\n}\n\nfunction isRegexp(val) {\n if (val instanceof RegExp) return true;\n return typeof val.flags === 'string'\n && typeof val.ignoreCase === 'boolean'\n && typeof val.multiline === 'boolean'\n && typeof val.global === 'boolean';\n}\n\nfunction isGeneratorFn(name, val) {\n return ctorName(name) === 'GeneratorFunction';\n}\n\nfunction isGeneratorObj(val) {\n return typeof val.throw === 'function'\n && typeof val.return === 'function'\n && typeof val.next === 'function';\n}\n\nfunction isArguments(val) {\n try {\n if (typeof val.length === 'number' && typeof val.callee === 'function') {\n return true;\n }\n } catch (err) {\n if (err.message.indexOf('callee') !== -1) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * If you need to support Safari 5-7 (8-10 yr-old browser),\n * take a look at https://github.com/feross/is-buffer\n */\n\nfunction isBuffer(val) {\n if (val.constructor && typeof val.constructor.isBuffer === 'function') {\n return val.constructor.isBuffer(val);\n }\n return false;\n}\n"],"names":["kindOf"],"mappings":"AAAA,IAAI,WAAW,OAAO,UAAU;AAEhC,IAAA,SAAiB,SAASA,QAAO,KAAK;AACpC,MAAI,QAAQ;AAAQ,WAAO;AAC3B,MAAI,QAAQ;AAAM,WAAO;AAEzB,MAAI,OAAO,OAAO;AAClB,MAAI,SAAS;AAAW,WAAO;AAC/B,MAAI,SAAS;AAAU,WAAO;AAC9B,MAAI,SAAS;AAAU,WAAO;AAC9B,MAAI,SAAS;AAAU,WAAO;AAC9B,MAAI,SAAS,YAAY;AACvB,WAAO,cAAc,GAAG,IAAI,sBAAsB;AAAA,EACnD;AAED,MAAI,QAAQ,GAAG;AAAG,WAAO;AACzB,MAAI,SAAS,GAAG;AAAG,WAAO;AAC1B,MAAI,YAAY,GAAG;AAAG,WAAO;AAC7B,MAAI,OAAO,GAAG;AAAG,WAAO;AACxB,MAAI,QAAQ,GAAG;AAAG,WAAO;AACzB,MAAI,SAAS,GAAG;AAAG,WAAO;AAE1B,UAAQ,SAAS,GAAG,GAAC;AAAA,IACnB,KAAK;AAAU,a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IAAI,YAAY;AAC9B;AAEA,SAAS,SAAS,KAAK;AACrB,MAAI,eAAe;AAAQ,WAAO;AAClC,SAAO,OAAO,IAAI,UAAU,YACvB,OAAO,IAAI,eAAe,aAC1B,OAAO,IAAI,cAAc,aACzB,OAAO,IAAI,WAAW;AAC7B;AAEA,SAAS,cAAc,MAAM,KAAK;AAChC,SAAO,SAAS,IAAI,MAAM;AAC5B;AAEA,SAAS,eAAe,KAAK;AAC3B,SAAO,OAAO,IAAI,UAAU,cACvB,OAAO,IAAI,WAAW,cACtB,OAAO,IAAI,SAAS;AAC3B;AAEA,SAAS,YAAY,KAAK;AACxB,MAAI;AACF,QAAI,OAAO,IAAI,WAAW,YAAY,OAAO,IAAI,WAAW,YAAY;AACtE,aAAO;AAAA,IACR;AAAA,EACF,SAAQ,KAAP;AACA,QAAI,IAAI,QAAQ,QAAQ,QAAQ,MAAM,IAAI;AACxC,aAAO;AAAA,IACR;AAAA,EACF;AACD,SAAO;AACT;AAOA,SAAS,SAAS,KAAK;AACrB,MAAI,IAAI,eAAe,OAAO,IAAI,YAAY,aAAa,YAAY;AACrE,WAAO,IAAI,YAAY,SAAS,GAAG;AAAA,EACpC;AACD,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const index = require("../../../_virtual/index4.cjs");
|
|
3
|
+
(function(exports2) {
|
|
4
|
+
exports2.__esModule = true;
|
|
5
|
+
exports2.LinesAndColumns = void 0;
|
|
6
|
+
var LF = "\n";
|
|
7
|
+
var CR = "\r";
|
|
8
|
+
var LinesAndColumns = (
|
|
9
|
+
/** @class */
|
|
10
|
+
function() {
|
|
11
|
+
function LinesAndColumns2(string) {
|
|
12
|
+
this.string = string;
|
|
13
|
+
var offsets = [0];
|
|
14
|
+
for (var offset = 0; offset < string.length; ) {
|
|
15
|
+
switch (string[offset]) {
|
|
16
|
+
case LF:
|
|
17
|
+
offset += LF.length;
|
|
18
|
+
offsets.push(offset);
|
|
19
|
+
break;
|
|
20
|
+
case CR:
|
|
21
|
+
offset += CR.length;
|
|
22
|
+
if (string[offset] === LF) {
|
|
23
|
+
offset += LF.length;
|
|
24
|
+
}
|
|
25
|
+
offsets.push(offset);
|
|
26
|
+
break;
|
|
27
|
+
default:
|
|
28
|
+
offset++;
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
this.offsets = offsets;
|
|
33
|
+
}
|
|
34
|
+
LinesAndColumns2.prototype.locationForIndex = function(index2) {
|
|
35
|
+
if (index2 < 0 || index2 > this.string.length) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
var line = 0;
|
|
39
|
+
var offsets = this.offsets;
|
|
40
|
+
while (offsets[line + 1] <= index2) {
|
|
41
|
+
line++;
|
|
42
|
+
}
|
|
43
|
+
var column = index2 - offsets[line];
|
|
44
|
+
return { line, column };
|
|
45
|
+
};
|
|
46
|
+
LinesAndColumns2.prototype.indexForLocation = function(location) {
|
|
47
|
+
var line = location.line, column = location.column;
|
|
48
|
+
if (line < 0 || line >= this.offsets.length) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
if (column < 0 || column > this.lengthOfLine(line)) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return this.offsets[line] + column;
|
|
55
|
+
};
|
|
56
|
+
LinesAndColumns2.prototype.lengthOfLine = function(line) {
|
|
57
|
+
var offset = this.offsets[line];
|
|
58
|
+
var nextOffset = line === this.offsets.length - 1 ? this.string.length : this.offsets[line + 1];
|
|
59
|
+
return nextOffset - offset;
|
|
60
|
+
};
|
|
61
|
+
return LinesAndColumns2;
|
|
62
|
+
}()
|
|
63
|
+
);
|
|
64
|
+
exports2.LinesAndColumns = LinesAndColumns;
|
|
65
|
+
exports2["default"] = LinesAndColumns;
|
|
66
|
+
})(index.__exports);
|
|
67
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../node_modules/lines-and-columns/build/index.js"],"sourcesContent":["\"use strict\";\nexports.__esModule = true;\nexports.LinesAndColumns = void 0;\nvar LF = '\\n';\nvar CR = '\\r';\nvar LinesAndColumns = /** @class */ (function () {\n function LinesAndColumns(string) {\n this.string = string;\n var offsets = [0];\n for (var offset = 0; offset < string.length;) {\n switch (string[offset]) {\n case LF:\n offset += LF.length;\n offsets.push(offset);\n break;\n case CR:\n offset += CR.length;\n if (string[offset] === LF) {\n offset += LF.length;\n }\n offsets.push(offset);\n break;\n default:\n offset++;\n break;\n }\n }\n this.offsets = offsets;\n }\n LinesAndColumns.prototype.locationForIndex = function (index) {\n if (index < 0 || index > this.string.length) {\n return null;\n }\n var line = 0;\n var offsets = this.offsets;\n while (offsets[line + 1] <= index) {\n line++;\n }\n var column = index - offsets[line];\n return { line: line, column: column };\n };\n LinesAndColumns.prototype.indexForLocation = function (location) {\n var line = location.line, column = location.column;\n if (line < 0 || line >= this.offsets.length) {\n return null;\n }\n if (column < 0 || column > this.lengthOfLine(line)) {\n return null;\n }\n return this.offsets[line] + column;\n };\n LinesAndColumns.prototype.lengthOfLine = function (line) {\n var offset = this.offsets[line];\n var nextOffset = line === this.offsets.length - 1\n ? this.string.length\n : this.offsets[line + 1];\n return nextOffset - offset;\n };\n return LinesAndColumns;\n}());\nexports.LinesAndColumns = LinesAndColumns;\nexports[\"default\"] = LinesAndColumns;\n"],"names":["exports","LinesAndColumns","index"],"mappings":";;;AACA,EAAAA,SAAA,aAAqB;AACrB,EAAAA,SAA0B,kBAAA;AAC1B,MAAI,KAAK;AACT,MAAI,KAAK;AACT,MAAI;AAAA;AAAA,IAAiC,WAAY;AAC7C,eAASC,iBAAgB,QAAQ;AAC7B,aAAK,SAAS;AACd,YAAI,UAAU,CAAC,CAAC;AAChB,iBAAS,SAAS,GAAG,SAAS,OAAO,UAAS;AAC1C,kBAAQ,OAAO,MAAM,GAAC;AAAA,YAClB,KAAK;AACD,wB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