@slicemachine/manager 0.0.0-alpha.dev-new-release-process.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 +85 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.cjs +68 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.js +68 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/CachedKeyDecoder.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.cjs +43 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.js +43 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/DecodeError.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.cjs +804 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.js +804 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Decoder.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.cjs +354 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.js +354 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/Encoder.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.cjs +14 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.js +14 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtData.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.cjs +65 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.js +65 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/ExtensionCodec.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/decode.cjs +14 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/decode.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/decode.js +14 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/decode.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/encode.cjs +13 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/encode.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/encode.js +13 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/encode.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.cjs +91 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.js +91 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/timestamp.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.cjs +31 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.js +31 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/int.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.cjs +7 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.js +7 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/prettyByte.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.cjs +23 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.js +23 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/typedArrays.js.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.cjs +132 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.cjs.map +1 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.js +132 -0
- package/dist/_node_modules/@msgpack/msgpack/dist.es5_esm/utils/utf8.js.map +1 -0
- package/dist/_node_modules/common-tags/es/TemplateTag/TemplateTag.cjs +135 -0
- package/dist/_node_modules/common-tags/es/TemplateTag/TemplateTag.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/TemplateTag/TemplateTag.js +136 -0
- package/dist/_node_modules/common-tags/es/TemplateTag/TemplateTag.js.map +1 -0
- package/dist/_node_modules/common-tags/es/commaLists/commaLists.cjs +7 -0
- package/dist/_node_modules/common-tags/es/commaLists/commaLists.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/commaLists/commaLists.js +6 -0
- package/dist/_node_modules/common-tags/es/commaLists/commaLists.js.map +1 -0
- package/dist/_node_modules/common-tags/es/commaListsAnd/commaListsAnd.cjs +7 -0
- package/dist/_node_modules/common-tags/es/commaListsAnd/commaListsAnd.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/commaListsAnd/commaListsAnd.js +6 -0
- package/dist/_node_modules/common-tags/es/commaListsAnd/commaListsAnd.js.map +1 -0
- package/dist/_node_modules/common-tags/es/commaListsOr/commaListsOr.cjs +7 -0
- package/dist/_node_modules/common-tags/es/commaListsOr/commaListsOr.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/commaListsOr/commaListsOr.js +6 -0
- package/dist/_node_modules/common-tags/es/commaListsOr/commaListsOr.js.map +1 -0
- package/dist/_node_modules/common-tags/es/html/html.cjs +9 -0
- package/dist/_node_modules/common-tags/es/html/html.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/html/html.js +8 -0
- package/dist/_node_modules/common-tags/es/html/html.js.map +1 -0
- package/dist/_node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.cjs +32 -0
- package/dist/_node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.js +33 -0
- package/dist/_node_modules/common-tags/es/inlineArrayTransformer/inlineArrayTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/inlineLists/inlineLists.cjs +7 -0
- package/dist/_node_modules/common-tags/es/inlineLists/inlineLists.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/inlineLists/inlineLists.js +6 -0
- package/dist/_node_modules/common-tags/es/inlineLists/inlineLists.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLine/oneLine.cjs +6 -0
- package/dist/_node_modules/common-tags/es/oneLine/oneLine.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLine/oneLine.js +5 -0
- package/dist/_node_modules/common-tags/es/oneLine/oneLine.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.cjs +7 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.js +6 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaLists/oneLineCommaLists.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.cjs +7 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.js +6 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsAnd/oneLineCommaListsAnd.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.cjs +7 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.js +6 -0
- package/dist/_node_modules/common-tags/es/oneLineCommaListsOr/oneLineCommaListsOr.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.cjs +7 -0
- package/dist/_node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.js +6 -0
- package/dist/_node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.js.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineTrim/oneLineTrim.cjs +6 -0
- package/dist/_node_modules/common-tags/es/oneLineTrim/oneLineTrim.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/oneLineTrim/oneLineTrim.js +5 -0
- package/dist/_node_modules/common-tags/es/oneLineTrim/oneLineTrim.js.map +1 -0
- package/dist/_node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.cjs +19 -0
- package/dist/_node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.js +20 -0
- package/dist/_node_modules/common-tags/es/removeNonPrintingValuesTransformer/removeNonPrintingValuesTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.cjs +13 -0
- package/dist/_node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.js +14 -0
- package/dist/_node_modules/common-tags/es/replaceResultTransformer/replaceResultTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.cjs +17 -0
- package/dist/_node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.js +18 -0
- package/dist/_node_modules/common-tags/es/replaceSubstitutionTransformer/replaceSubstitutionTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/safeHtml/safeHtml.cjs +9 -0
- package/dist/_node_modules/common-tags/es/safeHtml/safeHtml.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/safeHtml/safeHtml.js +8 -0
- package/dist/_node_modules/common-tags/es/safeHtml/safeHtml.js.map +1 -0
- package/dist/_node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.cjs +17 -0
- package/dist/_node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.js +18 -0
- package/dist/_node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.cjs +8 -0
- package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.js +9 -0
- package/dist/_node_modules/common-tags/es/stripIndent/stripIndent.js.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.cjs +35 -0
- package/dist/_node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.js +36 -0
- package/dist/_node_modules/common-tags/es/stripIndentTransformer/stripIndentTransformer.js.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndents/stripIndents.cjs +6 -0
- package/dist/_node_modules/common-tags/es/stripIndents/stripIndents.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/stripIndents/stripIndents.js +5 -0
- package/dist/_node_modules/common-tags/es/stripIndents/stripIndents.js.map +1 -0
- package/dist/_node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.cjs +21 -0
- package/dist/_node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.cjs.map +1 -0
- package/dist/_node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.js +22 -0
- package/dist/_node_modules/common-tags/es/trimResultTransformer/trimResultTransformer.js.map +1 -0
- package/dist/_node_modules/cross-spawn/index.cjs +30 -0
- package/dist/_node_modules/cross-spawn/index.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/index.js +31 -0
- package/dist/_node_modules/cross-spawn/index.js.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/enoent.cjs +47 -0
- package/dist/_node_modules/cross-spawn/lib/enoent.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/enoent.js +47 -0
- package/dist/_node_modules/cross-spawn/lib/enoent.js.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/parse.cjs +64 -0
- package/dist/_node_modules/cross-spawn/lib/parse.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/parse.js +64 -0
- package/dist/_node_modules/cross-spawn/lib/parse.js.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/escape.cjs +22 -0
- package/dist/_node_modules/cross-spawn/lib/util/escape.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/escape.js +23 -0
- package/dist/_node_modules/cross-spawn/lib/util/escape.js.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs +21 -0
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.js +21 -0
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.js.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs +42 -0
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +1 -0
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js +42 -0
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js.map +1 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs +41 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.cjs.map +1 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.js +41 -0
- package/dist/_node_modules/data-uri-to-buffer/dist/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/get-stream/buffer-stream.cjs +43 -0
- package/dist/_node_modules/execa/_node_modules/get-stream/buffer-stream.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/get-stream/buffer-stream.js +43 -0
- package/dist/_node_modules/execa/_node_modules/get-stream/buffer-stream.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/get-stream/index.cjs +59 -0
- package/dist/_node_modules/execa/_node_modules/get-stream/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/get-stream/index.js +60 -0
- package/dist/_node_modules/execa/_node_modules/get-stream/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.cjs +275 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.js +275 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.cjs +53 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.js +53 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.cjs +18 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.js +18 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.cjs +27 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.js +27 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/is-stream/index.cjs +11 -0
- package/dist/_node_modules/execa/_node_modules/is-stream/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/is-stream/index.js +11 -0
- package/dist/_node_modules/execa/_node_modules/is-stream/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/mimic-fn/index.cjs +46 -0
- package/dist/_node_modules/execa/_node_modules/mimic-fn/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/mimic-fn/index.js +47 -0
- package/dist/_node_modules/execa/_node_modules/mimic-fn/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/npm-run-path/index.cjs +34 -0
- package/dist/_node_modules/execa/_node_modules/npm-run-path/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/npm-run-path/index.js +34 -0
- package/dist/_node_modules/execa/_node_modules/npm-run-path/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/onetime/index.cjs +32 -0
- package/dist/_node_modules/execa/_node_modules/onetime/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/onetime/index.js +33 -0
- package/dist/_node_modules/execa/_node_modules/onetime/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/path-key/index.cjs +13 -0
- package/dist/_node_modules/execa/_node_modules/path-key/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/path-key/index.js +14 -0
- package/dist/_node_modules/execa/_node_modules/path-key/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.cjs +14 -0
- package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.js +15 -0
- package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.js.map +1 -0
- package/dist/_node_modules/execa/index.cjs +147 -0
- package/dist/_node_modules/execa/index.cjs.map +1 -0
- package/dist/_node_modules/execa/index.js +147 -0
- package/dist/_node_modules/execa/index.js.map +1 -0
- package/dist/_node_modules/execa/lib/command.cjs +37 -0
- package/dist/_node_modules/execa/lib/command.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/command.js +37 -0
- package/dist/_node_modules/execa/lib/command.js.map +1 -0
- package/dist/_node_modules/execa/lib/error.cjs +73 -0
- package/dist/_node_modules/execa/lib/error.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/error.js +73 -0
- package/dist/_node_modules/execa/lib/error.js.map +1 -0
- package/dist/_node_modules/execa/lib/kill.cjs +80 -0
- package/dist/_node_modules/execa/lib/kill.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/kill.js +80 -0
- package/dist/_node_modules/execa/lib/kill.js.map +1 -0
- package/dist/_node_modules/execa/lib/pipe.cjs +37 -0
- package/dist/_node_modules/execa/lib/pipe.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/pipe.js +37 -0
- package/dist/_node_modules/execa/lib/pipe.js.map +1 -0
- package/dist/_node_modules/execa/lib/promise.cjs +30 -0
- package/dist/_node_modules/execa/lib/promise.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/promise.js +30 -0
- package/dist/_node_modules/execa/lib/promise.js.map +1 -0
- package/dist/_node_modules/execa/lib/stdio.cjs +26 -0
- package/dist/_node_modules/execa/lib/stdio.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/stdio.js +26 -0
- package/dist/_node_modules/execa/lib/stdio.js.map +1 -0
- package/dist/_node_modules/execa/lib/stream.cjs +81 -0
- package/dist/_node_modules/execa/lib/stream.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/stream.js +81 -0
- package/dist/_node_modules/execa/lib/stream.js.map +1 -0
- package/dist/_node_modules/execa/lib/verbose.cjs +20 -0
- package/dist/_node_modules/execa/lib/verbose.cjs.map +1 -0
- package/dist/_node_modules/execa/lib/verbose.js +20 -0
- package/dist/_node_modules/execa/lib/verbose.js.map +1 -0
- package/dist/_node_modules/fetch-blob/file.cjs +61 -0
- package/dist/_node_modules/fetch-blob/file.cjs.map +1 -0
- package/dist/_node_modules/fetch-blob/file.js +61 -0
- package/dist/_node_modules/fetch-blob/file.js.map +1 -0
- package/dist/_node_modules/fetch-blob/index.cjs +223 -0
- package/dist/_node_modules/fetch-blob/index.cjs.map +1 -0
- package/dist/_node_modules/fetch-blob/index.js +223 -0
- package/dist/_node_modules/fetch-blob/index.js.map +1 -0
- package/dist/_node_modules/fetch-blob/streams.cjs +43 -0
- package/dist/_node_modules/fetch-blob/streams.cjs.map +1 -0
- package/dist/_node_modules/fetch-blob/streams.js +42 -0
- package/dist/_node_modules/fetch-blob/streams.js.map +1 -0
- package/dist/_node_modules/file-type/core.cjs +1234 -0
- package/dist/_node_modules/file-type/core.cjs.map +1 -0
- package/dist/_node_modules/file-type/core.js +1234 -0
- package/dist/_node_modules/file-type/core.js.map +1 -0
- package/dist/_node_modules/file-type/supported.cjs +308 -0
- package/dist/_node_modules/file-type/supported.cjs.map +1 -0
- package/dist/_node_modules/file-type/supported.js +308 -0
- package/dist/_node_modules/file-type/supported.js.map +1 -0
- package/dist/_node_modules/file-type/util.cjs +27 -0
- package/dist/_node_modules/file-type/util.cjs.map +1 -0
- package/dist/_node_modules/file-type/util.js +27 -0
- package/dist/_node_modules/file-type/util.js.map +1 -0
- package/dist/_node_modules/formdata-polyfill/esm.min.cjs +116 -0
- package/dist/_node_modules/formdata-polyfill/esm.min.cjs.map +1 -0
- package/dist/_node_modules/formdata-polyfill/esm.min.js +116 -0
- package/dist/_node_modules/formdata-polyfill/esm.min.js.map +1 -0
- package/dist/_node_modules/fp-ts/es6/Either.cjs +18 -0
- package/dist/_node_modules/fp-ts/es6/Either.cjs.map +1 -0
- package/dist/_node_modules/fp-ts/es6/Either.js +18 -0
- package/dist/_node_modules/fp-ts/es6/Either.js.map +1 -0
- package/dist/_node_modules/fp-ts/es6/function.cjs +44 -0
- package/dist/_node_modules/fp-ts/es6/function.cjs.map +1 -0
- package/dist/_node_modules/fp-ts/es6/function.js +44 -0
- package/dist/_node_modules/fp-ts/es6/function.js.map +1 -0
- package/dist/_node_modules/fp-ts/es6/internal.cjs +18 -0
- package/dist/_node_modules/fp-ts/es6/internal.cjs.map +1 -0
- package/dist/_node_modules/fp-ts/es6/internal.js +18 -0
- package/dist/_node_modules/fp-ts/es6/internal.js.map +1 -0
- package/dist/_node_modules/get-port/index.cjs +113 -0
- package/dist/_node_modules/get-port/index.cjs.map +1 -0
- package/dist/_node_modules/get-port/index.js +114 -0
- package/dist/_node_modules/get-port/index.js.map +1 -0
- package/dist/_node_modules/isexe/index.cjs +56 -0
- package/dist/_node_modules/isexe/index.cjs.map +1 -0
- package/dist/_node_modules/isexe/index.js +56 -0
- package/dist/_node_modules/isexe/index.js.map +1 -0
- package/dist/_node_modules/isexe/mode.cjs +40 -0
- package/dist/_node_modules/isexe/mode.cjs.map +1 -0
- package/dist/_node_modules/isexe/mode.js +40 -0
- package/dist/_node_modules/isexe/mode.js.map +1 -0
- package/dist/_node_modules/isexe/windows.cjs +47 -0
- package/dist/_node_modules/isexe/windows.cjs.map +1 -0
- package/dist/_node_modules/isexe/windows.js +47 -0
- package/dist/_node_modules/isexe/windows.js.map +1 -0
- package/dist/_node_modules/merge-stream/index.cjs +39 -0
- package/dist/_node_modules/merge-stream/index.cjs.map +1 -0
- package/dist/_node_modules/merge-stream/index.js +40 -0
- package/dist/_node_modules/merge-stream/index.js.map +1 -0
- package/dist/_node_modules/node-domexception/index.cjs +11 -0
- package/dist/_node_modules/node-domexception/index.cjs.map +1 -0
- package/dist/_node_modules/node-domexception/index.js +10 -0
- package/dist/_node_modules/node-domexception/index.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/body.cjs +262 -0
- package/dist/_node_modules/node-fetch/src/body.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/body.js +262 -0
- package/dist/_node_modules/node-fetch/src/body.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs +10 -0
- package/dist/_node_modules/node-fetch/src/errors/abort-error.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/abort-error.js +10 -0
- package/dist/_node_modules/node-fetch/src/errors/abort-error.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/base.cjs +17 -0
- package/dist/_node_modules/node-fetch/src/errors/base.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/base.js +17 -0
- package/dist/_node_modules/node-fetch/src/errors/base.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs +19 -0
- package/dist/_node_modules/node-fetch/src/errors/fetch-error.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/errors/fetch-error.js +19 -0
- package/dist/_node_modules/node-fetch/src/errors/fetch-error.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/headers.cjs +190 -0
- package/dist/_node_modules/node-fetch/src/headers.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/headers.js +190 -0
- package/dist/_node_modules/node-fetch/src/headers.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/index.cjs +292 -0
- package/dist/_node_modules/node-fetch/src/index.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/index.js +292 -0
- package/dist/_node_modules/node-fetch/src/index.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/request.cjs +206 -0
- package/dist/_node_modules/node-fetch/src/request.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/request.js +206 -0
- package/dist/_node_modules/node-fetch/src/request.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/response.cjs +122 -0
- package/dist/_node_modules/node-fetch/src/response.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/response.js +123 -0
- package/dist/_node_modules/node-fetch/src/response.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/get-search.cjs +12 -0
- package/dist/_node_modules/node-fetch/src/utils/get-search.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/get-search.js +12 -0
- package/dist/_node_modules/node-fetch/src/utils/get-search.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs +8 -0
- package/dist/_node_modules/node-fetch/src/utils/is-redirect.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is-redirect.js +8 -0
- package/dist/_node_modules/node-fetch/src/utils/is-redirect.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is.cjs +28 -0
- package/dist/_node_modules/node-fetch/src/utils/is.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/is.js +28 -0
- package/dist/_node_modules/node-fetch/src/utils/is.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs +356 -0
- package/dist/_node_modules/node-fetch/src/utils/multipart-parser.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js +356 -0
- package/dist/_node_modules/node-fetch/src/utils/multipart-parser.js.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/referrer.cjs +149 -0
- package/dist/_node_modules/node-fetch/src/utils/referrer.cjs.map +1 -0
- package/dist/_node_modules/node-fetch/src/utils/referrer.js +149 -0
- package/dist/_node_modules/node-fetch/src/utils/referrer.js.map +1 -0
- package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.cjs +89 -0
- package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.cjs.map +1 -0
- package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.js +90 -0
- package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.js.map +1 -0
- package/dist/_node_modules/p-limit/index.cjs +53 -0
- package/dist/_node_modules/p-limit/index.cjs.map +1 -0
- package/dist/_node_modules/p-limit/index.js +54 -0
- package/dist/_node_modules/p-limit/index.js.map +1 -0
- package/dist/_node_modules/path-key/index.cjs +16 -0
- package/dist/_node_modules/path-key/index.cjs.map +1 -0
- package/dist/_node_modules/path-key/index.js +16 -0
- package/dist/_node_modules/path-key/index.js.map +1 -0
- package/dist/_node_modules/peek-readable/lib/EndOfFileStream.cjs +11 -0
- package/dist/_node_modules/peek-readable/lib/EndOfFileStream.cjs.map +1 -0
- package/dist/_node_modules/peek-readable/lib/EndOfFileStream.js +11 -0
- package/dist/_node_modules/peek-readable/lib/EndOfFileStream.js.map +1 -0
- package/dist/_node_modules/r19/dist/R19Error.cjs +25 -0
- package/dist/_node_modules/r19/dist/R19Error.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/R19Error.js +25 -0
- package/dist/_node_modules/r19/dist/R19Error.js.map +1 -0
- package/dist/_node_modules/r19/dist/client/createRPCClient.cjs +90 -0
- package/dist/_node_modules/r19/dist/client/createRPCClient.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/client/createRPCClient.js +90 -0
- package/dist/_node_modules/r19/dist/client/createRPCClient.js.map +1 -0
- package/dist/_node_modules/r19/dist/createRPCMiddleware.cjs +36 -0
- package/dist/_node_modules/r19/dist/createRPCMiddleware.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/createRPCMiddleware.js +36 -0
- package/dist/_node_modules/r19/dist/createRPCMiddleware.js.map +1 -0
- package/dist/_node_modules/r19/dist/handleRPCRequest.cjs +121 -0
- package/dist/_node_modules/r19/dist/handleRPCRequest.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/handleRPCRequest.js +121 -0
- package/dist/_node_modules/r19/dist/handleRPCRequest.js.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isErrorLike.cjs +7 -0
- package/dist/_node_modules/r19/dist/lib/isErrorLike.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isErrorLike.js +7 -0
- package/dist/_node_modules/r19/dist/lib/isErrorLike.js.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isPlainObject.cjs +11 -0
- package/dist/_node_modules/r19/dist/lib/isPlainObject.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isPlainObject.js +11 -0
- package/dist/_node_modules/r19/dist/lib/isPlainObject.js.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.cjs +8 -0
- package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.js +8 -0
- package/dist/_node_modules/r19/dist/lib/isR19ErrorLike.js.map +1 -0
- package/dist/_node_modules/r19/dist/lib/replaceLeaves.cjs +28 -0
- package/dist/_node_modules/r19/dist/lib/replaceLeaves.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/lib/replaceLeaves.js +28 -0
- package/dist/_node_modules/r19/dist/lib/replaceLeaves.js.map +1 -0
- package/dist/_node_modules/r19/dist/proceduresFromInstance.cjs +33 -0
- package/dist/_node_modules/r19/dist/proceduresFromInstance.cjs.map +1 -0
- package/dist/_node_modules/r19/dist/proceduresFromInstance.js +33 -0
- package/dist/_node_modules/r19/dist/proceduresFromInstance.js.map +1 -0
- package/dist/_node_modules/shebang-command/index.cjs +18 -0
- package/dist/_node_modules/shebang-command/index.cjs.map +1 -0
- package/dist/_node_modules/shebang-command/index.js +18 -0
- package/dist/_node_modules/shebang-command/index.js.map +1 -0
- package/dist/_node_modules/shebang-regex/index.cjs +5 -0
- package/dist/_node_modules/shebang-regex/index.cjs.map +1 -0
- package/dist/_node_modules/shebang-regex/index.js +5 -0
- package/dist/_node_modules/shebang-regex/index.js.map +1 -0
- package/dist/_node_modules/signal-exit/index.cjs +150 -0
- package/dist/_node_modules/signal-exit/index.cjs.map +1 -0
- package/dist/_node_modules/signal-exit/index.js +151 -0
- package/dist/_node_modules/signal-exit/index.js.map +1 -0
- package/dist/_node_modules/signal-exit/signals.cjs +45 -0
- package/dist/_node_modules/signal-exit/signals.cjs.map +1 -0
- package/dist/_node_modules/signal-exit/signals.js +45 -0
- package/dist/_node_modules/signal-exit/signals.js.map +1 -0
- package/dist/_node_modules/strtok3/lib/AbstractTokenizer.cjs +98 -0
- package/dist/_node_modules/strtok3/lib/AbstractTokenizer.cjs.map +1 -0
- package/dist/_node_modules/strtok3/lib/AbstractTokenizer.js +98 -0
- package/dist/_node_modules/strtok3/lib/AbstractTokenizer.js.map +1 -0
- package/dist/_node_modules/strtok3/lib/BufferTokenizer.cjs +53 -0
- package/dist/_node_modules/strtok3/lib/BufferTokenizer.cjs.map +1 -0
- package/dist/_node_modules/strtok3/lib/BufferTokenizer.js +53 -0
- package/dist/_node_modules/strtok3/lib/BufferTokenizer.js.map +1 -0
- package/dist/_node_modules/strtok3/lib/core.cjs +9 -0
- package/dist/_node_modules/strtok3/lib/core.cjs.map +1 -0
- package/dist/_node_modules/strtok3/lib/core.js +9 -0
- package/dist/_node_modules/strtok3/lib/core.js.map +1 -0
- package/dist/_node_modules/token-types/lib/index.cjs +94 -0
- package/dist/_node_modules/token-types/lib/index.cjs.map +1 -0
- package/dist/_node_modules/token-types/lib/index.js +94 -0
- package/dist/_node_modules/token-types/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-is/lib/index.cjs +76 -0
- package/dist/_node_modules/unist-util-is/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-is/lib/index.js +76 -0
- package/dist/_node_modules/unist-util-is/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-visit/lib/index.cjs +39 -0
- package/dist/_node_modules/unist-util-visit/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-visit/lib/index.js +40 -0
- package/dist/_node_modules/unist-util-visit/lib/index.js.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/color.browser.cjs +7 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/color.browser.cjs.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/color.browser.js +7 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/color.browser.js.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs +86 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.cjs.map +1 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js +86 -0
- package/dist/_node_modules/unist-util-visit-parents/lib/index.js.map +1 -0
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs +3822 -0
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs.map +1 -0
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +3822 -0
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js.map +1 -0
- package/dist/_node_modules/which/which.cjs +96 -0
- package/dist/_node_modules/which/which.cjs.map +1 -0
- package/dist/_node_modules/which/which.js +96 -0
- package/dist/_node_modules/which/which.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.cjs +9 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +9 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/escape.cjs +5 -0
- package/dist/_virtual/escape.cjs.map +1 -0
- package/dist/_virtual/escape.js +5 -0
- package/dist/_virtual/escape.js.map +1 -0
- package/dist/_virtual/index.cjs +5 -0
- package/dist/_virtual/index.cjs.map +1 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.cjs +5 -0
- package/dist/_virtual/index2.cjs.map +1 -0
- package/dist/_virtual/index2.js +5 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.cjs +5 -0
- package/dist/_virtual/index3.cjs.map +1 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/index4.cjs +5 -0
- package/dist/_virtual/index4.cjs.map +1 -0
- package/dist/_virtual/index4.js +5 -0
- package/dist/_virtual/index4.js.map +1 -0
- package/dist/_virtual/ponyfill.es2018.cjs +5 -0
- package/dist/_virtual/ponyfill.es2018.cjs.map +1 -0
- package/dist/_virtual/ponyfill.es2018.js +5 -0
- package/dist/_virtual/ponyfill.es2018.js.map +1 -0
- package/dist/_virtual/signals.cjs +5 -0
- package/dist/_virtual/signals.cjs.map +1 -0
- package/dist/_virtual/signals.js +5 -0
- package/dist/_virtual/signals.js.map +1 -0
- package/dist/auth/PrismicAuthManager.cjs +291 -0
- package/dist/auth/PrismicAuthManager.cjs.map +1 -0
- package/dist/auth/PrismicAuthManager.d.ts +58 -0
- package/dist/auth/PrismicAuthManager.js +269 -0
- package/dist/auth/PrismicAuthManager.js.map +1 -0
- package/dist/auth/createPrismicAuthManager.cjs +8 -0
- package/dist/auth/createPrismicAuthManager.cjs.map +1 -0
- package/dist/auth/createPrismicAuthManager.d.ts +4 -0
- package/dist/auth/createPrismicAuthManager.js +8 -0
- package/dist/auth/createPrismicAuthManager.js.map +1 -0
- package/dist/auth/createPrismicAuthManagerMiddleware.cjs +51 -0
- package/dist/auth/createPrismicAuthManagerMiddleware.cjs.map +1 -0
- package/dist/auth/createPrismicAuthManagerMiddleware.d.ts +14 -0
- package/dist/auth/createPrismicAuthManagerMiddleware.js +34 -0
- package/dist/auth/createPrismicAuthManagerMiddleware.js.map +1 -0
- package/dist/client/index.d.ts +7 -0
- package/dist/client.cjs +21 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.js +21 -0
- package/dist/client.js.map +1 -0
- package/dist/constants/API_ENDPOINTS.cjs +55 -0
- package/dist/constants/API_ENDPOINTS.cjs.map +1 -0
- package/dist/constants/API_ENDPOINTS.d.ts +11 -0
- package/dist/constants/API_ENDPOINTS.js +55 -0
- package/dist/constants/API_ENDPOINTS.js.map +1 -0
- package/dist/constants/API_TOKENS.cjs +18 -0
- package/dist/constants/API_TOKENS.cjs.map +1 -0
- package/dist/constants/API_TOKENS.d.ts +5 -0
- package/dist/constants/API_TOKENS.js +18 -0
- package/dist/constants/API_TOKENS.js.map +1 -0
- package/dist/constants/APPLICATION_MODE.cjs +9 -0
- package/dist/constants/APPLICATION_MODE.cjs.map +1 -0
- package/dist/constants/APPLICATION_MODE.d.ts +5 -0
- package/dist/constants/APPLICATION_MODE.js +9 -0
- package/dist/constants/APPLICATION_MODE.js.map +1 -0
- package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.cjs +5 -0
- package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.cjs.map +1 -0
- package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.d.ts +5 -0
- package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.js +5 -0
- package/dist/constants/DEFAULT_SLICE_SCREENSHOT_URL.js.map +1 -0
- package/dist/constants/REPOSITORY_NAME_VALIDATION.cjs +8 -0
- package/dist/constants/REPOSITORY_NAME_VALIDATION.cjs.map +1 -0
- package/dist/constants/REPOSITORY_NAME_VALIDATION.d.ts +4 -0
- package/dist/constants/REPOSITORY_NAME_VALIDATION.js +8 -0
- package/dist/constants/REPOSITORY_NAME_VALIDATION.js.map +1 -0
- package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.cjs +5 -0
- package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.cjs.map +1 -0
- package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.d.ts +1 -0
- package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.js +5 -0
- package/dist/constants/SLICE_MACHINE_CONFIG_FILENAME.js.map +1 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.cjs +5 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.cjs.map +1 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.d.ts +1 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.js +5 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.js.map +1 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.cjs +5 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.cjs.map +1 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.d.ts +1 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.js +5 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.js.map +1 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.cjs +5 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.cjs.map +1 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.d.ts +1 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.js +5 -0
- package/dist/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.js.map +1 -0
- package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.cjs +5 -0
- package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.cjs.map +1 -0
- package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.d.ts +1 -0
- package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.js +5 -0
- package/dist/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.js.map +1 -0
- package/dist/constants/SLICE_MACHINE_USER_AGENT.cjs +5 -0
- package/dist/constants/SLICE_MACHINE_USER_AGENT.cjs.map +1 -0
- package/dist/constants/SLICE_MACHINE_USER_AGENT.d.ts +1 -0
- package/dist/constants/SLICE_MACHINE_USER_AGENT.js +5 -0
- package/dist/constants/SLICE_MACHINE_USER_AGENT.js.map +1 -0
- package/dist/constants/TS_CONFIG_FILENAME.cjs +5 -0
- package/dist/constants/TS_CONFIG_FILENAME.cjs.map +1 -0
- package/dist/constants/TS_CONFIG_FILENAME.d.ts +1 -0
- package/dist/constants/TS_CONFIG_FILENAME.js +5 -0
- package/dist/constants/TS_CONFIG_FILENAME.js.map +1 -0
- package/dist/constants/VERSION_KIND.cjs +10 -0
- package/dist/constants/VERSION_KIND.cjs.map +1 -0
- package/dist/constants/VERSION_KIND.d.ts +6 -0
- package/dist/constants/VERSION_KIND.js +10 -0
- package/dist/constants/VERSION_KIND.js.map +1 -0
- package/dist/errors.cjs +101 -0
- package/dist/errors.cjs.map +1 -0
- package/dist/errors.d.ts +35 -0
- package/dist/errors.js +101 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.cjs +24 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/DecodeError.cjs +22 -0
- package/dist/lib/DecodeError.cjs.map +1 -0
- package/dist/lib/DecodeError.d.ts +12 -0
- package/dist/lib/DecodeError.js +22 -0
- package/dist/lib/DecodeError.js.map +1 -0
- package/dist/lib/assertPluginsInitialized.cjs +9 -0
- package/dist/lib/assertPluginsInitialized.cjs.map +1 -0
- package/dist/lib/assertPluginsInitialized.d.ts +2 -0
- package/dist/lib/assertPluginsInitialized.js +9 -0
- package/dist/lib/assertPluginsInitialized.js.map +1 -0
- package/dist/lib/bufferCodec.cjs +24 -0
- package/dist/lib/bufferCodec.cjs.map +1 -0
- package/dist/lib/bufferCodec.d.ts +4 -0
- package/dist/lib/bufferCodec.js +7 -0
- package/dist/lib/bufferCodec.js.map +1 -0
- package/dist/lib/buildPrismicRepositoryAPIEndpoint.cjs +9 -0
- package/dist/lib/buildPrismicRepositoryAPIEndpoint.cjs.map +1 -0
- package/dist/lib/buildPrismicRepositoryAPIEndpoint.d.ts +4 -0
- package/dist/lib/buildPrismicRepositoryAPIEndpoint.js +9 -0
- package/dist/lib/buildPrismicRepositoryAPIEndpoint.js.map +1 -0
- package/dist/lib/castArray.cjs +7 -0
- package/dist/lib/castArray.cjs.map +1 -0
- package/dist/lib/castArray.d.ts +1 -0
- package/dist/lib/castArray.js +7 -0
- package/dist/lib/castArray.js.map +1 -0
- package/dist/lib/checkIsURLAccessible.d.ts +1 -0
- package/dist/lib/createContentDigest.cjs +25 -0
- package/dist/lib/createContentDigest.cjs.map +1 -0
- package/dist/lib/createContentDigest.d.ts +9 -0
- package/dist/lib/createContentDigest.js +8 -0
- package/dist/lib/createContentDigest.js.map +1 -0
- package/dist/lib/decode.cjs +18 -0
- package/dist/lib/decode.cjs.map +1 -0
- package/dist/lib/decode.d.ts +10 -0
- package/dist/lib/decode.js +18 -0
- package/dist/lib/decode.js.map +1 -0
- package/dist/lib/decodeHookResult.cjs +21 -0
- package/dist/lib/decodeHookResult.cjs.map +1 -0
- package/dist/lib/decodeHookResult.d.ts +10 -0
- package/dist/lib/decodeHookResult.js +21 -0
- package/dist/lib/decodeHookResult.js.map +1 -0
- package/dist/lib/decodePackageJSON.cjs +29 -0
- package/dist/lib/decodePackageJSON.cjs.map +1 -0
- package/dist/lib/decodePackageJSON.d.ts +12 -0
- package/dist/lib/decodePackageJSON.js +12 -0
- package/dist/lib/decodePackageJSON.js.map +1 -0
- package/dist/lib/decodeSliceMachineConfig.cjs +50 -0
- package/dist/lib/decodeSliceMachineConfig.cjs.map +1 -0
- package/dist/lib/decodeSliceMachineConfig.d.ts +3 -0
- package/dist/lib/decodeSliceMachineConfig.js +33 -0
- package/dist/lib/decodeSliceMachineConfig.js.map +1 -0
- package/dist/lib/fetch.cjs +36 -0
- package/dist/lib/fetch.cjs.map +1 -0
- package/dist/lib/fetch.d.ts +15 -0
- package/dist/lib/fetch.js +18 -0
- package/dist/lib/fetch.js.map +1 -0
- package/dist/lib/fetchGitHubReleaseBodyForRelease.cjs +105 -0
- package/dist/lib/fetchGitHubReleaseBodyForRelease.cjs.map +1 -0
- package/dist/lib/fetchGitHubReleaseBodyForRelease.d.ts +21 -0
- package/dist/lib/fetchGitHubReleaseBodyForRelease.js +88 -0
- package/dist/lib/fetchGitHubReleaseBodyForRelease.js.map +1 -0
- package/dist/lib/fetchNPMPackageVersions.cjs +41 -0
- package/dist/lib/fetchNPMPackageVersions.cjs.map +1 -0
- package/dist/lib/fetchNPMPackageVersions.d.ts +5 -0
- package/dist/lib/fetchNPMPackageVersions.js +24 -0
- package/dist/lib/fetchNPMPackageVersions.js.map +1 -0
- package/dist/lib/format.cjs +33 -0
- package/dist/lib/format.cjs.map +1 -0
- package/dist/lib/format.d.ts +12 -0
- package/dist/lib/format.js +33 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/functionCodec.cjs +29 -0
- package/dist/lib/functionCodec.cjs.map +1 -0
- package/dist/lib/functionCodec.d.ts +2 -0
- package/dist/lib/functionCodec.js +12 -0
- package/dist/lib/functionCodec.js.map +1 -0
- package/dist/lib/installDependencies.cjs +38 -0
- package/dist/lib/installDependencies.cjs.map +1 -0
- package/dist/lib/installDependencies.d.ts +13 -0
- package/dist/lib/installDependencies.js +38 -0
- package/dist/lib/installDependencies.js.map +1 -0
- package/dist/lib/locateFileUpward.cjs +47 -0
- package/dist/lib/locateFileUpward.cjs.map +1 -0
- package/dist/lib/locateFileUpward.d.ts +10 -0
- package/dist/lib/locateFileUpward.js +29 -0
- package/dist/lib/locateFileUpward.js.map +1 -0
- package/dist/lib/markdownToHTML.cjs +91 -0
- package/dist/lib/markdownToHTML.cjs.map +1 -0
- package/dist/lib/markdownToHTML.d.ts +1 -0
- package/dist/lib/markdownToHTML.js +69 -0
- package/dist/lib/markdownToHTML.js.map +1 -0
- package/dist/lib/mockSlice.cjs +32 -0
- package/dist/lib/mockSlice.cjs.map +1 -0
- package/dist/lib/mockSlice.d.ts +9 -0
- package/dist/lib/mockSlice.js +32 -0
- package/dist/lib/mockSlice.js.map +1 -0
- package/dist/lib/prismicrc.cjs +48 -0
- package/dist/lib/prismicrc.cjs.map +1 -0
- package/dist/lib/prismicrc.d.ts +10 -0
- package/dist/lib/prismicrc.js +29 -0
- package/dist/lib/prismicrc.js.map +1 -0
- package/dist/lib/serializeCookies.cjs +29 -0
- package/dist/lib/serializeCookies.cjs.map +1 -0
- package/dist/lib/serializeCookies.d.ts +6 -0
- package/dist/lib/serializeCookies.js +29 -0
- package/dist/lib/serializeCookies.js.map +1 -0
- package/dist/lib/trailingSlash.cjs +11 -0
- package/dist/lib/trailingSlash.cjs.map +1 -0
- package/dist/lib/trailingSlash.d.ts +2 -0
- package/dist/lib/trailingSlash.js +11 -0
- package/dist/lib/trailingSlash.js.map +1 -0
- package/dist/managers/BaseManager.cjs +69 -0
- package/dist/managers/BaseManager.cjs.map +1 -0
- package/dist/managers/BaseManager.d.ts +37 -0
- package/dist/managers/BaseManager.js +69 -0
- package/dist/managers/BaseManager.js.map +1 -0
- package/dist/managers/SliceMachineManager.cjs +251 -0
- package/dist/managers/SliceMachineManager.cjs.map +1 -0
- package/dist/managers/SliceMachineManager.d.ts +99 -0
- package/dist/managers/SliceMachineManager.js +251 -0
- package/dist/managers/SliceMachineManager.js.map +1 -0
- package/dist/managers/createSliceMachineManager.cjs +8 -0
- package/dist/managers/createSliceMachineManager.cjs.map +1 -0
- package/dist/managers/createSliceMachineManager.d.ts +5 -0
- package/dist/managers/createSliceMachineManager.js +8 -0
- package/dist/managers/createSliceMachineManager.js.map +1 -0
- package/dist/managers/createSliceMachineManagerClient.cjs +11 -0
- package/dist/managers/createSliceMachineManagerClient.cjs.map +1 -0
- package/dist/managers/createSliceMachineManagerClient.d.ts +8 -0
- package/dist/managers/createSliceMachineManagerClient.js +11 -0
- package/dist/managers/createSliceMachineManagerClient.js.map +1 -0
- package/dist/managers/createSliceMachineManagerMiddleware.cjs +44 -0
- package/dist/managers/createSliceMachineManagerMiddleware.cjs.map +1 -0
- package/dist/managers/createSliceMachineManagerMiddleware.d.ts +15 -0
- package/dist/managers/createSliceMachineManagerMiddleware.js +44 -0
- package/dist/managers/createSliceMachineManagerMiddleware.js.map +1 -0
- package/dist/managers/customTypes/CustomTypesManager.cjs +190 -0
- package/dist/managers/customTypes/CustomTypesManager.cjs.map +1 -0
- package/dist/managers/customTypes/CustomTypesManager.d.ts +61 -0
- package/dist/managers/customTypes/CustomTypesManager.js +172 -0
- package/dist/managers/customTypes/CustomTypesManager.js.map +1 -0
- package/dist/managers/customTypes/types.d.ts +2 -0
- package/dist/managers/documentation/DocumentationManager.cjs +42 -0
- package/dist/managers/documentation/DocumentationManager.cjs.map +1 -0
- package/dist/managers/documentation/DocumentationManager.d.ts +11 -0
- package/dist/managers/documentation/DocumentationManager.js +25 -0
- package/dist/managers/documentation/DocumentationManager.js.map +1 -0
- package/dist/managers/plugins/PluginsManager.cjs +36 -0
- package/dist/managers/plugins/PluginsManager.cjs.map +1 -0
- package/dist/managers/plugins/PluginsManager.d.ts +13 -0
- package/dist/managers/plugins/PluginsManager.js +36 -0
- package/dist/managers/plugins/PluginsManager.js.map +1 -0
- package/dist/managers/prismicRepository/PrismicRepositoryManager.cjs +404 -0
- package/dist/managers/prismicRepository/PrismicRepositoryManager.cjs.map +1 -0
- package/dist/managers/prismicRepository/PrismicRepositoryManager.d.ts +36 -0
- package/dist/managers/prismicRepository/PrismicRepositoryManager.js +387 -0
- package/dist/managers/prismicRepository/PrismicRepositoryManager.js.map +1 -0
- package/dist/managers/prismicRepository/sortEnvironments.cjs +36 -0
- package/dist/managers/prismicRepository/sortEnvironments.cjs.map +1 -0
- package/dist/managers/prismicRepository/sortEnvironments.d.ts +17 -0
- package/dist/managers/prismicRepository/sortEnvironments.js +36 -0
- package/dist/managers/prismicRepository/sortEnvironments.js.map +1 -0
- package/dist/managers/prismicRepository/types.cjs +78 -0
- package/dist/managers/prismicRepository/types.cjs.map +1 -0
- package/dist/managers/prismicRepository/types.d.ts +148 -0
- package/dist/managers/prismicRepository/types.js +63 -0
- package/dist/managers/prismicRepository/types.js.map +1 -0
- package/dist/managers/project/ProjectManager.cjs +273 -0
- package/dist/managers/project/ProjectManager.cjs.map +1 -0
- package/dist/managers/project/ProjectManager.d.ts +84 -0
- package/dist/managers/project/ProjectManager.js +254 -0
- package/dist/managers/project/ProjectManager.js.map +1 -0
- package/dist/managers/screenshots/ScreenshotsManager.cjs +164 -0
- package/dist/managers/screenshots/ScreenshotsManager.cjs.map +1 -0
- package/dist/managers/screenshots/ScreenshotsManager.d.ts +20 -0
- package/dist/managers/screenshots/ScreenshotsManager.js +147 -0
- package/dist/managers/screenshots/ScreenshotsManager.js.map +1 -0
- package/dist/managers/simulator/SimulatorManager.cjs +105 -0
- package/dist/managers/simulator/SimulatorManager.cjs.map +1 -0
- package/dist/managers/simulator/SimulatorManager.d.ts +38 -0
- package/dist/managers/simulator/SimulatorManager.js +88 -0
- package/dist/managers/simulator/SimulatorManager.js.map +1 -0
- package/dist/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.cjs +139 -0
- package/dist/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.cjs.map +1 -0
- package/dist/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.d.ts +27 -0
- package/dist/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.js +122 -0
- package/dist/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.js.map +1 -0
- package/dist/managers/slices/SlicesManager.cjs +652 -0
- package/dist/managers/slices/SlicesManager.cjs.map +1 -0
- package/dist/managers/slices/SlicesManager.d.ts +178 -0
- package/dist/managers/slices/SlicesManager.js +634 -0
- package/dist/managers/slices/SlicesManager.js.map +1 -0
- package/dist/managers/snippets/SnippetsManager.cjs +41 -0
- package/dist/managers/snippets/SnippetsManager.cjs.map +1 -0
- package/dist/managers/snippets/SnippetsManager.d.ts +11 -0
- package/dist/managers/snippets/SnippetsManager.js +24 -0
- package/dist/managers/snippets/SnippetsManager.js.map +1 -0
- package/dist/managers/telemetry/TelemetryManager.cjs +154 -0
- package/dist/managers/telemetry/TelemetryManager.cjs.map +1 -0
- package/dist/managers/telemetry/TelemetryManager.d.ts +29 -0
- package/dist/managers/telemetry/TelemetryManager.js +154 -0
- package/dist/managers/telemetry/TelemetryManager.js.map +1 -0
- package/dist/managers/telemetry/types.cjs +57 -0
- package/dist/managers/telemetry/types.cjs.map +1 -0
- package/dist/managers/telemetry/types.d.ts +165 -0
- package/dist/managers/telemetry/types.js +57 -0
- package/dist/managers/telemetry/types.js.map +1 -0
- package/dist/managers/user/UserManager.cjs +29 -0
- package/dist/managers/user/UserManager.cjs.map +1 -0
- package/dist/managers/user/UserManager.d.ts +40 -0
- package/dist/managers/user/UserManager.js +29 -0
- package/dist/managers/user/UserManager.js.map +1 -0
- package/dist/managers/versions/VersionsManager.cjs +140 -0
- package/dist/managers/versions/VersionsManager.cjs.map +1 -0
- package/dist/managers/versions/VersionsManager.d.ts +22 -0
- package/dist/managers/versions/VersionsManager.js +122 -0
- package/dist/managers/versions/VersionsManager.js.map +1 -0
- package/dist/managers/versions/types.d.ts +5 -0
- package/dist/test/createSliceMachineManagerMSWHandler.cjs +18 -0
- package/dist/test/createSliceMachineManagerMSWHandler.cjs.map +1 -0
- package/dist/test/createSliceMachineManagerMSWHandler.d.ts +7 -0
- package/dist/test/createSliceMachineManagerMSWHandler.js +18 -0
- package/dist/test/createSliceMachineManagerMSWHandler.js.map +1 -0
- package/dist/test/index.d.ts +2 -0
- package/dist/test.cjs +5 -0
- package/dist/test.cjs.map +1 -0
- package/dist/test.js +5 -0
- package/dist/test.js.map +1 -0
- package/dist/types.d.ts +37 -0
- package/package.json +140 -0
- package/src/auth/PrismicAuthManager.ts +412 -0
- package/src/auth/createPrismicAuthManager.ts +11 -0
- package/src/auth/createPrismicAuthManagerMiddleware.ts +72 -0
- package/src/client/index.ts +35 -0
- package/src/constants/API_ENDPOINTS.ts +86 -0
- package/src/constants/API_TOKENS.ts +19 -0
- package/src/constants/APPLICATION_MODE.ts +5 -0
- package/src/constants/DEFAULT_SLICE_SCREENSHOT_URL.ts +6 -0
- package/src/constants/REPOSITORY_NAME_VALIDATION.ts +4 -0
- package/src/constants/SLICE_MACHINE_CONFIG_FILENAME.ts +1 -0
- package/src/constants/SLICE_MACHINE_GITHUB_PACKAGE_NAME.ts +1 -0
- package/src/constants/SLICE_MACHINE_GITHUB_REPOSITORY_NAME.ts +1 -0
- package/src/constants/SLICE_MACHINE_GITHUB_REPOSITORY_ORGANIZATION.ts +1 -0
- package/src/constants/SLICE_MACHINE_NPM_PACKAGE_NAME.ts +1 -0
- package/src/constants/SLICE_MACHINE_USER_AGENT.ts +1 -0
- package/src/constants/TS_CONFIG_FILENAME.ts +1 -0
- package/src/constants/VERSION_KIND.ts +6 -0
- package/src/errors.ts +85 -0
- package/src/index.ts +46 -0
- package/src/lib/DecodeError.ts +22 -0
- package/src/lib/assertPluginsInitialized.ts +11 -0
- package/src/lib/bufferCodec.ts +10 -0
- package/src/lib/buildPrismicRepositoryAPIEndpoint.ts +16 -0
- package/src/lib/castArray.ts +3 -0
- package/src/lib/checkIsURLAccessible.ts +7 -0
- package/src/lib/createContentDigest.ts +12 -0
- package/src/lib/decode.ts +36 -0
- package/src/lib/decodeHookResult.ts +36 -0
- package/src/lib/decodePackageJSON.ts +18 -0
- package/src/lib/decodeSliceMachineConfig.ts +39 -0
- package/src/lib/fetch.ts +46 -0
- package/src/lib/fetchGitHubReleaseBodyForRelease.ts +146 -0
- package/src/lib/fetchNPMPackageVersions.ts +46 -0
- package/src/lib/format.ts +34 -0
- package/src/lib/functionCodec.ts +16 -0
- package/src/lib/installDependencies.ts +65 -0
- package/src/lib/locateFileUpward.ts +53 -0
- package/src/lib/markdownToHTML.ts +116 -0
- package/src/lib/mockSlice.ts +50 -0
- package/src/lib/prismicrc.ts +64 -0
- package/src/lib/serializeCookies.ts +45 -0
- package/src/lib/trailingSlash.ts +9 -0
- package/src/managers/BaseManager.ts +100 -0
- package/src/managers/SliceMachineManager.ts +399 -0
- package/src/managers/createSliceMachineManager.ts +11 -0
- package/src/managers/createSliceMachineManagerClient.ts +23 -0
- package/src/managers/createSliceMachineManagerMiddleware.ts +78 -0
- package/src/managers/customTypes/CustomTypesManager.ts +332 -0
- package/src/managers/customTypes/types.ts +3 -0
- package/src/managers/documentation/DocumentationManager.ts +44 -0
- package/src/managers/plugins/PluginsManager.ts +48 -0
- package/src/managers/prismicRepository/PrismicRepositoryManager.ts +569 -0
- package/src/managers/prismicRepository/sortEnvironments.ts +55 -0
- package/src/managers/prismicRepository/types.ts +169 -0
- package/src/managers/project/ProjectManager.ts +443 -0
- package/src/managers/screenshots/ScreenshotsManager.ts +199 -0
- package/src/managers/simulator/SimulatorManager.ts +161 -0
- package/src/managers/sliceTemplateLibrary/SliceTemplateLibraryManager.ts +201 -0
- package/src/managers/slices/SlicesManager.ts +1105 -0
- package/src/managers/snippets/SnippetsManager.ts +45 -0
- package/src/managers/telemetry/TelemetryManager.ts +248 -0
- package/src/managers/telemetry/types.ts +283 -0
- package/src/managers/user/UserManager.ts +39 -0
- package/src/managers/versions/VersionsManager.ts +167 -0
- package/src/managers/versions/types.ts +6 -0
- package/src/test/createSliceMachineManagerMSWHandler.ts +29 -0
- package/src/test/index.ts +2 -0
- package/src/types.ts +47 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locateFileUpward.cjs","sources":["../../../src/lib/locateFileUpward.ts"],"sourcesContent":["import * as path from \"node:path\";\nimport * as fs from \"node:fs/promises\";\n\nimport { castArray } from \"./castArray\";\n\ntype LocateFileUpwardConfig = {\n\tstartDir?: string;\n\tstopDir?: string;\n\t/**\n\t * @internal\n\t */\n\t_originalStartDir?: string;\n};\n\nexport const locateFileUpward = async (\n\tfilePathOrPaths: string | readonly string[],\n\t{\n\t\tstartDir = process.cwd(),\n\t\tstopDir = path.resolve(startDir, \"/\"),\n\t\t_originalStartDir,\n\t}: LocateFileUpwardConfig = {},\n): Promise<string> => {\n\tconst originalStartDir = _originalStartDir ?? startDir;\n\n\tconst filePaths = castArray(filePathOrPaths);\n\n\tfor (const filePath of filePaths) {\n\t\tconst resolvedFilePath = path.resolve(startDir, filePath);\n\t\ttry {\n\t\t\tawait fs.access(resolvedFilePath);\n\n\t\t\treturn resolvedFilePath;\n\t\t} catch {\n\t\t\tcontinue;\n\t\t}\n\t}\n\n\tif (startDir === stopDir) {\n\t\tconst formattedFilePaths = filePaths\n\t\t\t.map((filePath) => \"`\" + filePath + \"`\")\n\t\t\t.join(\" or \");\n\n\t\tthrow new Error(\n\t\t\t`Could not locate ${formattedFilePaths} between \\`${originalStartDir}\\` and \\`${stopDir}\\`.`,\n\t\t);\n\t}\n\n\treturn locateFileUpward(filePathOrPaths, {\n\t\tstartDir: path.resolve(startDir, \"..\"),\n\t\tstopDir,\n\t\t_originalStartDir: originalStartDir,\n\t});\n};\n"],"names":["path","castArray","fs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAcO,MAAM,mBAAmB,OAC/B,iBACA,EACC,WAAW,QAAQ,IAAG,GACtB,UAAUA,gBAAK,QAAQ,UAAU,GAAG,GACpC,kBAC2B,IAAA,CAAA,MACR;AACpB,QAAM,mBAAmB,qBAAqB;AAExC,QAAA,YAAYC,oBAAU,eAAe;AAE3C,aAAW,YAAY,WAAW;AACjC,UAAM,mBAAmBD,gBAAK,QAAQ,UAAU,QAAQ;AACpD,QAAA;AACG,YAAAE,cAAG,OAAO,gBAAgB;AAEzB,aAAA;AAAA,IAAA,QACN;AACD;AAAA,IACA;AAAA,EACD;AAED,MAAI,aAAa,SAAS;AACnB,UAAA,qBAAqB,UACzB,IAAI,CAAC,aAAa,MAAM,WAAW,GAAG,EACtC,KAAK,MAAM;AAEb,UAAM,IAAI,MACT,oBAAoB,gCAAgC,4BAA4B,YAAY;AAAA,EAE7F;AAED,SAAO,iBAAiB,iBAAiB;AAAA,IACxC,UAAUF,gBAAK,QAAQ,UAAU,IAAI;AAAA,IACrC;AAAA,IACA,mBAAmB;AAAA,EAAA,CACnB;AACF;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type LocateFileUpwardConfig = {
|
|
2
|
+
startDir?: string;
|
|
3
|
+
stopDir?: string;
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
_originalStartDir?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const locateFileUpward: (filePathOrPaths: string | readonly string[], { startDir, stopDir, _originalStartDir, }?: LocateFileUpwardConfig) => Promise<string>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as path from "node:path";
|
|
2
|
+
import * as fs from "node:fs/promises";
|
|
3
|
+
import { castArray } from "./castArray.js";
|
|
4
|
+
const locateFileUpward = async (filePathOrPaths, { startDir = process.cwd(), stopDir = path.resolve(startDir, "/"), _originalStartDir } = {}) => {
|
|
5
|
+
const originalStartDir = _originalStartDir ?? startDir;
|
|
6
|
+
const filePaths = castArray(filePathOrPaths);
|
|
7
|
+
for (const filePath of filePaths) {
|
|
8
|
+
const resolvedFilePath = path.resolve(startDir, filePath);
|
|
9
|
+
try {
|
|
10
|
+
await fs.access(resolvedFilePath);
|
|
11
|
+
return resolvedFilePath;
|
|
12
|
+
} catch {
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
if (startDir === stopDir) {
|
|
17
|
+
const formattedFilePaths = filePaths.map((filePath) => "`" + filePath + "`").join(" or ");
|
|
18
|
+
throw new Error(`Could not locate ${formattedFilePaths} between \`${originalStartDir}\` and \`${stopDir}\`.`);
|
|
19
|
+
}
|
|
20
|
+
return locateFileUpward(filePathOrPaths, {
|
|
21
|
+
startDir: path.resolve(startDir, ".."),
|
|
22
|
+
stopDir,
|
|
23
|
+
_originalStartDir: originalStartDir
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
locateFileUpward
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=locateFileUpward.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locateFileUpward.js","sources":["../../../src/lib/locateFileUpward.ts"],"sourcesContent":["import * as path from \"node:path\";\nimport * as fs from \"node:fs/promises\";\n\nimport { castArray } from \"./castArray\";\n\ntype LocateFileUpwardConfig = {\n\tstartDir?: string;\n\tstopDir?: string;\n\t/**\n\t * @internal\n\t */\n\t_originalStartDir?: string;\n};\n\nexport const locateFileUpward = async (\n\tfilePathOrPaths: string | readonly string[],\n\t{\n\t\tstartDir = process.cwd(),\n\t\tstopDir = path.resolve(startDir, \"/\"),\n\t\t_originalStartDir,\n\t}: LocateFileUpwardConfig = {},\n): Promise<string> => {\n\tconst originalStartDir = _originalStartDir ?? startDir;\n\n\tconst filePaths = castArray(filePathOrPaths);\n\n\tfor (const filePath of filePaths) {\n\t\tconst resolvedFilePath = path.resolve(startDir, filePath);\n\t\ttry {\n\t\t\tawait fs.access(resolvedFilePath);\n\n\t\t\treturn resolvedFilePath;\n\t\t} catch {\n\t\t\tcontinue;\n\t\t}\n\t}\n\n\tif (startDir === stopDir) {\n\t\tconst formattedFilePaths = filePaths\n\t\t\t.map((filePath) => \"`\" + filePath + \"`\")\n\t\t\t.join(\" or \");\n\n\t\tthrow new Error(\n\t\t\t`Could not locate ${formattedFilePaths} between \\`${originalStartDir}\\` and \\`${stopDir}\\`.`,\n\t\t);\n\t}\n\n\treturn locateFileUpward(filePathOrPaths, {\n\t\tstartDir: path.resolve(startDir, \"..\"),\n\t\tstopDir,\n\t\t_originalStartDir: originalStartDir,\n\t});\n};\n"],"names":[],"mappings":";;;AAcO,MAAM,mBAAmB,OAC/B,iBACA,EACC,WAAW,QAAQ,IAAG,GACtB,UAAU,KAAK,QAAQ,UAAU,GAAG,GACpC,kBAC2B,IAAA,CAAA,MACR;AACpB,QAAM,mBAAmB,qBAAqB;AAExC,QAAA,YAAY,UAAU,eAAe;AAE3C,aAAW,YAAY,WAAW;AACjC,UAAM,mBAAmB,KAAK,QAAQ,UAAU,QAAQ;AACpD,QAAA;AACG,YAAA,GAAG,OAAO,gBAAgB;AAEzB,aAAA;AAAA,IAAA,QACN;AACD;AAAA,IACA;AAAA,EACD;AAED,MAAI,aAAa,SAAS;AACnB,UAAA,qBAAqB,UACzB,IAAI,CAAC,aAAa,MAAM,WAAW,GAAG,EACtC,KAAK,MAAM;AAEb,UAAM,IAAI,MACT,oBAAoB,gCAAgC,4BAA4B,YAAY;AAAA,EAE7F;AAED,SAAO,iBAAiB,iBAAiB;AAAA,IACxC,UAAU,KAAK,QAAQ,UAAU,IAAI;AAAA,IACrC;AAAA,IACA,mBAAmB;AAAA,EAAA,CACnB;AACF;"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
25
|
+
const index = require('./../_node_modules/unist-util-visit/lib/index.cjs');
|
|
26
|
+
const createRehypeStarryNight = async () => {
|
|
27
|
+
const { createStarryNight, common } = await import("@wooorm/starry-night");
|
|
28
|
+
const { default: tsxGrammar } = await import("@wooorm/starry-night/lang/source.tsx.js");
|
|
29
|
+
const { default: vueGrammar } = await import("@wooorm/starry-night/lang/text.html.vue.js");
|
|
30
|
+
const { toString } = await import("hast-util-to-string");
|
|
31
|
+
return (options = {}) => {
|
|
32
|
+
const grammars = options.grammars || [...common, tsxGrammar, vueGrammar];
|
|
33
|
+
const starryNightPromise = createStarryNight(grammars);
|
|
34
|
+
const prefix = "language-";
|
|
35
|
+
return async (tree) => {
|
|
36
|
+
const starryNight = await starryNightPromise;
|
|
37
|
+
index.visit(tree, "element", function(node, index2, parent) {
|
|
38
|
+
if (!parent || index2 === null || node.tagName !== "pre") {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const head = node.children[0];
|
|
42
|
+
if (!head || head.type !== "element" || head.tagName !== "code" || !head.properties) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const classes = head.properties.className;
|
|
46
|
+
if (!Array.isArray(classes)) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const language = classes.find((d) => typeof d === "string" && d.startsWith(prefix));
|
|
50
|
+
if (typeof language !== "string") {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const scope = starryNight.flagToScope(language.slice(prefix.length));
|
|
54
|
+
if (!scope) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const fragment = starryNight.highlight(toString(head), scope);
|
|
58
|
+
const children = fragment.children;
|
|
59
|
+
parent.children.splice(index2, 1, {
|
|
60
|
+
type: "element",
|
|
61
|
+
tagName: "div",
|
|
62
|
+
properties: {
|
|
63
|
+
className: [
|
|
64
|
+
"highlight",
|
|
65
|
+
"highlight-" + scope.replace(/^source\./, "").replace(/\./g, "-")
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
children: [
|
|
69
|
+
{ type: "element", tagName: "pre", properties: {}, children }
|
|
70
|
+
]
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
let processor;
|
|
77
|
+
const markdownToHTML = async (markdown) => {
|
|
78
|
+
if (!processor) {
|
|
79
|
+
const { unified } = await import("unified");
|
|
80
|
+
const remarkParse = await import("remark-parse");
|
|
81
|
+
const remarkGfm = await import("remark-gfm");
|
|
82
|
+
const remarkRehype = await import("remark-rehype");
|
|
83
|
+
const rehypeStringify = await import("rehype-stringify");
|
|
84
|
+
const rehypeStarryNight = await createRehypeStarryNight();
|
|
85
|
+
processor = unified().use(remarkParse.default).use(remarkGfm.default).use(remarkRehype.default).use(rehypeStarryNight).use(rehypeStringify.default);
|
|
86
|
+
}
|
|
87
|
+
const virtualFile = await processor.process(markdown);
|
|
88
|
+
return virtualFile.toString();
|
|
89
|
+
};
|
|
90
|
+
exports.markdownToHTML = markdownToHTML;
|
|
91
|
+
//# sourceMappingURL=markdownToHTML.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownToHTML.cjs","sources":["../../../src/lib/markdownToHTML.ts"],"sourcesContent":["import type { Plugin, Processor } from \"unified\";\nimport type { Root, ElementContent } from \"hast\";\nimport type { Grammar } from \"@wooorm/starry-night\";\nimport { visit } from \"unist-util-visit\";\n\ntype RehypeStarryNightOptions = {\n\tgrammars?: Grammar[];\n};\n\n/**\n * Rehype plugin to highlight code with `starry-night`.\n *\n * Adapted from:\n * https://github.com/wooorm/starry-night/tree/c73aac7b8bff41ada86747f668dd932a791b851b#example-integrate-with-unified-remark-and-rehype\n */\nconst createRehypeStarryNight = async (): Promise<\n\tPlugin<[options?: RehypeStarryNightOptions], Root>\n> => {\n\tconst { createStarryNight, common } = await import(\"@wooorm/starry-night\");\n\tconst { default: tsxGrammar } = await import(\n\t\t\"@wooorm/starry-night/lang/source.tsx.js\"\n\t);\n\tconst { default: vueGrammar } = await import(\n\t\t\"@wooorm/starry-night/lang/text.html.vue.js\"\n\t);\n\tconst { toString } = await import(\"hast-util-to-string\");\n\n\treturn (options = {}) => {\n\t\tconst grammars = options.grammars || [...common, tsxGrammar, vueGrammar];\n\t\tconst starryNightPromise = createStarryNight(grammars);\n\t\tconst prefix = \"language-\";\n\n\t\treturn async (tree) => {\n\t\t\tconst starryNight = await starryNightPromise;\n\n\t\t\tvisit(tree, \"element\", function (node, index, parent) {\n\t\t\t\tif (!parent || index === null || node.tagName !== \"pre\") {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst head = node.children[0];\n\n\t\t\t\tif (\n\t\t\t\t\t!head ||\n\t\t\t\t\thead.type !== \"element\" ||\n\t\t\t\t\thead.tagName !== \"code\" ||\n\t\t\t\t\t!head.properties\n\t\t\t\t) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst classes = head.properties.className;\n\n\t\t\t\tif (!Array.isArray(classes)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst language = classes.find(\n\t\t\t\t\t(d) => typeof d === \"string\" && d.startsWith(prefix),\n\t\t\t\t);\n\n\t\t\t\tif (typeof language !== \"string\") {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst scope = starryNight.flagToScope(language.slice(prefix.length));\n\n\t\t\t\t// Maybe warn?\n\t\t\t\tif (!scope) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst fragment = starryNight.highlight(toString(head), scope);\n\t\t\t\tconst children = fragment.children as ElementContent[];\n\n\t\t\t\tparent.children.splice(index, 1, {\n\t\t\t\t\ttype: \"element\",\n\t\t\t\t\ttagName: \"div\",\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tclassName: [\n\t\t\t\t\t\t\t\"highlight\",\n\t\t\t\t\t\t\t\"highlight-\" + scope.replace(/^source\\./, \"\").replace(/\\./g, \"-\"),\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\tchildren: [\n\t\t\t\t\t\t{ type: \"element\", tagName: \"pre\", properties: {}, children },\n\t\t\t\t\t],\n\t\t\t\t});\n\t\t\t});\n\t\t};\n\t};\n};\n\nlet processor: Processor;\n\nexport const markdownToHTML = async (markdown: string): Promise<string> => {\n\tif (!processor) {\n\t\tconst { unified } = await import(\"unified\");\n\t\tconst remarkParse = await import(\"remark-parse\");\n\t\tconst remarkGfm = await import(\"remark-gfm\");\n\t\tconst remarkRehype = await import(\"remark-rehype\");\n\t\tconst rehypeStringify = await import(\"rehype-stringify\");\n\t\tconst rehypeStarryNight = await createRehypeStarryNight();\n\n\t\tprocessor = unified()\n\t\t\t.use(remarkParse.default)\n\t\t\t.use(remarkGfm.default)\n\t\t\t.use(remarkRehype.default)\n\t\t\t.use(rehypeStarryNight)\n\t\t\t.use(rehypeStringify.default);\n\t}\n\n\tconst virtualFile = await processor.process(markdown);\n\n\treturn virtualFile.toString();\n};\n"],"names":["visit","index"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAeA,MAAM,0BAA0B,YAE5B;AACH,QAAM,EAAE,mBAAmB,OAAW,IAAA,MAAM,OAAO,sBAAsB;AACzE,QAAM,EAAE,SAAS,WAAe,IAAA,MAAM,OACrC,yCAAyC;AAE1C,QAAM,EAAE,SAAS,WAAe,IAAA,MAAM,OACrC,4CAA4C;AAE7C,QAAM,EAAE,SAAA,IAAa,MAAM,OAAO,qBAAqB;AAEhD,SAAA,CAAC,UAAU,OAAM;AACvB,UAAM,WAAW,QAAQ,YAAY,CAAC,GAAG,QAAQ,YAAY,UAAU;AACjE,UAAA,qBAAqB,kBAAkB,QAAQ;AACrD,UAAM,SAAS;AAEf,WAAO,OAAO,SAAQ;AACrB,YAAM,cAAc,MAAM;AAE1BA,YAAA,MAAM,MAAM,WAAW,SAAU,MAAMC,QAAO,QAAM;AACnD,YAAI,CAAC,UAAUA,WAAU,QAAQ,KAAK,YAAY,OAAO;AACxD;AAAA,QACA;AAEK,cAAA,OAAO,KAAK,SAAS,CAAC;AAG3B,YAAA,CAAC,QACD,KAAK,SAAS,aACd,KAAK,YAAY,UACjB,CAAC,KAAK,YACL;AACD;AAAA,QACA;AAEK,cAAA,UAAU,KAAK,WAAW;AAEhC,YAAI,CAAC,MAAM,QAAQ,OAAO,GAAG;AAC5B;AAAA,QACA;AAEK,cAAA,WAAW,QAAQ,KACxB,CAAC,MAAM,OAAO,MAAM,YAAY,EAAE,WAAW,MAAM,CAAC;AAGjD,YAAA,OAAO,aAAa,UAAU;AACjC;AAAA,QACA;AAED,cAAM,QAAQ,YAAY,YAAY,SAAS,MAAM,OAAO,MAAM,CAAC;AAGnE,YAAI,CAAC,OAAO;AACX;AAAA,QACA;AAED,cAAM,WAAW,YAAY,UAAU,SAAS,IAAI,GAAG,KAAK;AAC5D,cAAM,WAAW,SAAS;AAEnB,eAAA,SAAS,OAAOA,QAAO,GAAG;AAAA,UAChC,MAAM;AAAA,UACN,SAAS;AAAA,UACT,YAAY;AAAA,YACX,WAAW;AAAA,cACV;AAAA,cACA,eAAe,MAAM,QAAQ,aAAa,EAAE,EAAE,QAAQ,OAAO,GAAG;AAAA,YAChE;AAAA,UACD;AAAA,UACD,UAAU;AAAA,YACT,EAAE,MAAM,WAAW,SAAS,OAAO,YAAY,IAAI,SAAU;AAAA,UAC7D;AAAA,QAAA,CACD;AAAA,MAAA,CACD;AAAA,IAAA;AAAA,EACF;AAEF;AAEA,IAAI;AAES,MAAA,iBAAiB,OAAO,aAAqC;AACzE,MAAI,CAAC,WAAW;AACf,UAAM,EAAE,QAAA,IAAY,MAAM,OAAO,SAAS;AACpC,UAAA,cAAc,MAAM,OAAO,cAAc;AACzC,UAAA,YAAY,MAAM,OAAO,YAAY;AACrC,UAAA,eAAe,MAAM,OAAO,eAAe;AAC3C,UAAA,kBAAkB,MAAM,OAAO,kBAAkB;AACjD,UAAA,oBAAoB,MAAM;AAEhC,gBAAY,QACV,EAAA,IAAI,YAAY,OAAO,EACvB,IAAI,UAAU,OAAO,EACrB,IAAI,aAAa,OAAO,EACxB,IAAI,iBAAiB,EACrB,IAAI,gBAAgB,OAAO;AAAA,EAC7B;AAED,QAAM,cAAc,MAAM,UAAU,QAAQ,QAAQ;AAEpD,SAAO,YAAY;AACpB;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const markdownToHTML: (markdown: string) => Promise<string>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { visit } from './../_node_modules/unist-util-visit/lib/index.js';
|
|
2
|
+
const createRehypeStarryNight = async () => {
|
|
3
|
+
const { createStarryNight, common } = await import("@wooorm/starry-night");
|
|
4
|
+
const { default: tsxGrammar } = await import("@wooorm/starry-night/lang/source.tsx.js");
|
|
5
|
+
const { default: vueGrammar } = await import("@wooorm/starry-night/lang/text.html.vue.js");
|
|
6
|
+
const { toString } = await import("hast-util-to-string");
|
|
7
|
+
return (options = {}) => {
|
|
8
|
+
const grammars = options.grammars || [...common, tsxGrammar, vueGrammar];
|
|
9
|
+
const starryNightPromise = createStarryNight(grammars);
|
|
10
|
+
const prefix = "language-";
|
|
11
|
+
return async (tree) => {
|
|
12
|
+
const starryNight = await starryNightPromise;
|
|
13
|
+
visit(tree, "element", function(node, index, parent) {
|
|
14
|
+
if (!parent || index === null || node.tagName !== "pre") {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const head = node.children[0];
|
|
18
|
+
if (!head || head.type !== "element" || head.tagName !== "code" || !head.properties) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const classes = head.properties.className;
|
|
22
|
+
if (!Array.isArray(classes)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const language = classes.find((d) => typeof d === "string" && d.startsWith(prefix));
|
|
26
|
+
if (typeof language !== "string") {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const scope = starryNight.flagToScope(language.slice(prefix.length));
|
|
30
|
+
if (!scope) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const fragment = starryNight.highlight(toString(head), scope);
|
|
34
|
+
const children = fragment.children;
|
|
35
|
+
parent.children.splice(index, 1, {
|
|
36
|
+
type: "element",
|
|
37
|
+
tagName: "div",
|
|
38
|
+
properties: {
|
|
39
|
+
className: [
|
|
40
|
+
"highlight",
|
|
41
|
+
"highlight-" + scope.replace(/^source\./, "").replace(/\./g, "-")
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
children: [
|
|
45
|
+
{ type: "element", tagName: "pre", properties: {}, children }
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
let processor;
|
|
53
|
+
const markdownToHTML = async (markdown) => {
|
|
54
|
+
if (!processor) {
|
|
55
|
+
const { unified } = await import("unified");
|
|
56
|
+
const remarkParse = await import("remark-parse");
|
|
57
|
+
const remarkGfm = await import("remark-gfm");
|
|
58
|
+
const remarkRehype = await import("remark-rehype");
|
|
59
|
+
const rehypeStringify = await import("rehype-stringify");
|
|
60
|
+
const rehypeStarryNight = await createRehypeStarryNight();
|
|
61
|
+
processor = unified().use(remarkParse.default).use(remarkGfm.default).use(remarkRehype.default).use(rehypeStarryNight).use(rehypeStringify.default);
|
|
62
|
+
}
|
|
63
|
+
const virtualFile = await processor.process(markdown);
|
|
64
|
+
return virtualFile.toString();
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
markdownToHTML
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=markdownToHTML.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownToHTML.js","sources":["../../../src/lib/markdownToHTML.ts"],"sourcesContent":["import type { Plugin, Processor } from \"unified\";\nimport type { Root, ElementContent } from \"hast\";\nimport type { Grammar } from \"@wooorm/starry-night\";\nimport { visit } from \"unist-util-visit\";\n\ntype RehypeStarryNightOptions = {\n\tgrammars?: Grammar[];\n};\n\n/**\n * Rehype plugin to highlight code with `starry-night`.\n *\n * Adapted from:\n * https://github.com/wooorm/starry-night/tree/c73aac7b8bff41ada86747f668dd932a791b851b#example-integrate-with-unified-remark-and-rehype\n */\nconst createRehypeStarryNight = async (): Promise<\n\tPlugin<[options?: RehypeStarryNightOptions], Root>\n> => {\n\tconst { createStarryNight, common } = await import(\"@wooorm/starry-night\");\n\tconst { default: tsxGrammar } = await import(\n\t\t\"@wooorm/starry-night/lang/source.tsx.js\"\n\t);\n\tconst { default: vueGrammar } = await import(\n\t\t\"@wooorm/starry-night/lang/text.html.vue.js\"\n\t);\n\tconst { toString } = await import(\"hast-util-to-string\");\n\n\treturn (options = {}) => {\n\t\tconst grammars = options.grammars || [...common, tsxGrammar, vueGrammar];\n\t\tconst starryNightPromise = createStarryNight(grammars);\n\t\tconst prefix = \"language-\";\n\n\t\treturn async (tree) => {\n\t\t\tconst starryNight = await starryNightPromise;\n\n\t\t\tvisit(tree, \"element\", function (node, index, parent) {\n\t\t\t\tif (!parent || index === null || node.tagName !== \"pre\") {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst head = node.children[0];\n\n\t\t\t\tif (\n\t\t\t\t\t!head ||\n\t\t\t\t\thead.type !== \"element\" ||\n\t\t\t\t\thead.tagName !== \"code\" ||\n\t\t\t\t\t!head.properties\n\t\t\t\t) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst classes = head.properties.className;\n\n\t\t\t\tif (!Array.isArray(classes)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst language = classes.find(\n\t\t\t\t\t(d) => typeof d === \"string\" && d.startsWith(prefix),\n\t\t\t\t);\n\n\t\t\t\tif (typeof language !== \"string\") {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst scope = starryNight.flagToScope(language.slice(prefix.length));\n\n\t\t\t\t// Maybe warn?\n\t\t\t\tif (!scope) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst fragment = starryNight.highlight(toString(head), scope);\n\t\t\t\tconst children = fragment.children as ElementContent[];\n\n\t\t\t\tparent.children.splice(index, 1, {\n\t\t\t\t\ttype: \"element\",\n\t\t\t\t\ttagName: \"div\",\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tclassName: [\n\t\t\t\t\t\t\t\"highlight\",\n\t\t\t\t\t\t\t\"highlight-\" + scope.replace(/^source\\./, \"\").replace(/\\./g, \"-\"),\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\tchildren: [\n\t\t\t\t\t\t{ type: \"element\", tagName: \"pre\", properties: {}, children },\n\t\t\t\t\t],\n\t\t\t\t});\n\t\t\t});\n\t\t};\n\t};\n};\n\nlet processor: Processor;\n\nexport const markdownToHTML = async (markdown: string): Promise<string> => {\n\tif (!processor) {\n\t\tconst { unified } = await import(\"unified\");\n\t\tconst remarkParse = await import(\"remark-parse\");\n\t\tconst remarkGfm = await import(\"remark-gfm\");\n\t\tconst remarkRehype = await import(\"remark-rehype\");\n\t\tconst rehypeStringify = await import(\"rehype-stringify\");\n\t\tconst rehypeStarryNight = await createRehypeStarryNight();\n\n\t\tprocessor = unified()\n\t\t\t.use(remarkParse.default)\n\t\t\t.use(remarkGfm.default)\n\t\t\t.use(remarkRehype.default)\n\t\t\t.use(rehypeStarryNight)\n\t\t\t.use(rehypeStringify.default);\n\t}\n\n\tconst virtualFile = await processor.process(markdown);\n\n\treturn virtualFile.toString();\n};\n"],"names":[],"mappings":";AAeA,MAAM,0BAA0B,YAE5B;AACH,QAAM,EAAE,mBAAmB,OAAW,IAAA,MAAM,OAAO,sBAAsB;AACzE,QAAM,EAAE,SAAS,WAAe,IAAA,MAAM,OACrC,yCAAyC;AAE1C,QAAM,EAAE,SAAS,WAAe,IAAA,MAAM,OACrC,4CAA4C;AAE7C,QAAM,EAAE,SAAA,IAAa,MAAM,OAAO,qBAAqB;AAEhD,SAAA,CAAC,UAAU,OAAM;AACvB,UAAM,WAAW,QAAQ,YAAY,CAAC,GAAG,QAAQ,YAAY,UAAU;AACjE,UAAA,qBAAqB,kBAAkB,QAAQ;AACrD,UAAM,SAAS;AAEf,WAAO,OAAO,SAAQ;AACrB,YAAM,cAAc,MAAM;AAE1B,YAAM,MAAM,WAAW,SAAU,MAAM,OAAO,QAAM;AACnD,YAAI,CAAC,UAAU,UAAU,QAAQ,KAAK,YAAY,OAAO;AACxD;AAAA,QACA;AAEK,cAAA,OAAO,KAAK,SAAS,CAAC;AAG3B,YAAA,CAAC,QACD,KAAK,SAAS,aACd,KAAK,YAAY,UACjB,CAAC,KAAK,YACL;AACD;AAAA,QACA;AAEK,cAAA,UAAU,KAAK,WAAW;AAEhC,YAAI,CAAC,MAAM,QAAQ,OAAO,GAAG;AAC5B;AAAA,QACA;AAEK,cAAA,WAAW,QAAQ,KACxB,CAAC,MAAM,OAAO,MAAM,YAAY,EAAE,WAAW,MAAM,CAAC;AAGjD,YAAA,OAAO,aAAa,UAAU;AACjC;AAAA,QACA;AAED,cAAM,QAAQ,YAAY,YAAY,SAAS,MAAM,OAAO,MAAM,CAAC;AAGnE,YAAI,CAAC,OAAO;AACX;AAAA,QACA;AAED,cAAM,WAAW,YAAY,UAAU,SAAS,IAAI,GAAG,KAAK;AAC5D,cAAM,WAAW,SAAS;AAEnB,eAAA,SAAS,OAAO,OAAO,GAAG;AAAA,UAChC,MAAM;AAAA,UACN,SAAS;AAAA,UACT,YAAY;AAAA,YACX,WAAW;AAAA,cACV;AAAA,cACA,eAAe,MAAM,QAAQ,aAAa,EAAE,EAAE,QAAQ,OAAO,GAAG;AAAA,YAChE;AAAA,UACD;AAAA,UACD,UAAU;AAAA,YACT,EAAE,MAAM,WAAW,SAAS,OAAO,YAAY,IAAI,SAAU;AAAA,UAC7D;AAAA,QAAA,CACD;AAAA,MAAA,CACD;AAAA,IAAA;AAAA,EACF;AAEF;AAEA,IAAI;AAES,MAAA,iBAAiB,OAAO,aAAqC;AACzE,MAAI,CAAC,WAAW;AACf,UAAM,EAAE,QAAA,IAAY,MAAM,OAAO,SAAS;AACpC,UAAA,cAAc,MAAM,OAAO,cAAc;AACzC,UAAA,YAAY,MAAM,OAAO,YAAY;AACrC,UAAA,eAAe,MAAM,OAAO,eAAe;AAC3C,UAAA,kBAAkB,MAAM,OAAO,kBAAkB;AACjD,UAAA,oBAAoB,MAAM;AAEhC,gBAAY,QACV,EAAA,IAAI,YAAY,OAAO,EACvB,IAAI,UAAU,OAAO,EACrB,IAAI,aAAa,OAAO,EACxB,IAAI,iBAAiB,EACrB,IAAI,gBAAgB,OAAO;AAAA,EAC7B;AAED,QAAM,cAAc,MAAM,UAAU,QAAQ,QAAQ;AAEpD,SAAO,YAAY;AACpB;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const mocks = require("@prismicio/mocks");
|
|
4
|
+
const mockSlice = (args) => {
|
|
5
|
+
const { model, mocks: mocks$1, diff } = args;
|
|
6
|
+
return model.variations.map((variation) => {
|
|
7
|
+
const variationMock = mocks$1 == null ? void 0 : mocks$1.find((m) => m.variation === variation.id);
|
|
8
|
+
const mockConfig = {
|
|
9
|
+
type: "SharedSlice",
|
|
10
|
+
variation: variation.id
|
|
11
|
+
};
|
|
12
|
+
if (!variationMock) {
|
|
13
|
+
return mocks.SharedSliceMock.generate(model, mockConfig);
|
|
14
|
+
}
|
|
15
|
+
if (!diff) {
|
|
16
|
+
return variationMock;
|
|
17
|
+
}
|
|
18
|
+
if (Object.keys(variation.items || {}).length && variationMock.items.length === 0) {
|
|
19
|
+
variationMock.items.push({ __TYPE__: "GroupItemContent", value: [] });
|
|
20
|
+
}
|
|
21
|
+
const patched = mocks.SharedSliceMock.patch(diff, variationMock, mockConfig);
|
|
22
|
+
if (!patched.ok) {
|
|
23
|
+
return variationMock;
|
|
24
|
+
}
|
|
25
|
+
if (!patched.result) {
|
|
26
|
+
return mocks.SharedSliceMock.generate(model, mockConfig);
|
|
27
|
+
}
|
|
28
|
+
return patched.result;
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
exports.mockSlice = mockSlice;
|
|
32
|
+
//# sourceMappingURL=mockSlice.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mockSlice.cjs","sources":["../../../src/lib/mockSlice.ts"],"sourcesContent":["import { SharedSliceMock } from \"@prismicio/mocks\";\n\nimport { SharedSliceContent } from \"@prismicio/types-internal/lib/content\";\nimport {\n\tSharedSlice,\n\tSliceDiff,\n} from \"@prismicio/types-internal/lib/customtypes\";\n\ntype mockSliceArgs = {\n\tmodel: SharedSlice;\n\tmocks?: SharedSliceContent[];\n\tdiff?: SliceDiff;\n};\n\nexport const mockSlice = (args: mockSliceArgs): SharedSliceContent[] => {\n\tconst { model, mocks, diff } = args;\n\n\treturn model.variations.map((variation) => {\n\t\tconst variationMock = mocks?.find((m) => m.variation === variation.id);\n\n\t\tconst mockConfig = {\n\t\t\ttype: \"SharedSlice\",\n\t\t\tvariation: variation.id,\n\t\t} as const;\n\n\t\tif (!variationMock) {\n\t\t\treturn SharedSliceMock.generate(model, mockConfig);\n\t\t}\n\t\tif (!diff) {\n\t\t\treturn variationMock;\n\t\t}\n\n\t\t// Enforce at least one item to be created if none are present and variation has item fields\n\t\tif (\n\t\t\tObject.keys(variation.items || {}).length &&\n\t\t\tvariationMock.items.length === 0\n\t\t) {\n\t\t\tvariationMock.items.push({ __TYPE__: \"GroupItemContent\", value: [] });\n\t\t}\n\t\tconst patched = SharedSliceMock.patch(diff, variationMock, mockConfig);\n\t\tif (!patched.ok) {\n\t\t\treturn variationMock;\n\t\t}\n\t\tif (!patched.result) {\n\t\t\treturn SharedSliceMock.generate(model, mockConfig);\n\t\t}\n\n\t\treturn patched.result;\n\t});\n};\n"],"names":["mocks","SharedSliceMock"],"mappings":";;;AAca,MAAA,YAAY,CAAC,SAA6C;AACtE,QAAM,EAAE,OAAOA,OAAAA,SAAO,KAAA,IAAS;AAE/B,SAAO,MAAM,WAAW,IAAI,CAAC,cAAa;AACnC,UAAA,gBAAgBA,mCAAO,KAAK,CAAC,MAAM,EAAE,cAAc,UAAU;AAEnE,UAAM,aAAa;AAAA,MAClB,MAAM;AAAA,MACN,WAAW,UAAU;AAAA,IAAA;AAGtB,QAAI,CAAC,eAAe;AACZ,aAAAC,sBAAgB,SAAS,OAAO,UAAU;AAAA,IACjD;AACD,QAAI,CAAC,MAAM;AACH,aAAA;AAAA,IACP;AAIA,QAAA,OAAO,KAAK,UAAU,SAAS,CAAA,CAAE,EAAE,UACnC,cAAc,MAAM,WAAW,GAC9B;AACa,oBAAA,MAAM,KAAK,EAAE,UAAU,oBAAoB,OAAO,IAAI;AAAA,IACpE;AACD,UAAM,UAAUA,MAAAA,gBAAgB,MAAM,MAAM,eAAe,UAAU;AACjE,QAAA,CAAC,QAAQ,IAAI;AACT,aAAA;AAAA,IACP;AACG,QAAA,CAAC,QAAQ,QAAQ;AACb,aAAAA,sBAAgB,SAAS,OAAO,UAAU;AAAA,IACjD;AAED,WAAO,QAAQ;AAAA,EAAA,CACf;AACF;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SharedSliceContent } from "@prismicio/types-internal/lib/content";
|
|
2
|
+
import { SharedSlice, SliceDiff } from "@prismicio/types-internal/lib/customtypes";
|
|
3
|
+
type mockSliceArgs = {
|
|
4
|
+
model: SharedSlice;
|
|
5
|
+
mocks?: SharedSliceContent[];
|
|
6
|
+
diff?: SliceDiff;
|
|
7
|
+
};
|
|
8
|
+
export declare const mockSlice: (args: mockSliceArgs) => SharedSliceContent[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SharedSliceMock } from "@prismicio/mocks";
|
|
2
|
+
const mockSlice = (args) => {
|
|
3
|
+
const { model, mocks, diff } = args;
|
|
4
|
+
return model.variations.map((variation) => {
|
|
5
|
+
const variationMock = mocks == null ? void 0 : mocks.find((m) => m.variation === variation.id);
|
|
6
|
+
const mockConfig = {
|
|
7
|
+
type: "SharedSlice",
|
|
8
|
+
variation: variation.id
|
|
9
|
+
};
|
|
10
|
+
if (!variationMock) {
|
|
11
|
+
return SharedSliceMock.generate(model, mockConfig);
|
|
12
|
+
}
|
|
13
|
+
if (!diff) {
|
|
14
|
+
return variationMock;
|
|
15
|
+
}
|
|
16
|
+
if (Object.keys(variation.items || {}).length && variationMock.items.length === 0) {
|
|
17
|
+
variationMock.items.push({ __TYPE__: "GroupItemContent", value: [] });
|
|
18
|
+
}
|
|
19
|
+
const patched = SharedSliceMock.patch(diff, variationMock, mockConfig);
|
|
20
|
+
if (!patched.ok) {
|
|
21
|
+
return variationMock;
|
|
22
|
+
}
|
|
23
|
+
if (!patched.result) {
|
|
24
|
+
return SharedSliceMock.generate(model, mockConfig);
|
|
25
|
+
}
|
|
26
|
+
return patched.result;
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
mockSlice
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=mockSlice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mockSlice.js","sources":["../../../src/lib/mockSlice.ts"],"sourcesContent":["import { SharedSliceMock } from \"@prismicio/mocks\";\n\nimport { SharedSliceContent } from \"@prismicio/types-internal/lib/content\";\nimport {\n\tSharedSlice,\n\tSliceDiff,\n} from \"@prismicio/types-internal/lib/customtypes\";\n\ntype mockSliceArgs = {\n\tmodel: SharedSlice;\n\tmocks?: SharedSliceContent[];\n\tdiff?: SliceDiff;\n};\n\nexport const mockSlice = (args: mockSliceArgs): SharedSliceContent[] => {\n\tconst { model, mocks, diff } = args;\n\n\treturn model.variations.map((variation) => {\n\t\tconst variationMock = mocks?.find((m) => m.variation === variation.id);\n\n\t\tconst mockConfig = {\n\t\t\ttype: \"SharedSlice\",\n\t\t\tvariation: variation.id,\n\t\t} as const;\n\n\t\tif (!variationMock) {\n\t\t\treturn SharedSliceMock.generate(model, mockConfig);\n\t\t}\n\t\tif (!diff) {\n\t\t\treturn variationMock;\n\t\t}\n\n\t\t// Enforce at least one item to be created if none are present and variation has item fields\n\t\tif (\n\t\t\tObject.keys(variation.items || {}).length &&\n\t\t\tvariationMock.items.length === 0\n\t\t) {\n\t\t\tvariationMock.items.push({ __TYPE__: \"GroupItemContent\", value: [] });\n\t\t}\n\t\tconst patched = SharedSliceMock.patch(diff, variationMock, mockConfig);\n\t\tif (!patched.ok) {\n\t\t\treturn variationMock;\n\t\t}\n\t\tif (!patched.result) {\n\t\t\treturn SharedSliceMock.generate(model, mockConfig);\n\t\t}\n\n\t\treturn patched.result;\n\t});\n};\n"],"names":[],"mappings":";AAca,MAAA,YAAY,CAAC,SAA6C;AACtE,QAAM,EAAE,OAAO,OAAO,KAAA,IAAS;AAE/B,SAAO,MAAM,WAAW,IAAI,CAAC,cAAa;AACnC,UAAA,gBAAgB,+BAAO,KAAK,CAAC,MAAM,EAAE,cAAc,UAAU;AAEnE,UAAM,aAAa;AAAA,MAClB,MAAM;AAAA,MACN,WAAW,UAAU;AAAA,IAAA;AAGtB,QAAI,CAAC,eAAe;AACZ,aAAA,gBAAgB,SAAS,OAAO,UAAU;AAAA,IACjD;AACD,QAAI,CAAC,MAAM;AACH,aAAA;AAAA,IACP;AAIA,QAAA,OAAO,KAAK,UAAU,SAAS,CAAA,CAAE,EAAE,UACnC,cAAc,MAAM,WAAW,GAC9B;AACa,oBAAA,MAAM,KAAK,EAAE,UAAU,oBAAoB,OAAO,IAAI;AAAA,IACpE;AACD,UAAM,UAAU,gBAAgB,MAAM,MAAM,eAAe,UAAU;AACjE,QAAA,CAAC,QAAQ,IAAI;AACT,aAAA;AAAA,IACP;AACG,QAAA,CAAC,QAAQ,QAAQ;AACb,aAAA,gBAAgB,SAAS,OAAO,UAAU;AAAA,IACjD;AAED,WAAO,QAAQ;AAAA,EAAA,CACf;AACF;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const path = require("node:path");
|
|
4
|
+
const t = require("io-ts");
|
|
5
|
+
const rc9 = require("rc9");
|
|
6
|
+
const decode = require("./decode.cjs");
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default") {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => e[k]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
const path__namespace = /* @__PURE__ */ _interopNamespaceDefault(path);
|
|
24
|
+
const t__namespace = /* @__PURE__ */ _interopNamespaceDefault(t);
|
|
25
|
+
const rc9__namespace = /* @__PURE__ */ _interopNamespaceDefault(rc9);
|
|
26
|
+
const PRISMICRC = ".prismicrc";
|
|
27
|
+
const Prismicrc = t__namespace.partial({
|
|
28
|
+
telemetry: t__namespace.boolean
|
|
29
|
+
});
|
|
30
|
+
const readRawPrismicrc = (dir) => {
|
|
31
|
+
const rawPrismicrc = dir ? rc9__namespace.read({ dir, name: PRISMICRC }) : rc9__namespace.readUser(PRISMICRC);
|
|
32
|
+
const { value: prismicrc, error } = decode.decode(Prismicrc, rawPrismicrc);
|
|
33
|
+
if (error) {
|
|
34
|
+
throw new Error(`Failed to parse ${dir ? path__namespace.resolve(dir, PRISMICRC) : `~/${PRISMICRC}`}: ${error.errors.join(", ")}`);
|
|
35
|
+
}
|
|
36
|
+
return prismicrc;
|
|
37
|
+
};
|
|
38
|
+
const readPrismicrc = (dir) => {
|
|
39
|
+
const userPrismicrc = readRawPrismicrc();
|
|
40
|
+
const projectPrismicrc = readRawPrismicrc(dir);
|
|
41
|
+
return {
|
|
42
|
+
...userPrismicrc,
|
|
43
|
+
...projectPrismicrc
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
exports.readPrismicrc = readPrismicrc;
|
|
47
|
+
exports.readRawPrismicrc = readRawPrismicrc;
|
|
48
|
+
//# sourceMappingURL=prismicrc.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prismicrc.cjs","sources":["../../../src/lib/prismicrc.ts"],"sourcesContent":["import * as path from \"node:path\";\nimport * as t from \"io-ts\";\nimport * as rc9 from \"rc9\";\n\nimport { decode } from \"./decode\";\n\nconst PRISMICRC = \".prismicrc\";\n\nconst Prismicrc = t.partial({\n\ttelemetry: t.boolean,\n});\ntype Prismicrc = t.TypeOf<typeof Prismicrc>;\n\nexport const readRawPrismicrc = (dir?: string): Prismicrc => {\n\tconst rawPrismicrc = dir\n\t\t? rc9.read({ dir, name: PRISMICRC })\n\t\t: rc9.readUser(PRISMICRC);\n\n\tconst { value: prismicrc, error } = decode(Prismicrc, rawPrismicrc);\n\n\tif (error) {\n\t\tthrow new Error(\n\t\t\t`Failed to parse ${\n\t\t\t\tdir ? path.resolve(dir, PRISMICRC) : `~/${PRISMICRC}`\n\t\t\t}: ${error.errors.join(\", \")}`,\n\t\t);\n\t}\n\n\treturn prismicrc;\n};\n\nexport const readPrismicrc = (dir: string): Prismicrc => {\n\tconst userPrismicrc = readRawPrismicrc();\n\tconst projectPrismicrc = readRawPrismicrc(dir);\n\n\treturn {\n\t\t...userPrismicrc,\n\t\t...projectPrismicrc,\n\t};\n};\n\nexport const writePrismicrc = (config: Prismicrc, dir?: string): void => {\n\tconst { value: validatedConfig, error } = decode(Prismicrc, config);\n\n\tif (error) {\n\t\tthrow new Error(`Failed to validate config: ${error.errors.join(\", \")}`);\n\t}\n\n\tdir\n\t\t? rc9.write(validatedConfig, { dir, name: PRISMICRC })\n\t\t: rc9.writeUser(validatedConfig, PRISMICRC);\n};\n\nexport const updatePrismicrc = (config: Prismicrc, dir?: string): Prismicrc => {\n\tconst { value: validatedConfig, error } = decode(Prismicrc, config);\n\n\tif (error) {\n\t\tthrow new Error(`Failed to validate config: ${error.errors.join(\", \")}`);\n\t}\n\n\treturn dir\n\t\t? rc9.update(validatedConfig, { dir, name: PRISMICRC })\n\t\t: rc9.updateUser(validatedConfig, PRISMICRC);\n};\n"],"names":["t","rc9","decode","path"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAM,YAAY;AAElB,MAAM,YAAYA,aAAE,QAAQ;AAAA,EAC3B,WAAWA,aAAE;AACb,CAAA;AAGY,MAAA,mBAAmB,CAAC,QAA2B;AAC3D,QAAM,eAAe,MAClBC,eAAI,KAAK,EAAE,KAAK,MAAM,UAAW,CAAA,IACjCA,eAAI,SAAS,SAAS;AAEzB,QAAM,EAAE,OAAO,WAAW,MAAU,IAAAC,cAAO,WAAW,YAAY;AAElE,MAAI,OAAO;AACV,UAAM,IAAI,MACT,mBACC,MAAMC,gBAAK,QAAQ,KAAK,SAAS,IAAI,KAAK,gBACtC,MAAM,OAAO,KAAK,IAAI,GAAG;AAAA,EAE/B;AAEM,SAAA;AACR;AAEa,MAAA,gBAAgB,CAAC,QAA0B;AACvD,QAAM,gBAAgB;AAChB,QAAA,mBAAmB,iBAAiB,GAAG;AAEtC,SAAA;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EAAA;AAEL;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as t from "io-ts";
|
|
2
|
+
declare const Prismicrc: t.PartialC<{
|
|
3
|
+
telemetry: t.BooleanC;
|
|
4
|
+
}>;
|
|
5
|
+
type Prismicrc = t.TypeOf<typeof Prismicrc>;
|
|
6
|
+
export declare const readRawPrismicrc: (dir?: string) => Prismicrc;
|
|
7
|
+
export declare const readPrismicrc: (dir: string) => Prismicrc;
|
|
8
|
+
export declare const writePrismicrc: (config: Prismicrc, dir?: string) => void;
|
|
9
|
+
export declare const updatePrismicrc: (config: Prismicrc, dir?: string) => Prismicrc;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as path from "node:path";
|
|
2
|
+
import * as t from "io-ts";
|
|
3
|
+
import * as rc9 from "rc9";
|
|
4
|
+
import { decode } from "./decode.js";
|
|
5
|
+
const PRISMICRC = ".prismicrc";
|
|
6
|
+
const Prismicrc = t.partial({
|
|
7
|
+
telemetry: t.boolean
|
|
8
|
+
});
|
|
9
|
+
const readRawPrismicrc = (dir) => {
|
|
10
|
+
const rawPrismicrc = dir ? rc9.read({ dir, name: PRISMICRC }) : rc9.readUser(PRISMICRC);
|
|
11
|
+
const { value: prismicrc, error } = decode(Prismicrc, rawPrismicrc);
|
|
12
|
+
if (error) {
|
|
13
|
+
throw new Error(`Failed to parse ${dir ? path.resolve(dir, PRISMICRC) : `~/${PRISMICRC}`}: ${error.errors.join(", ")}`);
|
|
14
|
+
}
|
|
15
|
+
return prismicrc;
|
|
16
|
+
};
|
|
17
|
+
const readPrismicrc = (dir) => {
|
|
18
|
+
const userPrismicrc = readRawPrismicrc();
|
|
19
|
+
const projectPrismicrc = readRawPrismicrc(dir);
|
|
20
|
+
return {
|
|
21
|
+
...userPrismicrc,
|
|
22
|
+
...projectPrismicrc
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
readPrismicrc,
|
|
27
|
+
readRawPrismicrc
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=prismicrc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prismicrc.js","sources":["../../../src/lib/prismicrc.ts"],"sourcesContent":["import * as path from \"node:path\";\nimport * as t from \"io-ts\";\nimport * as rc9 from \"rc9\";\n\nimport { decode } from \"./decode\";\n\nconst PRISMICRC = \".prismicrc\";\n\nconst Prismicrc = t.partial({\n\ttelemetry: t.boolean,\n});\ntype Prismicrc = t.TypeOf<typeof Prismicrc>;\n\nexport const readRawPrismicrc = (dir?: string): Prismicrc => {\n\tconst rawPrismicrc = dir\n\t\t? rc9.read({ dir, name: PRISMICRC })\n\t\t: rc9.readUser(PRISMICRC);\n\n\tconst { value: prismicrc, error } = decode(Prismicrc, rawPrismicrc);\n\n\tif (error) {\n\t\tthrow new Error(\n\t\t\t`Failed to parse ${\n\t\t\t\tdir ? path.resolve(dir, PRISMICRC) : `~/${PRISMICRC}`\n\t\t\t}: ${error.errors.join(\", \")}`,\n\t\t);\n\t}\n\n\treturn prismicrc;\n};\n\nexport const readPrismicrc = (dir: string): Prismicrc => {\n\tconst userPrismicrc = readRawPrismicrc();\n\tconst projectPrismicrc = readRawPrismicrc(dir);\n\n\treturn {\n\t\t...userPrismicrc,\n\t\t...projectPrismicrc,\n\t};\n};\n\nexport const writePrismicrc = (config: Prismicrc, dir?: string): void => {\n\tconst { value: validatedConfig, error } = decode(Prismicrc, config);\n\n\tif (error) {\n\t\tthrow new Error(`Failed to validate config: ${error.errors.join(\", \")}`);\n\t}\n\n\tdir\n\t\t? rc9.write(validatedConfig, { dir, name: PRISMICRC })\n\t\t: rc9.writeUser(validatedConfig, PRISMICRC);\n};\n\nexport const updatePrismicrc = (config: Prismicrc, dir?: string): Prismicrc => {\n\tconst { value: validatedConfig, error } = decode(Prismicrc, config);\n\n\tif (error) {\n\t\tthrow new Error(`Failed to validate config: ${error.errors.join(\", \")}`);\n\t}\n\n\treturn dir\n\t\t? rc9.update(validatedConfig, { dir, name: PRISMICRC })\n\t\t: rc9.updateUser(validatedConfig, PRISMICRC);\n};\n"],"names":[],"mappings":";;;;AAMA,MAAM,YAAY;AAElB,MAAM,YAAY,EAAE,QAAQ;AAAA,EAC3B,WAAW,EAAE;AACb,CAAA;AAGY,MAAA,mBAAmB,CAAC,QAA2B;AAC3D,QAAM,eAAe,MAClB,IAAI,KAAK,EAAE,KAAK,MAAM,UAAW,CAAA,IACjC,IAAI,SAAS,SAAS;AAEzB,QAAM,EAAE,OAAO,WAAW,MAAU,IAAA,OAAO,WAAW,YAAY;AAElE,MAAI,OAAO;AACV,UAAM,IAAI,MACT,mBACC,MAAM,KAAK,QAAQ,KAAK,SAAS,IAAI,KAAK,gBACtC,MAAM,OAAO,KAAK,IAAI,GAAG;AAAA,EAE/B;AAEM,SAAA;AACR;AAEa,MAAA,gBAAgB,CAAC,QAA0B;AACvD,QAAM,gBAAgB;AAChB,QAAA,mBAAmB,iBAAiB,GAAG;AAEtC,SAAA;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EAAA;AAEL;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const cookie = require("cookie");
|
|
4
|
+
const COOKIE_SEPARATOR = "; ";
|
|
5
|
+
const castParsedCookies = (cookies) => {
|
|
6
|
+
if (Array.isArray(cookies)) {
|
|
7
|
+
return cookie.parse(cookies.join(COOKIE_SEPARATOR));
|
|
8
|
+
} else if (typeof cookies === "string") {
|
|
9
|
+
return cookie.parse(cookies);
|
|
10
|
+
} else {
|
|
11
|
+
return cookies;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const serializeCookies = (cookies, args = {}) => {
|
|
15
|
+
const cookiesToSerialize = {
|
|
16
|
+
...castParsedCookies(args.cookieJar || {}),
|
|
17
|
+
...castParsedCookies(cookies)
|
|
18
|
+
};
|
|
19
|
+
const items = [];
|
|
20
|
+
for (const name in cookiesToSerialize) {
|
|
21
|
+
items.push(cookie.serialize(name, cookiesToSerialize[name], {
|
|
22
|
+
// Cookies need be stored raw (not encoded or escaped), so that consumers can format them the way they want them to be formatted.
|
|
23
|
+
encode: (cookie2) => cookie2
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
return items.join(COOKIE_SEPARATOR);
|
|
27
|
+
};
|
|
28
|
+
exports.serializeCookies = serializeCookies;
|
|
29
|
+
//# sourceMappingURL=serializeCookies.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serializeCookies.cjs","sources":["../../../src/lib/serializeCookies.ts"],"sourcesContent":["import cookie from \"cookie\";\n\nconst COOKIE_SEPARATOR = \"; \";\n\ntype Cookies = string | string[] | Record<string, string>;\n\nconst castParsedCookies = (cookies: Cookies): Record<string, string> => {\n\tif (Array.isArray(cookies)) {\n\t\treturn cookie.parse(cookies.join(COOKIE_SEPARATOR));\n\t} else if (typeof cookies === \"string\") {\n\t\treturn cookie.parse(cookies);\n\t} else {\n\t\treturn cookies;\n\t}\n};\n\ntype SerializeCookiesArgs = {\n\tcookieJar?: Cookies;\n};\n\n// TODO: If the `cookieJar` and multiple input types are not used anywhere,\n// simplify this function to only serialize a given object of cookies into a\n// string.\nexport const serializeCookies = (\n\tcookies: Cookies,\n\targs: SerializeCookiesArgs = {},\n): string => {\n\tconst cookiesToSerialize = {\n\t\t...castParsedCookies(args.cookieJar || {}),\n\t\t...castParsedCookies(cookies),\n\t};\n\n\tconst items: string[] = [];\n\n\tfor (const name in cookiesToSerialize) {\n\t\titems.push(\n\t\t\tcookie.serialize(name, cookiesToSerialize[name], {\n\t\t\t\t// Cookies need be stored raw (not encoded or escaped), so that consumers can format them the way they want them to be formatted.\n\t\t\t\tencode: (cookie) => cookie,\n\t\t\t}),\n\t\t);\n\t}\n\n\treturn items.join(COOKIE_SEPARATOR);\n};\n"],"names":["cookie"],"mappings":";;;AAEA,MAAM,mBAAmB;AAIzB,MAAM,oBAAoB,CAAC,YAA4C;AAClE,MAAA,MAAM,QAAQ,OAAO,GAAG;AAC3B,WAAO,OAAO,MAAM,QAAQ,KAAK,gBAAgB,CAAC;AAAA,EAAA,WACxC,OAAO,YAAY,UAAU;AAChC,WAAA,OAAO,MAAM,OAAO;AAAA,EAAA,OACrB;AACC,WAAA;AAAA,EACP;AACF;AASO,MAAM,mBAAmB,CAC/B,SACA,OAA6B,OAClB;AACX,QAAM,qBAAqB;AAAA,IAC1B,GAAG,kBAAkB,KAAK,aAAa,EAAE;AAAA,IACzC,GAAG,kBAAkB,OAAO;AAAA,EAAA;AAG7B,QAAM,QAAkB,CAAA;AAExB,aAAW,QAAQ,oBAAoB;AACtC,UAAM,KACL,OAAO,UAAU,MAAM,mBAAmB,IAAI,GAAG;AAAA;AAAA,MAEhD,QAAQ,CAACA,YAAWA;AAAAA,IACpB,CAAA,CAAC;AAAA,EAEH;AAEM,SAAA,MAAM,KAAK,gBAAgB;AACnC;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import cookie from "cookie";
|
|
2
|
+
const COOKIE_SEPARATOR = "; ";
|
|
3
|
+
const castParsedCookies = (cookies) => {
|
|
4
|
+
if (Array.isArray(cookies)) {
|
|
5
|
+
return cookie.parse(cookies.join(COOKIE_SEPARATOR));
|
|
6
|
+
} else if (typeof cookies === "string") {
|
|
7
|
+
return cookie.parse(cookies);
|
|
8
|
+
} else {
|
|
9
|
+
return cookies;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const serializeCookies = (cookies, args = {}) => {
|
|
13
|
+
const cookiesToSerialize = {
|
|
14
|
+
...castParsedCookies(args.cookieJar || {}),
|
|
15
|
+
...castParsedCookies(cookies)
|
|
16
|
+
};
|
|
17
|
+
const items = [];
|
|
18
|
+
for (const name in cookiesToSerialize) {
|
|
19
|
+
items.push(cookie.serialize(name, cookiesToSerialize[name], {
|
|
20
|
+
// Cookies need be stored raw (not encoded or escaped), so that consumers can format them the way they want them to be formatted.
|
|
21
|
+
encode: (cookie2) => cookie2
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
return items.join(COOKIE_SEPARATOR);
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
serializeCookies
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=serializeCookies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serializeCookies.js","sources":["../../../src/lib/serializeCookies.ts"],"sourcesContent":["import cookie from \"cookie\";\n\nconst COOKIE_SEPARATOR = \"; \";\n\ntype Cookies = string | string[] | Record<string, string>;\n\nconst castParsedCookies = (cookies: Cookies): Record<string, string> => {\n\tif (Array.isArray(cookies)) {\n\t\treturn cookie.parse(cookies.join(COOKIE_SEPARATOR));\n\t} else if (typeof cookies === \"string\") {\n\t\treturn cookie.parse(cookies);\n\t} else {\n\t\treturn cookies;\n\t}\n};\n\ntype SerializeCookiesArgs = {\n\tcookieJar?: Cookies;\n};\n\n// TODO: If the `cookieJar` and multiple input types are not used anywhere,\n// simplify this function to only serialize a given object of cookies into a\n// string.\nexport const serializeCookies = (\n\tcookies: Cookies,\n\targs: SerializeCookiesArgs = {},\n): string => {\n\tconst cookiesToSerialize = {\n\t\t...castParsedCookies(args.cookieJar || {}),\n\t\t...castParsedCookies(cookies),\n\t};\n\n\tconst items: string[] = [];\n\n\tfor (const name in cookiesToSerialize) {\n\t\titems.push(\n\t\t\tcookie.serialize(name, cookiesToSerialize[name], {\n\t\t\t\t// Cookies need be stored raw (not encoded or escaped), so that consumers can format them the way they want them to be formatted.\n\t\t\t\tencode: (cookie) => cookie,\n\t\t\t}),\n\t\t);\n\t}\n\n\treturn items.join(COOKIE_SEPARATOR);\n};\n"],"names":["cookie"],"mappings":";AAEA,MAAM,mBAAmB;AAIzB,MAAM,oBAAoB,CAAC,YAA4C;AAClE,MAAA,MAAM,QAAQ,OAAO,GAAG;AAC3B,WAAO,OAAO,MAAM,QAAQ,KAAK,gBAAgB,CAAC;AAAA,EAAA,WACxC,OAAO,YAAY,UAAU;AAChC,WAAA,OAAO,MAAM,OAAO;AAAA,EAAA,OACrB;AACC,WAAA;AAAA,EACP;AACF;AASO,MAAM,mBAAmB,CAC/B,SACA,OAA6B,OAClB;AACX,QAAM,qBAAqB;AAAA,IAC1B,GAAG,kBAAkB,KAAK,aAAa,EAAE;AAAA,IACzC,GAAG,kBAAkB,OAAO;AAAA,EAAA;AAG7B,QAAM,QAAkB,CAAA;AAExB,aAAW,QAAQ,oBAAoB;AACtC,UAAM,KACL,OAAO,UAAU,MAAM,mBAAmB,IAAI,GAAG;AAAA;AAAA,MAEhD,QAAQ,CAACA,YAAWA;AAAAA,IACpB,CAAA,CAAC;AAAA,EAEH;AAEM,SAAA,MAAM,KAAK,gBAAgB;AACnC;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const addTrailingSlash = (url) => {
|
|
4
|
+
return url == null ? void 0 : url.replace(/\/?$/, "/");
|
|
5
|
+
};
|
|
6
|
+
const removeTrailingSlash = (url) => {
|
|
7
|
+
return url.replace(/\/$/, "");
|
|
8
|
+
};
|
|
9
|
+
exports.addTrailingSlash = addTrailingSlash;
|
|
10
|
+
exports.removeTrailingSlash = removeTrailingSlash;
|
|
11
|
+
//# sourceMappingURL=trailingSlash.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trailingSlash.cjs","sources":["../../../src/lib/trailingSlash.ts"],"sourcesContent":["export const addTrailingSlash = (\n\turl: string | undefined,\n): string | undefined => {\n\treturn url?.replace(/\\/?$/, \"/\");\n};\n\nexport const removeTrailingSlash = (url: string): string => {\n\treturn url.replace(/\\/$/, \"\");\n};\n"],"names":[],"mappings":";;AAAa,MAAA,mBAAmB,CAC/B,QACuB;AAChB,SAAA,2BAAK,QAAQ,QAAQ;AAC7B;AAEa,MAAA,sBAAsB,CAAC,QAAuB;AACnD,SAAA,IAAI,QAAQ,OAAO,EAAE;AAC7B;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const addTrailingSlash = (url) => {
|
|
2
|
+
return url == null ? void 0 : url.replace(/\/?$/, "/");
|
|
3
|
+
};
|
|
4
|
+
const removeTrailingSlash = (url) => {
|
|
5
|
+
return url.replace(/\/$/, "");
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
addTrailingSlash,
|
|
9
|
+
removeTrailingSlash
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=trailingSlash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trailingSlash.js","sources":["../../../src/lib/trailingSlash.ts"],"sourcesContent":["export const addTrailingSlash = (\n\turl: string | undefined,\n): string | undefined => {\n\treturn url?.replace(/\\/?$/, \"/\");\n};\n\nexport const removeTrailingSlash = (url: string): string => {\n\treturn url.replace(/\\/$/, \"\");\n};\n"],"names":[],"mappings":"AAAa,MAAA,mBAAmB,CAC/B,QACuB;AAChB,SAAA,2BAAK,QAAQ,QAAQ;AAC7B;AAEa,MAAA,sBAAsB,CAAC,QAAuB;AACnD,SAAA,IAAI,QAAQ,OAAO,EAAE;AAC7B;"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => {
|
|
5
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
+
return value;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
9
|
+
class BaseManager {
|
|
10
|
+
constructor(sliceMachineManager) {
|
|
11
|
+
__publicField(this, "_sliceMachineManager");
|
|
12
|
+
this._sliceMachineManager = sliceMachineManager;
|
|
13
|
+
}
|
|
14
|
+
get prismicAuthManager() {
|
|
15
|
+
return this._sliceMachineManager.getPrismicAuthManager();
|
|
16
|
+
}
|
|
17
|
+
get sliceMachinePluginRunner() {
|
|
18
|
+
return this._sliceMachineManager.getSliceMachinePluginRunner();
|
|
19
|
+
}
|
|
20
|
+
set sliceMachinePluginRunner(sliceMachinePluginRunner) {
|
|
21
|
+
this._sliceMachineManager._sliceMachinePluginRunner = sliceMachinePluginRunner;
|
|
22
|
+
}
|
|
23
|
+
get cwd() {
|
|
24
|
+
return this._sliceMachineManager.cwd;
|
|
25
|
+
}
|
|
26
|
+
// Protected instance prevents circular intellisense
|
|
27
|
+
// e.g. sliceMachineManager.user.user.user
|
|
28
|
+
get user() {
|
|
29
|
+
return this._sliceMachineManager.user;
|
|
30
|
+
}
|
|
31
|
+
get prismicRepository() {
|
|
32
|
+
return this._sliceMachineManager.prismicRepository;
|
|
33
|
+
}
|
|
34
|
+
get plugins() {
|
|
35
|
+
return this._sliceMachineManager.plugins;
|
|
36
|
+
}
|
|
37
|
+
get project() {
|
|
38
|
+
return this._sliceMachineManager.project;
|
|
39
|
+
}
|
|
40
|
+
get customTypes() {
|
|
41
|
+
return this._sliceMachineManager.customTypes;
|
|
42
|
+
}
|
|
43
|
+
get slices() {
|
|
44
|
+
return this._sliceMachineManager.slices;
|
|
45
|
+
}
|
|
46
|
+
get snippets() {
|
|
47
|
+
return this._sliceMachineManager.snippets;
|
|
48
|
+
}
|
|
49
|
+
get screenshots() {
|
|
50
|
+
return this._sliceMachineManager.screenshots;
|
|
51
|
+
}
|
|
52
|
+
get simulator() {
|
|
53
|
+
return this._sliceMachineManager.simulator;
|
|
54
|
+
}
|
|
55
|
+
get documentation() {
|
|
56
|
+
return this._sliceMachineManager.documentation;
|
|
57
|
+
}
|
|
58
|
+
get sliceTemplateLibrary() {
|
|
59
|
+
return this._sliceMachineManager.sliceTemplateLibrary;
|
|
60
|
+
}
|
|
61
|
+
get versions() {
|
|
62
|
+
return this._sliceMachineManager.versions;
|
|
63
|
+
}
|
|
64
|
+
get telemetry() {
|
|
65
|
+
return this._sliceMachineManager.telemetry;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.BaseManager = BaseManager;
|
|
69
|
+
//# sourceMappingURL=BaseManager.cjs.map
|