@storm-software/untyped 0.17.29 → 0.17.31
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 +1 -1
- package/bin/untyped.cjs +94 -38
- package/bin/untyped.js +94 -38
- package/dist/{chunk-INZTCRKA.js → chunk-D57K6LA7.js} +1 -1
- package/dist/{chunk-NUBISBOF.js → chunk-ET6O6QX6.js} +1 -1
- package/dist/{chunk-E7Y5VJI7.js → chunk-FKEBWJOM.js} +42 -4
- package/dist/{chunk-3UFVAKX3.js → chunk-FWWEBJNY.js} +1 -1
- package/dist/{chunk-V6SWYUL2.cjs → chunk-KANB6P22.cjs} +3 -3
- package/dist/{chunk-NUF6TW3H.cjs → chunk-LDCYNE6N.cjs} +3 -3
- package/dist/{chunk-EGC7OWK4.cjs → chunk-OKLGFDRU.cjs} +11 -11
- package/dist/{chunk-AJXQFRFT.cjs → chunk-OQ3VISQU.cjs} +42 -4
- package/dist/{chunk-GRNXIBZC.cjs → chunk-QERVTBIR.cjs} +3 -3
- package/dist/{chunk-VDMGRZDV.js → chunk-SQWAYPVO.js} +4 -4
- package/dist/generate.cjs +6 -6
- package/dist/generate.d.cts +1 -1
- package/dist/generate.d.ts +1 -1
- package/dist/generate.js +5 -5
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/{types-BT2R-Ob1.d.cts → types-Dyk6Oc-x.d.cts} +2 -52
- package/dist/{types-BT2R-Ob1.d.ts → types-Dyk6Oc-x.d.ts} +2 -52
- package/package.json +2 -2
- package/dist/types-DARKEZG9.d.cts +0 -267
- package/dist/types-DARKEZG9.d.ts +0 -267
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/untyped.cjs
CHANGED
|
@@ -481,12 +481,12 @@ var require_jiti = __commonJS({
|
|
|
481
481
|
}, Parser3.tokenizer = function(input, options) {
|
|
482
482
|
return new this(options, input);
|
|
483
483
|
}, Object.defineProperties(Parser3.prototype, prototypeAccessors2);
|
|
484
|
-
var pp$92 = Parser3.prototype,
|
|
484
|
+
var pp$92 = Parser3.prototype, literal3 = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
485
485
|
pp$92.strictDirective = function(start) {
|
|
486
486
|
if (this.options.ecmaVersion < 5) return false;
|
|
487
487
|
for (; ; ) {
|
|
488
488
|
skipWhiteSpace2.lastIndex = start, start += skipWhiteSpace2.exec(this.input)[0].length;
|
|
489
|
-
var match =
|
|
489
|
+
var match = literal3.exec(this.input.slice(start));
|
|
490
490
|
if (!match) return false;
|
|
491
491
|
if ("use strict" === (match[1] || match[2])) {
|
|
492
492
|
skipWhiteSpace2.lastIndex = start + match[0].length;
|
|
@@ -16339,17 +16339,17 @@ See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
|
|
16339
16339
|
const startLoc = this.state.startLoc, endOfInit = () => this.match(12) || this.match(8);
|
|
16340
16340
|
switch (this.state.type) {
|
|
16341
16341
|
case 135: {
|
|
16342
|
-
const
|
|
16343
|
-
return endOfInit() ? { type: "number", loc:
|
|
16342
|
+
const literal3 = this.parseNumericLiteral(this.state.value);
|
|
16343
|
+
return endOfInit() ? { type: "number", loc: literal3.loc.start, value: literal3 } : { type: "invalid", loc: startLoc };
|
|
16344
16344
|
}
|
|
16345
16345
|
case 134: {
|
|
16346
|
-
const
|
|
16347
|
-
return endOfInit() ? { type: "string", loc:
|
|
16346
|
+
const literal3 = this.parseStringLiteral(this.state.value);
|
|
16347
|
+
return endOfInit() ? { type: "string", loc: literal3.loc.start, value: literal3 } : { type: "invalid", loc: startLoc };
|
|
16348
16348
|
}
|
|
16349
16349
|
case 85:
|
|
16350
16350
|
case 86: {
|
|
16351
|
-
const
|
|
16352
|
-
return endOfInit() ? { type: "boolean", loc:
|
|
16351
|
+
const literal3 = this.parseBooleanLiteral(this.match(85));
|
|
16352
|
+
return endOfInit() ? { type: "boolean", loc: literal3.loc.start, value: literal3 } : { type: "invalid", loc: startLoc };
|
|
16353
16353
|
}
|
|
16354
16354
|
default:
|
|
16355
16355
|
return { type: "invalid", loc: startLoc };
|
|
@@ -24902,9 +24902,9 @@ ${str}
|
|
|
24902
24902
|
return validate(defs.types, node, "types", types2, 1), node;
|
|
24903
24903
|
}, exports3.tSIntrinsicKeyword = exports3.tsIntrinsicKeyword = function() {
|
|
24904
24904
|
return { type: "TSIntrinsicKeyword" };
|
|
24905
|
-
}, exports3.tSLiteralType = exports3.tsLiteralType = function(
|
|
24906
|
-
const node = { type: "TSLiteralType", literal:
|
|
24907
|
-
return validate(defs.literal, node, "literal",
|
|
24905
|
+
}, exports3.tSLiteralType = exports3.tsLiteralType = function(literal3) {
|
|
24906
|
+
const node = { type: "TSLiteralType", literal: literal3 }, defs = NODE_FIELDS.TSLiteralType;
|
|
24907
|
+
return validate(defs.literal, node, "literal", literal3, 1), node;
|
|
24908
24908
|
}, exports3.tSMappedType = exports3.tsMappedType = function(typeParameter, typeAnnotation = null, nameType = null) {
|
|
24909
24909
|
const node = { type: "TSMappedType", typeParameter, typeAnnotation, nameType }, defs = NODE_FIELDS.TSMappedType;
|
|
24910
24910
|
return validate(defs.typeParameter, node, "typeParameter", typeParameter, 1), validate(defs.typeAnnotation, node, "typeAnnotation", typeAnnotation, 1), validate(defs.nameType, node, "nameType", nameType, 1), node;
|
|
@@ -26150,9 +26150,9 @@ Expected ${val.length + 1} quasis but got ${node.quasis.length}`);
|
|
|
26150
26150
|
defineType("TSFunctionType", Object.assign({}, fnOrCtrBase, { fields: signatureDeclarationCommon() })), defineType("TSConstructorType", Object.assign({}, fnOrCtrBase, { fields: Object.assign({}, signatureDeclarationCommon(), { abstract: (0, _utils.validateOptional)(bool) }) })), defineType("TSTypeReference", { aliases: ["TSType"], visitor: ["typeName", "typeParameters"], fields: { typeName: (0, _utils.validateType)("TSEntityName"), typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") } }), defineType("TSTypePredicate", { aliases: ["TSType"], visitor: ["parameterName", "typeAnnotation"], builder: ["parameterName", "typeAnnotation", "asserts"], fields: { parameterName: (0, _utils.validateType)("Identifier", "TSThisType"), typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"), asserts: (0, _utils.validateOptional)(bool) } }), defineType("TSTypeQuery", { aliases: ["TSType"], visitor: ["exprName", "typeParameters"], fields: { exprName: (0, _utils.validateType)("TSEntityName", "TSImportType"), typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") } }), defineType("TSTypeLiteral", { aliases: ["TSType"], visitor: ["members"], fields: { members: (0, _utils.validateArrayOfType)("TSTypeElement") } }), defineType("TSArrayType", { aliases: ["TSType"], visitor: ["elementType"], fields: { elementType: (0, _utils.validateType)("TSType") } }), defineType("TSTupleType", { aliases: ["TSType"], visitor: ["elementTypes"], fields: { elementTypes: (0, _utils.validateArrayOfType)("TSType", "TSNamedTupleMember") } }), defineType("TSOptionalType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSRestType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSNamedTupleMember", { visitor: ["label", "elementType"], builder: ["label", "elementType", "optional"], fields: { label: (0, _utils.validateType)("Identifier"), optional: { validate: bool, default: false }, elementType: (0, _utils.validateType)("TSType") } });
|
|
26151
26151
|
const unionOrIntersection = { aliases: ["TSType"], visitor: ["types"], fields: { types: (0, _utils.validateArrayOfType)("TSType") } };
|
|
26152
26152
|
defineType("TSUnionType", unionOrIntersection), defineType("TSIntersectionType", unionOrIntersection), defineType("TSConditionalType", { aliases: ["TSType"], visitor: ["checkType", "extendsType", "trueType", "falseType"], fields: { checkType: (0, _utils.validateType)("TSType"), extendsType: (0, _utils.validateType)("TSType"), trueType: (0, _utils.validateType)("TSType"), falseType: (0, _utils.validateType)("TSType") } }), defineType("TSInferType", { aliases: ["TSType"], visitor: ["typeParameter"], fields: { typeParameter: (0, _utils.validateType)("TSTypeParameter") } }), defineType("TSParenthesizedType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSTypeOperator", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { operator: (0, _utils.validate)((0, _utils.assertValueType)("string")), typeAnnotation: (0, _utils.validateType)("TSType") } }), defineType("TSIndexedAccessType", { aliases: ["TSType"], visitor: ["objectType", "indexType"], fields: { objectType: (0, _utils.validateType)("TSType"), indexType: (0, _utils.validateType)("TSType") } }), defineType("TSMappedType", { aliases: ["TSType"], visitor: ["typeParameter", "nameType", "typeAnnotation"], builder: ["typeParameter", "typeAnnotation", "nameType"], fields: Object.assign({}, { typeParameter: (0, _utils.validateType)("TSTypeParameter") }, { readonly: (0, _utils.validateOptional)((0, _utils.assertOneOf)(true, false, "+", "-")), optional: (0, _utils.validateOptional)((0, _utils.assertOneOf)(true, false, "+", "-")), typeAnnotation: (0, _utils.validateOptionalType)("TSType"), nameType: (0, _utils.validateOptionalType)("TSType") }) }), defineType("TSLiteralType", { aliases: ["TSType", "TSBaseType"], visitor: ["literal"], fields: { literal: { validate: function() {
|
|
26153
|
-
const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral"), unaryOperator = (0, _utils.assertOneOf)("-"),
|
|
26153
|
+
const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral"), unaryOperator = (0, _utils.assertOneOf)("-"), literal3 = (0, _utils.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral");
|
|
26154
26154
|
function validator(parent, key, node) {
|
|
26155
|
-
(0, _is.default)("UnaryExpression", node) ? (unaryOperator(node, "operator", node.operator), unaryExpression(node, "argument", node.argument)) :
|
|
26155
|
+
(0, _is.default)("UnaryExpression", node) ? (unaryOperator(node, "operator", node.operator), unaryExpression(node, "argument", node.argument)) : literal3(parent, key, node);
|
|
26156
26156
|
}
|
|
26157
26157
|
return validator.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral", "UnaryExpression"], validator;
|
|
26158
26158
|
}() } } });
|
|
@@ -28718,11 +28718,11 @@ ${trace}`);
|
|
|
28718
28718
|
case "[":
|
|
28719
28719
|
return newToken("punctuator", read3());
|
|
28720
28720
|
case "n":
|
|
28721
|
-
return read3(),
|
|
28721
|
+
return read3(), literal3("ull"), newToken("null", null);
|
|
28722
28722
|
case "t":
|
|
28723
|
-
return read3(),
|
|
28723
|
+
return read3(), literal3("rue"), newToken("boolean", true);
|
|
28724
28724
|
case "f":
|
|
28725
|
-
return read3(),
|
|
28725
|
+
return read3(), literal3("alse"), newToken("boolean", false);
|
|
28726
28726
|
case "-":
|
|
28727
28727
|
case "+":
|
|
28728
28728
|
return "-" === read3() && (sign = -1), void (lexState = "sign");
|
|
@@ -28741,9 +28741,9 @@ ${trace}`);
|
|
|
28741
28741
|
case "9":
|
|
28742
28742
|
return buffer = read3(), void (lexState = "decimalInteger");
|
|
28743
28743
|
case "I":
|
|
28744
|
-
return read3(),
|
|
28744
|
+
return read3(), literal3("nfinity"), newToken("numeric", 1 / 0);
|
|
28745
28745
|
case "N":
|
|
28746
|
-
return read3(),
|
|
28746
|
+
return read3(), literal3("aN"), newToken("numeric", NaN);
|
|
28747
28747
|
case '"':
|
|
28748
28748
|
case "'":
|
|
28749
28749
|
return doubleQuote = '"' === read3(), buffer = "", void (lexState = "string");
|
|
@@ -28804,9 +28804,9 @@ ${trace}`);
|
|
|
28804
28804
|
case "9":
|
|
28805
28805
|
return buffer = read3(), void (lexState = "decimalInteger");
|
|
28806
28806
|
case "I":
|
|
28807
|
-
return read3(),
|
|
28807
|
+
return read3(), literal3("nfinity"), newToken("numeric", sign * (1 / 0));
|
|
28808
28808
|
case "N":
|
|
28809
|
-
return read3(),
|
|
28809
|
+
return read3(), literal3("aN"), newToken("numeric", NaN);
|
|
28810
28810
|
}
|
|
28811
28811
|
throw invalidChar(read3());
|
|
28812
28812
|
}, zero() {
|
|
@@ -28985,7 +28985,7 @@ ${trace}`);
|
|
|
28985
28985
|
function newToken(type, value2) {
|
|
28986
28986
|
return { type, value: value2, line, column };
|
|
28987
28987
|
}
|
|
28988
|
-
function
|
|
28988
|
+
function literal3(s3) {
|
|
28989
28989
|
for (const c3 of s3) {
|
|
28990
28990
|
if (peek() !== c3) throw invalidChar(read3());
|
|
28991
28991
|
read3();
|
|
@@ -29544,12 +29544,12 @@ ${trace}`);
|
|
|
29544
29544
|
}, Parser3.tokenizer = function(input, options) {
|
|
29545
29545
|
return new this(options, input);
|
|
29546
29546
|
}, Object.defineProperties(Parser3.prototype, prototypeAccessors2);
|
|
29547
|
-
var pp$92 = Parser3.prototype,
|
|
29547
|
+
var pp$92 = Parser3.prototype, literal3 = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
29548
29548
|
pp$92.strictDirective = function(start) {
|
|
29549
29549
|
if (this.options.ecmaVersion < 5) return false;
|
|
29550
29550
|
for (; ; ) {
|
|
29551
29551
|
skipWhiteSpace2.lastIndex = start, start += skipWhiteSpace2.exec(this.input)[0].length;
|
|
29552
|
-
var match =
|
|
29552
|
+
var match = literal3.exec(this.input.slice(start));
|
|
29553
29553
|
if (!match) return false;
|
|
29554
29554
|
if ("use strict" === (match[1] || match[2])) {
|
|
29555
29555
|
skipWhiteSpace2.lastIndex = start + match[0].length;
|
|
@@ -31948,7 +31948,7 @@ function stringToBigInt(str) {
|
|
|
31948
31948
|
}
|
|
31949
31949
|
return BigInt(str.replace(/_/g, ""));
|
|
31950
31950
|
}
|
|
31951
|
-
var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars, nonASCIIidentifierStartChars, reservedWords, ecma5AndLessKeywords, keywords$1, keywordRelationalOperator, nonASCIIidentifierStart, nonASCIIidentifier, TokenType, beforeExpr, startsExpr, keywords, types$1, lineBreak, lineBreakG, nonASCIIwhitespace, skipWhiteSpace, ref, hasOwnProperty2, toString, hasOwn, isArray, regexpCache, loneSurrogate, Position, SourceLocation, defaultOptions, warnedAboutEcmaVersion, SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, SCOPE_SUPER, SCOPE_DIRECT_SUPER, SCOPE_CLASS_STATIC_BLOCK, SCOPE_CLASS_FIELD_INIT, SCOPE_VAR, BIND_NONE, BIND_VAR, BIND_LEXICAL, BIND_FUNCTION, BIND_SIMPLE_CATCH, BIND_OUTSIDE, Parser, prototypeAccessors, pp$9,
|
|
31951
|
+
var astralIdentifierCodes, astralIdentifierStartCodes, nonASCIIidentifierChars, nonASCIIidentifierStartChars, reservedWords, ecma5AndLessKeywords, keywords$1, keywordRelationalOperator, nonASCIIidentifierStart, nonASCIIidentifier, TokenType, beforeExpr, startsExpr, keywords, types$1, lineBreak, lineBreakG, nonASCIIwhitespace, skipWhiteSpace, ref, hasOwnProperty2, toString, hasOwn, isArray, regexpCache, loneSurrogate, Position, SourceLocation, defaultOptions, warnedAboutEcmaVersion, SCOPE_TOP, SCOPE_FUNCTION, SCOPE_ASYNC, SCOPE_GENERATOR, SCOPE_ARROW, SCOPE_SIMPLE_CATCH, SCOPE_SUPER, SCOPE_DIRECT_SUPER, SCOPE_CLASS_STATIC_BLOCK, SCOPE_CLASS_FIELD_INIT, SCOPE_VAR, BIND_NONE, BIND_VAR, BIND_LEXICAL, BIND_FUNCTION, BIND_SIMPLE_CATCH, BIND_OUTSIDE, Parser, prototypeAccessors, pp$9, literal2, DestructuringErrors, pp$8, loopLabel, switchLabel, empty$1, FUNC_STATEMENT, FUNC_HANGING_STATEMENT, FUNC_NULLABLE_ID, pp$7, TokContext, types, pp$6, pp$5, empty, pp$4, pp$3, Scope, Node, pp$2, scriptValuesAddedInUnicode, ecma9BinaryProperties, ecma10BinaryProperties, ecma11BinaryProperties, ecma12BinaryProperties, ecma13BinaryProperties, ecma14BinaryProperties, unicodeBinaryProperties, ecma14BinaryPropertiesOfStrings, unicodeBinaryPropertiesOfStrings, unicodeGeneralCategoryValues, ecma9ScriptValues, ecma10ScriptValues, ecma11ScriptValues, ecma12ScriptValues, ecma13ScriptValues, ecma14ScriptValues, unicodeScriptValues, data, ecmaVersion, i2, list, pp$1, BranchID, RegExpValidationState, CharSetNone, CharSetOk, CharSetString, Token, pp, INVALID_TEMPLATE_ESCAPE_ERROR, version2;
|
|
31952
31952
|
var init_acorn = __esm({
|
|
31953
31953
|
"../../node_modules/.pnpm/acorn@8.15.0/node_modules/acorn/dist/acorn.mjs"() {
|
|
31954
31954
|
init_cjs_shims();
|
|
@@ -32348,7 +32348,7 @@ var init_acorn = __esm({
|
|
|
32348
32348
|
};
|
|
32349
32349
|
Object.defineProperties(Parser.prototype, prototypeAccessors);
|
|
32350
32350
|
pp$9 = Parser.prototype;
|
|
32351
|
-
|
|
32351
|
+
literal2 = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
32352
32352
|
pp$9.strictDirective = function(start) {
|
|
32353
32353
|
if (this.options.ecmaVersion < 5) {
|
|
32354
32354
|
return false;
|
|
@@ -32356,7 +32356,7 @@ var init_acorn = __esm({
|
|
|
32356
32356
|
for (; ; ) {
|
|
32357
32357
|
skipWhiteSpace.lastIndex = start;
|
|
32358
32358
|
start += skipWhiteSpace.exec(this.input)[0].length;
|
|
32359
|
-
var match =
|
|
32359
|
+
var match = literal2.exec(this.input.slice(start));
|
|
32360
32360
|
if (!match) {
|
|
32361
32361
|
return false;
|
|
32362
32362
|
}
|
|
@@ -41468,12 +41468,12 @@ var init_dist5 = __esm({
|
|
|
41468
41468
|
}
|
|
41469
41469
|
});
|
|
41470
41470
|
|
|
41471
|
-
// ../../node_modules/.pnpm/dotenv@16.
|
|
41471
|
+
// ../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/package.json
|
|
41472
41472
|
var require_package = __commonJS({
|
|
41473
|
-
"../../node_modules/.pnpm/dotenv@16.
|
|
41473
|
+
"../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/package.json"(exports2, module2) {
|
|
41474
41474
|
module2.exports = {
|
|
41475
41475
|
name: "dotenv",
|
|
41476
|
-
version: "16.
|
|
41476
|
+
version: "16.6.0",
|
|
41477
41477
|
description: "Loads environment variables from .env file",
|
|
41478
41478
|
main: "lib/main.js",
|
|
41479
41479
|
types: "lib/main.d.ts",
|
|
@@ -41536,9 +41536,9 @@ var require_package = __commonJS({
|
|
|
41536
41536
|
}
|
|
41537
41537
|
});
|
|
41538
41538
|
|
|
41539
|
-
// ../../node_modules/.pnpm/dotenv@16.
|
|
41539
|
+
// ../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/lib/main.js
|
|
41540
41540
|
var require_main = __commonJS({
|
|
41541
|
-
"../../node_modules/.pnpm/dotenv@16.
|
|
41541
|
+
"../../node_modules/.pnpm/dotenv@16.6.0/node_modules/dotenv/lib/main.js"(exports2, module2) {
|
|
41542
41542
|
init_cjs_shims();
|
|
41543
41543
|
var fs3 = require("fs");
|
|
41544
41544
|
var path2 = require("path");
|
|
@@ -41568,7 +41568,8 @@ var require_main = __commonJS({
|
|
|
41568
41568
|
}
|
|
41569
41569
|
function _parseVault(options) {
|
|
41570
41570
|
const vaultPath = _vaultPath(options);
|
|
41571
|
-
|
|
41571
|
+
options.path = vaultPath;
|
|
41572
|
+
const result = DotenvModule.configDotenv(options);
|
|
41572
41573
|
if (!result.parsed) {
|
|
41573
41574
|
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
41574
41575
|
err.code = "MISSING_DATA";
|
|
@@ -41597,6 +41598,9 @@ var require_main = __commonJS({
|
|
|
41597
41598
|
function _debug(message) {
|
|
41598
41599
|
console.log(`[dotenv@${version3}][DEBUG] ${message}`);
|
|
41599
41600
|
}
|
|
41601
|
+
function _log(message) {
|
|
41602
|
+
console.log(`[dotenv@${version3}] ${message}`);
|
|
41603
|
+
}
|
|
41600
41604
|
function _dotenvKey(options) {
|
|
41601
41605
|
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
41602
41606
|
return options.DOTENV_KEY;
|
|
@@ -41664,8 +41668,9 @@ var require_main = __commonJS({
|
|
|
41664
41668
|
}
|
|
41665
41669
|
function _configVault(options) {
|
|
41666
41670
|
const debug2 = Boolean(options && options.debug);
|
|
41667
|
-
|
|
41668
|
-
|
|
41671
|
+
const quiet = Boolean(options && options.quiet);
|
|
41672
|
+
if (debug2 || !quiet) {
|
|
41673
|
+
_log("Loading env from encrypted .env.vault");
|
|
41669
41674
|
}
|
|
41670
41675
|
const parsed = DotenvModule._parseVault(options);
|
|
41671
41676
|
let processEnv = process.env;
|
|
@@ -41679,6 +41684,7 @@ var require_main = __commonJS({
|
|
|
41679
41684
|
const dotenvPath = path2.resolve(process.cwd(), ".env");
|
|
41680
41685
|
let encoding = "utf8";
|
|
41681
41686
|
const debug2 = Boolean(options && options.debug);
|
|
41687
|
+
const quiet = Boolean(options && options.quiet);
|
|
41682
41688
|
if (options && options.encoding) {
|
|
41683
41689
|
encoding = options.encoding;
|
|
41684
41690
|
} else {
|
|
@@ -41715,6 +41721,18 @@ var require_main = __commonJS({
|
|
|
41715
41721
|
processEnv = options.processEnv;
|
|
41716
41722
|
}
|
|
41717
41723
|
DotenvModule.populate(processEnv, parsedAll, options);
|
|
41724
|
+
if (debug2 || !quiet) {
|
|
41725
|
+
const keysCount = Object.keys(parsedAll).length;
|
|
41726
|
+
const shortPaths = [];
|
|
41727
|
+
for (const filePath of optionPaths) {
|
|
41728
|
+
try {
|
|
41729
|
+
const relative2 = path2.relative(process.cwd(), filePath);
|
|
41730
|
+
shortPaths.push(relative2);
|
|
41731
|
+
} catch {
|
|
41732
|
+
}
|
|
41733
|
+
}
|
|
41734
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(",")}`);
|
|
41735
|
+
}
|
|
41718
41736
|
if (lastError) {
|
|
41719
41737
|
return { parsed: parsedAll, error: lastError };
|
|
41720
41738
|
} else {
|
|
@@ -65802,6 +65820,24 @@ var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
65802
65820
|
return payload;
|
|
65803
65821
|
};
|
|
65804
65822
|
});
|
|
65823
|
+
var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
65824
|
+
$ZodType.init(inst, def);
|
|
65825
|
+
inst._zod.values = new Set(def.values);
|
|
65826
|
+
inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? o.toString() : String(o)).join("|")})$`);
|
|
65827
|
+
inst._zod.parse = (payload, _ctx) => {
|
|
65828
|
+
const input = payload.value;
|
|
65829
|
+
if (inst._zod.values.has(input)) {
|
|
65830
|
+
return payload;
|
|
65831
|
+
}
|
|
65832
|
+
payload.issues.push({
|
|
65833
|
+
code: "invalid_value",
|
|
65834
|
+
values: def.values,
|
|
65835
|
+
input,
|
|
65836
|
+
inst
|
|
65837
|
+
});
|
|
65838
|
+
return payload;
|
|
65839
|
+
};
|
|
65840
|
+
});
|
|
65805
65841
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
65806
65842
|
$ZodType.init(inst, def);
|
|
65807
65843
|
inst._zod.parse = (payload, _ctx) => {
|
|
@@ -67114,6 +67150,26 @@ function _enum(values, params) {
|
|
|
67114
67150
|
...util_exports.normalizeParams(params)
|
|
67115
67151
|
});
|
|
67116
67152
|
}
|
|
67153
|
+
var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
|
|
67154
|
+
$ZodLiteral.init(inst, def);
|
|
67155
|
+
ZodType.init(inst, def);
|
|
67156
|
+
inst.values = new Set(def.values);
|
|
67157
|
+
Object.defineProperty(inst, "value", {
|
|
67158
|
+
get() {
|
|
67159
|
+
if (def.values.length > 1) {
|
|
67160
|
+
throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
67161
|
+
}
|
|
67162
|
+
return def.values[0];
|
|
67163
|
+
}
|
|
67164
|
+
});
|
|
67165
|
+
});
|
|
67166
|
+
function literal(value2, params) {
|
|
67167
|
+
return new ZodLiteral({
|
|
67168
|
+
type: "literal",
|
|
67169
|
+
values: Array.isArray(value2) ? value2 : [value2],
|
|
67170
|
+
...util_exports.normalizeParams(params)
|
|
67171
|
+
});
|
|
67172
|
+
}
|
|
67117
67173
|
var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
67118
67174
|
$ZodTransform.init(inst, def);
|
|
67119
67175
|
ZodType.init(inst, def);
|
|
@@ -67398,10 +67454,10 @@ var RegistryConfigSchema = object({
|
|
|
67398
67454
|
var ColorConfigSchema = SingleThemeColorConfigSchema.or(
|
|
67399
67455
|
MultiThemeColorConfigSchema
|
|
67400
67456
|
).describe("Colors used for various workspace elements");
|
|
67401
|
-
var ColorConfigMapSchema =
|
|
67402
|
-
|
|
67403
|
-
|
|
67404
|
-
|
|
67457
|
+
var ColorConfigMapSchema = record(
|
|
67458
|
+
union([literal("base"), string2()]),
|
|
67459
|
+
ColorConfigSchema
|
|
67460
|
+
);
|
|
67405
67461
|
var ExtendsItemSchema = string2().trim().describe(
|
|
67406
67462
|
"The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
|
|
67407
67463
|
);
|