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,111 @@
|
|
|
1
|
+
var parse = function(tokens) {
|
|
2
|
+
var index = 0;
|
|
3
|
+
function hasMore() {
|
|
4
|
+
return index < tokens.length;
|
|
5
|
+
}
|
|
6
|
+
function token() {
|
|
7
|
+
return hasMore() ? tokens[index] : null;
|
|
8
|
+
}
|
|
9
|
+
function next() {
|
|
10
|
+
if (!hasMore()) {
|
|
11
|
+
throw new Error();
|
|
12
|
+
}
|
|
13
|
+
index++;
|
|
14
|
+
}
|
|
15
|
+
function parseOperator(operator) {
|
|
16
|
+
var t = token();
|
|
17
|
+
if (t && t.type === "OPERATOR" && operator === t.string) {
|
|
18
|
+
next();
|
|
19
|
+
return t.string;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function parseWith() {
|
|
23
|
+
if (parseOperator("WITH")) {
|
|
24
|
+
var t = token();
|
|
25
|
+
if (t && t.type === "EXCEPTION") {
|
|
26
|
+
next();
|
|
27
|
+
return t.string;
|
|
28
|
+
}
|
|
29
|
+
throw new Error("Expected exception after `WITH`");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function parseLicenseRef() {
|
|
33
|
+
var begin = index;
|
|
34
|
+
var string = "";
|
|
35
|
+
var t = token();
|
|
36
|
+
if (t.type === "DOCUMENTREF") {
|
|
37
|
+
next();
|
|
38
|
+
string += "DocumentRef-" + t.string + ":";
|
|
39
|
+
if (!parseOperator(":")) {
|
|
40
|
+
throw new Error("Expected `:` after `DocumentRef-...`");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
t = token();
|
|
44
|
+
if (t.type === "LICENSEREF") {
|
|
45
|
+
next();
|
|
46
|
+
string += "LicenseRef-" + t.string;
|
|
47
|
+
return { license: string };
|
|
48
|
+
}
|
|
49
|
+
index = begin;
|
|
50
|
+
}
|
|
51
|
+
function parseLicense() {
|
|
52
|
+
var t = token();
|
|
53
|
+
if (t && t.type === "LICENSE") {
|
|
54
|
+
next();
|
|
55
|
+
var node2 = { license: t.string };
|
|
56
|
+
if (parseOperator("+")) {
|
|
57
|
+
node2.plus = true;
|
|
58
|
+
}
|
|
59
|
+
var exception = parseWith();
|
|
60
|
+
if (exception) {
|
|
61
|
+
node2.exception = exception;
|
|
62
|
+
}
|
|
63
|
+
return node2;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function parseParenthesizedExpression() {
|
|
67
|
+
var left = parseOperator("(");
|
|
68
|
+
if (!left) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
var expr = parseExpression();
|
|
72
|
+
if (!parseOperator(")")) {
|
|
73
|
+
throw new Error("Expected `)`");
|
|
74
|
+
}
|
|
75
|
+
return expr;
|
|
76
|
+
}
|
|
77
|
+
function parseAtom() {
|
|
78
|
+
return parseParenthesizedExpression() || parseLicenseRef() || parseLicense();
|
|
79
|
+
}
|
|
80
|
+
function makeBinaryOpParser(operator, nextParser) {
|
|
81
|
+
return function parseBinaryOp() {
|
|
82
|
+
var left = nextParser();
|
|
83
|
+
if (!left) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (!parseOperator(operator)) {
|
|
87
|
+
return left;
|
|
88
|
+
}
|
|
89
|
+
var right = parseBinaryOp();
|
|
90
|
+
if (!right) {
|
|
91
|
+
throw new Error("Expected expression");
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
left,
|
|
95
|
+
conjunction: operator.toLowerCase(),
|
|
96
|
+
right
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
var parseAnd = makeBinaryOpParser("AND", parseAtom);
|
|
101
|
+
var parseExpression = makeBinaryOpParser("OR", parseAnd);
|
|
102
|
+
var node = parseExpression();
|
|
103
|
+
if (!node || hasMore()) {
|
|
104
|
+
throw new Error("Syntax error");
|
|
105
|
+
}
|
|
106
|
+
return node;
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
parse as p
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=parse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse.js","sources":["../../../node_modules/spdx-expression-parse/parse.js"],"sourcesContent":["'use strict'\n\n// The ABNF grammar in the spec is totally ambiguous.\n//\n// This parser follows the operator precedence defined in the\n// `Order of Precedence and Parentheses` section.\n\nmodule.exports = function (tokens) {\n var index = 0\n\n function hasMore () {\n return index < tokens.length\n }\n\n function token () {\n return hasMore() ? tokens[index] : null\n }\n\n function next () {\n if (!hasMore()) {\n throw new Error()\n }\n index++\n }\n\n function parseOperator (operator) {\n var t = token()\n if (t && t.type === 'OPERATOR' && operator === t.string) {\n next()\n return t.string\n }\n }\n\n function parseWith () {\n if (parseOperator('WITH')) {\n var t = token()\n if (t && t.type === 'EXCEPTION') {\n next()\n return t.string\n }\n throw new Error('Expected exception after `WITH`')\n }\n }\n\n function parseLicenseRef () {\n // TODO: Actually, everything is concatenated into one string\n // for backward-compatibility but it could be better to return\n // a nice structure.\n var begin = index\n var string = ''\n var t = token()\n if (t.type === 'DOCUMENTREF') {\n next()\n string += 'DocumentRef-' + t.string + ':'\n if (!parseOperator(':')) {\n throw new Error('Expected `:` after `DocumentRef-...`')\n }\n }\n t = token()\n if (t.type === 'LICENSEREF') {\n next()\n string += 'LicenseRef-' + t.string\n return { license: string }\n }\n index = begin\n }\n\n function parseLicense () {\n var t = token()\n if (t && t.type === 'LICENSE') {\n next()\n var node = { license: t.string }\n if (parseOperator('+')) {\n node.plus = true\n }\n var exception = parseWith()\n if (exception) {\n node.exception = exception\n }\n return node\n }\n }\n\n function parseParenthesizedExpression () {\n var left = parseOperator('(')\n if (!left) {\n return\n }\n\n var expr = parseExpression()\n\n if (!parseOperator(')')) {\n throw new Error('Expected `)`')\n }\n\n return expr\n }\n\n function parseAtom () {\n return (\n parseParenthesizedExpression() ||\n parseLicenseRef() ||\n parseLicense()\n )\n }\n\n function makeBinaryOpParser (operator, nextParser) {\n return function parseBinaryOp () {\n var left = nextParser()\n if (!left) {\n return\n }\n\n if (!parseOperator(operator)) {\n return left\n }\n\n var right = parseBinaryOp()\n if (!right) {\n throw new Error('Expected expression')\n }\n return {\n left: left,\n conjunction: operator.toLowerCase(),\n right: right\n }\n }\n }\n\n var parseAnd = makeBinaryOpParser('AND', parseAtom)\n var parseExpression = makeBinaryOpParser('OR', parseAnd)\n\n var node = parseExpression()\n if (!node || hasMore()) {\n throw new Error('Syntax error')\n }\n return node\n}\n"],"names":["node"],"mappings":"IAOA,QAAiB,SAAU,QAAQ;AACjC,MAAI,QAAQ;AAEZ,WAAS,UAAW;AAClB,WAAO,QAAQ,OAAO;AAAA,EACvB;AAED,WAAS,QAAS;AAChB,WAAO,QAAS,IAAG,OAAO,KAAK,IAAI;AAAA,EACpC;AAED,WAAS,OAAQ;AACf,QAAI,CAAC,QAAO,GAAI;AACd,YAAM,IAAI,MAAO;AAAA,IAClB;AACD;AAAA,EACD;AAED,WAAS,cAAe,UAAU;AAChC,QAAI,IAAI,MAAO;AACf,QAAI,KAAK,EAAE,SAAS,cAAc,aAAa,EAAE,QAAQ;AACvD,WAAM;AACN,aAAO,EAAE;AAAA,IACV;AAAA,EACF;AAED,WAAS,YAAa;AACpB,QAAI,cAAc,MAAM,GAAG;AACzB,UAAI,IAAI,MAAO;AACf,UAAI,KAAK,EAAE,SAAS,aAAa;AAC/B,aAAM;AACN,eAAO,EAAE;AAAA,MACV;AACD,YAAM,IAAI,MAAM,iCAAiC;AAAA,IAClD;AAAA,EACF;AAED,WAAS,kBAAmB;AAI1B,QAAI,QAAQ;AACZ,QAAI,SAAS;AACb,QAAI,IAAI,MAAO;AACf,QAAI,EAAE,SAAS,eAAe;AAC5B,WAAM;AACN,gBAAU,iBAAiB,EAAE,SAAS;AACtC,UAAI,CAAC,cAAc,GAAG,GAAG;AACvB,cAAM,IAAI,MAAM,sCAAsC;AAAA,MACvD;AAAA,IACF;AACD,QAAI,MAAO;AACX,QAAI,EAAE,SAAS,cAAc;AAC3B,WAAM;AACN,gBAAU,gBAAgB,EAAE;AAC5B,aAAO,EAAE,SAAS,OAAQ;AAAA,IAC3B;AACD,YAAQ;AAAA,EACT;AAED,WAAS,eAAgB;AACvB,QAAI,IAAI,MAAO;AACf,QAAI,KAAK,EAAE,SAAS,WAAW;AAC7B,WAAM;AACN,UAAIA,QAAO,EAAE,SAAS,EAAE,OAAQ;AAChC,UAAI,cAAc,GAAG,GAAG;AACtB,QAAAA,MAAK,OAAO;AAAA,MACb;AACD,UAAI,YAAY,UAAW;AAC3B,UAAI,WAAW;AACb,QAAAA,MAAK,YAAY;AAAA,MAClB;AACD,aAAOA;AAAA,IACR;AAAA,EACF;AAED,WAAS,+BAAgC;AACvC,QAAI,OAAO,cAAc,GAAG;AAC5B,QAAI,CAAC,MAAM;AACT;AAAA,IACD;AAED,QAAI,OAAO,gBAAiB;AAE5B,QAAI,CAAC,cAAc,GAAG,GAAG;AACvB,YAAM,IAAI,MAAM,cAAc;AAAA,IAC/B;AAED,WAAO;AAAA,EACR;AAED,WAAS,YAAa;AACpB,WACE,6BAA8B,KAC9B,gBAAiB,KACjB,aAAc;AAAA,EAEjB;AAED,WAAS,mBAAoB,UAAU,YAAY;AACjD,WAAO,SAAS,gBAAiB;AAC/B,UAAI,OAAO,WAAY;AACvB,UAAI,CAAC,MAAM;AACT;AAAA,MACD;AAED,UAAI,CAAC,cAAc,QAAQ,GAAG;AAC5B,eAAO;AAAA,MACR;AAED,UAAI,QAAQ,cAAe;AAC3B,UAAI,CAAC,OAAO;AACV,cAAM,IAAI,MAAM,qBAAqB;AAAA,MACtC;AACD,aAAO;AAAA,QACL;AAAA,QACA,aAAa,SAAS,YAAa;AAAA,QACnC;AAAA,MACD;AAAA,IACF;AAAA,EACF;AAED,MAAI,WAAW,mBAAmB,OAAO,SAAS;AAClD,MAAI,kBAAkB,mBAAmB,MAAM,QAAQ;AAEvD,MAAI,OAAO,gBAAiB;AAC5B,MAAI,CAAC,QAAQ,WAAW;AACtB,UAAM,IAAI,MAAM,cAAc;AAAA,EAC/B;AACD,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const index = require("../spdx-license-ids/index.json.cjs");
|
|
4
|
+
const deprecated = require("../spdx-license-ids/deprecated.json.cjs");
|
|
5
|
+
const index$1 = require("../spdx-exceptions/index.json.cjs");
|
|
6
|
+
var licenses = [].concat(index).concat(deprecated);
|
|
7
|
+
var exceptions = index$1;
|
|
8
|
+
var scan = function(source) {
|
|
9
|
+
var index2 = 0;
|
|
10
|
+
function hasMore() {
|
|
11
|
+
return index2 < source.length;
|
|
12
|
+
}
|
|
13
|
+
function read(value) {
|
|
14
|
+
if (value instanceof RegExp) {
|
|
15
|
+
var chars = source.slice(index2);
|
|
16
|
+
var match = chars.match(value);
|
|
17
|
+
if (match) {
|
|
18
|
+
index2 += match[0].length;
|
|
19
|
+
return match[0];
|
|
20
|
+
}
|
|
21
|
+
} else {
|
|
22
|
+
if (source.indexOf(value, index2) === index2) {
|
|
23
|
+
index2 += value.length;
|
|
24
|
+
return value;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function skipWhitespace() {
|
|
29
|
+
read(/[ ]*/);
|
|
30
|
+
}
|
|
31
|
+
function operator() {
|
|
32
|
+
var string;
|
|
33
|
+
var possibilities = ["WITH", "AND", "OR", "(", ")", ":", "+"];
|
|
34
|
+
for (var i = 0; i < possibilities.length; i++) {
|
|
35
|
+
string = read(possibilities[i]);
|
|
36
|
+
if (string) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (string === "+" && index2 > 1 && source[index2 - 2] === " ") {
|
|
41
|
+
throw new Error("Space before `+`");
|
|
42
|
+
}
|
|
43
|
+
return string && {
|
|
44
|
+
type: "OPERATOR",
|
|
45
|
+
string
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function idstring() {
|
|
49
|
+
return read(/[A-Za-z0-9-.]+/);
|
|
50
|
+
}
|
|
51
|
+
function expectIdstring() {
|
|
52
|
+
var string = idstring();
|
|
53
|
+
if (!string) {
|
|
54
|
+
throw new Error("Expected idstring at offset " + index2);
|
|
55
|
+
}
|
|
56
|
+
return string;
|
|
57
|
+
}
|
|
58
|
+
function documentRef() {
|
|
59
|
+
if (read("DocumentRef-")) {
|
|
60
|
+
var string = expectIdstring();
|
|
61
|
+
return { type: "DOCUMENTREF", string };
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function licenseRef() {
|
|
65
|
+
if (read("LicenseRef-")) {
|
|
66
|
+
var string = expectIdstring();
|
|
67
|
+
return { type: "LICENSEREF", string };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function identifier() {
|
|
71
|
+
var begin = index2;
|
|
72
|
+
var string = idstring();
|
|
73
|
+
if (licenses.indexOf(string) !== -1) {
|
|
74
|
+
return {
|
|
75
|
+
type: "LICENSE",
|
|
76
|
+
string
|
|
77
|
+
};
|
|
78
|
+
} else if (exceptions.indexOf(string) !== -1) {
|
|
79
|
+
return {
|
|
80
|
+
type: "EXCEPTION",
|
|
81
|
+
string
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
index2 = begin;
|
|
85
|
+
}
|
|
86
|
+
function parseToken() {
|
|
87
|
+
return operator() || documentRef() || licenseRef() || identifier();
|
|
88
|
+
}
|
|
89
|
+
var tokens = [];
|
|
90
|
+
while (hasMore()) {
|
|
91
|
+
skipWhitespace();
|
|
92
|
+
if (!hasMore()) {
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
var token = parseToken();
|
|
96
|
+
if (!token) {
|
|
97
|
+
throw new Error("Unexpected `" + source[index2] + "` at offset " + index2);
|
|
98
|
+
}
|
|
99
|
+
tokens.push(token);
|
|
100
|
+
}
|
|
101
|
+
return tokens;
|
|
102
|
+
};
|
|
103
|
+
exports.scan = scan;
|
|
104
|
+
//# sourceMappingURL=scan.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan.cjs","sources":["../../../node_modules/spdx-expression-parse/scan.js"],"sourcesContent":["'use strict'\n\nvar licenses = []\n .concat(require('spdx-license-ids'))\n .concat(require('spdx-license-ids/deprecated'))\nvar exceptions = require('spdx-exceptions')\n\nmodule.exports = function (source) {\n var index = 0\n\n function hasMore () {\n return index < source.length\n }\n\n // `value` can be a regexp or a string.\n // If it is recognized, the matching source string is returned and\n // the index is incremented. Otherwise `undefined` is returned.\n function read (value) {\n if (value instanceof RegExp) {\n var chars = source.slice(index)\n var match = chars.match(value)\n if (match) {\n index += match[0].length\n return match[0]\n }\n } else {\n if (source.indexOf(value, index) === index) {\n index += value.length\n return value\n }\n }\n }\n\n function skipWhitespace () {\n read(/[ ]*/)\n }\n\n function operator () {\n var string\n var possibilities = ['WITH', 'AND', 'OR', '(', ')', ':', '+']\n for (var i = 0; i < possibilities.length; i++) {\n string = read(possibilities[i])\n if (string) {\n break\n }\n }\n\n if (string === '+' && index > 1 && source[index - 2] === ' ') {\n throw new Error('Space before `+`')\n }\n\n return string && {\n type: 'OPERATOR',\n string: string\n }\n }\n\n function idstring () {\n return read(/[A-Za-z0-9-.]+/)\n }\n\n function expectIdstring () {\n var string = idstring()\n if (!string) {\n throw new Error('Expected idstring at offset ' + index)\n }\n return string\n }\n\n function documentRef () {\n if (read('DocumentRef-')) {\n var string = expectIdstring()\n return { type: 'DOCUMENTREF', string: string }\n }\n }\n\n function licenseRef () {\n if (read('LicenseRef-')) {\n var string = expectIdstring()\n return { type: 'LICENSEREF', string: string }\n }\n }\n\n function identifier () {\n var begin = index\n var string = idstring()\n\n if (licenses.indexOf(string) !== -1) {\n return {\n type: 'LICENSE',\n string: string\n }\n } else if (exceptions.indexOf(string) !== -1) {\n return {\n type: 'EXCEPTION',\n string: string\n }\n }\n\n index = begin\n }\n\n // Tries to read the next token. Returns `undefined` if no token is\n // recognized.\n function parseToken () {\n // Ordering matters\n return (\n operator() ||\n documentRef() ||\n licenseRef() ||\n identifier()\n )\n }\n\n var tokens = []\n while (hasMore()) {\n skipWhitespace()\n if (!hasMore()) {\n break\n }\n\n var token = parseToken()\n if (!token) {\n throw new Error('Unexpected `' + source[index] +\n '` at offset ' + index)\n }\n\n tokens.push(token)\n }\n return tokens\n}\n"],"names":["require$$0","require$$1","require$$2","index"],"mappings":";;;;;AAEA,IAAI,WAAW,CAAE,EACd,OAAOA,KAA2B,EAClC,OAAOC,UAAsC;AAChD,IAAI,aAAaC;IAEjB,OAAiB,SAAU,QAAQ;AACjC,MAAIC,SAAQ;AAEZ,WAAS,UAAW;AAClB,WAAOA,SAAQ,OAAO;AAAA,EACvB;AAKD,WAAS,KAAM,OAAO;AACpB,QAAI,iBAAiB,QAAQ;AAC3B,UAAI,QAAQ,OAAO,MAAMA,MAAK;AAC9B,UAAI,QAAQ,MAAM,MAAM,KAAK;AAC7B,UAAI,OAAO;AACT,QAAAA,UAAS,MAAM,CAAC,EAAE;AAClB,eAAO,MAAM,CAAC;AAAA,MACf;AAAA,IACP,OAAW;AACL,UAAI,OAAO,QAAQ,OAAOA,MAAK,MAAMA,QAAO;AAC1C,QAAAA,UAAS,MAAM;AACf,eAAO;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAED,WAAS,iBAAkB;AACzB,SAAK,MAAM;AAAA,EACZ;AAED,WAAS,WAAY;AACnB,QAAI;AACJ,QAAI,gBAAgB,CAAC,QAAQ,OAAO,MAAM,KAAK,KAAK,KAAK,GAAG;AAC5D,aAAS,IAAI,GAAG,IAAI,cAAc,QAAQ,KAAK;AAC7C,eAAS,KAAK,cAAc,CAAC,CAAC;AAC9B,UAAI,QAAQ;AACV;AAAA,MACD;AAAA,IACF;AAED,QAAI,WAAW,OAAOA,SAAQ,KAAK,OAAOA,SAAQ,CAAC,MAAM,KAAK;AAC5D,YAAM,IAAI,MAAM,kBAAkB;AAAA,IACnC;AAED,WAAO,UAAU;AAAA,MACf,MAAM;AAAA,MACN;AAAA,IACD;AAAA,EACF;AAED,WAAS,WAAY;AACnB,WAAO,KAAK,gBAAgB;AAAA,EAC7B;AAED,WAAS,iBAAkB;AACzB,QAAI,SAAS,SAAU;AACvB,QAAI,CAAC,QAAQ;AACX,YAAM,IAAI,MAAM,iCAAiCA,MAAK;AAAA,IACvD;AACD,WAAO;AAAA,EACR;AAED,WAAS,cAAe;AACtB,QAAI,KAAK,cAAc,GAAG;AACxB,UAAI,SAAS,eAAgB;AAC7B,aAAO,EAAE,MAAM,eAAe,OAAgB;AAAA,IAC/C;AAAA,EACF;AAED,WAAS,aAAc;AACrB,QAAI,KAAK,aAAa,GAAG;AACvB,UAAI,SAAS,eAAgB;AAC7B,aAAO,EAAE,MAAM,cAAc,OAAgB;AAAA,IAC9C;AAAA,EACF;AAED,WAAS,aAAc;AACrB,QAAI,QAAQA;AACZ,QAAI,SAAS,SAAU;AAEvB,QAAI,SAAS,QAAQ,MAAM,MAAM,IAAI;AACnC,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,MACD;AAAA,IACF,WAAU,WAAW,QAAQ,MAAM,MAAM,IAAI;AAC5C,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,MACD;AAAA,IACF;AAED,IAAAA,SAAQ;AAAA,EACT;AAID,WAAS,aAAc;AAErB,WACE,SAAU,KACV,YAAa,KACb,WAAY,KACZ,WAAY;AAAA,EAEf;AAED,MAAI,SAAS,CAAE;AACf,SAAO,QAAO,GAAI;AAChB,mBAAgB;AAChB,QAAI,CAAC,QAAO,GAAI;AACd;AAAA,IACD;AAED,QAAI,QAAQ,WAAY;AACxB,QAAI,CAAC,OAAO;AACV,YAAM,IAAI,MAAM,iBAAiB,OAAOA,MAAK,IAC7B,iBAAiBA,MAAK;AAAA,IACvC;AAED,WAAO,KAAK,KAAK;AAAA,EAClB;AACD,SAAO;AACT;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import require$$1 from "../spdx-license-ids/index.json.js";
|
|
2
|
+
import require$$1$1 from "../spdx-license-ids/deprecated.json.js";
|
|
3
|
+
import require$$2 from "../spdx-exceptions/index.json.js";
|
|
4
|
+
var licenses = [].concat(require$$1).concat(require$$1$1);
|
|
5
|
+
var exceptions = require$$2;
|
|
6
|
+
var scan = function(source) {
|
|
7
|
+
var index = 0;
|
|
8
|
+
function hasMore() {
|
|
9
|
+
return index < source.length;
|
|
10
|
+
}
|
|
11
|
+
function read(value) {
|
|
12
|
+
if (value instanceof RegExp) {
|
|
13
|
+
var chars = source.slice(index);
|
|
14
|
+
var match = chars.match(value);
|
|
15
|
+
if (match) {
|
|
16
|
+
index += match[0].length;
|
|
17
|
+
return match[0];
|
|
18
|
+
}
|
|
19
|
+
} else {
|
|
20
|
+
if (source.indexOf(value, index) === index) {
|
|
21
|
+
index += value.length;
|
|
22
|
+
return value;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function skipWhitespace() {
|
|
27
|
+
read(/[ ]*/);
|
|
28
|
+
}
|
|
29
|
+
function operator() {
|
|
30
|
+
var string;
|
|
31
|
+
var possibilities = ["WITH", "AND", "OR", "(", ")", ":", "+"];
|
|
32
|
+
for (var i = 0; i < possibilities.length; i++) {
|
|
33
|
+
string = read(possibilities[i]);
|
|
34
|
+
if (string) {
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (string === "+" && index > 1 && source[index - 2] === " ") {
|
|
39
|
+
throw new Error("Space before `+`");
|
|
40
|
+
}
|
|
41
|
+
return string && {
|
|
42
|
+
type: "OPERATOR",
|
|
43
|
+
string
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function idstring() {
|
|
47
|
+
return read(/[A-Za-z0-9-.]+/);
|
|
48
|
+
}
|
|
49
|
+
function expectIdstring() {
|
|
50
|
+
var string = idstring();
|
|
51
|
+
if (!string) {
|
|
52
|
+
throw new Error("Expected idstring at offset " + index);
|
|
53
|
+
}
|
|
54
|
+
return string;
|
|
55
|
+
}
|
|
56
|
+
function documentRef() {
|
|
57
|
+
if (read("DocumentRef-")) {
|
|
58
|
+
var string = expectIdstring();
|
|
59
|
+
return { type: "DOCUMENTREF", string };
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function licenseRef() {
|
|
63
|
+
if (read("LicenseRef-")) {
|
|
64
|
+
var string = expectIdstring();
|
|
65
|
+
return { type: "LICENSEREF", string };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function identifier() {
|
|
69
|
+
var begin = index;
|
|
70
|
+
var string = idstring();
|
|
71
|
+
if (licenses.indexOf(string) !== -1) {
|
|
72
|
+
return {
|
|
73
|
+
type: "LICENSE",
|
|
74
|
+
string
|
|
75
|
+
};
|
|
76
|
+
} else if (exceptions.indexOf(string) !== -1) {
|
|
77
|
+
return {
|
|
78
|
+
type: "EXCEPTION",
|
|
79
|
+
string
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
index = begin;
|
|
83
|
+
}
|
|
84
|
+
function parseToken() {
|
|
85
|
+
return operator() || documentRef() || licenseRef() || identifier();
|
|
86
|
+
}
|
|
87
|
+
var tokens = [];
|
|
88
|
+
while (hasMore()) {
|
|
89
|
+
skipWhitespace();
|
|
90
|
+
if (!hasMore()) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
var token = parseToken();
|
|
94
|
+
if (!token) {
|
|
95
|
+
throw new Error("Unexpected `" + source[index] + "` at offset " + index);
|
|
96
|
+
}
|
|
97
|
+
tokens.push(token);
|
|
98
|
+
}
|
|
99
|
+
return tokens;
|
|
100
|
+
};
|
|
101
|
+
export {
|
|
102
|
+
scan as s
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=scan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan.js","sources":["../../../node_modules/spdx-expression-parse/scan.js"],"sourcesContent":["'use strict'\n\nvar licenses = []\n .concat(require('spdx-license-ids'))\n .concat(require('spdx-license-ids/deprecated'))\nvar exceptions = require('spdx-exceptions')\n\nmodule.exports = function (source) {\n var index = 0\n\n function hasMore () {\n return index < source.length\n }\n\n // `value` can be a regexp or a string.\n // If it is recognized, the matching source string is returned and\n // the index is incremented. Otherwise `undefined` is returned.\n function read (value) {\n if (value instanceof RegExp) {\n var chars = source.slice(index)\n var match = chars.match(value)\n if (match) {\n index += match[0].length\n return match[0]\n }\n } else {\n if (source.indexOf(value, index) === index) {\n index += value.length\n return value\n }\n }\n }\n\n function skipWhitespace () {\n read(/[ ]*/)\n }\n\n function operator () {\n var string\n var possibilities = ['WITH', 'AND', 'OR', '(', ')', ':', '+']\n for (var i = 0; i < possibilities.length; i++) {\n string = read(possibilities[i])\n if (string) {\n break\n }\n }\n\n if (string === '+' && index > 1 && source[index - 2] === ' ') {\n throw new Error('Space before `+`')\n }\n\n return string && {\n type: 'OPERATOR',\n string: string\n }\n }\n\n function idstring () {\n return read(/[A-Za-z0-9-.]+/)\n }\n\n function expectIdstring () {\n var string = idstring()\n if (!string) {\n throw new Error('Expected idstring at offset ' + index)\n }\n return string\n }\n\n function documentRef () {\n if (read('DocumentRef-')) {\n var string = expectIdstring()\n return { type: 'DOCUMENTREF', string: string }\n }\n }\n\n function licenseRef () {\n if (read('LicenseRef-')) {\n var string = expectIdstring()\n return { type: 'LICENSEREF', string: string }\n }\n }\n\n function identifier () {\n var begin = index\n var string = idstring()\n\n if (licenses.indexOf(string) !== -1) {\n return {\n type: 'LICENSE',\n string: string\n }\n } else if (exceptions.indexOf(string) !== -1) {\n return {\n type: 'EXCEPTION',\n string: string\n }\n }\n\n index = begin\n }\n\n // Tries to read the next token. Returns `undefined` if no token is\n // recognized.\n function parseToken () {\n // Ordering matters\n return (\n operator() ||\n documentRef() ||\n licenseRef() ||\n identifier()\n )\n }\n\n var tokens = []\n while (hasMore()) {\n skipWhitespace()\n if (!hasMore()) {\n break\n }\n\n var token = parseToken()\n if (!token) {\n throw new Error('Unexpected `' + source[index] +\n '` at offset ' + index)\n }\n\n tokens.push(token)\n }\n return tokens\n}\n"],"names":["require$$0","require$$1"],"mappings":";;;AAEA,IAAI,WAAW,CAAE,EACd,OAAOA,UAA2B,EAClC,OAAOC,YAAsC;AAChD,IAAI,aAAa;IAEjB,OAAiB,SAAU,QAAQ;AACjC,MAAI,QAAQ;AAEZ,WAAS,UAAW;AAClB,WAAO,QAAQ,OAAO;AAAA,EACvB;AAKD,WAAS,KAAM,OAAO;AACpB,QAAI,iBAAiB,QAAQ;AAC3B,UAAI,QAAQ,OAAO,MAAM,KAAK;AAC9B,UAAI,QAAQ,MAAM,MAAM,KAAK;AAC7B,UAAI,OAAO;AACT,iBAAS,MAAM,CAAC,EAAE;AAClB,eAAO,MAAM,CAAC;AAAA,MACf;AAAA,IACP,OAAW;AACL,UAAI,OAAO,QAAQ,OAAO,KAAK,MAAM,OAAO;AAC1C,iBAAS,MAAM;AACf,eAAO;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAED,WAAS,iBAAkB;AACzB,SAAK,MAAM;AAAA,EACZ;AAED,WAAS,WAAY;AACnB,QAAI;AACJ,QAAI,gBAAgB,CAAC,QAAQ,OAAO,MAAM,KAAK,KAAK,KAAK,GAAG;AAC5D,aAAS,IAAI,GAAG,IAAI,cAAc,QAAQ,KAAK;AAC7C,eAAS,KAAK,cAAc,CAAC,CAAC;AAC9B,UAAI,QAAQ;AACV;AAAA,MACD;AAAA,IACF;AAED,QAAI,WAAW,OAAO,QAAQ,KAAK,OAAO,QAAQ,CAAC,MAAM,KAAK;AAC5D,YAAM,IAAI,MAAM,kBAAkB;AAAA,IACnC;AAED,WAAO,UAAU;AAAA,MACf,MAAM;AAAA,MACN;AAAA,IACD;AAAA,EACF;AAED,WAAS,WAAY;AACnB,WAAO,KAAK,gBAAgB;AAAA,EAC7B;AAED,WAAS,iBAAkB;AACzB,QAAI,SAAS,SAAU;AACvB,QAAI,CAAC,QAAQ;AACX,YAAM,IAAI,MAAM,iCAAiC,KAAK;AAAA,IACvD;AACD,WAAO;AAAA,EACR;AAED,WAAS,cAAe;AACtB,QAAI,KAAK,cAAc,GAAG;AACxB,UAAI,SAAS,eAAgB;AAC7B,aAAO,EAAE,MAAM,eAAe,OAAgB;AAAA,IAC/C;AAAA,EACF;AAED,WAAS,aAAc;AACrB,QAAI,KAAK,aAAa,GAAG;AACvB,UAAI,SAAS,eAAgB;AAC7B,aAAO,EAAE,MAAM,cAAc,OAAgB;AAAA,IAC9C;AAAA,EACF;AAED,WAAS,aAAc;AACrB,QAAI,QAAQ;AACZ,QAAI,SAAS,SAAU;AAEvB,QAAI,SAAS,QAAQ,MAAM,MAAM,IAAI;AACnC,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,MACD;AAAA,IACF,WAAU,WAAW,QAAQ,MAAM,MAAM,IAAI;AAC5C,aAAO;AAAA,QACL,MAAM;AAAA,QACN;AAAA,MACD;AAAA,IACF;AAED,YAAQ;AAAA,EACT;AAID,WAAS,aAAc;AAErB,WACE,SAAU,KACV,YAAa,KACb,WAAY,KACZ,WAAY;AAAA,EAEf;AAED,MAAI,SAAS,CAAE;AACf,SAAO,QAAO,GAAI;AAChB,mBAAgB;AAChB,QAAI,CAAC,QAAO,GAAI;AACd;AAAA,IACD;AAED,QAAI,QAAQ,WAAY;AACxB,QAAI,CAAC,OAAO;AACV,YAAM,IAAI,MAAM,iBAAiB,OAAO,KAAK,IAC7B,iBAAiB,KAAK;AAAA,IACvC;AAED,WAAO,KAAK,KAAK;AAAA,EAClB;AACD,SAAO;AACT;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const require$$1 = [
|
|
3
|
+
"AGPL-1.0",
|
|
4
|
+
"AGPL-3.0",
|
|
5
|
+
"BSD-2-Clause-FreeBSD",
|
|
6
|
+
"BSD-2-Clause-NetBSD",
|
|
7
|
+
"GFDL-1.1",
|
|
8
|
+
"GFDL-1.2",
|
|
9
|
+
"GFDL-1.3",
|
|
10
|
+
"GPL-1.0",
|
|
11
|
+
"GPL-2.0",
|
|
12
|
+
"GPL-2.0-with-GCC-exception",
|
|
13
|
+
"GPL-2.0-with-autoconf-exception",
|
|
14
|
+
"GPL-2.0-with-bison-exception",
|
|
15
|
+
"GPL-2.0-with-classpath-exception",
|
|
16
|
+
"GPL-2.0-with-font-exception",
|
|
17
|
+
"GPL-3.0",
|
|
18
|
+
"GPL-3.0-with-GCC-exception",
|
|
19
|
+
"GPL-3.0-with-autoconf-exception",
|
|
20
|
+
"LGPL-2.0",
|
|
21
|
+
"LGPL-2.1",
|
|
22
|
+
"LGPL-3.0",
|
|
23
|
+
"Nunit",
|
|
24
|
+
"StandardML-NJ",
|
|
25
|
+
"bzip2-1.0.5",
|
|
26
|
+
"eCos-2.0",
|
|
27
|
+
"wxWindows"
|
|
28
|
+
];
|
|
29
|
+
module.exports = require$$1;
|
|
30
|
+
//# sourceMappingURL=deprecated.json.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecated.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require$$1 = [
|
|
2
|
+
"AGPL-1.0",
|
|
3
|
+
"AGPL-3.0",
|
|
4
|
+
"BSD-2-Clause-FreeBSD",
|
|
5
|
+
"BSD-2-Clause-NetBSD",
|
|
6
|
+
"GFDL-1.1",
|
|
7
|
+
"GFDL-1.2",
|
|
8
|
+
"GFDL-1.3",
|
|
9
|
+
"GPL-1.0",
|
|
10
|
+
"GPL-2.0",
|
|
11
|
+
"GPL-2.0-with-GCC-exception",
|
|
12
|
+
"GPL-2.0-with-autoconf-exception",
|
|
13
|
+
"GPL-2.0-with-bison-exception",
|
|
14
|
+
"GPL-2.0-with-classpath-exception",
|
|
15
|
+
"GPL-2.0-with-font-exception",
|
|
16
|
+
"GPL-3.0",
|
|
17
|
+
"GPL-3.0-with-GCC-exception",
|
|
18
|
+
"GPL-3.0-with-autoconf-exception",
|
|
19
|
+
"LGPL-2.0",
|
|
20
|
+
"LGPL-2.1",
|
|
21
|
+
"LGPL-3.0",
|
|
22
|
+
"Nunit",
|
|
23
|
+
"StandardML-NJ",
|
|
24
|
+
"bzip2-1.0.5",
|
|
25
|
+
"eCos-2.0",
|
|
26
|
+
"wxWindows"
|
|
27
|
+
];
|
|
28
|
+
export {
|
|
29
|
+
require$$1 as default
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=deprecated.json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deprecated.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|