@slicemachine/init 1.1.19 → 2.0.1
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/README.md +88 -32
- package/bin/slicemachine-init.js +3 -0
- package/dist/SliceMachineInitProcess.cjs +749 -0
- package/dist/SliceMachineInitProcess.cjs.map +1 -0
- package/dist/SliceMachineInitProcess.d.ts +48 -0
- package/dist/SliceMachineInitProcess.js +731 -0
- package/dist/SliceMachineInitProcess.js.map +1 -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/@nodelib/fs.scandir/out/adapters/fs.cjs +24 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/adapters/fs.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/adapters/fs.js +23 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/adapters/fs.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/constants.cjs +17 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/constants.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/constants.js +18 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/constants.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/index.cjs +35 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/index.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/index.js +36 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/index.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs +116 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js +117 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/common.cjs +13 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/common.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/common.js +14 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/common.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +64 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js +65 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.cjs +31 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.js +30 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/utils/fs.cjs +22 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/utils/fs.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/utils/fs.js +23 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/utils/fs.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/utils/index.cjs +10 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/utils/index.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/utils/index.js +11 -0
- package/dist/_node_modules/@nodelib/fs.scandir/out/utils/index.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/adapters/fs.cjs +22 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/adapters/fs.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/adapters/fs.js +21 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/adapters/fs.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/index.cjs +35 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/index.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/index.js +36 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/index.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/providers/async.cjs +39 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/providers/async.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/providers/async.js +40 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/providers/async.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/providers/sync.cjs +25 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/providers/sync.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/providers/sync.js +26 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/providers/sync.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/settings.cjs +20 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/settings.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/settings.js +19 -0
- package/dist/_node_modules/@nodelib/fs.stat/out/settings.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/index.cjs +45 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/index.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/index.js +46 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/index.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/async.cjs +34 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/async.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/async.js +33 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/async.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/stream.cjs +40 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/stream.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/stream.js +39 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/stream.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/sync.cjs +18 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/sync.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/sync.js +17 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/providers/sync.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.cjs +108 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.js +107 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/async.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/common.cjs +31 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/common.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/common.js +32 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/common.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/reader.cjs +15 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/reader.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/reader.js +14 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/reader.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.cjs +66 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.js +65 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/readers/sync.js.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/settings.cjs +31 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/settings.cjs.map +1 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/settings.js +30 -0
- package/dist/_node_modules/@nodelib/fs.walk/out/settings.js.map +1 -0
- package/dist/_node_modules/arrify/index.cjs +9 -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/braces/index.cjs +63 -0
- package/dist/_node_modules/braces/index.cjs.map +1 -0
- package/dist/_node_modules/braces/index.js +64 -0
- package/dist/_node_modules/braces/index.js.map +1 -0
- package/dist/_node_modules/braces/lib/compile.cjs +50 -0
- package/dist/_node_modules/braces/lib/compile.cjs.map +1 -0
- package/dist/_node_modules/braces/lib/compile.js +51 -0
- package/dist/_node_modules/braces/lib/compile.js.map +1 -0
- package/dist/_node_modules/braces/lib/constants.cjs +97 -0
- package/dist/_node_modules/braces/lib/constants.cjs.map +1 -0
- package/dist/_node_modules/braces/lib/constants.js +98 -0
- package/dist/_node_modules/braces/lib/constants.js.map +1 -0
- package/dist/_node_modules/braces/lib/expand.cjs +97 -0
- package/dist/_node_modules/braces/lib/expand.cjs.map +1 -0
- package/dist/_node_modules/braces/lib/expand.js +98 -0
- package/dist/_node_modules/braces/lib/expand.js.map +1 -0
- package/dist/_node_modules/braces/lib/parse.cjs +240 -0
- package/dist/_node_modules/braces/lib/parse.cjs.map +1 -0
- package/dist/_node_modules/braces/lib/parse.js +241 -0
- package/dist/_node_modules/braces/lib/parse.js.map +1 -0
- package/dist/_node_modules/braces/lib/stringify.cjs +29 -0
- package/dist/_node_modules/braces/lib/stringify.cjs.map +1 -0
- package/dist/_node_modules/braces/lib/stringify.js +30 -0
- package/dist/_node_modules/braces/lib/stringify.js.map +1 -0
- package/dist/_node_modules/braces/lib/utils.cjs +83 -0
- package/dist/_node_modules/braces/lib/utils.cjs.map +1 -0
- package/dist/_node_modules/braces/lib/utils.js +84 -0
- package/dist/_node_modules/braces/lib/utils.js.map +1 -0
- package/dist/_node_modules/camelcase-keys/_node_modules/camelcase/index.cjs +83 -0
- package/dist/_node_modules/camelcase-keys/_node_modules/camelcase/index.cjs.map +1 -0
- package/dist/_node_modules/camelcase-keys/_node_modules/camelcase/index.js +84 -0
- package/dist/_node_modules/camelcase-keys/_node_modules/camelcase/index.js.map +1 -0
- package/dist/_node_modules/camelcase-keys/index.cjs +56 -0
- package/dist/_node_modules/camelcase-keys/index.cjs.map +1 -0
- package/dist/_node_modules/camelcase-keys/index.js +57 -0
- package/dist/_node_modules/camelcase-keys/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/_node_modules/decamelize/index.cjs +10 -0
- package/dist/_node_modules/decamelize-keys/_node_modules/decamelize/index.cjs.map +1 -0
- package/dist/_node_modules/decamelize-keys/_node_modules/decamelize/index.js +11 -0
- package/dist/_node_modules/decamelize-keys/_node_modules/decamelize/index.js.map +1 -0
- package/dist/_node_modules/decamelize-keys/_node_modules/map-obj/index.cjs +13 -0
- package/dist/_node_modules/decamelize-keys/_node_modules/map-obj/index.cjs.map +1 -0
- package/dist/_node_modules/decamelize-keys/_node_modules/map-obj/index.js +14 -0
- package/dist/_node_modules/decamelize-keys/_node_modules/map-obj/index.js.map +1 -0
- package/dist/_node_modules/decamelize-keys/index.cjs +20 -0
- package/dist/_node_modules/decamelize-keys/index.cjs.map +1 -0
- package/dist/_node_modules/decamelize-keys/index.js +21 -0
- package/dist/_node_modules/decamelize-keys/index.js.map +1 -0
- package/dist/_node_modules/dir-glob/index.cjs +63 -0
- package/dist/_node_modules/dir-glob/index.cjs.map +1 -0
- package/dist/_node_modules/dir-glob/index.js +64 -0
- package/dist/_node_modules/dir-glob/index.js.map +1 -0
- package/dist/_node_modules/error-ex/index.cjs +108 -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/fast-glob/_node_modules/glob-parent/index.cjs +28 -0
- package/dist/_node_modules/fast-glob/_node_modules/glob-parent/index.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/_node_modules/glob-parent/index.js +29 -0
- package/dist/_node_modules/fast-glob/_node_modules/glob-parent/index.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/index.cjs +77 -0
- package/dist/_node_modules/fast-glob/out/index.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/index.js +78 -0
- package/dist/_node_modules/fast-glob/out/index.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/managers/patterns.cjs +15 -0
- package/dist/_node_modules/fast-glob/out/managers/patterns.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/managers/patterns.js +16 -0
- package/dist/_node_modules/fast-glob/out/managers/patterns.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/managers/tasks.cjs +83 -0
- package/dist/_node_modules/fast-glob/out/managers/tasks.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/managers/tasks.js +84 -0
- package/dist/_node_modules/fast-glob/out/managers/tasks.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/async.cjs +29 -0
- package/dist/_node_modules/fast-glob/out/providers/async.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/async.js +28 -0
- package/dist/_node_modules/fast-glob/out/providers/async.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs +65 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.js +64 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs +65 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.js +64 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs +19 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/error.js +18 -0
- package/dist/_node_modules/fast-glob/out/providers/filters/error.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs +50 -0
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js +49 -0
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/matchers/partial.cjs +35 -0
- package/dist/_node_modules/fast-glob/out/providers/matchers/partial.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/matchers/partial.js +34 -0
- package/dist/_node_modules/fast-glob/out/providers/matchers/partial.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/provider.cjs +59 -0
- package/dist/_node_modules/fast-glob/out/providers/provider.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/provider.js +58 -0
- package/dist/_node_modules/fast-glob/out/providers/provider.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/stream.cjs +35 -0
- package/dist/_node_modules/fast-glob/out/providers/stream.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/stream.js +34 -0
- package/dist/_node_modules/fast-glob/out/providers/stream.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/sync.cjs +29 -0
- package/dist/_node_modules/fast-glob/out/providers/sync.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/sync.js +28 -0
- package/dist/_node_modules/fast-glob/out/providers/sync.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs +30 -0
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js +29 -0
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/readers/async.cjs +41 -0
- package/dist/_node_modules/fast-glob/out/readers/async.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/readers/async.js +40 -0
- package/dist/_node_modules/fast-glob/out/readers/async.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/readers/reader.cjs +40 -0
- package/dist/_node_modules/fast-glob/out/readers/reader.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/readers/reader.js +39 -0
- package/dist/_node_modules/fast-glob/out/readers/reader.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/readers/stream.cjs +60 -0
- package/dist/_node_modules/fast-glob/out/readers/stream.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/readers/stream.js +59 -0
- package/dist/_node_modules/fast-glob/out/readers/stream.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/readers/sync.cjs +50 -0
- package/dist/_node_modules/fast-glob/out/readers/sync.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/readers/sync.js +49 -0
- package/dist/_node_modules/fast-glob/out/readers/sync.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/settings.cjs +59 -0
- package/dist/_node_modules/fast-glob/out/settings.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/settings.js +58 -0
- package/dist/_node_modules/fast-glob/out/settings.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/array.cjs +24 -0
- package/dist/_node_modules/fast-glob/out/utils/array.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/array.js +25 -0
- package/dist/_node_modules/fast-glob/out/utils/array.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/errno.cjs +10 -0
- package/dist/_node_modules/fast-glob/out/utils/errno.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/errno.js +11 -0
- package/dist/_node_modules/fast-glob/out/utils/errno.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/fs.cjs +22 -0
- package/dist/_node_modules/fast-glob/out/utils/fs.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/fs.js +23 -0
- package/dist/_node_modules/fast-glob/out/utils/fs.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/index.cjs +34 -0
- package/dist/_node_modules/fast-glob/out/utils/index.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/index.js +35 -0
- package/dist/_node_modules/fast-glob/out/utils/index.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/path.cjs +32 -0
- package/dist/_node_modules/fast-glob/out/utils/path.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/path.js +33 -0
- package/dist/_node_modules/fast-glob/out/utils/path.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/pattern.cjs +144 -0
- package/dist/_node_modules/fast-glob/out/utils/pattern.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/pattern.js +145 -0
- package/dist/_node_modules/fast-glob/out/utils/pattern.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/stream.cjs +21 -0
- package/dist/_node_modules/fast-glob/out/utils/stream.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/stream.js +22 -0
- package/dist/_node_modules/fast-glob/out/utils/stream.js.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/string.cjs +14 -0
- package/dist/_node_modules/fast-glob/out/utils/string.cjs.map +1 -0
- package/dist/_node_modules/fast-glob/out/utils/string.js +15 -0
- package/dist/_node_modules/fast-glob/out/utils/string.js.map +1 -0
- package/dist/_node_modules/fastq/queue.cjs +239 -0
- package/dist/_node_modules/fastq/queue.cjs.map +1 -0
- package/dist/_node_modules/fastq/queue.js +240 -0
- package/dist/_node_modules/fastq/queue.js.map +1 -0
- package/dist/_node_modules/fill-range/index.cjs +210 -0
- package/dist/_node_modules/fill-range/index.cjs.map +1 -0
- package/dist/_node_modules/fill-range/index.js +211 -0
- package/dist/_node_modules/fill-range/index.js.map +1 -0
- package/dist/_node_modules/function-bind/implementation.cjs +46 -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 +6 -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 +22 -0
- package/dist/_node_modules/hard-rejection/index.cjs.map +1 -0
- package/dist/_node_modules/hard-rejection/index.js +23 -0
- package/dist/_node_modules/hard-rejection/index.js.map +1 -0
- package/dist/_node_modules/has/src/index.cjs +6 -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/ignore/index.cjs +370 -0
- package/dist/_node_modules/ignore/index.cjs.map +1 -0
- package/dist/_node_modules/ignore/index.js +371 -0
- package/dist/_node_modules/ignore/index.js.map +1 -0
- package/dist/_node_modules/is-arrayish/index.cjs +9 -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 +487 -0
- package/dist/_node_modules/is-core-module/core.json.cjs.map +1 -0
- package/dist/_node_modules/is-core-module/core.json.js +487 -0
- package/dist/_node_modules/is-core-module/core.json.js.map +1 -0
- package/dist/_node_modules/is-core-module/index.cjs +61 -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-extglob/index.cjs +21 -0
- package/dist/_node_modules/is-extglob/index.cjs.map +1 -0
- package/dist/_node_modules/is-extglob/index.js +22 -0
- package/dist/_node_modules/is-extglob/index.js.map +1 -0
- package/dist/_node_modules/is-glob/index.cjs +135 -0
- package/dist/_node_modules/is-glob/index.cjs.map +1 -0
- package/dist/_node_modules/is-glob/index.js +136 -0
- package/dist/_node_modules/is-glob/index.js.map +1 -0
- package/dist/_node_modules/is-number/index.cjs +18 -0
- package/dist/_node_modules/is-number/index.cjs.map +1 -0
- package/dist/_node_modules/is-number/index.js +19 -0
- package/dist/_node_modules/is-number/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 +89 -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 +128 -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 → _node_modules}/lines-and-columns/build/index.cjs.map +1 -1
- package/dist/_node_modules/lines-and-columns/build/index.js +66 -0
- package/dist/{__node_modules → _node_modules}/lines-and-columns/build/index.js.map +1 -1
- package/dist/_node_modules/map-obj/index.cjs +46 -0
- package/dist/_node_modules/map-obj/index.cjs.map +1 -0
- package/dist/_node_modules/map-obj/index.js +47 -0
- package/dist/_node_modules/map-obj/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/find-up/index.cjs +48 -0
- package/dist/_node_modules/meow/_node_modules/find-up/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/find-up/index.js +48 -0
- package/dist/_node_modules/meow/_node_modules/find-up/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.cjs +165 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.js +166 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host-info.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.cjs +90 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.js +91 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/git-host.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs +124 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js +123 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.cjs +50 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.js +51 -0
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/parse-url.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/indent-string/index.cjs +34 -0
- package/dist/_node_modules/meow/_node_modules/indent-string/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/indent-string/index.js +35 -0
- package/dist/_node_modules/meow/_node_modules/indent-string/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/locate-path/index.cjs +43 -0
- package/dist/_node_modules/meow/_node_modules/locate-path/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/locate-path/index.js +43 -0
- package/dist/_node_modules/meow/_node_modules/locate-path/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/lru-cache/index.cjs +1014 -0
- package/dist/_node_modules/meow/_node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/lru-cache/index.js +1015 -0
- package/dist/_node_modules/meow/_node_modules/lru-cache/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/extract_description.cjs +23 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/extract_description.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/extract_description.js +24 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/extract_description.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.cjs +438 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.js +439 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/make_warning.cjs +25 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/make_warning.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/make_warning.js +26 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/make_warning.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.cjs +56 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.js +57 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/normalize.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/typos.json.cjs +41 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/typos.json.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/typos.json.js +41 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/typos.json.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/warning_messages.json.cjs +90 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/warning_messages.json.js +90 -0
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/warning_messages.json.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs +158 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js +159 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host-info.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs +87 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js +88 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/git-host.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +179 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +178 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs +267 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/lru-cache/index.js +268 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/lru-cache/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs +19 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js +20 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/extract_description.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs +438 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js +439 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs +25 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js +26 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/make_warning.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs +56 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js +57 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/normalize.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.cjs +41 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.js +41 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/typos.json.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.cjs +90 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.js +90 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/warning_messages.json.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/index.cjs +20 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/index.js +20 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg-up/index.cjs +17 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg-up/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg-up/index.js +17 -0
- package/dist/_node_modules/meow/_node_modules/read-pkg-up/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/redent/index.cjs +8 -0
- package/dist/_node_modules/meow/_node_modules/redent/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/redent/index.js +9 -0
- package/dist/_node_modules/meow/_node_modules/redent/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/strip-indent/index.cjs +12 -0
- package/dist/_node_modules/meow/_node_modules/strip-indent/index.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/strip-indent/index.js +13 -0
- package/dist/_node_modules/meow/_node_modules/strip-indent/index.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/yallist/iterator.cjs +19 -0
- package/dist/_node_modules/meow/_node_modules/yallist/iterator.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/yallist/iterator.js +19 -0
- package/dist/_node_modules/meow/_node_modules/yallist/iterator.js.map +1 -0
- package/dist/_node_modules/meow/_node_modules/yallist/yallist.cjs +366 -0
- package/dist/_node_modules/meow/_node_modules/yallist/yallist.cjs.map +1 -0
- package/dist/_node_modules/meow/_node_modules/yallist/yallist.js +367 -0
- package/dist/_node_modules/meow/_node_modules/yallist/yallist.js.map +1 -0
- package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/index.cjs.map +1 -1
- package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/index.js.map +1 -1
- package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/string-utils.cjs.map +1 -1
- package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/string-utils.js.map +1 -1
- package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/tokenize-arg-string.cjs.map +1 -1
- package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/tokenize-arg-string.js.map +1 -1
- package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/yargs-parser-types.cjs.map +1 -1
- package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/yargs-parser-types.js.map +1 -1
- package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/yargs-parser.cjs.map +1 -1
- package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/yargs-parser.js.map +1 -1
- package/dist/_node_modules/meow/index.cjs +202 -0
- package/dist/_node_modules/meow/index.cjs.map +1 -0
- package/dist/_node_modules/meow/index.js +203 -0
- package/dist/_node_modules/meow/index.js.map +1 -0
- package/dist/_node_modules/merge2/index.cjs +116 -0
- package/dist/_node_modules/merge2/index.cjs.map +1 -0
- package/dist/_node_modules/merge2/index.js +117 -0
- package/dist/_node_modules/merge2/index.js.map +1 -0
- package/dist/_node_modules/micromatch/index.cjs +164 -0
- package/dist/_node_modules/micromatch/index.cjs.map +1 -0
- package/dist/_node_modules/micromatch/index.js +165 -0
- package/dist/_node_modules/micromatch/index.js.map +1 -0
- package/dist/_node_modules/min-indent/index.cjs +10 -0
- package/dist/_node_modules/min-indent/index.cjs.map +1 -0
- package/dist/_node_modules/min-indent/index.js +11 -0
- package/dist/_node_modules/min-indent/index.js.map +1 -0
- package/dist/_node_modules/minimist-options/_node_modules/is-plain-obj/index.cjs +8 -0
- package/dist/_node_modules/minimist-options/_node_modules/is-plain-obj/index.cjs.map +1 -0
- package/dist/_node_modules/minimist-options/_node_modules/is-plain-obj/index.js +9 -0
- package/dist/_node_modules/minimist-options/_node_modules/is-plain-obj/index.js.map +1 -0
- package/dist/_node_modules/minimist-options/index.cjs +91 -0
- package/dist/_node_modules/minimist-options/index.cjs.map +1 -0
- package/dist/_node_modules/minimist-options/index.js +92 -0
- package/dist/_node_modules/minimist-options/index.js.map +1 -0
- package/dist/_node_modules/parse-json/index.cjs +52 -0
- package/dist/_node_modules/parse-json/index.cjs.map +1 -0
- package/dist/_node_modules/parse-json/index.js +53 -0
- package/dist/_node_modules/parse-json/index.js.map +1 -0
- package/dist/_node_modules/path-type/index.cjs +41 -0
- package/dist/_node_modules/path-type/index.cjs.map +1 -0
- package/dist/_node_modules/path-type/index.js +42 -0
- package/dist/_node_modules/path-type/index.js.map +1 -0
- package/dist/_node_modules/picomatch/index.cjs +7 -0
- package/dist/_node_modules/picomatch/index.cjs.map +1 -0
- package/dist/_node_modules/picomatch/index.js +6 -0
- package/dist/_node_modules/picomatch/index.js.map +1 -0
- package/dist/_node_modules/picomatch/lib/constants.cjs +194 -0
- package/dist/_node_modules/picomatch/lib/constants.cjs.map +1 -0
- package/dist/_node_modules/picomatch/lib/constants.js +195 -0
- package/dist/_node_modules/picomatch/lib/constants.js.map +1 -0
- package/dist/_node_modules/picomatch/lib/parse.cjs +780 -0
- package/dist/_node_modules/picomatch/lib/parse.cjs.map +1 -0
- package/dist/_node_modules/picomatch/lib/parse.js +781 -0
- package/dist/_node_modules/picomatch/lib/parse.js.map +1 -0
- package/dist/_node_modules/picomatch/lib/picomatch.cjs +146 -0
- package/dist/_node_modules/picomatch/lib/picomatch.cjs.map +1 -0
- package/dist/_node_modules/picomatch/lib/picomatch.js +147 -0
- package/dist/_node_modules/picomatch/lib/picomatch.js.map +1 -0
- package/dist/_node_modules/picomatch/lib/scan.cjs +332 -0
- package/dist/_node_modules/picomatch/lib/scan.cjs.map +1 -0
- package/dist/_node_modules/picomatch/lib/scan.js +333 -0
- package/dist/_node_modules/picomatch/lib/scan.js.map +1 -0
- package/dist/_node_modules/picomatch/lib/utils.cjs +64 -0
- package/dist/_node_modules/picomatch/lib/utils.cjs.map +1 -0
- package/dist/_node_modules/picomatch/lib/utils.js +65 -0
- package/dist/_node_modules/picomatch/lib/utils.js.map +1 -0
- package/dist/_node_modules/queue-microtask/index.cjs +9 -0
- package/dist/_node_modules/queue-microtask/index.cjs.map +1 -0
- package/dist/_node_modules/queue-microtask/index.js +10 -0
- package/dist/_node_modules/queue-microtask/index.js.map +1 -0
- package/dist/_node_modules/quick-lru/index.cjs +234 -0
- package/dist/_node_modules/quick-lru/index.cjs.map +1 -0
- package/dist/_node_modules/quick-lru/index.js +235 -0
- package/dist/_node_modules/quick-lru/index.js.map +1 -0
- package/dist/_node_modules/reusify/reusify.cjs +27 -0
- package/dist/_node_modules/reusify/reusify.cjs.map +1 -0
- package/dist/_node_modules/reusify/reusify.js +28 -0
- package/dist/_node_modules/reusify/reusify.js.map +1 -0
- package/dist/_node_modules/run-parallel/index.cjs +52 -0
- package/dist/_node_modules/run-parallel/index.cjs.map +1 -0
- package/dist/_node_modules/run-parallel/index.js +53 -0
- package/dist/_node_modules/run-parallel/index.js.map +1 -0
- package/dist/_node_modules/spdx-correct/index.cjs +333 -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 +10 -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 +110 -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 +103 -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/to-regex-range/index.cjs +215 -0
- package/dist/_node_modules/to-regex-range/index.cjs.map +1 -0
- package/dist/_node_modules/to-regex-range/index.js +216 -0
- package/dist/_node_modules/to-regex-range/index.js.map +1 -0
- package/dist/_node_modules/trim-newlines/index.cjs +29 -0
- package/dist/_node_modules/trim-newlines/index.cjs.map +1 -0
- package/dist/_node_modules/trim-newlines/index.js +30 -0
- package/dist/_node_modules/trim-newlines/index.js.map +1 -0
- package/dist/_node_modules/validate-npm-package-license/index.cjs +70 -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/_virtual/_commonjsHelpers.cjs +5 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +5 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/array.cjs +5 -0
- package/dist/_virtual/array.cjs.map +1 -0
- package/dist/_virtual/array.js +5 -0
- package/dist/_virtual/array.js.map +1 -0
- package/dist/_virtual/async.cjs +5 -0
- package/dist/_virtual/async.cjs.map +1 -0
- package/dist/_virtual/async.js +5 -0
- package/dist/_virtual/async.js.map +1 -0
- package/dist/_virtual/async2.cjs +5 -0
- package/dist/_virtual/async2.cjs.map +1 -0
- package/dist/_virtual/async2.js +5 -0
- package/dist/_virtual/async2.js.map +1 -0
- package/dist/_virtual/async3.cjs +5 -0
- package/dist/_virtual/async3.cjs.map +1 -0
- package/dist/_virtual/async3.js +5 -0
- package/dist/_virtual/async3.js.map +1 -0
- package/dist/_virtual/async4.cjs +5 -0
- package/dist/_virtual/async4.cjs.map +1 -0
- package/dist/_virtual/async4.js +5 -0
- package/dist/_virtual/async4.js.map +1 -0
- package/dist/_virtual/async5.cjs +5 -0
- package/dist/_virtual/async5.cjs.map +1 -0
- package/dist/_virtual/async5.js +5 -0
- package/dist/_virtual/async5.js.map +1 -0
- package/dist/_virtual/async6.cjs +5 -0
- package/dist/_virtual/async6.cjs.map +1 -0
- package/dist/_virtual/async6.js +5 -0
- package/dist/_virtual/async6.js.map +1 -0
- package/dist/_virtual/common.cjs +5 -0
- package/dist/_virtual/common.cjs.map +1 -0
- package/dist/_virtual/common.js +5 -0
- package/dist/_virtual/common.js.map +1 -0
- package/dist/_virtual/common2.cjs +5 -0
- package/dist/_virtual/common2.cjs.map +1 -0
- package/dist/_virtual/common2.js +5 -0
- package/dist/_virtual/common2.js.map +1 -0
- package/dist/_virtual/constants.cjs +5 -0
- package/dist/_virtual/constants.cjs.map +1 -0
- package/dist/_virtual/constants.js +5 -0
- package/dist/_virtual/constants.js.map +1 -0
- package/dist/_virtual/deep.cjs +5 -0
- package/dist/_virtual/deep.cjs.map +1 -0
- package/dist/_virtual/deep.js +5 -0
- package/dist/_virtual/deep.js.map +1 -0
- package/dist/_virtual/entry.cjs +5 -0
- package/dist/_virtual/entry.cjs.map +1 -0
- package/dist/_virtual/entry.js +5 -0
- package/dist/_virtual/entry.js.map +1 -0
- package/dist/_virtual/entry2.cjs +5 -0
- package/dist/_virtual/entry2.cjs.map +1 -0
- package/dist/_virtual/entry2.js +5 -0
- package/dist/_virtual/entry2.js.map +1 -0
- package/dist/_virtual/errno.cjs +5 -0
- package/dist/_virtual/errno.cjs.map +1 -0
- package/dist/_virtual/errno.js +5 -0
- package/dist/_virtual/errno.js.map +1 -0
- package/dist/_virtual/error.cjs +5 -0
- package/dist/_virtual/error.cjs.map +1 -0
- package/dist/_virtual/error.js +5 -0
- package/dist/_virtual/error.js.map +1 -0
- package/dist/_virtual/fs.cjs +5 -0
- package/dist/_virtual/fs.cjs.map +1 -0
- package/dist/_virtual/fs.js +5 -0
- package/dist/_virtual/fs.js.map +1 -0
- package/dist/_virtual/fs2.cjs +5 -0
- package/dist/_virtual/fs2.cjs.map +1 -0
- package/dist/_virtual/fs2.js +5 -0
- package/dist/_virtual/fs2.js.map +1 -0
- package/dist/_virtual/fs3.cjs +5 -0
- package/dist/_virtual/fs3.cjs.map +1 -0
- package/dist/_virtual/fs3.js +5 -0
- package/dist/_virtual/fs3.js.map +1 -0
- package/dist/_virtual/fs4.cjs +5 -0
- package/dist/_virtual/fs4.cjs.map +1 -0
- package/dist/_virtual/fs4.js +5 -0
- package/dist/_virtual/fs4.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 +13 -0
- package/dist/_virtual/index.cjs.map +1 -0
- package/dist/_virtual/index.js +14 -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 +13 -0
- package/dist/_virtual/index11.cjs.map +1 -0
- package/dist/_virtual/index11.js +14 -0
- package/dist/_virtual/index11.js.map +1 -0
- package/dist/_virtual/index12.cjs +5 -0
- package/dist/_virtual/index12.cjs.map +1 -0
- package/dist/_virtual/index12.js +5 -0
- package/dist/_virtual/index12.js.map +1 -0
- package/dist/_virtual/index13.cjs +5 -0
- package/dist/_virtual/index13.cjs.map +1 -0
- package/dist/_virtual/index13.js +5 -0
- package/dist/_virtual/index13.js.map +1 -0
- package/dist/_virtual/index14.cjs +5 -0
- package/dist/_virtual/index14.cjs.map +1 -0
- package/dist/_virtual/index14.js +5 -0
- package/dist/_virtual/index14.js.map +1 -0
- package/dist/_virtual/index15.cjs +5 -0
- package/dist/_virtual/index15.cjs.map +1 -0
- package/dist/_virtual/index15.js +5 -0
- package/dist/_virtual/index15.js.map +1 -0
- package/dist/_virtual/index16.cjs +13 -0
- package/dist/_virtual/index16.cjs.map +1 -0
- package/dist/_virtual/index16.js +14 -0
- package/dist/_virtual/index16.js.map +1 -0
- package/dist/_virtual/index17.cjs +5 -0
- package/dist/_virtual/index17.cjs.map +1 -0
- package/dist/_virtual/index17.js +5 -0
- package/dist/_virtual/index17.js.map +1 -0
- package/dist/_virtual/index18.cjs +5 -0
- package/dist/_virtual/index18.cjs.map +1 -0
- package/dist/_virtual/index18.js +5 -0
- package/dist/_virtual/index18.js.map +1 -0
- package/dist/_virtual/index2.cjs +13 -0
- package/dist/_virtual/index2.cjs.map +1 -0
- package/dist/_virtual/index2.js +14 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.cjs +13 -0
- package/dist/_virtual/index3.cjs.map +1 -0
- package/dist/_virtual/index3.js +14 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/index4.cjs +13 -0
- package/dist/_virtual/index4.cjs.map +1 -0
- package/dist/_virtual/index4.js +14 -0
- package/dist/_virtual/index4.js.map +1 -0
- package/dist/_virtual/index5.cjs +13 -0
- package/dist/_virtual/index5.cjs.map +1 -0
- package/dist/_virtual/index5.js +14 -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/matcher.cjs +5 -0
- package/dist/_virtual/matcher.cjs.map +1 -0
- package/dist/_virtual/matcher.js +5 -0
- package/dist/_virtual/matcher.js.map +1 -0
- package/dist/_virtual/partial.cjs +5 -0
- package/dist/_virtual/partial.cjs.map +1 -0
- package/dist/_virtual/partial.js +5 -0
- package/dist/_virtual/partial.js.map +1 -0
- package/dist/_virtual/path.cjs +5 -0
- package/dist/_virtual/path.cjs.map +1 -0
- package/dist/_virtual/path.js +5 -0
- package/dist/_virtual/path.js.map +1 -0
- package/dist/_virtual/pattern.cjs +5 -0
- package/dist/_virtual/pattern.cjs.map +1 -0
- package/dist/_virtual/pattern.js +5 -0
- package/dist/_virtual/pattern.js.map +1 -0
- package/dist/_virtual/patterns.cjs +5 -0
- package/dist/_virtual/patterns.cjs.map +1 -0
- package/dist/_virtual/patterns.js +5 -0
- package/dist/_virtual/patterns.js.map +1 -0
- package/dist/_virtual/provider.cjs +5 -0
- package/dist/_virtual/provider.cjs.map +1 -0
- package/dist/_virtual/provider.js +5 -0
- package/dist/_virtual/provider.js.map +1 -0
- package/dist/_virtual/queue.cjs +13 -0
- package/dist/_virtual/queue.cjs.map +1 -0
- package/dist/_virtual/queue.js +14 -0
- package/dist/_virtual/queue.js.map +1 -0
- package/dist/_virtual/reader.cjs +5 -0
- package/dist/_virtual/reader.cjs.map +1 -0
- package/dist/_virtual/reader.js +5 -0
- package/dist/_virtual/reader.js.map +1 -0
- package/dist/_virtual/reader2.cjs +5 -0
- package/dist/_virtual/reader2.cjs.map +1 -0
- package/dist/_virtual/reader2.js +5 -0
- package/dist/_virtual/reader2.js.map +1 -0
- package/dist/_virtual/settings.cjs +5 -0
- package/dist/_virtual/settings.cjs.map +1 -0
- package/dist/_virtual/settings.js +5 -0
- package/dist/_virtual/settings.js.map +1 -0
- package/dist/_virtual/settings2.cjs +5 -0
- package/dist/_virtual/settings2.cjs.map +1 -0
- package/dist/_virtual/settings2.js +5 -0
- package/dist/_virtual/settings2.js.map +1 -0
- package/dist/_virtual/settings3.cjs +5 -0
- package/dist/_virtual/settings3.cjs.map +1 -0
- package/dist/_virtual/settings3.js +5 -0
- package/dist/_virtual/settings3.js.map +1 -0
- package/dist/_virtual/settings4.cjs +5 -0
- package/dist/_virtual/settings4.cjs.map +1 -0
- package/dist/_virtual/settings4.js +5 -0
- package/dist/_virtual/settings4.js.map +1 -0
- package/dist/_virtual/stream.cjs +5 -0
- package/dist/_virtual/stream.cjs.map +1 -0
- package/dist/_virtual/stream.js +5 -0
- package/dist/_virtual/stream.js.map +1 -0
- package/dist/_virtual/stream2.cjs +5 -0
- package/dist/_virtual/stream2.cjs.map +1 -0
- package/dist/_virtual/stream2.js +5 -0
- package/dist/_virtual/stream2.js.map +1 -0
- package/dist/_virtual/stream3.cjs +5 -0
- package/dist/_virtual/stream3.cjs.map +1 -0
- package/dist/_virtual/stream3.js +5 -0
- package/dist/_virtual/stream3.js.map +1 -0
- package/dist/_virtual/stream4.cjs +5 -0
- package/dist/_virtual/stream4.cjs.map +1 -0
- package/dist/_virtual/stream4.js +5 -0
- package/dist/_virtual/stream4.js.map +1 -0
- package/dist/_virtual/string.cjs +5 -0
- package/dist/_virtual/string.cjs.map +1 -0
- package/dist/_virtual/string.js +5 -0
- package/dist/_virtual/string.js.map +1 -0
- package/dist/_virtual/sync.cjs +5 -0
- package/dist/_virtual/sync.cjs.map +1 -0
- package/dist/_virtual/sync.js +5 -0
- package/dist/_virtual/sync.js.map +1 -0
- package/dist/_virtual/sync2.cjs +5 -0
- package/dist/_virtual/sync2.cjs.map +1 -0
- package/dist/_virtual/sync2.js +5 -0
- package/dist/_virtual/sync2.js.map +1 -0
- package/dist/_virtual/sync3.cjs +5 -0
- package/dist/_virtual/sync3.cjs.map +1 -0
- package/dist/_virtual/sync3.js +5 -0
- package/dist/_virtual/sync3.js.map +1 -0
- package/dist/_virtual/sync4.cjs +5 -0
- package/dist/_virtual/sync4.cjs.map +1 -0
- package/dist/_virtual/sync4.js +5 -0
- package/dist/_virtual/sync4.js.map +1 -0
- package/dist/_virtual/sync5.cjs +5 -0
- package/dist/_virtual/sync5.cjs.map +1 -0
- package/dist/_virtual/sync5.js +5 -0
- package/dist/_virtual/sync5.js.map +1 -0
- package/dist/_virtual/sync6.cjs +5 -0
- package/dist/_virtual/sync6.cjs.map +1 -0
- package/dist/_virtual/sync6.js +5 -0
- package/dist/_virtual/sync6.js.map +1 -0
- package/dist/_virtual/tasks.cjs +5 -0
- package/dist/_virtual/tasks.cjs.map +1 -0
- package/dist/_virtual/tasks.js +5 -0
- package/dist/_virtual/tasks.js.map +1 -0
- package/dist/_virtual/utils.cjs +5 -0
- package/dist/_virtual/utils.cjs.map +1 -0
- package/dist/_virtual/utils.js +5 -0
- package/dist/_virtual/utils.js.map +1 -0
- package/dist/_virtual/utils2.cjs +5 -0
- package/dist/_virtual/utils2.cjs.map +1 -0
- package/dist/_virtual/utils2.js +5 -0
- package/dist/_virtual/utils2.js.map +1 -0
- package/dist/cli.cjs +78 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +77 -0
- package/dist/cli.js.map +1 -0
- package/dist/constants.cjs +7 -0
- package/dist/constants.cjs.map +1 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.js +7 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/assertExists.cjs +9 -0
- package/dist/lib/assertExists.cjs.map +1 -0
- package/dist/lib/assertExists.d.ts +1 -0
- package/dist/lib/assertExists.js +9 -0
- package/dist/lib/assertExists.js.map +1 -0
- package/dist/lib/framework.cjs +92 -0
- package/dist/lib/framework.cjs.map +1 -0
- package/dist/lib/framework.d.ts +45 -0
- package/dist/lib/framework.js +92 -0
- package/dist/lib/framework.js.map +1 -0
- package/dist/lib/getExecuteCommand.cjs +8 -0
- package/dist/lib/getExecuteCommand.cjs.map +1 -0
- package/dist/lib/getExecuteCommand.d.ts +5 -0
- package/dist/lib/getExecuteCommand.js +8 -0
- package/dist/lib/getExecuteCommand.js.map +1 -0
- package/dist/lib/getRunScriptCommand.cjs +8 -0
- package/dist/lib/getRunScriptCommand.cjs.map +1 -0
- package/dist/lib/getRunScriptCommand.d.ts +5 -0
- package/dist/lib/getRunScriptCommand.js +8 -0
- package/dist/lib/getRunScriptCommand.js.map +1 -0
- package/dist/lib/listr.cjs +13 -0
- package/dist/lib/listr.cjs.map +1 -0
- package/dist/lib/listr.d.ts +3 -0
- package/dist/lib/listr.js +13 -0
- package/dist/lib/listr.js.map +1 -0
- package/dist/lib/prompt.cjs +15 -0
- package/dist/lib/prompt.cjs.map +1 -0
- package/dist/lib/prompt.d.ts +10 -0
- package/dist/lib/prompt.js +15 -0
- package/dist/lib/prompt.js.map +1 -0
- package/dist/lib/repositoryDomain.cjs +130 -0
- package/dist/lib/repositoryDomain.cjs.map +1 -0
- package/dist/lib/repositoryDomain.d.ts +25 -0
- package/dist/lib/repositoryDomain.js +130 -0
- package/dist/lib/repositoryDomain.js.map +1 -0
- package/dist/packages/init/_node_modules/globby/ignore.cjs +62 -0
- package/dist/packages/init/_node_modules/globby/ignore.cjs.map +1 -0
- package/dist/packages/init/_node_modules/globby/ignore.js +62 -0
- package/dist/packages/init/_node_modules/globby/ignore.js.map +1 -0
- package/dist/packages/init/_node_modules/globby/index.cjs +137 -0
- package/dist/packages/init/_node_modules/globby/index.cjs.map +1 -0
- package/dist/packages/init/_node_modules/globby/index.js +137 -0
- package/dist/packages/init/_node_modules/globby/index.js.map +1 -0
- package/dist/packages/init/_node_modules/globby/utilities.cjs +9 -0
- package/dist/packages/init/_node_modules/globby/utilities.cjs.map +1 -0
- package/dist/packages/init/_node_modules/globby/utilities.js +9 -0
- package/dist/packages/init/_node_modules/globby/utilities.js.map +1 -0
- package/dist/packages/init/_node_modules/slash/index.cjs +11 -0
- package/dist/packages/init/_node_modules/slash/index.cjs.map +1 -0
- package/dist/packages/init/_node_modules/slash/index.js +12 -0
- package/dist/packages/init/_node_modules/slash/index.js.map +1 -0
- package/dist/packages/init/package.json.cjs +135 -0
- package/dist/packages/init/package.json.cjs.map +1 -0
- package/dist/packages/init/package.json.js +135 -0
- package/dist/packages/init/package.json.js.map +1 -0
- package/package.json +93 -69
- package/src/SliceMachineInitProcess.ts +1114 -0
- package/src/cli.ts +84 -0
- package/src/constants.ts +3 -0
- package/src/index.ts +5 -129
- package/src/lib/assertExists.ts +9 -0
- package/src/lib/framework.ts +155 -0
- package/src/lib/getExecuteCommand.ts +9 -0
- package/src/lib/getRunScriptCommand.ts +9 -0
- package/src/lib/listr.ts +15 -0
- package/src/lib/prompt.ts +27 -0
- package/src/lib/repositoryDomain.ts +219 -0
- package/.depcheckrc +0 -4
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -24
- package/build/index.js +0 -3388
- package/build/index.js.map +0 -1
- package/dist/__node_modules/lines-and-columns/build/index.cjs +0 -64
- package/dist/__node_modules/lines-and-columns/build/index.js +0 -63
- package/dist/packages/init/__node_modules/human-signals/build/src/core.cjs +0 -275
- package/dist/packages/init/__node_modules/human-signals/build/src/core.cjs.map +0 -1
- package/dist/packages/init/__node_modules/human-signals/build/src/core.js +0 -275
- package/dist/packages/init/__node_modules/human-signals/build/src/core.js.map +0 -1
- package/dist/packages/init/__node_modules/human-signals/build/src/main.cjs +0 -50
- package/dist/packages/init/__node_modules/human-signals/build/src/main.cjs.map +0 -1
- package/dist/packages/init/__node_modules/human-signals/build/src/main.js +0 -50
- package/dist/packages/init/__node_modules/human-signals/build/src/main.js.map +0 -1
- package/dist/packages/init/__node_modules/human-signals/build/src/realtime.cjs +0 -20
- package/dist/packages/init/__node_modules/human-signals/build/src/realtime.cjs.map +0 -1
- package/dist/packages/init/__node_modules/human-signals/build/src/realtime.js +0 -20
- package/dist/packages/init/__node_modules/human-signals/build/src/realtime.js.map +0 -1
- package/dist/packages/init/__node_modules/human-signals/build/src/signals.cjs +0 -27
- package/dist/packages/init/__node_modules/human-signals/build/src/signals.cjs.map +0 -1
- package/dist/packages/init/__node_modules/human-signals/build/src/signals.js +0 -27
- package/dist/packages/init/__node_modules/human-signals/build/src/signals.js.map +0 -1
- package/jest.config.js +0 -17
- package/siroc.config.js +0 -19
- package/src/steps/choose-or-create-a-repository.ts +0 -169
- package/src/steps/configure-project.ts +0 -72
- package/src/steps/detect-framework.ts +0 -94
- package/src/steps/display-final-message.ts +0 -31
- package/src/steps/index.ts +0 -10
- package/src/steps/install-lib.ts +0 -116
- package/src/steps/install-required-dependencies.ts +0 -106
- package/src/steps/loginOrBypass.ts +0 -25
- package/src/steps/sendStarterData.ts +0 -31
- package/src/steps/set-version.ts +0 -61
- package/src/steps/starters/custom-types.ts +0 -81
- package/src/steps/starters/documents.ts +0 -95
- package/src/steps/starters/prompts.ts +0 -29
- package/src/steps/starters/s3.ts +0 -70
- package/src/steps/starters/slices.ts +0 -75
- package/src/steps/validate-pkg.ts +0 -14
- package/src/utils/PackageManager.ts +0 -66
- package/src/utils/auth/helpers.ts +0 -168
- package/src/utils/auth/index.ts +0 -63
- package/src/utils/client.ts +0 -89
- package/src/utils/create-repo.ts +0 -37
- package/src/utils/fs.ts +0 -18
- package/src/utils/index.ts +0 -42
- package/src/utils/logs.ts +0 -28
- package/src/utils/noop.ts +0 -3
- package/src/utils/tracker.ts +0 -153
- package/src/utils/validateRepositoryName.ts +0 -44
- package/src/utils/versionCheck.ts +0 -10
- package/tsconfig.json +0 -26
- /package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/index.cjs +0 -0
- /package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/index.js +0 -0
- /package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/string-utils.cjs +0 -0
- /package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/string-utils.js +0 -0
- /package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/tokenize-arg-string.cjs +0 -0
- /package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/tokenize-arg-string.js +0 -0
- /package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/yargs-parser-types.cjs +0 -0
- /package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/yargs-parser-types.js +0 -0
- /package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/yargs-parser.cjs +0 -0
- /package/dist/{__node_modules/meow/__node_modules → _node_modules/meow/_node_modules}/yargs-parser/build/lib/yargs-parser.js +0 -0
|
@@ -0,0 +1,1014 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const perf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
|
|
3
|
+
const hasAbortController = typeof AbortController === "function";
|
|
4
|
+
const AC = hasAbortController ? AbortController : class AbortController2 {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.signal = new AS();
|
|
7
|
+
}
|
|
8
|
+
abort(reason = new Error("This operation was aborted")) {
|
|
9
|
+
this.signal.reason = this.signal.reason || reason;
|
|
10
|
+
this.signal.aborted = true;
|
|
11
|
+
this.signal.dispatchEvent({
|
|
12
|
+
type: "abort",
|
|
13
|
+
target: this.signal
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const hasAbortSignal = typeof AbortSignal === "function";
|
|
18
|
+
const hasACAbortSignal = typeof AC.AbortSignal === "function";
|
|
19
|
+
const AS = hasAbortSignal ? AbortSignal : hasACAbortSignal ? AC.AbortController : class AbortSignal2 {
|
|
20
|
+
constructor() {
|
|
21
|
+
this.reason = void 0;
|
|
22
|
+
this.aborted = false;
|
|
23
|
+
this._listeners = [];
|
|
24
|
+
}
|
|
25
|
+
dispatchEvent(e) {
|
|
26
|
+
if (e.type === "abort") {
|
|
27
|
+
this.aborted = true;
|
|
28
|
+
this.onabort(e);
|
|
29
|
+
this._listeners.forEach((f) => f(e), this);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
onabort() {
|
|
33
|
+
}
|
|
34
|
+
addEventListener(ev, fn) {
|
|
35
|
+
if (ev === "abort") {
|
|
36
|
+
this._listeners.push(fn);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
removeEventListener(ev, fn) {
|
|
40
|
+
if (ev === "abort") {
|
|
41
|
+
this._listeners = this._listeners.filter((f) => f !== fn);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const warned = /* @__PURE__ */ new Set();
|
|
46
|
+
const deprecatedOption = (opt, instead) => {
|
|
47
|
+
const code = `LRU_CACHE_OPTION_${opt}`;
|
|
48
|
+
if (shouldWarn(code)) {
|
|
49
|
+
warn(code, `${opt} option`, `options.${instead}`, LRUCache);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const deprecatedMethod = (method, instead) => {
|
|
53
|
+
const code = `LRU_CACHE_METHOD_${method}`;
|
|
54
|
+
if (shouldWarn(code)) {
|
|
55
|
+
const { prototype } = LRUCache;
|
|
56
|
+
const { get } = Object.getOwnPropertyDescriptor(prototype, method);
|
|
57
|
+
warn(code, `${method} method`, `cache.${instead}()`, get);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
const deprecatedProperty = (field, instead) => {
|
|
61
|
+
const code = `LRU_CACHE_PROPERTY_${field}`;
|
|
62
|
+
if (shouldWarn(code)) {
|
|
63
|
+
const { prototype } = LRUCache;
|
|
64
|
+
const { get } = Object.getOwnPropertyDescriptor(prototype, field);
|
|
65
|
+
warn(code, `${field} property`, `cache.${instead}`, get);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const emitWarning = (...a) => {
|
|
69
|
+
typeof process === "object" && process && typeof process.emitWarning === "function" ? process.emitWarning(...a) : console.error(...a);
|
|
70
|
+
};
|
|
71
|
+
const shouldWarn = (code) => !warned.has(code);
|
|
72
|
+
const warn = (code, what, instead, fn) => {
|
|
73
|
+
warned.add(code);
|
|
74
|
+
const msg = `The ${what} is deprecated. Please use ${instead} instead.`;
|
|
75
|
+
emitWarning(msg, "DeprecationWarning", code, fn);
|
|
76
|
+
};
|
|
77
|
+
const isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);
|
|
78
|
+
const getUintArray = (max) => !isPosInt(max) ? null : max <= Math.pow(2, 8) ? Uint8Array : max <= Math.pow(2, 16) ? Uint16Array : max <= Math.pow(2, 32) ? Uint32Array : max <= Number.MAX_SAFE_INTEGER ? ZeroArray : null;
|
|
79
|
+
class ZeroArray extends Array {
|
|
80
|
+
constructor(size) {
|
|
81
|
+
super(size);
|
|
82
|
+
this.fill(0);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
class Stack {
|
|
86
|
+
constructor(max) {
|
|
87
|
+
if (max === 0) {
|
|
88
|
+
return [];
|
|
89
|
+
}
|
|
90
|
+
const UintArray = getUintArray(max);
|
|
91
|
+
this.heap = new UintArray(max);
|
|
92
|
+
this.length = 0;
|
|
93
|
+
}
|
|
94
|
+
push(n) {
|
|
95
|
+
this.heap[this.length++] = n;
|
|
96
|
+
}
|
|
97
|
+
pop() {
|
|
98
|
+
return this.heap[--this.length];
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
class LRUCache {
|
|
102
|
+
constructor(options = {}) {
|
|
103
|
+
const {
|
|
104
|
+
max = 0,
|
|
105
|
+
ttl,
|
|
106
|
+
ttlResolution = 1,
|
|
107
|
+
ttlAutopurge,
|
|
108
|
+
updateAgeOnGet,
|
|
109
|
+
updateAgeOnHas,
|
|
110
|
+
allowStale,
|
|
111
|
+
dispose,
|
|
112
|
+
disposeAfter,
|
|
113
|
+
noDisposeOnSet,
|
|
114
|
+
noUpdateTTL,
|
|
115
|
+
maxSize = 0,
|
|
116
|
+
maxEntrySize = 0,
|
|
117
|
+
sizeCalculation,
|
|
118
|
+
fetchMethod,
|
|
119
|
+
fetchContext,
|
|
120
|
+
noDeleteOnFetchRejection,
|
|
121
|
+
noDeleteOnStaleGet,
|
|
122
|
+
allowStaleOnFetchRejection,
|
|
123
|
+
allowStaleOnFetchAbort,
|
|
124
|
+
ignoreFetchAbort
|
|
125
|
+
} = options;
|
|
126
|
+
const { length, maxAge, stale } = options instanceof LRUCache ? {} : options;
|
|
127
|
+
if (max !== 0 && !isPosInt(max)) {
|
|
128
|
+
throw new TypeError("max option must be a nonnegative integer");
|
|
129
|
+
}
|
|
130
|
+
const UintArray = max ? getUintArray(max) : Array;
|
|
131
|
+
if (!UintArray) {
|
|
132
|
+
throw new Error("invalid max value: " + max);
|
|
133
|
+
}
|
|
134
|
+
this.max = max;
|
|
135
|
+
this.maxSize = maxSize;
|
|
136
|
+
this.maxEntrySize = maxEntrySize || this.maxSize;
|
|
137
|
+
this.sizeCalculation = sizeCalculation || length;
|
|
138
|
+
if (this.sizeCalculation) {
|
|
139
|
+
if (!this.maxSize && !this.maxEntrySize) {
|
|
140
|
+
throw new TypeError(
|
|
141
|
+
"cannot set sizeCalculation without setting maxSize or maxEntrySize"
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
if (typeof this.sizeCalculation !== "function") {
|
|
145
|
+
throw new TypeError("sizeCalculation set to non-function");
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
this.fetchMethod = fetchMethod || null;
|
|
149
|
+
if (this.fetchMethod && typeof this.fetchMethod !== "function") {
|
|
150
|
+
throw new TypeError(
|
|
151
|
+
"fetchMethod must be a function if specified"
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
this.fetchContext = fetchContext;
|
|
155
|
+
if (!this.fetchMethod && fetchContext !== void 0) {
|
|
156
|
+
throw new TypeError(
|
|
157
|
+
"cannot set fetchContext without fetchMethod"
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
this.keyMap = /* @__PURE__ */ new Map();
|
|
161
|
+
this.keyList = new Array(max).fill(null);
|
|
162
|
+
this.valList = new Array(max).fill(null);
|
|
163
|
+
this.next = new UintArray(max);
|
|
164
|
+
this.prev = new UintArray(max);
|
|
165
|
+
this.head = 0;
|
|
166
|
+
this.tail = 0;
|
|
167
|
+
this.free = new Stack(max);
|
|
168
|
+
this.initialFill = 1;
|
|
169
|
+
this.size = 0;
|
|
170
|
+
if (typeof dispose === "function") {
|
|
171
|
+
this.dispose = dispose;
|
|
172
|
+
}
|
|
173
|
+
if (typeof disposeAfter === "function") {
|
|
174
|
+
this.disposeAfter = disposeAfter;
|
|
175
|
+
this.disposed = [];
|
|
176
|
+
} else {
|
|
177
|
+
this.disposeAfter = null;
|
|
178
|
+
this.disposed = null;
|
|
179
|
+
}
|
|
180
|
+
this.noDisposeOnSet = !!noDisposeOnSet;
|
|
181
|
+
this.noUpdateTTL = !!noUpdateTTL;
|
|
182
|
+
this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;
|
|
183
|
+
this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;
|
|
184
|
+
this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;
|
|
185
|
+
this.ignoreFetchAbort = !!ignoreFetchAbort;
|
|
186
|
+
if (this.maxEntrySize !== 0) {
|
|
187
|
+
if (this.maxSize !== 0) {
|
|
188
|
+
if (!isPosInt(this.maxSize)) {
|
|
189
|
+
throw new TypeError(
|
|
190
|
+
"maxSize must be a positive integer if specified"
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (!isPosInt(this.maxEntrySize)) {
|
|
195
|
+
throw new TypeError(
|
|
196
|
+
"maxEntrySize must be a positive integer if specified"
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
this.initializeSizeTracking();
|
|
200
|
+
}
|
|
201
|
+
this.allowStale = !!allowStale || !!stale;
|
|
202
|
+
this.noDeleteOnStaleGet = !!noDeleteOnStaleGet;
|
|
203
|
+
this.updateAgeOnGet = !!updateAgeOnGet;
|
|
204
|
+
this.updateAgeOnHas = !!updateAgeOnHas;
|
|
205
|
+
this.ttlResolution = isPosInt(ttlResolution) || ttlResolution === 0 ? ttlResolution : 1;
|
|
206
|
+
this.ttlAutopurge = !!ttlAutopurge;
|
|
207
|
+
this.ttl = ttl || maxAge || 0;
|
|
208
|
+
if (this.ttl) {
|
|
209
|
+
if (!isPosInt(this.ttl)) {
|
|
210
|
+
throw new TypeError(
|
|
211
|
+
"ttl must be a positive integer if specified"
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
this.initializeTTLTracking();
|
|
215
|
+
}
|
|
216
|
+
if (this.max === 0 && this.ttl === 0 && this.maxSize === 0) {
|
|
217
|
+
throw new TypeError(
|
|
218
|
+
"At least one of max, maxSize, or ttl is required"
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
if (!this.ttlAutopurge && !this.max && !this.maxSize) {
|
|
222
|
+
const code = "LRU_CACHE_UNBOUNDED";
|
|
223
|
+
if (shouldWarn(code)) {
|
|
224
|
+
warned.add(code);
|
|
225
|
+
const msg = "TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";
|
|
226
|
+
emitWarning(msg, "UnboundedCacheWarning", code, LRUCache);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
if (stale) {
|
|
230
|
+
deprecatedOption("stale", "allowStale");
|
|
231
|
+
}
|
|
232
|
+
if (maxAge) {
|
|
233
|
+
deprecatedOption("maxAge", "ttl");
|
|
234
|
+
}
|
|
235
|
+
if (length) {
|
|
236
|
+
deprecatedOption("length", "sizeCalculation");
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
getRemainingTTL(key) {
|
|
240
|
+
return this.has(key, { updateAgeOnHas: false }) ? Infinity : 0;
|
|
241
|
+
}
|
|
242
|
+
initializeTTLTracking() {
|
|
243
|
+
this.ttls = new ZeroArray(this.max);
|
|
244
|
+
this.starts = new ZeroArray(this.max);
|
|
245
|
+
this.setItemTTL = (index, ttl, start = perf.now()) => {
|
|
246
|
+
this.starts[index] = ttl !== 0 ? start : 0;
|
|
247
|
+
this.ttls[index] = ttl;
|
|
248
|
+
if (ttl !== 0 && this.ttlAutopurge) {
|
|
249
|
+
const t = setTimeout(() => {
|
|
250
|
+
if (this.isStale(index)) {
|
|
251
|
+
this.delete(this.keyList[index]);
|
|
252
|
+
}
|
|
253
|
+
}, ttl + 1);
|
|
254
|
+
if (t.unref) {
|
|
255
|
+
t.unref();
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
this.updateItemAge = (index) => {
|
|
260
|
+
this.starts[index] = this.ttls[index] !== 0 ? perf.now() : 0;
|
|
261
|
+
};
|
|
262
|
+
this.statusTTL = (status, index) => {
|
|
263
|
+
if (status) {
|
|
264
|
+
status.ttl = this.ttls[index];
|
|
265
|
+
status.start = this.starts[index];
|
|
266
|
+
status.now = cachedNow || getNow();
|
|
267
|
+
status.remainingTTL = status.now + status.ttl - status.start;
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
let cachedNow = 0;
|
|
271
|
+
const getNow = () => {
|
|
272
|
+
const n = perf.now();
|
|
273
|
+
if (this.ttlResolution > 0) {
|
|
274
|
+
cachedNow = n;
|
|
275
|
+
const t = setTimeout(
|
|
276
|
+
() => cachedNow = 0,
|
|
277
|
+
this.ttlResolution
|
|
278
|
+
);
|
|
279
|
+
if (t.unref) {
|
|
280
|
+
t.unref();
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return n;
|
|
284
|
+
};
|
|
285
|
+
this.getRemainingTTL = (key) => {
|
|
286
|
+
const index = this.keyMap.get(key);
|
|
287
|
+
if (index === void 0) {
|
|
288
|
+
return 0;
|
|
289
|
+
}
|
|
290
|
+
return this.ttls[index] === 0 || this.starts[index] === 0 ? Infinity : this.starts[index] + this.ttls[index] - (cachedNow || getNow());
|
|
291
|
+
};
|
|
292
|
+
this.isStale = (index) => {
|
|
293
|
+
return this.ttls[index] !== 0 && this.starts[index] !== 0 && (cachedNow || getNow()) - this.starts[index] > this.ttls[index];
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
updateItemAge(_index) {
|
|
297
|
+
}
|
|
298
|
+
statusTTL(_status, _index) {
|
|
299
|
+
}
|
|
300
|
+
setItemTTL(_index, _ttl, _start) {
|
|
301
|
+
}
|
|
302
|
+
isStale(_index) {
|
|
303
|
+
return false;
|
|
304
|
+
}
|
|
305
|
+
initializeSizeTracking() {
|
|
306
|
+
this.calculatedSize = 0;
|
|
307
|
+
this.sizes = new ZeroArray(this.max);
|
|
308
|
+
this.removeItemSize = (index) => {
|
|
309
|
+
this.calculatedSize -= this.sizes[index];
|
|
310
|
+
this.sizes[index] = 0;
|
|
311
|
+
};
|
|
312
|
+
this.requireSize = (k, v, size, sizeCalculation) => {
|
|
313
|
+
if (this.isBackgroundFetch(v)) {
|
|
314
|
+
return 0;
|
|
315
|
+
}
|
|
316
|
+
if (!isPosInt(size)) {
|
|
317
|
+
if (sizeCalculation) {
|
|
318
|
+
if (typeof sizeCalculation !== "function") {
|
|
319
|
+
throw new TypeError("sizeCalculation must be a function");
|
|
320
|
+
}
|
|
321
|
+
size = sizeCalculation(v, k);
|
|
322
|
+
if (!isPosInt(size)) {
|
|
323
|
+
throw new TypeError(
|
|
324
|
+
"sizeCalculation return invalid (expect positive integer)"
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
} else {
|
|
328
|
+
throw new TypeError(
|
|
329
|
+
"invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set."
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return size;
|
|
334
|
+
};
|
|
335
|
+
this.addItemSize = (index, size, status) => {
|
|
336
|
+
this.sizes[index] = size;
|
|
337
|
+
if (this.maxSize) {
|
|
338
|
+
const maxSize = this.maxSize - this.sizes[index];
|
|
339
|
+
while (this.calculatedSize > maxSize) {
|
|
340
|
+
this.evict(true);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
this.calculatedSize += this.sizes[index];
|
|
344
|
+
if (status) {
|
|
345
|
+
status.entrySize = size;
|
|
346
|
+
status.totalCalculatedSize = this.calculatedSize;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
removeItemSize(_index) {
|
|
351
|
+
}
|
|
352
|
+
addItemSize(_index, _size) {
|
|
353
|
+
}
|
|
354
|
+
requireSize(_k, _v, size, sizeCalculation) {
|
|
355
|
+
if (size || sizeCalculation) {
|
|
356
|
+
throw new TypeError(
|
|
357
|
+
"cannot set size without setting maxSize or maxEntrySize on cache"
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
*indexes({ allowStale = this.allowStale } = {}) {
|
|
362
|
+
if (this.size) {
|
|
363
|
+
for (let i = this.tail; true; ) {
|
|
364
|
+
if (!this.isValidIndex(i)) {
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
if (allowStale || !this.isStale(i)) {
|
|
368
|
+
yield i;
|
|
369
|
+
}
|
|
370
|
+
if (i === this.head) {
|
|
371
|
+
break;
|
|
372
|
+
} else {
|
|
373
|
+
i = this.prev[i];
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
*rindexes({ allowStale = this.allowStale } = {}) {
|
|
379
|
+
if (this.size) {
|
|
380
|
+
for (let i = this.head; true; ) {
|
|
381
|
+
if (!this.isValidIndex(i)) {
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
if (allowStale || !this.isStale(i)) {
|
|
385
|
+
yield i;
|
|
386
|
+
}
|
|
387
|
+
if (i === this.tail) {
|
|
388
|
+
break;
|
|
389
|
+
} else {
|
|
390
|
+
i = this.next[i];
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
isValidIndex(index) {
|
|
396
|
+
return index !== void 0 && this.keyMap.get(this.keyList[index]) === index;
|
|
397
|
+
}
|
|
398
|
+
*entries() {
|
|
399
|
+
for (const i of this.indexes()) {
|
|
400
|
+
if (this.valList[i] !== void 0 && this.keyList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
|
|
401
|
+
yield [this.keyList[i], this.valList[i]];
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
*rentries() {
|
|
406
|
+
for (const i of this.rindexes()) {
|
|
407
|
+
if (this.valList[i] !== void 0 && this.keyList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
|
|
408
|
+
yield [this.keyList[i], this.valList[i]];
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
*keys() {
|
|
413
|
+
for (const i of this.indexes()) {
|
|
414
|
+
if (this.keyList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
|
|
415
|
+
yield this.keyList[i];
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
*rkeys() {
|
|
420
|
+
for (const i of this.rindexes()) {
|
|
421
|
+
if (this.keyList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
|
|
422
|
+
yield this.keyList[i];
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
*values() {
|
|
427
|
+
for (const i of this.indexes()) {
|
|
428
|
+
if (this.valList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
|
|
429
|
+
yield this.valList[i];
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
*rvalues() {
|
|
434
|
+
for (const i of this.rindexes()) {
|
|
435
|
+
if (this.valList[i] !== void 0 && !this.isBackgroundFetch(this.valList[i])) {
|
|
436
|
+
yield this.valList[i];
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
[Symbol.iterator]() {
|
|
441
|
+
return this.entries();
|
|
442
|
+
}
|
|
443
|
+
find(fn, getOptions) {
|
|
444
|
+
for (const i of this.indexes()) {
|
|
445
|
+
const v = this.valList[i];
|
|
446
|
+
const value = this.isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
447
|
+
if (value === void 0)
|
|
448
|
+
continue;
|
|
449
|
+
if (fn(value, this.keyList[i], this)) {
|
|
450
|
+
return this.get(this.keyList[i], getOptions);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
forEach(fn, thisp = this) {
|
|
455
|
+
for (const i of this.indexes()) {
|
|
456
|
+
const v = this.valList[i];
|
|
457
|
+
const value = this.isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
458
|
+
if (value === void 0)
|
|
459
|
+
continue;
|
|
460
|
+
fn.call(thisp, value, this.keyList[i], this);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
rforEach(fn, thisp = this) {
|
|
464
|
+
for (const i of this.rindexes()) {
|
|
465
|
+
const v = this.valList[i];
|
|
466
|
+
const value = this.isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
467
|
+
if (value === void 0)
|
|
468
|
+
continue;
|
|
469
|
+
fn.call(thisp, value, this.keyList[i], this);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
get prune() {
|
|
473
|
+
deprecatedMethod("prune", "purgeStale");
|
|
474
|
+
return this.purgeStale;
|
|
475
|
+
}
|
|
476
|
+
purgeStale() {
|
|
477
|
+
let deleted = false;
|
|
478
|
+
for (const i of this.rindexes({ allowStale: true })) {
|
|
479
|
+
if (this.isStale(i)) {
|
|
480
|
+
this.delete(this.keyList[i]);
|
|
481
|
+
deleted = true;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
return deleted;
|
|
485
|
+
}
|
|
486
|
+
dump() {
|
|
487
|
+
const arr = [];
|
|
488
|
+
for (const i of this.indexes({ allowStale: true })) {
|
|
489
|
+
const key = this.keyList[i];
|
|
490
|
+
const v = this.valList[i];
|
|
491
|
+
const value = this.isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
492
|
+
if (value === void 0)
|
|
493
|
+
continue;
|
|
494
|
+
const entry = { value };
|
|
495
|
+
if (this.ttls) {
|
|
496
|
+
entry.ttl = this.ttls[i];
|
|
497
|
+
const age = perf.now() - this.starts[i];
|
|
498
|
+
entry.start = Math.floor(Date.now() - age);
|
|
499
|
+
}
|
|
500
|
+
if (this.sizes) {
|
|
501
|
+
entry.size = this.sizes[i];
|
|
502
|
+
}
|
|
503
|
+
arr.unshift([key, entry]);
|
|
504
|
+
}
|
|
505
|
+
return arr;
|
|
506
|
+
}
|
|
507
|
+
load(arr) {
|
|
508
|
+
this.clear();
|
|
509
|
+
for (const [key, entry] of arr) {
|
|
510
|
+
if (entry.start) {
|
|
511
|
+
const age = Date.now() - entry.start;
|
|
512
|
+
entry.start = perf.now() - age;
|
|
513
|
+
}
|
|
514
|
+
this.set(key, entry.value, entry);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
dispose(_v, _k, _reason) {
|
|
518
|
+
}
|
|
519
|
+
set(k, v, {
|
|
520
|
+
ttl = this.ttl,
|
|
521
|
+
start,
|
|
522
|
+
noDisposeOnSet = this.noDisposeOnSet,
|
|
523
|
+
size = 0,
|
|
524
|
+
sizeCalculation = this.sizeCalculation,
|
|
525
|
+
noUpdateTTL = this.noUpdateTTL,
|
|
526
|
+
status
|
|
527
|
+
} = {}) {
|
|
528
|
+
size = this.requireSize(k, v, size, sizeCalculation);
|
|
529
|
+
if (this.maxEntrySize && size > this.maxEntrySize) {
|
|
530
|
+
if (status) {
|
|
531
|
+
status.set = "miss";
|
|
532
|
+
status.maxEntrySizeExceeded = true;
|
|
533
|
+
}
|
|
534
|
+
this.delete(k);
|
|
535
|
+
return this;
|
|
536
|
+
}
|
|
537
|
+
let index = this.size === 0 ? void 0 : this.keyMap.get(k);
|
|
538
|
+
if (index === void 0) {
|
|
539
|
+
index = this.newIndex();
|
|
540
|
+
this.keyList[index] = k;
|
|
541
|
+
this.valList[index] = v;
|
|
542
|
+
this.keyMap.set(k, index);
|
|
543
|
+
this.next[this.tail] = index;
|
|
544
|
+
this.prev[index] = this.tail;
|
|
545
|
+
this.tail = index;
|
|
546
|
+
this.size++;
|
|
547
|
+
this.addItemSize(index, size, status);
|
|
548
|
+
if (status) {
|
|
549
|
+
status.set = "add";
|
|
550
|
+
}
|
|
551
|
+
noUpdateTTL = false;
|
|
552
|
+
} else {
|
|
553
|
+
this.moveToTail(index);
|
|
554
|
+
const oldVal = this.valList[index];
|
|
555
|
+
if (v !== oldVal) {
|
|
556
|
+
if (this.isBackgroundFetch(oldVal)) {
|
|
557
|
+
oldVal.__abortController.abort(new Error("replaced"));
|
|
558
|
+
} else {
|
|
559
|
+
if (!noDisposeOnSet) {
|
|
560
|
+
this.dispose(oldVal, k, "set");
|
|
561
|
+
if (this.disposeAfter) {
|
|
562
|
+
this.disposed.push([oldVal, k, "set"]);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
this.removeItemSize(index);
|
|
567
|
+
this.valList[index] = v;
|
|
568
|
+
this.addItemSize(index, size, status);
|
|
569
|
+
if (status) {
|
|
570
|
+
status.set = "replace";
|
|
571
|
+
const oldValue = oldVal && this.isBackgroundFetch(oldVal) ? oldVal.__staleWhileFetching : oldVal;
|
|
572
|
+
if (oldValue !== void 0)
|
|
573
|
+
status.oldValue = oldValue;
|
|
574
|
+
}
|
|
575
|
+
} else if (status) {
|
|
576
|
+
status.set = "update";
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if (ttl !== 0 && this.ttl === 0 && !this.ttls) {
|
|
580
|
+
this.initializeTTLTracking();
|
|
581
|
+
}
|
|
582
|
+
if (!noUpdateTTL) {
|
|
583
|
+
this.setItemTTL(index, ttl, start);
|
|
584
|
+
}
|
|
585
|
+
this.statusTTL(status, index);
|
|
586
|
+
if (this.disposeAfter) {
|
|
587
|
+
while (this.disposed.length) {
|
|
588
|
+
this.disposeAfter(...this.disposed.shift());
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
return this;
|
|
592
|
+
}
|
|
593
|
+
newIndex() {
|
|
594
|
+
if (this.size === 0) {
|
|
595
|
+
return this.tail;
|
|
596
|
+
}
|
|
597
|
+
if (this.size === this.max && this.max !== 0) {
|
|
598
|
+
return this.evict(false);
|
|
599
|
+
}
|
|
600
|
+
if (this.free.length !== 0) {
|
|
601
|
+
return this.free.pop();
|
|
602
|
+
}
|
|
603
|
+
return this.initialFill++;
|
|
604
|
+
}
|
|
605
|
+
pop() {
|
|
606
|
+
if (this.size) {
|
|
607
|
+
const val = this.valList[this.head];
|
|
608
|
+
this.evict(true);
|
|
609
|
+
return val;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
evict(free) {
|
|
613
|
+
const head = this.head;
|
|
614
|
+
const k = this.keyList[head];
|
|
615
|
+
const v = this.valList[head];
|
|
616
|
+
if (this.isBackgroundFetch(v)) {
|
|
617
|
+
v.__abortController.abort(new Error("evicted"));
|
|
618
|
+
} else {
|
|
619
|
+
this.dispose(v, k, "evict");
|
|
620
|
+
if (this.disposeAfter) {
|
|
621
|
+
this.disposed.push([v, k, "evict"]);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
this.removeItemSize(head);
|
|
625
|
+
if (free) {
|
|
626
|
+
this.keyList[head] = null;
|
|
627
|
+
this.valList[head] = null;
|
|
628
|
+
this.free.push(head);
|
|
629
|
+
}
|
|
630
|
+
this.head = this.next[head];
|
|
631
|
+
this.keyMap.delete(k);
|
|
632
|
+
this.size--;
|
|
633
|
+
return head;
|
|
634
|
+
}
|
|
635
|
+
has(k, { updateAgeOnHas = this.updateAgeOnHas, status } = {}) {
|
|
636
|
+
const index = this.keyMap.get(k);
|
|
637
|
+
if (index !== void 0) {
|
|
638
|
+
if (!this.isStale(index)) {
|
|
639
|
+
if (updateAgeOnHas) {
|
|
640
|
+
this.updateItemAge(index);
|
|
641
|
+
}
|
|
642
|
+
if (status)
|
|
643
|
+
status.has = "hit";
|
|
644
|
+
this.statusTTL(status, index);
|
|
645
|
+
return true;
|
|
646
|
+
} else if (status) {
|
|
647
|
+
status.has = "stale";
|
|
648
|
+
this.statusTTL(status, index);
|
|
649
|
+
}
|
|
650
|
+
} else if (status) {
|
|
651
|
+
status.has = "miss";
|
|
652
|
+
}
|
|
653
|
+
return false;
|
|
654
|
+
}
|
|
655
|
+
// like get(), but without any LRU updating or TTL expiration
|
|
656
|
+
peek(k, { allowStale = this.allowStale } = {}) {
|
|
657
|
+
const index = this.keyMap.get(k);
|
|
658
|
+
if (index !== void 0 && (allowStale || !this.isStale(index))) {
|
|
659
|
+
const v = this.valList[index];
|
|
660
|
+
return this.isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
backgroundFetch(k, index, options, context) {
|
|
664
|
+
const v = index === void 0 ? void 0 : this.valList[index];
|
|
665
|
+
if (this.isBackgroundFetch(v)) {
|
|
666
|
+
return v;
|
|
667
|
+
}
|
|
668
|
+
const ac = new AC();
|
|
669
|
+
if (options.signal) {
|
|
670
|
+
options.signal.addEventListener(
|
|
671
|
+
"abort",
|
|
672
|
+
() => ac.abort(options.signal.reason)
|
|
673
|
+
);
|
|
674
|
+
}
|
|
675
|
+
const fetchOpts = {
|
|
676
|
+
signal: ac.signal,
|
|
677
|
+
options,
|
|
678
|
+
context
|
|
679
|
+
};
|
|
680
|
+
const cb = (v2, updateCache = false) => {
|
|
681
|
+
const { aborted } = ac.signal;
|
|
682
|
+
const ignoreAbort = options.ignoreFetchAbort && v2 !== void 0;
|
|
683
|
+
if (options.status) {
|
|
684
|
+
if (aborted && !updateCache) {
|
|
685
|
+
options.status.fetchAborted = true;
|
|
686
|
+
options.status.fetchError = ac.signal.reason;
|
|
687
|
+
if (ignoreAbort)
|
|
688
|
+
options.status.fetchAbortIgnored = true;
|
|
689
|
+
} else {
|
|
690
|
+
options.status.fetchResolved = true;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
if (aborted && !ignoreAbort && !updateCache) {
|
|
694
|
+
return fetchFail(ac.signal.reason);
|
|
695
|
+
}
|
|
696
|
+
if (this.valList[index] === p) {
|
|
697
|
+
if (v2 === void 0) {
|
|
698
|
+
if (p.__staleWhileFetching) {
|
|
699
|
+
this.valList[index] = p.__staleWhileFetching;
|
|
700
|
+
} else {
|
|
701
|
+
this.delete(k);
|
|
702
|
+
}
|
|
703
|
+
} else {
|
|
704
|
+
if (options.status)
|
|
705
|
+
options.status.fetchUpdated = true;
|
|
706
|
+
this.set(k, v2, fetchOpts.options);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
return v2;
|
|
710
|
+
};
|
|
711
|
+
const eb = (er) => {
|
|
712
|
+
if (options.status) {
|
|
713
|
+
options.status.fetchRejected = true;
|
|
714
|
+
options.status.fetchError = er;
|
|
715
|
+
}
|
|
716
|
+
return fetchFail(er);
|
|
717
|
+
};
|
|
718
|
+
const fetchFail = (er) => {
|
|
719
|
+
const { aborted } = ac.signal;
|
|
720
|
+
const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;
|
|
721
|
+
const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;
|
|
722
|
+
const noDelete = allowStale || options.noDeleteOnFetchRejection;
|
|
723
|
+
if (this.valList[index] === p) {
|
|
724
|
+
const del = !noDelete || p.__staleWhileFetching === void 0;
|
|
725
|
+
if (del) {
|
|
726
|
+
this.delete(k);
|
|
727
|
+
} else if (!allowStaleAborted) {
|
|
728
|
+
this.valList[index] = p.__staleWhileFetching;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
if (allowStale) {
|
|
732
|
+
if (options.status && p.__staleWhileFetching !== void 0) {
|
|
733
|
+
options.status.returnedStale = true;
|
|
734
|
+
}
|
|
735
|
+
return p.__staleWhileFetching;
|
|
736
|
+
} else if (p.__returned === p) {
|
|
737
|
+
throw er;
|
|
738
|
+
}
|
|
739
|
+
};
|
|
740
|
+
const pcall = (res, rej) => {
|
|
741
|
+
this.fetchMethod(k, v, fetchOpts).then((v2) => res(v2), rej);
|
|
742
|
+
ac.signal.addEventListener("abort", () => {
|
|
743
|
+
if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {
|
|
744
|
+
res();
|
|
745
|
+
if (options.allowStaleOnFetchAbort) {
|
|
746
|
+
res = (v2) => cb(v2, true);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
};
|
|
751
|
+
if (options.status)
|
|
752
|
+
options.status.fetchDispatched = true;
|
|
753
|
+
const p = new Promise(pcall).then(cb, eb);
|
|
754
|
+
p.__abortController = ac;
|
|
755
|
+
p.__staleWhileFetching = v;
|
|
756
|
+
p.__returned = null;
|
|
757
|
+
if (index === void 0) {
|
|
758
|
+
this.set(k, p, { ...fetchOpts.options, status: void 0 });
|
|
759
|
+
index = this.keyMap.get(k);
|
|
760
|
+
} else {
|
|
761
|
+
this.valList[index] = p;
|
|
762
|
+
}
|
|
763
|
+
return p;
|
|
764
|
+
}
|
|
765
|
+
isBackgroundFetch(p) {
|
|
766
|
+
return p && typeof p === "object" && typeof p.then === "function" && Object.prototype.hasOwnProperty.call(
|
|
767
|
+
p,
|
|
768
|
+
"__staleWhileFetching"
|
|
769
|
+
) && Object.prototype.hasOwnProperty.call(p, "__returned") && (p.__returned === p || p.__returned === null);
|
|
770
|
+
}
|
|
771
|
+
// this takes the union of get() and set() opts, because it does both
|
|
772
|
+
async fetch(k, {
|
|
773
|
+
// get options
|
|
774
|
+
allowStale = this.allowStale,
|
|
775
|
+
updateAgeOnGet = this.updateAgeOnGet,
|
|
776
|
+
noDeleteOnStaleGet = this.noDeleteOnStaleGet,
|
|
777
|
+
// set options
|
|
778
|
+
ttl = this.ttl,
|
|
779
|
+
noDisposeOnSet = this.noDisposeOnSet,
|
|
780
|
+
size = 0,
|
|
781
|
+
sizeCalculation = this.sizeCalculation,
|
|
782
|
+
noUpdateTTL = this.noUpdateTTL,
|
|
783
|
+
// fetch exclusive options
|
|
784
|
+
noDeleteOnFetchRejection = this.noDeleteOnFetchRejection,
|
|
785
|
+
allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
|
|
786
|
+
ignoreFetchAbort = this.ignoreFetchAbort,
|
|
787
|
+
allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
|
|
788
|
+
fetchContext = this.fetchContext,
|
|
789
|
+
forceRefresh = false,
|
|
790
|
+
status,
|
|
791
|
+
signal
|
|
792
|
+
} = {}) {
|
|
793
|
+
if (!this.fetchMethod) {
|
|
794
|
+
if (status)
|
|
795
|
+
status.fetch = "get";
|
|
796
|
+
return this.get(k, {
|
|
797
|
+
allowStale,
|
|
798
|
+
updateAgeOnGet,
|
|
799
|
+
noDeleteOnStaleGet,
|
|
800
|
+
status
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
const options = {
|
|
804
|
+
allowStale,
|
|
805
|
+
updateAgeOnGet,
|
|
806
|
+
noDeleteOnStaleGet,
|
|
807
|
+
ttl,
|
|
808
|
+
noDisposeOnSet,
|
|
809
|
+
size,
|
|
810
|
+
sizeCalculation,
|
|
811
|
+
noUpdateTTL,
|
|
812
|
+
noDeleteOnFetchRejection,
|
|
813
|
+
allowStaleOnFetchRejection,
|
|
814
|
+
allowStaleOnFetchAbort,
|
|
815
|
+
ignoreFetchAbort,
|
|
816
|
+
status,
|
|
817
|
+
signal
|
|
818
|
+
};
|
|
819
|
+
let index = this.keyMap.get(k);
|
|
820
|
+
if (index === void 0) {
|
|
821
|
+
if (status)
|
|
822
|
+
status.fetch = "miss";
|
|
823
|
+
const p = this.backgroundFetch(k, index, options, fetchContext);
|
|
824
|
+
return p.__returned = p;
|
|
825
|
+
} else {
|
|
826
|
+
const v = this.valList[index];
|
|
827
|
+
if (this.isBackgroundFetch(v)) {
|
|
828
|
+
const stale = allowStale && v.__staleWhileFetching !== void 0;
|
|
829
|
+
if (status) {
|
|
830
|
+
status.fetch = "inflight";
|
|
831
|
+
if (stale)
|
|
832
|
+
status.returnedStale = true;
|
|
833
|
+
}
|
|
834
|
+
return stale ? v.__staleWhileFetching : v.__returned = v;
|
|
835
|
+
}
|
|
836
|
+
const isStale = this.isStale(index);
|
|
837
|
+
if (!forceRefresh && !isStale) {
|
|
838
|
+
if (status)
|
|
839
|
+
status.fetch = "hit";
|
|
840
|
+
this.moveToTail(index);
|
|
841
|
+
if (updateAgeOnGet) {
|
|
842
|
+
this.updateItemAge(index);
|
|
843
|
+
}
|
|
844
|
+
this.statusTTL(status, index);
|
|
845
|
+
return v;
|
|
846
|
+
}
|
|
847
|
+
const p = this.backgroundFetch(k, index, options, fetchContext);
|
|
848
|
+
const hasStale = p.__staleWhileFetching !== void 0;
|
|
849
|
+
const staleVal = hasStale && allowStale;
|
|
850
|
+
if (status) {
|
|
851
|
+
status.fetch = hasStale && isStale ? "stale" : "refresh";
|
|
852
|
+
if (staleVal && isStale)
|
|
853
|
+
status.returnedStale = true;
|
|
854
|
+
}
|
|
855
|
+
return staleVal ? p.__staleWhileFetching : p.__returned = p;
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
get(k, {
|
|
859
|
+
allowStale = this.allowStale,
|
|
860
|
+
updateAgeOnGet = this.updateAgeOnGet,
|
|
861
|
+
noDeleteOnStaleGet = this.noDeleteOnStaleGet,
|
|
862
|
+
status
|
|
863
|
+
} = {}) {
|
|
864
|
+
const index = this.keyMap.get(k);
|
|
865
|
+
if (index !== void 0) {
|
|
866
|
+
const value = this.valList[index];
|
|
867
|
+
const fetching = this.isBackgroundFetch(value);
|
|
868
|
+
this.statusTTL(status, index);
|
|
869
|
+
if (this.isStale(index)) {
|
|
870
|
+
if (status)
|
|
871
|
+
status.get = "stale";
|
|
872
|
+
if (!fetching) {
|
|
873
|
+
if (!noDeleteOnStaleGet) {
|
|
874
|
+
this.delete(k);
|
|
875
|
+
}
|
|
876
|
+
if (status)
|
|
877
|
+
status.returnedStale = allowStale;
|
|
878
|
+
return allowStale ? value : void 0;
|
|
879
|
+
} else {
|
|
880
|
+
if (status) {
|
|
881
|
+
status.returnedStale = allowStale && value.__staleWhileFetching !== void 0;
|
|
882
|
+
}
|
|
883
|
+
return allowStale ? value.__staleWhileFetching : void 0;
|
|
884
|
+
}
|
|
885
|
+
} else {
|
|
886
|
+
if (status)
|
|
887
|
+
status.get = "hit";
|
|
888
|
+
if (fetching) {
|
|
889
|
+
return value.__staleWhileFetching;
|
|
890
|
+
}
|
|
891
|
+
this.moveToTail(index);
|
|
892
|
+
if (updateAgeOnGet) {
|
|
893
|
+
this.updateItemAge(index);
|
|
894
|
+
}
|
|
895
|
+
return value;
|
|
896
|
+
}
|
|
897
|
+
} else if (status) {
|
|
898
|
+
status.get = "miss";
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
connect(p, n) {
|
|
902
|
+
this.prev[n] = p;
|
|
903
|
+
this.next[p] = n;
|
|
904
|
+
}
|
|
905
|
+
moveToTail(index) {
|
|
906
|
+
if (index !== this.tail) {
|
|
907
|
+
if (index === this.head) {
|
|
908
|
+
this.head = this.next[index];
|
|
909
|
+
} else {
|
|
910
|
+
this.connect(this.prev[index], this.next[index]);
|
|
911
|
+
}
|
|
912
|
+
this.connect(this.tail, index);
|
|
913
|
+
this.tail = index;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
get del() {
|
|
917
|
+
deprecatedMethod("del", "delete");
|
|
918
|
+
return this.delete;
|
|
919
|
+
}
|
|
920
|
+
delete(k) {
|
|
921
|
+
let deleted = false;
|
|
922
|
+
if (this.size !== 0) {
|
|
923
|
+
const index = this.keyMap.get(k);
|
|
924
|
+
if (index !== void 0) {
|
|
925
|
+
deleted = true;
|
|
926
|
+
if (this.size === 1) {
|
|
927
|
+
this.clear();
|
|
928
|
+
} else {
|
|
929
|
+
this.removeItemSize(index);
|
|
930
|
+
const v = this.valList[index];
|
|
931
|
+
if (this.isBackgroundFetch(v)) {
|
|
932
|
+
v.__abortController.abort(new Error("deleted"));
|
|
933
|
+
} else {
|
|
934
|
+
this.dispose(v, k, "delete");
|
|
935
|
+
if (this.disposeAfter) {
|
|
936
|
+
this.disposed.push([v, k, "delete"]);
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
this.keyMap.delete(k);
|
|
940
|
+
this.keyList[index] = null;
|
|
941
|
+
this.valList[index] = null;
|
|
942
|
+
if (index === this.tail) {
|
|
943
|
+
this.tail = this.prev[index];
|
|
944
|
+
} else if (index === this.head) {
|
|
945
|
+
this.head = this.next[index];
|
|
946
|
+
} else {
|
|
947
|
+
this.next[this.prev[index]] = this.next[index];
|
|
948
|
+
this.prev[this.next[index]] = this.prev[index];
|
|
949
|
+
}
|
|
950
|
+
this.size--;
|
|
951
|
+
this.free.push(index);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
if (this.disposed) {
|
|
956
|
+
while (this.disposed.length) {
|
|
957
|
+
this.disposeAfter(...this.disposed.shift());
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
return deleted;
|
|
961
|
+
}
|
|
962
|
+
clear() {
|
|
963
|
+
for (const index of this.rindexes({ allowStale: true })) {
|
|
964
|
+
const v = this.valList[index];
|
|
965
|
+
if (this.isBackgroundFetch(v)) {
|
|
966
|
+
v.__abortController.abort(new Error("deleted"));
|
|
967
|
+
} else {
|
|
968
|
+
const k = this.keyList[index];
|
|
969
|
+
this.dispose(v, k, "delete");
|
|
970
|
+
if (this.disposeAfter) {
|
|
971
|
+
this.disposed.push([v, k, "delete"]);
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
this.keyMap.clear();
|
|
976
|
+
this.valList.fill(null);
|
|
977
|
+
this.keyList.fill(null);
|
|
978
|
+
if (this.ttls) {
|
|
979
|
+
this.ttls.fill(0);
|
|
980
|
+
this.starts.fill(0);
|
|
981
|
+
}
|
|
982
|
+
if (this.sizes) {
|
|
983
|
+
this.sizes.fill(0);
|
|
984
|
+
}
|
|
985
|
+
this.head = 0;
|
|
986
|
+
this.tail = 0;
|
|
987
|
+
this.initialFill = 1;
|
|
988
|
+
this.free.length = 0;
|
|
989
|
+
this.calculatedSize = 0;
|
|
990
|
+
this.size = 0;
|
|
991
|
+
if (this.disposed) {
|
|
992
|
+
while (this.disposed.length) {
|
|
993
|
+
this.disposeAfter(...this.disposed.shift());
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
get reset() {
|
|
998
|
+
deprecatedMethod("reset", "clear");
|
|
999
|
+
return this.clear;
|
|
1000
|
+
}
|
|
1001
|
+
get length() {
|
|
1002
|
+
deprecatedProperty("length", "size");
|
|
1003
|
+
return this.size;
|
|
1004
|
+
}
|
|
1005
|
+
static get AbortController() {
|
|
1006
|
+
return AC;
|
|
1007
|
+
}
|
|
1008
|
+
static get AbortSignal() {
|
|
1009
|
+
return AS;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
var lruCache = LRUCache;
|
|
1013
|
+
module.exports = lruCache;
|
|
1014
|
+
//# sourceMappingURL=index.cjs.map
|