drizzle-kit 1.0.0-beta.2-0ff3a44 → 1.0.0-beta.2-8a7830c
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/api-mysql.js +766 -777
- package/api-mysql.mjs +766 -777
- package/api-postgres.js +1358 -1336
- package/api-postgres.mjs +1359 -1336
- package/api-sqlite.js +766 -777
- package/api-sqlite.mjs +766 -777
- package/bin.cjs +3281 -3170
- package/package.json +1 -1
package/api-mysql.js
CHANGED
|
@@ -620,8 +620,8 @@ var init_url = __esm({
|
|
|
620
620
|
};
|
|
621
621
|
extractGroupsFromPath = (path2) => {
|
|
622
622
|
const groups = [];
|
|
623
|
-
path2 = path2.replace(/\{[^}]+\}/g, (match2,
|
|
624
|
-
const mark = `@${
|
|
623
|
+
path2 = path2.replace(/\{[^}]+\}/g, (match2, index6) => {
|
|
624
|
+
const mark = `@${index6}`;
|
|
625
625
|
groups.push([mark, match2]);
|
|
626
626
|
return mark;
|
|
627
627
|
});
|
|
@@ -1036,10 +1036,10 @@ var init_esm = __esm({
|
|
|
1036
1036
|
"../node_modules/.pnpm/@hono+zod-validator@0.2.2_hono@4.10.7_zod@3.25.1/node_modules/@hono/zod-validator/dist/esm/index.js"() {
|
|
1037
1037
|
"use strict";
|
|
1038
1038
|
init_validator2();
|
|
1039
|
-
zValidator = (target,
|
|
1039
|
+
zValidator = (target, schema5, hook) => (
|
|
1040
1040
|
// @ts-expect-error not typed well
|
|
1041
1041
|
validator(target, async (value, c6) => {
|
|
1042
|
-
const result2 = await
|
|
1042
|
+
const result2 = await schema5.safeParseAsync(value);
|
|
1043
1043
|
if (hook) {
|
|
1044
1044
|
const hookResult = await hook({ data: value, ...result2 }, c6);
|
|
1045
1045
|
if (hookResult) {
|
|
@@ -1067,13 +1067,13 @@ var init_compose = __esm({
|
|
|
1067
1067
|
"use strict";
|
|
1068
1068
|
compose = (middleware, onError, onNotFound) => {
|
|
1069
1069
|
return (context, next) => {
|
|
1070
|
-
let
|
|
1070
|
+
let index6 = -1;
|
|
1071
1071
|
return dispatch(0);
|
|
1072
1072
|
async function dispatch(i7) {
|
|
1073
|
-
if (i7 <=
|
|
1073
|
+
if (i7 <= index6) {
|
|
1074
1074
|
throw new Error("next() called multiple times");
|
|
1075
1075
|
}
|
|
1076
|
-
|
|
1076
|
+
index6 = i7;
|
|
1077
1077
|
let res;
|
|
1078
1078
|
let isError = false;
|
|
1079
1079
|
let handler;
|
|
@@ -1181,8 +1181,8 @@ var init_body = __esm({
|
|
|
1181
1181
|
handleParsingNestedValues = (form, key, value) => {
|
|
1182
1182
|
let nestedForm = form;
|
|
1183
1183
|
const keys = key.split(".");
|
|
1184
|
-
keys.forEach((key2,
|
|
1185
|
-
if (
|
|
1184
|
+
keys.forEach((key2, index6) => {
|
|
1185
|
+
if (index6 === keys.length - 1) {
|
|
1186
1186
|
nestedForm[key2] = value;
|
|
1187
1187
|
} else {
|
|
1188
1188
|
if (!nestedForm[key2] || typeof nestedForm[key2] !== "object" || Array.isArray(nestedForm[key2]) || nestedForm[key2] instanceof File) {
|
|
@@ -1827,8 +1827,8 @@ function match(method, path2) {
|
|
|
1827
1827
|
if (!match3) {
|
|
1828
1828
|
return [[], emptyParam];
|
|
1829
1829
|
}
|
|
1830
|
-
const
|
|
1831
|
-
return [matcher[1][
|
|
1830
|
+
const index6 = match3.indexOf("", 1);
|
|
1831
|
+
return [matcher[1][index6], match3];
|
|
1832
1832
|
};
|
|
1833
1833
|
this.match = match2;
|
|
1834
1834
|
return match2(method, path2);
|
|
@@ -1875,7 +1875,7 @@ var init_node = __esm({
|
|
|
1875
1875
|
#index;
|
|
1876
1876
|
#varIndex;
|
|
1877
1877
|
#children = /* @__PURE__ */ Object.create(null);
|
|
1878
|
-
insert(tokens,
|
|
1878
|
+
insert(tokens, index6, paramMap, context, pathErrorCheckOnly) {
|
|
1879
1879
|
if (tokens.length === 0) {
|
|
1880
1880
|
if (this.#index !== void 0) {
|
|
1881
1881
|
throw PATH_ERROR;
|
|
@@ -1883,7 +1883,7 @@ var init_node = __esm({
|
|
|
1883
1883
|
if (pathErrorCheckOnly) {
|
|
1884
1884
|
return;
|
|
1885
1885
|
}
|
|
1886
|
-
this.#index =
|
|
1886
|
+
this.#index = index6;
|
|
1887
1887
|
return;
|
|
1888
1888
|
}
|
|
1889
1889
|
const [token, ...restTokens] = tokens;
|
|
@@ -1933,7 +1933,7 @@ var init_node = __esm({
|
|
|
1933
1933
|
node = this.#children[token] = new Node();
|
|
1934
1934
|
}
|
|
1935
1935
|
}
|
|
1936
|
-
node.insert(restTokens,
|
|
1936
|
+
node.insert(restTokens, index6, paramMap, context, pathErrorCheckOnly);
|
|
1937
1937
|
}
|
|
1938
1938
|
buildRegExpStr() {
|
|
1939
1939
|
const childKeys = Object.keys(this.#children).sort(compareKey);
|
|
@@ -1965,7 +1965,7 @@ var init_trie = __esm({
|
|
|
1965
1965
|
Trie = class {
|
|
1966
1966
|
#context = { varIndex: 0 };
|
|
1967
1967
|
#root = new Node();
|
|
1968
|
-
insert(path2,
|
|
1968
|
+
insert(path2, index6, pathErrorCheckOnly) {
|
|
1969
1969
|
const paramAssoc = [];
|
|
1970
1970
|
const groups = [];
|
|
1971
1971
|
for (let i7 = 0; ; ) {
|
|
@@ -1991,7 +1991,7 @@ var init_trie = __esm({
|
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
1993
|
}
|
|
1994
|
-
this.#root.insert(tokens,
|
|
1994
|
+
this.#root.insert(tokens, index6, paramAssoc, this.#context, pathErrorCheckOnly);
|
|
1995
1995
|
return paramAssoc;
|
|
1996
1996
|
}
|
|
1997
1997
|
buildRegExp() {
|
|
@@ -3284,30 +3284,30 @@ function floatSafeRemainder(val, step) {
|
|
|
3284
3284
|
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
3285
3285
|
return valInt % stepInt / 10 ** decCount;
|
|
3286
3286
|
}
|
|
3287
|
-
function deepPartialify(
|
|
3288
|
-
if (
|
|
3287
|
+
function deepPartialify(schema5) {
|
|
3288
|
+
if (schema5 instanceof ZodObject) {
|
|
3289
3289
|
const newShape = {};
|
|
3290
|
-
for (const key in
|
|
3291
|
-
const fieldSchema =
|
|
3290
|
+
for (const key in schema5.shape) {
|
|
3291
|
+
const fieldSchema = schema5.shape[key];
|
|
3292
3292
|
newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));
|
|
3293
3293
|
}
|
|
3294
3294
|
return new ZodObject({
|
|
3295
|
-
...
|
|
3295
|
+
...schema5._def,
|
|
3296
3296
|
shape: () => newShape
|
|
3297
3297
|
});
|
|
3298
|
-
} else if (
|
|
3298
|
+
} else if (schema5 instanceof ZodArray) {
|
|
3299
3299
|
return new ZodArray({
|
|
3300
|
-
...
|
|
3301
|
-
type: deepPartialify(
|
|
3300
|
+
...schema5._def,
|
|
3301
|
+
type: deepPartialify(schema5.element)
|
|
3302
3302
|
});
|
|
3303
|
-
} else if (
|
|
3304
|
-
return ZodOptional.create(deepPartialify(
|
|
3305
|
-
} else if (
|
|
3306
|
-
return ZodNullable.create(deepPartialify(
|
|
3307
|
-
} else if (
|
|
3308
|
-
return ZodTuple.create(
|
|
3303
|
+
} else if (schema5 instanceof ZodOptional) {
|
|
3304
|
+
return ZodOptional.create(deepPartialify(schema5.unwrap()));
|
|
3305
|
+
} else if (schema5 instanceof ZodNullable) {
|
|
3306
|
+
return ZodNullable.create(deepPartialify(schema5.unwrap()));
|
|
3307
|
+
} else if (schema5 instanceof ZodTuple) {
|
|
3308
|
+
return ZodTuple.create(schema5.items.map((item) => deepPartialify(item)));
|
|
3309
3309
|
} else {
|
|
3310
|
-
return
|
|
3310
|
+
return schema5;
|
|
3311
3311
|
}
|
|
3312
3312
|
}
|
|
3313
3313
|
function mergeValues(a6, b6) {
|
|
@@ -3332,9 +3332,9 @@ function mergeValues(a6, b6) {
|
|
|
3332
3332
|
return { valid: false };
|
|
3333
3333
|
}
|
|
3334
3334
|
const newArray = [];
|
|
3335
|
-
for (let
|
|
3336
|
-
const itemA = a6[
|
|
3337
|
-
const itemB = b6[
|
|
3335
|
+
for (let index6 = 0; index6 < a6.length; index6++) {
|
|
3336
|
+
const itemA = a6[index6];
|
|
3337
|
+
const itemB = b6[index6];
|
|
3338
3338
|
const sharedValue = mergeValues(itemA, itemB);
|
|
3339
3339
|
if (!sharedValue.valid) {
|
|
3340
3340
|
return { valid: false };
|
|
@@ -5046,9 +5046,9 @@ var init_types = __esm({
|
|
|
5046
5046
|
return this.min(1, message);
|
|
5047
5047
|
}
|
|
5048
5048
|
};
|
|
5049
|
-
ZodArray.create = (
|
|
5049
|
+
ZodArray.create = (schema5, params) => {
|
|
5050
5050
|
return new ZodArray({
|
|
5051
|
-
type:
|
|
5051
|
+
type: schema5,
|
|
5052
5052
|
minLength: null,
|
|
5053
5053
|
maxLength: null,
|
|
5054
5054
|
exactLength: null,
|
|
@@ -5269,8 +5269,8 @@ var init_types = __esm({
|
|
|
5269
5269
|
// }) as any;
|
|
5270
5270
|
// return merged;
|
|
5271
5271
|
// }
|
|
5272
|
-
setKey(key,
|
|
5273
|
-
return this.augment({ [key]:
|
|
5272
|
+
setKey(key, schema5) {
|
|
5273
|
+
return this.augment({ [key]: schema5 });
|
|
5274
5274
|
}
|
|
5275
5275
|
// merge<Incoming extends AnyZodObject>(
|
|
5276
5276
|
// merging: Incoming
|
|
@@ -5293,10 +5293,10 @@ var init_types = __esm({
|
|
|
5293
5293
|
// }) as any;
|
|
5294
5294
|
// return merged;
|
|
5295
5295
|
// }
|
|
5296
|
-
catchall(
|
|
5296
|
+
catchall(index6) {
|
|
5297
5297
|
return new _ZodObject({
|
|
5298
5298
|
...this._def,
|
|
5299
|
-
catchall:
|
|
5299
|
+
catchall: index6
|
|
5300
5300
|
});
|
|
5301
5301
|
}
|
|
5302
5302
|
pick(mask) {
|
|
@@ -5678,10 +5678,10 @@ var init_types = __esm({
|
|
|
5678
5678
|
status.dirty();
|
|
5679
5679
|
}
|
|
5680
5680
|
const items = [...ctx.data].map((item, itemIndex) => {
|
|
5681
|
-
const
|
|
5682
|
-
if (!
|
|
5681
|
+
const schema5 = this._def.items[itemIndex] || this._def.rest;
|
|
5682
|
+
if (!schema5)
|
|
5683
5683
|
return null;
|
|
5684
|
-
return
|
|
5684
|
+
return schema5._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
|
5685
5685
|
}).filter((x6) => !!x6);
|
|
5686
5686
|
if (ctx.common.async) {
|
|
5687
5687
|
return Promise.all(items).then((results) => {
|
|
@@ -5784,10 +5784,10 @@ var init_types = __esm({
|
|
|
5784
5784
|
}
|
|
5785
5785
|
const keyType = this._def.keyType;
|
|
5786
5786
|
const valueType = this._def.valueType;
|
|
5787
|
-
const pairs = [...ctx.data.entries()].map(([key, value],
|
|
5787
|
+
const pairs = [...ctx.data.entries()].map(([key, value], index6) => {
|
|
5788
5788
|
return {
|
|
5789
|
-
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [
|
|
5790
|
-
value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [
|
|
5789
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index6, "key"])),
|
|
5790
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index6, "value"]))
|
|
5791
5791
|
};
|
|
5792
5792
|
});
|
|
5793
5793
|
if (ctx.common.async) {
|
|
@@ -6198,9 +6198,9 @@ var init_types = __esm({
|
|
|
6198
6198
|
}));
|
|
6199
6199
|
}
|
|
6200
6200
|
};
|
|
6201
|
-
ZodPromise.create = (
|
|
6201
|
+
ZodPromise.create = (schema5, params) => {
|
|
6202
6202
|
return new ZodPromise({
|
|
6203
|
-
type:
|
|
6203
|
+
type: schema5,
|
|
6204
6204
|
typeName: ZodFirstPartyTypeKind.ZodPromise,
|
|
6205
6205
|
...processCreateParams(params)
|
|
6206
6206
|
});
|
|
@@ -6328,17 +6328,17 @@ var init_types = __esm({
|
|
|
6328
6328
|
util.assertNever(effect);
|
|
6329
6329
|
}
|
|
6330
6330
|
};
|
|
6331
|
-
ZodEffects.create = (
|
|
6331
|
+
ZodEffects.create = (schema5, effect, params) => {
|
|
6332
6332
|
return new ZodEffects({
|
|
6333
|
-
schema:
|
|
6333
|
+
schema: schema5,
|
|
6334
6334
|
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
6335
6335
|
effect,
|
|
6336
6336
|
...processCreateParams(params)
|
|
6337
6337
|
});
|
|
6338
6338
|
};
|
|
6339
|
-
ZodEffects.createWithPreprocess = (preprocess,
|
|
6339
|
+
ZodEffects.createWithPreprocess = (preprocess, schema5, params) => {
|
|
6340
6340
|
return new ZodEffects({
|
|
6341
|
-
schema:
|
|
6341
|
+
schema: schema5,
|
|
6342
6342
|
effect: { type: "preprocess", transform: preprocess },
|
|
6343
6343
|
typeName: ZodFirstPartyTypeKind.ZodEffects,
|
|
6344
6344
|
...processCreateParams(params)
|
|
@@ -6820,9 +6820,9 @@ var init_drizzle = __esm({
|
|
|
6820
6820
|
import_mysql_core = require("drizzle-orm/mysql-core");
|
|
6821
6821
|
import_pg_core = require("drizzle-orm/pg-core");
|
|
6822
6822
|
import_sqlite_core = require("drizzle-orm/sqlite-core");
|
|
6823
|
-
getColumnCasing = (
|
|
6824
|
-
if (!
|
|
6825
|
-
return !
|
|
6823
|
+
getColumnCasing = (column6, casing2) => {
|
|
6824
|
+
if (!column6.name) return "";
|
|
6825
|
+
return !column6.keyAsName || casing2 === void 0 ? column6.name : casing2 === "camelCase" ? (0, import_casing.toCamelCase)(column6.name) : (0, import_casing.toSnakeCase)(column6.name);
|
|
6826
6826
|
};
|
|
6827
6827
|
}
|
|
6828
6828
|
});
|
|
@@ -7200,30 +7200,30 @@ var init_supports_color = __esm({
|
|
|
7200
7200
|
|
|
7201
7201
|
// ../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
|
|
7202
7202
|
function stringReplaceAll(string, substring2, replacer) {
|
|
7203
|
-
let
|
|
7204
|
-
if (
|
|
7203
|
+
let index6 = string.indexOf(substring2);
|
|
7204
|
+
if (index6 === -1) {
|
|
7205
7205
|
return string;
|
|
7206
7206
|
}
|
|
7207
7207
|
const substringLength = substring2.length;
|
|
7208
7208
|
let endIndex = 0;
|
|
7209
7209
|
let returnValue = "";
|
|
7210
7210
|
do {
|
|
7211
|
-
returnValue += string.slice(endIndex,
|
|
7212
|
-
endIndex =
|
|
7213
|
-
|
|
7214
|
-
} while (
|
|
7211
|
+
returnValue += string.slice(endIndex, index6) + substring2 + replacer;
|
|
7212
|
+
endIndex = index6 + substringLength;
|
|
7213
|
+
index6 = string.indexOf(substring2, endIndex);
|
|
7214
|
+
} while (index6 !== -1);
|
|
7215
7215
|
returnValue += string.slice(endIndex);
|
|
7216
7216
|
return returnValue;
|
|
7217
7217
|
}
|
|
7218
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix2, postfix,
|
|
7218
|
+
function stringEncaseCRLFWithFirstIndex(string, prefix2, postfix, index6) {
|
|
7219
7219
|
let endIndex = 0;
|
|
7220
7220
|
let returnValue = "";
|
|
7221
7221
|
do {
|
|
7222
|
-
const gotCR = string[
|
|
7223
|
-
returnValue += string.slice(endIndex, gotCR ?
|
|
7224
|
-
endIndex =
|
|
7225
|
-
|
|
7226
|
-
} while (
|
|
7222
|
+
const gotCR = string[index6 - 1] === "\r";
|
|
7223
|
+
returnValue += string.slice(endIndex, gotCR ? index6 - 1 : index6) + prefix2 + (gotCR ? "\r\n" : "\n") + postfix;
|
|
7224
|
+
endIndex = index6 + 1;
|
|
7225
|
+
index6 = string.indexOf("\n", endIndex);
|
|
7226
|
+
} while (index6 !== -1);
|
|
7227
7227
|
returnValue += string.slice(endIndex);
|
|
7228
7228
|
return returnValue;
|
|
7229
7229
|
}
|
|
@@ -8717,8 +8717,8 @@ var require_sync = __commonJS({
|
|
|
8717
8717
|
assert3.ok(this instanceof GlobSync);
|
|
8718
8718
|
if (this.realpath) {
|
|
8719
8719
|
var self2 = this;
|
|
8720
|
-
this.matches.forEach(function(matchset,
|
|
8721
|
-
var set = self2.matches[
|
|
8720
|
+
this.matches.forEach(function(matchset, index6) {
|
|
8721
|
+
var set = self2.matches[index6] = /* @__PURE__ */ Object.create(null);
|
|
8722
8722
|
for (var p6 in matchset) {
|
|
8723
8723
|
try {
|
|
8724
8724
|
p6 = self2._makeAbs(p6);
|
|
@@ -8735,7 +8735,7 @@ var require_sync = __commonJS({
|
|
|
8735
8735
|
}
|
|
8736
8736
|
common.finish(this);
|
|
8737
8737
|
};
|
|
8738
|
-
GlobSync.prototype._process = function(pattern,
|
|
8738
|
+
GlobSync.prototype._process = function(pattern, index6, inGlobStar) {
|
|
8739
8739
|
assert3.ok(this instanceof GlobSync);
|
|
8740
8740
|
var n6 = 0;
|
|
8741
8741
|
while (typeof pattern[n6] === "string") {
|
|
@@ -8745,7 +8745,7 @@ var require_sync = __commonJS({
|
|
|
8745
8745
|
switch (n6) {
|
|
8746
8746
|
// if not, then this is rather simple
|
|
8747
8747
|
case pattern.length:
|
|
8748
|
-
this._processSimple(pattern.join("/"),
|
|
8748
|
+
this._processSimple(pattern.join("/"), index6);
|
|
8749
8749
|
return;
|
|
8750
8750
|
case 0:
|
|
8751
8751
|
prefix2 = null;
|
|
@@ -8771,11 +8771,11 @@ var require_sync = __commonJS({
|
|
|
8771
8771
|
return;
|
|
8772
8772
|
var isGlobStar = remain[0] === minimatch.GLOBSTAR;
|
|
8773
8773
|
if (isGlobStar)
|
|
8774
|
-
this._processGlobStar(prefix2, read, abs, remain,
|
|
8774
|
+
this._processGlobStar(prefix2, read, abs, remain, index6, inGlobStar);
|
|
8775
8775
|
else
|
|
8776
|
-
this._processReaddir(prefix2, read, abs, remain,
|
|
8776
|
+
this._processReaddir(prefix2, read, abs, remain, index6, inGlobStar);
|
|
8777
8777
|
};
|
|
8778
|
-
GlobSync.prototype._processReaddir = function(prefix2, read, abs, remain,
|
|
8778
|
+
GlobSync.prototype._processReaddir = function(prefix2, read, abs, remain, index6, inGlobStar) {
|
|
8779
8779
|
var entries = this._readdir(abs, inGlobStar);
|
|
8780
8780
|
if (!entries)
|
|
8781
8781
|
return;
|
|
@@ -8801,8 +8801,8 @@ var require_sync = __commonJS({
|
|
|
8801
8801
|
if (len === 0)
|
|
8802
8802
|
return;
|
|
8803
8803
|
if (remain.length === 1 && !this.mark && !this.stat) {
|
|
8804
|
-
if (!this.matches[
|
|
8805
|
-
this.matches[
|
|
8804
|
+
if (!this.matches[index6])
|
|
8805
|
+
this.matches[index6] = /* @__PURE__ */ Object.create(null);
|
|
8806
8806
|
for (var i7 = 0; i7 < len; i7++) {
|
|
8807
8807
|
var e7 = matchedEntries[i7];
|
|
8808
8808
|
if (prefix2) {
|
|
@@ -8814,7 +8814,7 @@ var require_sync = __commonJS({
|
|
|
8814
8814
|
if (e7.charAt(0) === "/" && !this.nomount) {
|
|
8815
8815
|
e7 = path2.join(this.root, e7);
|
|
8816
8816
|
}
|
|
8817
|
-
this._emitMatch(
|
|
8817
|
+
this._emitMatch(index6, e7);
|
|
8818
8818
|
}
|
|
8819
8819
|
return;
|
|
8820
8820
|
}
|
|
@@ -8826,10 +8826,10 @@ var require_sync = __commonJS({
|
|
|
8826
8826
|
newPattern = [prefix2, e7];
|
|
8827
8827
|
else
|
|
8828
8828
|
newPattern = [e7];
|
|
8829
|
-
this._process(newPattern.concat(remain),
|
|
8829
|
+
this._process(newPattern.concat(remain), index6, inGlobStar);
|
|
8830
8830
|
}
|
|
8831
8831
|
};
|
|
8832
|
-
GlobSync.prototype._emitMatch = function(
|
|
8832
|
+
GlobSync.prototype._emitMatch = function(index6, e7) {
|
|
8833
8833
|
if (isIgnored(this, e7))
|
|
8834
8834
|
return;
|
|
8835
8835
|
var abs = this._makeAbs(e7);
|
|
@@ -8838,14 +8838,14 @@ var require_sync = __commonJS({
|
|
|
8838
8838
|
if (this.absolute) {
|
|
8839
8839
|
e7 = abs;
|
|
8840
8840
|
}
|
|
8841
|
-
if (this.matches[
|
|
8841
|
+
if (this.matches[index6][e7])
|
|
8842
8842
|
return;
|
|
8843
8843
|
if (this.nodir) {
|
|
8844
8844
|
var c6 = this.cache[abs];
|
|
8845
8845
|
if (c6 === "DIR" || Array.isArray(c6))
|
|
8846
8846
|
return;
|
|
8847
8847
|
}
|
|
8848
|
-
this.matches[
|
|
8848
|
+
this.matches[index6][e7] = true;
|
|
8849
8849
|
if (this.stat)
|
|
8850
8850
|
this._stat(e7);
|
|
8851
8851
|
};
|
|
@@ -8932,14 +8932,14 @@ var require_sync = __commonJS({
|
|
|
8932
8932
|
break;
|
|
8933
8933
|
}
|
|
8934
8934
|
};
|
|
8935
|
-
GlobSync.prototype._processGlobStar = function(prefix2, read, abs, remain,
|
|
8935
|
+
GlobSync.prototype._processGlobStar = function(prefix2, read, abs, remain, index6, inGlobStar) {
|
|
8936
8936
|
var entries = this._readdir(abs, inGlobStar);
|
|
8937
8937
|
if (!entries)
|
|
8938
8938
|
return;
|
|
8939
8939
|
var remainWithoutGlobStar = remain.slice(1);
|
|
8940
8940
|
var gspref = prefix2 ? [prefix2] : [];
|
|
8941
8941
|
var noGlobStar = gspref.concat(remainWithoutGlobStar);
|
|
8942
|
-
this._process(noGlobStar,
|
|
8942
|
+
this._process(noGlobStar, index6, false);
|
|
8943
8943
|
var len = entries.length;
|
|
8944
8944
|
var isSym = this.symlinks[abs];
|
|
8945
8945
|
if (isSym && inGlobStar)
|
|
@@ -8949,15 +8949,15 @@ var require_sync = __commonJS({
|
|
|
8949
8949
|
if (e7.charAt(0) === "." && !this.dot)
|
|
8950
8950
|
continue;
|
|
8951
8951
|
var instead = gspref.concat(entries[i7], remainWithoutGlobStar);
|
|
8952
|
-
this._process(instead,
|
|
8952
|
+
this._process(instead, index6, true);
|
|
8953
8953
|
var below = gspref.concat(entries[i7], remain);
|
|
8954
|
-
this._process(below,
|
|
8954
|
+
this._process(below, index6, true);
|
|
8955
8955
|
}
|
|
8956
8956
|
};
|
|
8957
|
-
GlobSync.prototype._processSimple = function(prefix2,
|
|
8957
|
+
GlobSync.prototype._processSimple = function(prefix2, index6) {
|
|
8958
8958
|
var exists = this._stat(prefix2);
|
|
8959
|
-
if (!this.matches[
|
|
8960
|
-
this.matches[
|
|
8959
|
+
if (!this.matches[index6])
|
|
8960
|
+
this.matches[index6] = /* @__PURE__ */ Object.create(null);
|
|
8961
8961
|
if (!exists)
|
|
8962
8962
|
return;
|
|
8963
8963
|
if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
|
|
@@ -8972,7 +8972,7 @@ var require_sync = __commonJS({
|
|
|
8972
8972
|
}
|
|
8973
8973
|
if (process.platform === "win32")
|
|
8974
8974
|
prefix2 = prefix2.replace(/\\/g, "/");
|
|
8975
|
-
this._emitMatch(
|
|
8975
|
+
this._emitMatch(index6, prefix2);
|
|
8976
8976
|
};
|
|
8977
8977
|
GlobSync.prototype._stat = function(f8) {
|
|
8978
8978
|
var abs = this._makeAbs(f8);
|
|
@@ -9288,8 +9288,8 @@ var require_glob = __commonJS({
|
|
|
9288
9288
|
self2._finish();
|
|
9289
9289
|
}
|
|
9290
9290
|
};
|
|
9291
|
-
Glob.prototype._realpathSet = function(
|
|
9292
|
-
var matchset = this.matches[
|
|
9291
|
+
Glob.prototype._realpathSet = function(index6, cb) {
|
|
9292
|
+
var matchset = this.matches[index6];
|
|
9293
9293
|
if (!matchset)
|
|
9294
9294
|
return cb();
|
|
9295
9295
|
var found = Object.keys(matchset);
|
|
@@ -9297,7 +9297,7 @@ var require_glob = __commonJS({
|
|
|
9297
9297
|
var n6 = found.length;
|
|
9298
9298
|
if (n6 === 0)
|
|
9299
9299
|
return cb();
|
|
9300
|
-
var set = this.matches[
|
|
9300
|
+
var set = this.matches[index6] = /* @__PURE__ */ Object.create(null);
|
|
9301
9301
|
found.forEach(function(p6, i7) {
|
|
9302
9302
|
p6 = self2._makeAbs(p6);
|
|
9303
9303
|
rp.realpath(p6, self2.realpathCache, function(er, real) {
|
|
@@ -9308,7 +9308,7 @@ var require_glob = __commonJS({
|
|
|
9308
9308
|
else
|
|
9309
9309
|
self2.emit("error", er);
|
|
9310
9310
|
if (--n6 === 0) {
|
|
9311
|
-
self2.matches[
|
|
9311
|
+
self2.matches[index6] = set;
|
|
9312
9312
|
cb();
|
|
9313
9313
|
}
|
|
9314
9314
|
});
|
|
@@ -9353,14 +9353,14 @@ var require_glob = __commonJS({
|
|
|
9353
9353
|
}
|
|
9354
9354
|
}
|
|
9355
9355
|
};
|
|
9356
|
-
Glob.prototype._process = function(pattern,
|
|
9356
|
+
Glob.prototype._process = function(pattern, index6, inGlobStar, cb) {
|
|
9357
9357
|
assert3(this instanceof Glob);
|
|
9358
9358
|
assert3(typeof cb === "function");
|
|
9359
9359
|
if (this.aborted)
|
|
9360
9360
|
return;
|
|
9361
9361
|
this._processing++;
|
|
9362
9362
|
if (this.paused) {
|
|
9363
|
-
this._processQueue.push([pattern,
|
|
9363
|
+
this._processQueue.push([pattern, index6, inGlobStar, cb]);
|
|
9364
9364
|
return;
|
|
9365
9365
|
}
|
|
9366
9366
|
var n6 = 0;
|
|
@@ -9371,7 +9371,7 @@ var require_glob = __commonJS({
|
|
|
9371
9371
|
switch (n6) {
|
|
9372
9372
|
// if not, then this is rather simple
|
|
9373
9373
|
case pattern.length:
|
|
9374
|
-
this._processSimple(pattern.join("/"),
|
|
9374
|
+
this._processSimple(pattern.join("/"), index6, cb);
|
|
9375
9375
|
return;
|
|
9376
9376
|
case 0:
|
|
9377
9377
|
prefix2 = null;
|
|
@@ -9397,17 +9397,17 @@ var require_glob = __commonJS({
|
|
|
9397
9397
|
return cb();
|
|
9398
9398
|
var isGlobStar = remain[0] === minimatch.GLOBSTAR;
|
|
9399
9399
|
if (isGlobStar)
|
|
9400
|
-
this._processGlobStar(prefix2, read, abs, remain,
|
|
9400
|
+
this._processGlobStar(prefix2, read, abs, remain, index6, inGlobStar, cb);
|
|
9401
9401
|
else
|
|
9402
|
-
this._processReaddir(prefix2, read, abs, remain,
|
|
9402
|
+
this._processReaddir(prefix2, read, abs, remain, index6, inGlobStar, cb);
|
|
9403
9403
|
};
|
|
9404
|
-
Glob.prototype._processReaddir = function(prefix2, read, abs, remain,
|
|
9404
|
+
Glob.prototype._processReaddir = function(prefix2, read, abs, remain, index6, inGlobStar, cb) {
|
|
9405
9405
|
var self2 = this;
|
|
9406
9406
|
this._readdir(abs, inGlobStar, function(er, entries) {
|
|
9407
|
-
return self2._processReaddir2(prefix2, read, abs, remain,
|
|
9407
|
+
return self2._processReaddir2(prefix2, read, abs, remain, index6, inGlobStar, entries, cb);
|
|
9408
9408
|
});
|
|
9409
9409
|
};
|
|
9410
|
-
Glob.prototype._processReaddir2 = function(prefix2, read, abs, remain,
|
|
9410
|
+
Glob.prototype._processReaddir2 = function(prefix2, read, abs, remain, index6, inGlobStar, entries, cb) {
|
|
9411
9411
|
if (!entries)
|
|
9412
9412
|
return cb();
|
|
9413
9413
|
var pn = remain[0];
|
|
@@ -9432,8 +9432,8 @@ var require_glob = __commonJS({
|
|
|
9432
9432
|
if (len === 0)
|
|
9433
9433
|
return cb();
|
|
9434
9434
|
if (remain.length === 1 && !this.mark && !this.stat) {
|
|
9435
|
-
if (!this.matches[
|
|
9436
|
-
this.matches[
|
|
9435
|
+
if (!this.matches[index6])
|
|
9436
|
+
this.matches[index6] = /* @__PURE__ */ Object.create(null);
|
|
9437
9437
|
for (var i7 = 0; i7 < len; i7++) {
|
|
9438
9438
|
var e7 = matchedEntries[i7];
|
|
9439
9439
|
if (prefix2) {
|
|
@@ -9445,7 +9445,7 @@ var require_glob = __commonJS({
|
|
|
9445
9445
|
if (e7.charAt(0) === "/" && !this.nomount) {
|
|
9446
9446
|
e7 = path2.join(this.root, e7);
|
|
9447
9447
|
}
|
|
9448
|
-
this._emitMatch(
|
|
9448
|
+
this._emitMatch(index6, e7);
|
|
9449
9449
|
}
|
|
9450
9450
|
return cb();
|
|
9451
9451
|
}
|
|
@@ -9459,17 +9459,17 @@ var require_glob = __commonJS({
|
|
|
9459
9459
|
else
|
|
9460
9460
|
e7 = prefix2 + e7;
|
|
9461
9461
|
}
|
|
9462
|
-
this._process([e7].concat(remain),
|
|
9462
|
+
this._process([e7].concat(remain), index6, inGlobStar, cb);
|
|
9463
9463
|
}
|
|
9464
9464
|
cb();
|
|
9465
9465
|
};
|
|
9466
|
-
Glob.prototype._emitMatch = function(
|
|
9466
|
+
Glob.prototype._emitMatch = function(index6, e7) {
|
|
9467
9467
|
if (this.aborted)
|
|
9468
9468
|
return;
|
|
9469
9469
|
if (isIgnored(this, e7))
|
|
9470
9470
|
return;
|
|
9471
9471
|
if (this.paused) {
|
|
9472
|
-
this._emitQueue.push([
|
|
9472
|
+
this._emitQueue.push([index6, e7]);
|
|
9473
9473
|
return;
|
|
9474
9474
|
}
|
|
9475
9475
|
var abs = isAbsolute(e7) ? e7 : this._makeAbs(e7);
|
|
@@ -9477,14 +9477,14 @@ var require_glob = __commonJS({
|
|
|
9477
9477
|
e7 = this._mark(e7);
|
|
9478
9478
|
if (this.absolute)
|
|
9479
9479
|
e7 = abs;
|
|
9480
|
-
if (this.matches[
|
|
9480
|
+
if (this.matches[index6][e7])
|
|
9481
9481
|
return;
|
|
9482
9482
|
if (this.nodir) {
|
|
9483
9483
|
var c6 = this.cache[abs];
|
|
9484
9484
|
if (c6 === "DIR" || Array.isArray(c6))
|
|
9485
9485
|
return;
|
|
9486
9486
|
}
|
|
9487
|
-
this.matches[
|
|
9487
|
+
this.matches[index6][e7] = true;
|
|
9488
9488
|
var st = this.statCache[abs];
|
|
9489
9489
|
if (st)
|
|
9490
9490
|
this.emit("stat", e7, st);
|
|
@@ -9590,19 +9590,19 @@ var require_glob = __commonJS({
|
|
|
9590
9590
|
}
|
|
9591
9591
|
return cb();
|
|
9592
9592
|
};
|
|
9593
|
-
Glob.prototype._processGlobStar = function(prefix2, read, abs, remain,
|
|
9593
|
+
Glob.prototype._processGlobStar = function(prefix2, read, abs, remain, index6, inGlobStar, cb) {
|
|
9594
9594
|
var self2 = this;
|
|
9595
9595
|
this._readdir(abs, inGlobStar, function(er, entries) {
|
|
9596
|
-
self2._processGlobStar2(prefix2, read, abs, remain,
|
|
9596
|
+
self2._processGlobStar2(prefix2, read, abs, remain, index6, inGlobStar, entries, cb);
|
|
9597
9597
|
});
|
|
9598
9598
|
};
|
|
9599
|
-
Glob.prototype._processGlobStar2 = function(prefix2, read, abs, remain,
|
|
9599
|
+
Glob.prototype._processGlobStar2 = function(prefix2, read, abs, remain, index6, inGlobStar, entries, cb) {
|
|
9600
9600
|
if (!entries)
|
|
9601
9601
|
return cb();
|
|
9602
9602
|
var remainWithoutGlobStar = remain.slice(1);
|
|
9603
9603
|
var gspref = prefix2 ? [prefix2] : [];
|
|
9604
9604
|
var noGlobStar = gspref.concat(remainWithoutGlobStar);
|
|
9605
|
-
this._process(noGlobStar,
|
|
9605
|
+
this._process(noGlobStar, index6, false, cb);
|
|
9606
9606
|
var isSym = this.symlinks[abs];
|
|
9607
9607
|
var len = entries.length;
|
|
9608
9608
|
if (isSym && inGlobStar)
|
|
@@ -9612,21 +9612,21 @@ var require_glob = __commonJS({
|
|
|
9612
9612
|
if (e7.charAt(0) === "." && !this.dot)
|
|
9613
9613
|
continue;
|
|
9614
9614
|
var instead = gspref.concat(entries[i7], remainWithoutGlobStar);
|
|
9615
|
-
this._process(instead,
|
|
9615
|
+
this._process(instead, index6, true, cb);
|
|
9616
9616
|
var below = gspref.concat(entries[i7], remain);
|
|
9617
|
-
this._process(below,
|
|
9617
|
+
this._process(below, index6, true, cb);
|
|
9618
9618
|
}
|
|
9619
9619
|
cb();
|
|
9620
9620
|
};
|
|
9621
|
-
Glob.prototype._processSimple = function(prefix2,
|
|
9621
|
+
Glob.prototype._processSimple = function(prefix2, index6, cb) {
|
|
9622
9622
|
var self2 = this;
|
|
9623
9623
|
this._stat(prefix2, function(er, exists) {
|
|
9624
|
-
self2._processSimple2(prefix2,
|
|
9624
|
+
self2._processSimple2(prefix2, index6, er, exists, cb);
|
|
9625
9625
|
});
|
|
9626
9626
|
};
|
|
9627
|
-
Glob.prototype._processSimple2 = function(prefix2,
|
|
9628
|
-
if (!this.matches[
|
|
9629
|
-
this.matches[
|
|
9627
|
+
Glob.prototype._processSimple2 = function(prefix2, index6, er, exists, cb) {
|
|
9628
|
+
if (!this.matches[index6])
|
|
9629
|
+
this.matches[index6] = /* @__PURE__ */ Object.create(null);
|
|
9630
9630
|
if (!exists)
|
|
9631
9631
|
return cb();
|
|
9632
9632
|
if (prefix2 && isAbsolute(prefix2) && !this.nomount) {
|
|
@@ -9641,7 +9641,7 @@ var require_glob = __commonJS({
|
|
|
9641
9641
|
}
|
|
9642
9642
|
if (process.platform === "win32")
|
|
9643
9643
|
prefix2 = prefix2.replace(/\\/g, "/");
|
|
9644
|
-
this._emitMatch(
|
|
9644
|
+
this._emitMatch(index6, prefix2);
|
|
9645
9645
|
cb();
|
|
9646
9646
|
};
|
|
9647
9647
|
Glob.prototype._stat = function(f8, cb) {
|
|
@@ -9709,8 +9709,8 @@ var require_glob = __commonJS({
|
|
|
9709
9709
|
});
|
|
9710
9710
|
|
|
9711
9711
|
// src/dialects/simpleValidator.ts
|
|
9712
|
-
function validator2(
|
|
9713
|
-
const validate4 = validatorFor(
|
|
9712
|
+
function validator2(schema5) {
|
|
9713
|
+
const validate4 = validatorFor(schema5, "");
|
|
9714
9714
|
return {
|
|
9715
9715
|
shape: {},
|
|
9716
9716
|
strict: (input) => {
|
|
@@ -9741,9 +9741,9 @@ var init_simpleValidator = __esm({
|
|
|
9741
9741
|
validate: validate4
|
|
9742
9742
|
};
|
|
9743
9743
|
};
|
|
9744
|
-
validatorFor = (
|
|
9744
|
+
validatorFor = (schema5, path2) => {
|
|
9745
9745
|
const validators = {};
|
|
9746
|
-
for (const [key, value] of Object.entries(
|
|
9746
|
+
for (const [key, value] of Object.entries(schema5)) {
|
|
9747
9747
|
if (value === "string") {
|
|
9748
9748
|
validators[key] = (it) => {
|
|
9749
9749
|
return typeof it === "string" ? null : `Field '${path2}${key}' must be a string`;
|
|
@@ -9842,30 +9842,30 @@ function findCompositeKeys(dataSource, target) {
|
|
|
9842
9842
|
const match2 = dataSource.filter((e7) => getCompositeKey(e7) === targetKey);
|
|
9843
9843
|
return match2;
|
|
9844
9844
|
}
|
|
9845
|
-
function validate(data,
|
|
9845
|
+
function validate(data, schema5, deep = false) {
|
|
9846
9846
|
if (typeof data !== "object" || data === null) return false;
|
|
9847
|
-
for (const k6 of Array.from(/* @__PURE__ */ new Set([...Object.keys(data), ...Object.keys(
|
|
9847
|
+
for (const k6 of Array.from(/* @__PURE__ */ new Set([...Object.keys(data), ...Object.keys(schema5)]))) {
|
|
9848
9848
|
if (!deep && k6 === "entityType") continue;
|
|
9849
|
-
if (!
|
|
9850
|
-
if (
|
|
9849
|
+
if (!schema5[k6]) return false;
|
|
9850
|
+
if (schema5[k6] === "string[]") {
|
|
9851
9851
|
if (!Array.isArray(data[k6])) return false;
|
|
9852
9852
|
if (!data[k6].every((e7) => typeof e7 === "string")) return false;
|
|
9853
|
-
} else if (typeof
|
|
9854
|
-
const isNullable =
|
|
9853
|
+
} else if (typeof schema5[k6] === "string") {
|
|
9854
|
+
const isNullable = schema5[k6].endsWith("?");
|
|
9855
9855
|
if (data[k6] === null && !isNullable) return false;
|
|
9856
|
-
if (data[k6] !== null && typeof data[k6] !== removeQuestionMark(
|
|
9857
|
-
} else if (Array.isArray(
|
|
9858
|
-
if (typeof
|
|
9859
|
-
if (!
|
|
9856
|
+
if (data[k6] !== null && typeof data[k6] !== removeQuestionMark(schema5[k6])) return false;
|
|
9857
|
+
} else if (Array.isArray(schema5[k6])) {
|
|
9858
|
+
if (typeof schema5[k6][0] === "string") {
|
|
9859
|
+
if (!schema5[k6].some((e7) => e7 === data[k6])) return false;
|
|
9860
9860
|
} else {
|
|
9861
9861
|
if (!Array.isArray(data[k6])) return false;
|
|
9862
9862
|
if (!data[k6].every(
|
|
9863
|
-
(e7) => validate(e7,
|
|
9863
|
+
(e7) => validate(e7, schema5[k6][0]),
|
|
9864
9864
|
true
|
|
9865
9865
|
)) return false;
|
|
9866
9866
|
}
|
|
9867
9867
|
} else {
|
|
9868
|
-
if (data[k6] !== null && !validate(data[k6],
|
|
9868
|
+
if (data[k6] !== null && !validate(data[k6], schema5[k6], true)) return false;
|
|
9869
9869
|
}
|
|
9870
9870
|
}
|
|
9871
9871
|
return true;
|
|
@@ -10096,8 +10096,8 @@ var init_dialect = __esm({
|
|
|
10096
10096
|
data: dupes
|
|
10097
10097
|
};
|
|
10098
10098
|
}
|
|
10099
|
-
for (const { index:
|
|
10100
|
-
Object.assign(targets[
|
|
10099
|
+
for (const { index: index6, item } of newItems) {
|
|
10100
|
+
Object.assign(targets[index6], item);
|
|
10101
10101
|
}
|
|
10102
10102
|
return { status: "OK", data: targets };
|
|
10103
10103
|
};
|
|
@@ -10348,7 +10348,7 @@ var init_parse = __esm({
|
|
|
10348
10348
|
pNext();
|
|
10349
10349
|
}
|
|
10350
10350
|
};
|
|
10351
|
-
const pObject = (
|
|
10351
|
+
const pObject = (schema5) => {
|
|
10352
10352
|
const result2 = p_options.protoAction === preserve ? /* @__PURE__ */ Object.create(null) : {};
|
|
10353
10353
|
if (p_current_char === `{`) {
|
|
10354
10354
|
pNext();
|
|
@@ -10359,7 +10359,7 @@ var init_parse = __esm({
|
|
|
10359
10359
|
}
|
|
10360
10360
|
while (p_current_char) {
|
|
10361
10361
|
const key = pString();
|
|
10362
|
-
const sub_schema = isNonNullObject(
|
|
10362
|
+
const sub_schema = isNonNullObject(schema5) && !Array.isArray(schema5) ? schema5[key] || schema5[Symbol.for(`any`)] : void 0;
|
|
10363
10363
|
pSkipWhite();
|
|
10364
10364
|
pCurrentCharIs(`:`);
|
|
10365
10365
|
pNext();
|
|
@@ -10400,7 +10400,7 @@ var init_parse = __esm({
|
|
|
10400
10400
|
}
|
|
10401
10401
|
return pError(`Bad object`);
|
|
10402
10402
|
};
|
|
10403
|
-
const pArray = (
|
|
10403
|
+
const pArray = (schema5) => {
|
|
10404
10404
|
const result2 = [];
|
|
10405
10405
|
if (p_current_char === `[`) {
|
|
10406
10406
|
pNext();
|
|
@@ -10409,12 +10409,12 @@ var init_parse = __esm({
|
|
|
10409
10409
|
pNext();
|
|
10410
10410
|
return result2;
|
|
10411
10411
|
}
|
|
10412
|
-
const is_array = Array.isArray(
|
|
10413
|
-
const is_tuple_like = is_array &&
|
|
10412
|
+
const is_array = Array.isArray(schema5);
|
|
10413
|
+
const is_tuple_like = is_array && schema5.length > 1;
|
|
10414
10414
|
while (p_current_char) {
|
|
10415
10415
|
result2.push(
|
|
10416
10416
|
pJsonValue(
|
|
10417
|
-
is_tuple_like ?
|
|
10417
|
+
is_tuple_like ? schema5[result2.length] : is_array ? schema5[0] : void 0
|
|
10418
10418
|
// It's ok to cast null to undefined
|
|
10419
10419
|
)
|
|
10420
10420
|
);
|
|
@@ -10470,7 +10470,7 @@ var init_parse = __esm({
|
|
|
10470
10470
|
};
|
|
10471
10471
|
const pNumber = (() => {
|
|
10472
10472
|
const cache6 = new Cache();
|
|
10473
|
-
return (
|
|
10473
|
+
return (schema5) => {
|
|
10474
10474
|
let result_string = ``;
|
|
10475
10475
|
let is_positive = true;
|
|
10476
10476
|
if (p_current_char === `-`) {
|
|
@@ -10507,7 +10507,7 @@ var init_parse = __esm({
|
|
|
10507
10507
|
pNext();
|
|
10508
10508
|
}
|
|
10509
10509
|
}
|
|
10510
|
-
const raw_schema =
|
|
10510
|
+
const raw_schema = schema5;
|
|
10511
10511
|
const cache_string = cache6.get(result_string);
|
|
10512
10512
|
if (!cache_string || !cache_string.has(raw_schema)) {
|
|
10513
10513
|
const cache_schema = cache_string || cache6.set(result_string, /* @__PURE__ */ new Map());
|
|
@@ -10519,18 +10519,18 @@ var init_parse = __esm({
|
|
|
10519
10519
|
} else {
|
|
10520
10520
|
const is_decimal_or_scientific = /[.eE]/.test(result_string);
|
|
10521
10521
|
if (Number.isSafeInteger(result_number) || is_decimal_or_scientific) {
|
|
10522
|
-
if (typeof
|
|
10522
|
+
if (typeof schema5 === `function`) schema5 = schema5(result_number);
|
|
10523
10523
|
cache_schema.set(
|
|
10524
10524
|
raw_schema,
|
|
10525
|
-
|
|
10525
|
+
schema5 === number || !p_options.alwaysParseAsBigInt && schema5 !== bigint || is_decimal_or_scientific && !p_options.errorOnBigIntDecimalOrScientific ? result_number : is_decimal_or_scientific ? pError(`Decimal and scientific notation cannot be bigint`) : BigInt(result_string)
|
|
10526
10526
|
);
|
|
10527
10527
|
} else {
|
|
10528
10528
|
let result_bigint;
|
|
10529
|
-
if (typeof
|
|
10529
|
+
if (typeof schema5 === `function`) {
|
|
10530
10530
|
result_bigint = BigInt(result_string);
|
|
10531
|
-
|
|
10531
|
+
schema5 = schema5(result_bigint);
|
|
10532
10532
|
}
|
|
10533
|
-
if (
|
|
10533
|
+
if (schema5 === number) cache_schema.set(raw_schema, result_number);
|
|
10534
10534
|
else {
|
|
10535
10535
|
cache_schema.set(
|
|
10536
10536
|
raw_schema,
|
|
@@ -10568,26 +10568,26 @@ var init_parse = __esm({
|
|
|
10568
10568
|
}
|
|
10569
10569
|
return pError(`Unexpected '${p_current_char}'`);
|
|
10570
10570
|
};
|
|
10571
|
-
const pJsonValue = (
|
|
10571
|
+
const pJsonValue = (schema5) => {
|
|
10572
10572
|
pSkipWhite();
|
|
10573
10573
|
switch (p_current_char) {
|
|
10574
10574
|
case `{`:
|
|
10575
|
-
return pObject(
|
|
10575
|
+
return pObject(schema5);
|
|
10576
10576
|
case `[`:
|
|
10577
|
-
return pArray(
|
|
10577
|
+
return pArray(schema5);
|
|
10578
10578
|
case `"`:
|
|
10579
10579
|
return pString();
|
|
10580
10580
|
case `-`:
|
|
10581
|
-
return pNumber(
|
|
10581
|
+
return pNumber(schema5);
|
|
10582
10582
|
default:
|
|
10583
|
-
return p_current_char >= `0` && p_current_char <= `9` ? pNumber(
|
|
10583
|
+
return p_current_char >= `0` && p_current_char <= `9` ? pNumber(schema5) : pBooleanOrNull();
|
|
10584
10584
|
}
|
|
10585
10585
|
};
|
|
10586
|
-
return (text, reviver,
|
|
10586
|
+
return (text, reviver, schema5) => {
|
|
10587
10587
|
p_current_char_index = -1;
|
|
10588
10588
|
p_current_char = ` `;
|
|
10589
10589
|
p_text = String(text);
|
|
10590
|
-
const result2 = pJsonValue(
|
|
10590
|
+
const result2 = pJsonValue(schema5);
|
|
10591
10591
|
pSkipWhite();
|
|
10592
10592
|
if (p_current_char) {
|
|
10593
10593
|
pError(`Syntax error`);
|
|
@@ -11839,8 +11839,8 @@ var require_hanji = __commonJS({
|
|
|
11839
11839
|
};
|
|
11840
11840
|
exports2.deferred = deferred;
|
|
11841
11841
|
var Terminal2 = class {
|
|
11842
|
-
constructor(
|
|
11843
|
-
this.view =
|
|
11842
|
+
constructor(view5, stdin, stdout, closable) {
|
|
11843
|
+
this.view = view5;
|
|
11844
11844
|
this.stdin = stdin;
|
|
11845
11845
|
this.stdout = stdout;
|
|
11846
11846
|
this.closable = closable;
|
|
@@ -11878,7 +11878,7 @@ var require_hanji = __commonJS({
|
|
|
11878
11878
|
this.resolve({ status: "submitted", data: this.view.result() });
|
|
11879
11879
|
return;
|
|
11880
11880
|
}
|
|
11881
|
-
|
|
11881
|
+
view5.input(str, key);
|
|
11882
11882
|
};
|
|
11883
11883
|
this.stdin.on("keypress", keypress);
|
|
11884
11884
|
this.view.attach(this);
|
|
@@ -11940,8 +11940,8 @@ var require_hanji = __commonJS({
|
|
|
11940
11940
|
};
|
|
11941
11941
|
exports2.TaskView = TaskView2;
|
|
11942
11942
|
var TaskTerminal = class {
|
|
11943
|
-
constructor(
|
|
11944
|
-
this.view =
|
|
11943
|
+
constructor(view5, stdout) {
|
|
11944
|
+
this.view = view5;
|
|
11945
11945
|
this.stdout = stdout;
|
|
11946
11946
|
this.text = "";
|
|
11947
11947
|
this.view.attach(this);
|
|
@@ -11960,22 +11960,22 @@ var require_hanji = __commonJS({
|
|
|
11960
11960
|
}
|
|
11961
11961
|
};
|
|
11962
11962
|
exports2.TaskTerminal = TaskTerminal;
|
|
11963
|
-
function render2(
|
|
11963
|
+
function render2(view5) {
|
|
11964
11964
|
const { stdin, stdout, closable } = (0, readline_1.prepareReadLine)();
|
|
11965
|
-
if (
|
|
11966
|
-
const terminal = new Terminal2(
|
|
11965
|
+
if (view5 instanceof Prompt2) {
|
|
11966
|
+
const terminal = new Terminal2(view5, stdin, stdout, closable);
|
|
11967
11967
|
terminal.requestLayout();
|
|
11968
11968
|
return terminal.result();
|
|
11969
11969
|
}
|
|
11970
|
-
stdout.write(`${
|
|
11970
|
+
stdout.write(`${view5}
|
|
11971
11971
|
`);
|
|
11972
11972
|
closable.close();
|
|
11973
11973
|
return;
|
|
11974
11974
|
}
|
|
11975
11975
|
exports2.render = render2;
|
|
11976
|
-
function renderWithTask(
|
|
11976
|
+
function renderWithTask(view5, task) {
|
|
11977
11977
|
return __awaiter2(this, void 0, void 0, function* () {
|
|
11978
|
-
const terminal = new TaskTerminal(
|
|
11978
|
+
const terminal = new TaskTerminal(view5, process.stdout);
|
|
11979
11979
|
terminal.requestLayout();
|
|
11980
11980
|
const result2 = yield task;
|
|
11981
11981
|
terminal.clear();
|
|
@@ -12237,9 +12237,9 @@ var init_pexprs_main = __esm({
|
|
|
12237
12237
|
}
|
|
12238
12238
|
};
|
|
12239
12239
|
Param = class extends PExpr {
|
|
12240
|
-
constructor(
|
|
12240
|
+
constructor(index6) {
|
|
12241
12241
|
super();
|
|
12242
|
-
this.index =
|
|
12242
|
+
this.index = index6;
|
|
12243
12243
|
}
|
|
12244
12244
|
};
|
|
12245
12245
|
Alt = class extends PExpr {
|
|
@@ -13926,12 +13926,12 @@ var init_pexprs_introduceParams = __esm({
|
|
|
13926
13926
|
return this;
|
|
13927
13927
|
};
|
|
13928
13928
|
Apply.prototype.introduceParams = function(formals) {
|
|
13929
|
-
const
|
|
13930
|
-
if (
|
|
13929
|
+
const index6 = formals.indexOf(this.ruleName);
|
|
13930
|
+
if (index6 >= 0) {
|
|
13931
13931
|
if (this.args.length > 0) {
|
|
13932
13932
|
throw new Error("Parameterized rules cannot be passed as arguments to another rule.");
|
|
13933
13933
|
}
|
|
13934
|
-
return new Param(
|
|
13934
|
+
return new Param(index6).withSource(this.source);
|
|
13935
13935
|
} else {
|
|
13936
13936
|
this.args.forEach((arg, idx, args) => {
|
|
13937
13937
|
args[idx] = arg.introduceParams(formals);
|
|
@@ -15805,8 +15805,8 @@ var init_Builder = __esm({
|
|
|
15805
15805
|
range(from, to) {
|
|
15806
15806
|
return new Range(from, to);
|
|
15807
15807
|
}
|
|
15808
|
-
param(
|
|
15809
|
-
return new Param(
|
|
15808
|
+
param(index6) {
|
|
15809
|
+
return new Param(index6);
|
|
15810
15810
|
}
|
|
15811
15811
|
alt(...termArgs) {
|
|
15812
15812
|
let terms = [];
|
|
@@ -18582,13 +18582,13 @@ var init_grammar4 = __esm({
|
|
|
18582
18582
|
});
|
|
18583
18583
|
|
|
18584
18584
|
// src/dialects/mssql/ddl.ts
|
|
18585
|
-
var createDDL3;
|
|
18585
|
+
var createDDLV1, createDDL3;
|
|
18586
18586
|
var init_ddl3 = __esm({
|
|
18587
18587
|
"src/dialects/mssql/ddl.ts"() {
|
|
18588
18588
|
"use strict";
|
|
18589
18589
|
init_dialect();
|
|
18590
18590
|
init_grammar4();
|
|
18591
|
-
|
|
18591
|
+
createDDLV1 = () => {
|
|
18592
18592
|
return create({
|
|
18593
18593
|
schemas: {},
|
|
18594
18594
|
tables: { schema: "required" },
|
|
@@ -18660,117 +18660,106 @@ var init_ddl3 = __esm({
|
|
|
18660
18660
|
}
|
|
18661
18661
|
});
|
|
18662
18662
|
};
|
|
18663
|
+
createDDL3 = () => {
|
|
18664
|
+
return create({
|
|
18665
|
+
schemas: {},
|
|
18666
|
+
tables: { schema: "required" },
|
|
18667
|
+
columns: {
|
|
18668
|
+
schema: "required",
|
|
18669
|
+
table: "required",
|
|
18670
|
+
type: "string",
|
|
18671
|
+
notNull: "boolean",
|
|
18672
|
+
generated: {
|
|
18673
|
+
type: ["persisted", "virtual"],
|
|
18674
|
+
as: "string"
|
|
18675
|
+
},
|
|
18676
|
+
identity: {
|
|
18677
|
+
increment: "number",
|
|
18678
|
+
seed: "number"
|
|
18679
|
+
}
|
|
18680
|
+
},
|
|
18681
|
+
pks: {
|
|
18682
|
+
schema: "required",
|
|
18683
|
+
table: "required",
|
|
18684
|
+
nameExplicit: "boolean",
|
|
18685
|
+
columns: "string[]"
|
|
18686
|
+
},
|
|
18687
|
+
fks: {
|
|
18688
|
+
schema: "required",
|
|
18689
|
+
table: "required",
|
|
18690
|
+
columns: "string[]",
|
|
18691
|
+
nameExplicit: "boolean",
|
|
18692
|
+
schemaTo: "string",
|
|
18693
|
+
tableTo: "string",
|
|
18694
|
+
columnsTo: "string[]",
|
|
18695
|
+
onUpdate: ["NO ACTION", "CASCADE", "SET NULL", "SET DEFAULT"],
|
|
18696
|
+
onDelete: ["NO ACTION", "CASCADE", "SET NULL", "SET DEFAULT"]
|
|
18697
|
+
},
|
|
18698
|
+
indexes: {
|
|
18699
|
+
schema: "required",
|
|
18700
|
+
table: "required",
|
|
18701
|
+
// TODO add asc/desc: asc and desc feature exists in mssql
|
|
18702
|
+
columns: [
|
|
18703
|
+
{
|
|
18704
|
+
value: "string",
|
|
18705
|
+
isExpression: "boolean"
|
|
18706
|
+
}
|
|
18707
|
+
],
|
|
18708
|
+
isUnique: "boolean",
|
|
18709
|
+
where: "string?"
|
|
18710
|
+
},
|
|
18711
|
+
uniques: {
|
|
18712
|
+
schema: "required",
|
|
18713
|
+
table: "required",
|
|
18714
|
+
nameExplicit: "boolean",
|
|
18715
|
+
columns: "string[]"
|
|
18716
|
+
},
|
|
18717
|
+
checks: {
|
|
18718
|
+
schema: "required",
|
|
18719
|
+
table: "required",
|
|
18720
|
+
value: "string"
|
|
18721
|
+
},
|
|
18722
|
+
defaults: {
|
|
18723
|
+
schema: "required",
|
|
18724
|
+
table: "required",
|
|
18725
|
+
column: "string",
|
|
18726
|
+
// this field will be required for name preserving
|
|
18727
|
+
nameExplicit: "boolean",
|
|
18728
|
+
default: "string?"
|
|
18729
|
+
},
|
|
18730
|
+
views: {
|
|
18731
|
+
schema: "required",
|
|
18732
|
+
definition: "string",
|
|
18733
|
+
encryption: "boolean?",
|
|
18734
|
+
schemaBinding: "boolean?",
|
|
18735
|
+
viewMetadata: "boolean?",
|
|
18736
|
+
checkOption: "boolean?"
|
|
18737
|
+
}
|
|
18738
|
+
});
|
|
18739
|
+
};
|
|
18663
18740
|
}
|
|
18664
18741
|
});
|
|
18665
18742
|
|
|
18666
18743
|
// src/dialects/mssql/snapshot.ts
|
|
18667
|
-
var
|
|
18744
|
+
var ddlV1, snapshotValidatorV1, ddl4, snapshotValidator4, drySnapshot4;
|
|
18668
18745
|
var init_snapshot4 = __esm({
|
|
18669
18746
|
"src/dialects/mssql/snapshot.ts"() {
|
|
18670
18747
|
"use strict";
|
|
18671
|
-
init_esm2();
|
|
18672
18748
|
init_utils();
|
|
18673
18749
|
init_simpleValidator();
|
|
18674
18750
|
init_ddl3();
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
columnsFrom: stringType().array(),
|
|
18684
|
-
tableTo: stringType(),
|
|
18685
|
-
columnsTo: stringType().array(),
|
|
18686
|
-
onUpdate: stringType().optional(),
|
|
18687
|
-
onDelete: stringType().optional()
|
|
18688
|
-
}).strict();
|
|
18689
|
-
column4 = objectType({
|
|
18690
|
-
name: stringType(),
|
|
18691
|
-
type: stringType(),
|
|
18692
|
-
primaryKey: booleanType(),
|
|
18693
|
-
notNull: booleanType(),
|
|
18694
|
-
default: anyType().optional(),
|
|
18695
|
-
generated: objectType({
|
|
18696
|
-
type: enumType(["stored", "virtual"]),
|
|
18697
|
-
// TODO persisted
|
|
18698
|
-
as: stringType()
|
|
18699
|
-
}).optional()
|
|
18700
|
-
}).strict();
|
|
18701
|
-
compositePK4 = objectType({
|
|
18702
|
-
name: stringType(),
|
|
18703
|
-
columns: stringType().array()
|
|
18704
|
-
}).strict();
|
|
18705
|
-
uniqueConstraint4 = objectType({
|
|
18706
|
-
name: stringType(),
|
|
18707
|
-
columns: stringType().array()
|
|
18708
|
-
}).strict();
|
|
18709
|
-
checkConstraint3 = objectType({
|
|
18710
|
-
name: stringType(),
|
|
18711
|
-
value: stringType()
|
|
18712
|
-
}).strict();
|
|
18713
|
-
table4 = objectType({
|
|
18714
|
-
name: stringType(),
|
|
18715
|
-
columns: recordType(stringType(), column4),
|
|
18716
|
-
indexes: recordType(stringType(), index4),
|
|
18717
|
-
foreignKeys: recordType(stringType(), fk3),
|
|
18718
|
-
compositePrimaryKeys: recordType(stringType(), compositePK4),
|
|
18719
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint4).default({}),
|
|
18720
|
-
checkConstraint: recordType(stringType(), checkConstraint3).default({})
|
|
18721
|
-
}).strict();
|
|
18722
|
-
viewMeta2 = objectType({
|
|
18723
|
-
checkOption: booleanType().optional(),
|
|
18724
|
-
encryption: booleanType().optional(),
|
|
18725
|
-
schemaBinding: booleanType().optional(),
|
|
18726
|
-
viewMetadata: booleanType().optional()
|
|
18727
|
-
}).strict();
|
|
18728
|
-
view3 = objectType({
|
|
18729
|
-
name: stringType(),
|
|
18730
|
-
columns: recordType(stringType(), column4),
|
|
18731
|
-
definition: stringType().optional(),
|
|
18732
|
-
isExisting: booleanType()
|
|
18733
|
-
}).strict().merge(viewMeta2);
|
|
18734
|
-
kitInternals4 = objectType({
|
|
18735
|
-
tables: recordType(
|
|
18736
|
-
stringType(),
|
|
18737
|
-
objectType({
|
|
18738
|
-
columns: recordType(
|
|
18739
|
-
stringType(),
|
|
18740
|
-
objectType({ isDefaultAnExpression: booleanType().optional() }).optional()
|
|
18741
|
-
)
|
|
18742
|
-
}).optional()
|
|
18743
|
-
).optional(),
|
|
18744
|
-
indexes: recordType(
|
|
18745
|
-
stringType(),
|
|
18746
|
-
objectType({
|
|
18747
|
-
columns: recordType(
|
|
18748
|
-
stringType(),
|
|
18749
|
-
objectType({ isExpression: booleanType().optional() }).optional()
|
|
18750
|
-
)
|
|
18751
|
-
}).optional()
|
|
18752
|
-
).optional()
|
|
18753
|
-
}).optional();
|
|
18754
|
-
dialect4 = literalType("mssql");
|
|
18755
|
-
schemaHash4 = objectType({
|
|
18756
|
-
id: stringType(),
|
|
18757
|
-
prevIds: arrayType(stringType())
|
|
18751
|
+
ddlV1 = createDDLV1();
|
|
18752
|
+
snapshotValidatorV1 = validator2({
|
|
18753
|
+
version: ["1"],
|
|
18754
|
+
dialect: ["mssql"],
|
|
18755
|
+
id: "string",
|
|
18756
|
+
prevIds: array((_3) => true),
|
|
18757
|
+
ddl: array((it) => ddlV1.entities.validate(it)),
|
|
18758
|
+
renames: array((_3) => true)
|
|
18758
18759
|
});
|
|
18759
|
-
schemaInternal3 = objectType({
|
|
18760
|
-
version: literalType("1"),
|
|
18761
|
-
dialect: dialect4,
|
|
18762
|
-
tables: recordType(stringType(), table4),
|
|
18763
|
-
views: recordType(stringType(), view3).default({}),
|
|
18764
|
-
_meta: objectType({
|
|
18765
|
-
tables: recordType(stringType(), stringType()),
|
|
18766
|
-
columns: recordType(stringType(), stringType())
|
|
18767
|
-
}),
|
|
18768
|
-
internal: kitInternals4
|
|
18769
|
-
}).strict();
|
|
18770
|
-
schema3 = schemaInternal3.merge(schemaHash4);
|
|
18771
18760
|
ddl4 = createDDL3();
|
|
18772
18761
|
snapshotValidator4 = validator2({
|
|
18773
|
-
version: ["
|
|
18762
|
+
version: ["2"],
|
|
18774
18763
|
dialect: ["mssql"],
|
|
18775
18764
|
id: "string",
|
|
18776
18765
|
prevIds: array((_3) => true),
|
|
@@ -18779,7 +18768,7 @@ var init_snapshot4 = __esm({
|
|
|
18779
18768
|
});
|
|
18780
18769
|
drySnapshot4 = snapshotValidator4.strict(
|
|
18781
18770
|
{
|
|
18782
|
-
version: "
|
|
18771
|
+
version: "2",
|
|
18783
18772
|
dialect: "mssql",
|
|
18784
18773
|
id: originUUID,
|
|
18785
18774
|
prevIds: [],
|
|
@@ -18955,7 +18944,7 @@ var init_ddl4 = __esm({
|
|
|
18955
18944
|
});
|
|
18956
18945
|
|
|
18957
18946
|
// src/dialects/postgres/snapshot.ts
|
|
18958
|
-
var indexV2, columnV2, tableV2, enumSchemaV1, enumSchema2, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn2,
|
|
18947
|
+
var indexV2, columnV2, tableV2, enumSchemaV1, enumSchema2, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn2, index4, indexV4, indexV5, indexV6, fk3, sequenceSchema2, identitySchema2, roleSchema2, sequenceSquashed, columnV7, column4, checkConstraint3, columnSquashed, tableV32, compositePK4, uniqueConstraint4, policy2, policySquashed, viewWithOption2, matViewWithOption2, mergedViewWithOption2, view3, tableV42, tableV5, tableV6, tableV7, table4, schemaHash4, schemaHashV7, kitInternals4, pgSchemaInternalV3, pgSchemaInternalV4, pgSchemaInternalV5, pgSchemaInternalV6, pgSchemaExternal, pgSchemaInternalV7, pgSchemaInternal, tableSquashed3, tableSquashedV42, pgSchemaSquashedV4, pgSchemaSquashedV6, pgSchemaSquashed, pgSchemaV3, pgSchemaV4, pgSchemaV5, pgSchemaV6, pgSchemaV7, pgSchema, ddl5, snapshotValidator5, drySnapshot5;
|
|
18959
18948
|
var init_snapshot5 = __esm({
|
|
18960
18949
|
"src/dialects/postgres/snapshot.ts"() {
|
|
18961
18950
|
"use strict";
|
|
@@ -19032,7 +19021,7 @@ var init_snapshot5 = __esm({
|
|
|
19032
19021
|
nulls: stringType().optional(),
|
|
19033
19022
|
opclass: stringType().optional()
|
|
19034
19023
|
});
|
|
19035
|
-
|
|
19024
|
+
index4 = objectType({
|
|
19036
19025
|
name: stringType(),
|
|
19037
19026
|
columns: indexColumn2.array(),
|
|
19038
19027
|
isUnique: booleanType(),
|
|
@@ -19068,7 +19057,7 @@ var init_snapshot5 = __esm({
|
|
|
19068
19057
|
where: stringType().optional(),
|
|
19069
19058
|
concurrently: booleanType().default(false)
|
|
19070
19059
|
}).strict();
|
|
19071
|
-
|
|
19060
|
+
fk3 = objectType({
|
|
19072
19061
|
name: stringType(),
|
|
19073
19062
|
tableFrom: stringType(),
|
|
19074
19063
|
columnsFrom: stringType().array(),
|
|
@@ -19113,7 +19102,7 @@ var init_snapshot5 = __esm({
|
|
|
19113
19102
|
uniqueName: stringType().optional(),
|
|
19114
19103
|
nullsNotDistinct: booleanType().optional()
|
|
19115
19104
|
}).strict();
|
|
19116
|
-
|
|
19105
|
+
column4 = objectType({
|
|
19117
19106
|
name: stringType(),
|
|
19118
19107
|
type: stringType(),
|
|
19119
19108
|
typeSchema: stringType().optional(),
|
|
@@ -19126,7 +19115,7 @@ var init_snapshot5 = __esm({
|
|
|
19126
19115
|
}).optional(),
|
|
19127
19116
|
identity: identitySchema2.optional()
|
|
19128
19117
|
}).strict();
|
|
19129
|
-
|
|
19118
|
+
checkConstraint3 = objectType({
|
|
19130
19119
|
name: stringType(),
|
|
19131
19120
|
value: stringType()
|
|
19132
19121
|
}).strict();
|
|
@@ -19148,15 +19137,15 @@ var init_snapshot5 = __esm({
|
|
|
19148
19137
|
}).strict();
|
|
19149
19138
|
tableV32 = objectType({
|
|
19150
19139
|
name: stringType(),
|
|
19151
|
-
columns: recordType(stringType(),
|
|
19152
|
-
indexes: recordType(stringType(),
|
|
19153
|
-
foreignKeys: recordType(stringType(),
|
|
19140
|
+
columns: recordType(stringType(), column4),
|
|
19141
|
+
indexes: recordType(stringType(), index4),
|
|
19142
|
+
foreignKeys: recordType(stringType(), fk3)
|
|
19154
19143
|
}).strict();
|
|
19155
|
-
|
|
19144
|
+
compositePK4 = objectType({
|
|
19156
19145
|
name: stringType(),
|
|
19157
19146
|
columns: stringType().array()
|
|
19158
19147
|
}).strict();
|
|
19159
|
-
|
|
19148
|
+
uniqueConstraint4 = objectType({
|
|
19160
19149
|
name: stringType(),
|
|
19161
19150
|
columns: stringType().array(),
|
|
19162
19151
|
nullsNotDistinct: booleanType()
|
|
@@ -19201,10 +19190,10 @@ var init_snapshot5 = __esm({
|
|
|
19201
19190
|
userCatalogTable: booleanType().optional()
|
|
19202
19191
|
}).strict();
|
|
19203
19192
|
mergedViewWithOption2 = viewWithOption2.merge(matViewWithOption2).strict();
|
|
19204
|
-
|
|
19193
|
+
view3 = objectType({
|
|
19205
19194
|
name: stringType(),
|
|
19206
19195
|
schema: stringType(),
|
|
19207
|
-
columns: recordType(stringType(),
|
|
19196
|
+
columns: recordType(stringType(), column4),
|
|
19208
19197
|
definition: stringType().optional(),
|
|
19209
19198
|
materialized: booleanType(),
|
|
19210
19199
|
with: mergedViewWithOption2.optional(),
|
|
@@ -19216,50 +19205,50 @@ var init_snapshot5 = __esm({
|
|
|
19216
19205
|
tableV42 = objectType({
|
|
19217
19206
|
name: stringType(),
|
|
19218
19207
|
schema: stringType(),
|
|
19219
|
-
columns: recordType(stringType(),
|
|
19208
|
+
columns: recordType(stringType(), column4),
|
|
19220
19209
|
indexes: recordType(stringType(), indexV4),
|
|
19221
|
-
foreignKeys: recordType(stringType(),
|
|
19210
|
+
foreignKeys: recordType(stringType(), fk3)
|
|
19222
19211
|
}).strict();
|
|
19223
19212
|
tableV5 = objectType({
|
|
19224
19213
|
name: stringType(),
|
|
19225
19214
|
schema: stringType(),
|
|
19226
|
-
columns: recordType(stringType(),
|
|
19215
|
+
columns: recordType(stringType(), column4),
|
|
19227
19216
|
indexes: recordType(stringType(), indexV5),
|
|
19228
|
-
foreignKeys: recordType(stringType(),
|
|
19229
|
-
compositePrimaryKeys: recordType(stringType(),
|
|
19230
|
-
uniqueConstraints: recordType(stringType(),
|
|
19217
|
+
foreignKeys: recordType(stringType(), fk3),
|
|
19218
|
+
compositePrimaryKeys: recordType(stringType(), compositePK4),
|
|
19219
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint4).default({})
|
|
19231
19220
|
}).strict();
|
|
19232
19221
|
tableV6 = objectType({
|
|
19233
19222
|
name: stringType(),
|
|
19234
19223
|
schema: stringType(),
|
|
19235
|
-
columns: recordType(stringType(),
|
|
19224
|
+
columns: recordType(stringType(), column4),
|
|
19236
19225
|
indexes: recordType(stringType(), indexV6),
|
|
19237
|
-
foreignKeys: recordType(stringType(),
|
|
19238
|
-
compositePrimaryKeys: recordType(stringType(),
|
|
19239
|
-
uniqueConstraints: recordType(stringType(),
|
|
19226
|
+
foreignKeys: recordType(stringType(), fk3),
|
|
19227
|
+
compositePrimaryKeys: recordType(stringType(), compositePK4),
|
|
19228
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint4).default({})
|
|
19240
19229
|
}).strict();
|
|
19241
19230
|
tableV7 = objectType({
|
|
19242
19231
|
name: stringType(),
|
|
19243
19232
|
schema: stringType(),
|
|
19244
19233
|
columns: recordType(stringType(), columnV7),
|
|
19245
|
-
indexes: recordType(stringType(),
|
|
19246
|
-
foreignKeys: recordType(stringType(),
|
|
19247
|
-
compositePrimaryKeys: recordType(stringType(),
|
|
19248
|
-
uniqueConstraints: recordType(stringType(),
|
|
19234
|
+
indexes: recordType(stringType(), index4),
|
|
19235
|
+
foreignKeys: recordType(stringType(), fk3),
|
|
19236
|
+
compositePrimaryKeys: recordType(stringType(), compositePK4),
|
|
19237
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint4).default({})
|
|
19249
19238
|
}).strict();
|
|
19250
|
-
|
|
19239
|
+
table4 = objectType({
|
|
19251
19240
|
name: stringType(),
|
|
19252
19241
|
schema: stringType(),
|
|
19253
|
-
columns: recordType(stringType(),
|
|
19254
|
-
indexes: recordType(stringType(),
|
|
19255
|
-
foreignKeys: recordType(stringType(),
|
|
19256
|
-
compositePrimaryKeys: recordType(stringType(),
|
|
19257
|
-
uniqueConstraints: recordType(stringType(),
|
|
19242
|
+
columns: recordType(stringType(), column4),
|
|
19243
|
+
indexes: recordType(stringType(), index4),
|
|
19244
|
+
foreignKeys: recordType(stringType(), fk3),
|
|
19245
|
+
compositePrimaryKeys: recordType(stringType(), compositePK4),
|
|
19246
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint4).default({}),
|
|
19258
19247
|
policies: recordType(stringType(), policy2).default({}),
|
|
19259
|
-
checkConstraints: recordType(stringType(),
|
|
19248
|
+
checkConstraints: recordType(stringType(), checkConstraint3).default({}),
|
|
19260
19249
|
isRLSEnabled: booleanType().default(false).optional()
|
|
19261
19250
|
}).strict();
|
|
19262
|
-
|
|
19251
|
+
schemaHash4 = objectType({
|
|
19263
19252
|
id: stringType(),
|
|
19264
19253
|
prevIds: arrayType(stringType())
|
|
19265
19254
|
});
|
|
@@ -19267,7 +19256,7 @@ var init_snapshot5 = __esm({
|
|
|
19267
19256
|
id: stringType(),
|
|
19268
19257
|
prevId: stringType()
|
|
19269
19258
|
});
|
|
19270
|
-
|
|
19259
|
+
kitInternals4 = objectType({
|
|
19271
19260
|
tables: recordType(
|
|
19272
19261
|
stringType(),
|
|
19273
19262
|
objectType({
|
|
@@ -19307,7 +19296,7 @@ var init_snapshot5 = __esm({
|
|
|
19307
19296
|
tables: recordType(stringType(), stringType()),
|
|
19308
19297
|
columns: recordType(stringType(), stringType())
|
|
19309
19298
|
}),
|
|
19310
|
-
internal:
|
|
19299
|
+
internal: kitInternals4
|
|
19311
19300
|
}).strict();
|
|
19312
19301
|
pgSchemaInternalV6 = objectType({
|
|
19313
19302
|
version: literalType("6"),
|
|
@@ -19320,12 +19309,12 @@ var init_snapshot5 = __esm({
|
|
|
19320
19309
|
tables: recordType(stringType(), stringType()),
|
|
19321
19310
|
columns: recordType(stringType(), stringType())
|
|
19322
19311
|
}),
|
|
19323
|
-
internal:
|
|
19312
|
+
internal: kitInternals4
|
|
19324
19313
|
}).strict();
|
|
19325
19314
|
pgSchemaExternal = objectType({
|
|
19326
19315
|
version: literalType("5"),
|
|
19327
19316
|
dialect: literalType("pg"),
|
|
19328
|
-
tables: arrayType(
|
|
19317
|
+
tables: arrayType(table4),
|
|
19329
19318
|
enums: arrayType(enumSchemaV1),
|
|
19330
19319
|
schemas: arrayType(objectType({ name: stringType() })),
|
|
19331
19320
|
_meta: objectType({
|
|
@@ -19346,15 +19335,15 @@ var init_snapshot5 = __esm({
|
|
|
19346
19335
|
tables: recordType(stringType(), stringType()),
|
|
19347
19336
|
columns: recordType(stringType(), stringType())
|
|
19348
19337
|
}),
|
|
19349
|
-
internal:
|
|
19338
|
+
internal: kitInternals4
|
|
19350
19339
|
}).strict();
|
|
19351
19340
|
pgSchemaInternal = objectType({
|
|
19352
19341
|
version: literalType("7"),
|
|
19353
19342
|
dialect: literalType("postgresql"),
|
|
19354
|
-
tables: recordType(stringType(),
|
|
19343
|
+
tables: recordType(stringType(), table4),
|
|
19355
19344
|
enums: recordType(stringType(), enumSchema2),
|
|
19356
19345
|
schemas: recordType(stringType(), stringType()),
|
|
19357
|
-
views: recordType(stringType(),
|
|
19346
|
+
views: recordType(stringType(), view3).default({}),
|
|
19358
19347
|
sequences: recordType(stringType(), sequenceSchema2).default({}),
|
|
19359
19348
|
roles: recordType(stringType(), roleSchema2).default({}),
|
|
19360
19349
|
policies: recordType(stringType(), policy2).default({}),
|
|
@@ -19363,7 +19352,7 @@ var init_snapshot5 = __esm({
|
|
|
19363
19352
|
tables: recordType(stringType(), stringType()),
|
|
19364
19353
|
columns: recordType(stringType(), stringType())
|
|
19365
19354
|
}),
|
|
19366
|
-
internal:
|
|
19355
|
+
internal: kitInternals4
|
|
19367
19356
|
}).strict();
|
|
19368
19357
|
tableSquashed3 = objectType({
|
|
19369
19358
|
name: stringType(),
|
|
@@ -19380,7 +19369,7 @@ var init_snapshot5 = __esm({
|
|
|
19380
19369
|
tableSquashedV42 = objectType({
|
|
19381
19370
|
name: stringType(),
|
|
19382
19371
|
schema: stringType(),
|
|
19383
|
-
columns: recordType(stringType(),
|
|
19372
|
+
columns: recordType(stringType(), column4),
|
|
19384
19373
|
indexes: recordType(stringType(), stringType()),
|
|
19385
19374
|
foreignKeys: recordType(stringType(), stringType())
|
|
19386
19375
|
}).strict();
|
|
@@ -19404,17 +19393,17 @@ var init_snapshot5 = __esm({
|
|
|
19404
19393
|
tables: recordType(stringType(), tableSquashed3),
|
|
19405
19394
|
enums: recordType(stringType(), enumSchema2),
|
|
19406
19395
|
schemas: recordType(stringType(), stringType()),
|
|
19407
|
-
views: recordType(stringType(),
|
|
19396
|
+
views: recordType(stringType(), view3),
|
|
19408
19397
|
sequences: recordType(stringType(), sequenceSquashed),
|
|
19409
19398
|
roles: recordType(stringType(), roleSchema2).default({}),
|
|
19410
19399
|
policies: recordType(stringType(), policySquashed).default({})
|
|
19411
19400
|
}).strict();
|
|
19412
|
-
pgSchemaV3 = pgSchemaInternalV3.merge(
|
|
19413
|
-
pgSchemaV4 = pgSchemaInternalV4.merge(
|
|
19414
|
-
pgSchemaV5 = pgSchemaInternalV5.merge(
|
|
19415
|
-
pgSchemaV6 = pgSchemaInternalV6.merge(
|
|
19401
|
+
pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash4);
|
|
19402
|
+
pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash4);
|
|
19403
|
+
pgSchemaV5 = pgSchemaInternalV5.merge(schemaHash4);
|
|
19404
|
+
pgSchemaV6 = pgSchemaInternalV6.merge(schemaHash4);
|
|
19416
19405
|
pgSchemaV7 = pgSchemaInternal.merge(schemaHashV7);
|
|
19417
|
-
pgSchema = pgSchemaInternal.merge(
|
|
19406
|
+
pgSchema = pgSchemaInternal.merge(schemaHash4);
|
|
19418
19407
|
ddl5 = createDDL4();
|
|
19419
19408
|
snapshotValidator5 = validator2({
|
|
19420
19409
|
version: ["8"],
|
|
@@ -19525,7 +19514,7 @@ var init_ddl5 = __esm({
|
|
|
19525
19514
|
});
|
|
19526
19515
|
|
|
19527
19516
|
// src/dialects/sqlite/snapshot.ts
|
|
19528
|
-
var
|
|
19517
|
+
var index5, fk4, compositePK5, column5, uniqueConstraint5, checkConstraint4, table5, view4, dialect4, schemaHash5, schemaHashV5, schemaInternalV52, latestVersion, schemaInternalV6, schemaV52, schemaV62, schema3, tableSquashed4, schemaSquashed3, ddl6, snapshotValidator6, drySqliteSnapshot;
|
|
19529
19518
|
var init_snapshot6 = __esm({
|
|
19530
19519
|
"src/dialects/sqlite/snapshot.ts"() {
|
|
19531
19520
|
"use strict";
|
|
@@ -19533,13 +19522,13 @@ var init_snapshot6 = __esm({
|
|
|
19533
19522
|
init_utils();
|
|
19534
19523
|
init_simpleValidator();
|
|
19535
19524
|
init_ddl5();
|
|
19536
|
-
|
|
19525
|
+
index5 = objectType({
|
|
19537
19526
|
name: stringType(),
|
|
19538
19527
|
columns: stringType().array(),
|
|
19539
19528
|
where: stringType().optional(),
|
|
19540
19529
|
isUnique: booleanType()
|
|
19541
19530
|
}).strict();
|
|
19542
|
-
|
|
19531
|
+
fk4 = objectType({
|
|
19543
19532
|
name: stringType(),
|
|
19544
19533
|
tableFrom: stringType(),
|
|
19545
19534
|
columnsFrom: stringType().array(),
|
|
@@ -19548,11 +19537,11 @@ var init_snapshot6 = __esm({
|
|
|
19548
19537
|
onUpdate: stringType().optional(),
|
|
19549
19538
|
onDelete: stringType().optional()
|
|
19550
19539
|
}).strict();
|
|
19551
|
-
|
|
19540
|
+
compositePK5 = objectType({
|
|
19552
19541
|
columns: stringType().array(),
|
|
19553
19542
|
name: stringType()
|
|
19554
19543
|
}).strict();
|
|
19555
|
-
|
|
19544
|
+
column5 = objectType({
|
|
19556
19545
|
name: stringType(),
|
|
19557
19546
|
type: stringType(),
|
|
19558
19547
|
typeSchema: stringType().optional(),
|
|
@@ -19566,31 +19555,31 @@ var init_snapshot6 = __esm({
|
|
|
19566
19555
|
as: stringType()
|
|
19567
19556
|
}).optional()
|
|
19568
19557
|
}).strict();
|
|
19569
|
-
|
|
19558
|
+
uniqueConstraint5 = objectType({
|
|
19570
19559
|
name: stringType(),
|
|
19571
19560
|
columns: stringType().array()
|
|
19572
19561
|
}).strict();
|
|
19573
|
-
|
|
19562
|
+
checkConstraint4 = objectType({
|
|
19574
19563
|
name: stringType(),
|
|
19575
19564
|
value: stringType()
|
|
19576
19565
|
}).strict();
|
|
19577
|
-
|
|
19566
|
+
table5 = objectType({
|
|
19578
19567
|
name: stringType(),
|
|
19579
|
-
columns: recordType(stringType(),
|
|
19580
|
-
indexes: recordType(stringType(),
|
|
19581
|
-
foreignKeys: recordType(stringType(),
|
|
19582
|
-
compositePrimaryKeys: recordType(stringType(),
|
|
19583
|
-
uniqueConstraints: recordType(stringType(),
|
|
19584
|
-
checkConstraints: recordType(stringType(),
|
|
19568
|
+
columns: recordType(stringType(), column5),
|
|
19569
|
+
indexes: recordType(stringType(), index5),
|
|
19570
|
+
foreignKeys: recordType(stringType(), fk4),
|
|
19571
|
+
compositePrimaryKeys: recordType(stringType(), compositePK5),
|
|
19572
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint5).default({}),
|
|
19573
|
+
checkConstraints: recordType(stringType(), checkConstraint4).default({})
|
|
19585
19574
|
}).strict();
|
|
19586
|
-
|
|
19575
|
+
view4 = objectType({
|
|
19587
19576
|
name: stringType(),
|
|
19588
|
-
columns: recordType(stringType(),
|
|
19577
|
+
columns: recordType(stringType(), column5),
|
|
19589
19578
|
definition: stringType().optional(),
|
|
19590
19579
|
isExisting: booleanType()
|
|
19591
19580
|
}).strict();
|
|
19592
|
-
|
|
19593
|
-
|
|
19581
|
+
dialect4 = enumType(["sqlite"]);
|
|
19582
|
+
schemaHash5 = objectType({
|
|
19594
19583
|
id: stringType(),
|
|
19595
19584
|
prevIds: arrayType(stringType())
|
|
19596
19585
|
}).strict();
|
|
@@ -19600,8 +19589,8 @@ var init_snapshot6 = __esm({
|
|
|
19600
19589
|
}).strict();
|
|
19601
19590
|
schemaInternalV52 = objectType({
|
|
19602
19591
|
version: literalType("5"),
|
|
19603
|
-
dialect:
|
|
19604
|
-
tables: recordType(stringType(),
|
|
19592
|
+
dialect: dialect4,
|
|
19593
|
+
tables: recordType(stringType(), table5),
|
|
19605
19594
|
enums: objectType({}),
|
|
19606
19595
|
_meta: objectType({
|
|
19607
19596
|
tables: recordType(stringType(), stringType()),
|
|
@@ -19611,9 +19600,9 @@ var init_snapshot6 = __esm({
|
|
|
19611
19600
|
latestVersion = literalType("7");
|
|
19612
19601
|
schemaInternalV6 = objectType({
|
|
19613
19602
|
version: literalType("6"),
|
|
19614
|
-
dialect:
|
|
19615
|
-
tables: recordType(stringType(),
|
|
19616
|
-
views: recordType(stringType(),
|
|
19603
|
+
dialect: dialect4,
|
|
19604
|
+
tables: recordType(stringType(), table5),
|
|
19605
|
+
views: recordType(stringType(), view4).default({}),
|
|
19617
19606
|
enums: objectType({}),
|
|
19618
19607
|
_meta: objectType({
|
|
19619
19608
|
tables: recordType(stringType(), stringType()),
|
|
@@ -19623,11 +19612,11 @@ var init_snapshot6 = __esm({
|
|
|
19623
19612
|
}).strict();
|
|
19624
19613
|
schemaV52 = schemaInternalV52.merge(schemaHashV5).strict();
|
|
19625
19614
|
schemaV62 = schemaInternalV6.merge(schemaHashV5).strict();
|
|
19626
|
-
|
|
19615
|
+
schema3 = schemaInternalV6.merge(schemaHash5).strict();
|
|
19627
19616
|
tableSquashed4 = objectType({
|
|
19628
19617
|
name: stringType(),
|
|
19629
19618
|
schema: stringType().optional(),
|
|
19630
|
-
columns: recordType(stringType(),
|
|
19619
|
+
columns: recordType(stringType(), column5),
|
|
19631
19620
|
indexes: recordType(stringType(), stringType()),
|
|
19632
19621
|
foreignKeys: recordType(stringType(), stringType()),
|
|
19633
19622
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
|
@@ -19636,9 +19625,9 @@ var init_snapshot6 = __esm({
|
|
|
19636
19625
|
}).strict();
|
|
19637
19626
|
schemaSquashed3 = objectType({
|
|
19638
19627
|
version: latestVersion,
|
|
19639
|
-
dialect:
|
|
19628
|
+
dialect: dialect4,
|
|
19640
19629
|
tables: recordType(stringType(), tableSquashed4),
|
|
19641
|
-
views: recordType(stringType(),
|
|
19630
|
+
views: recordType(stringType(), view4),
|
|
19642
19631
|
enums: recordType(
|
|
19643
19632
|
stringType(),
|
|
19644
19633
|
objectType({
|
|
@@ -20555,8 +20544,8 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
20555
20544
|
function isDataViewConstructor(ctor) {
|
|
20556
20545
|
return ctor === DataView;
|
|
20557
20546
|
}
|
|
20558
|
-
function isDataView(
|
|
20559
|
-
return isDataViewConstructor(
|
|
20547
|
+
function isDataView(view5) {
|
|
20548
|
+
return isDataViewConstructor(view5.constructor);
|
|
20560
20549
|
}
|
|
20561
20550
|
function arrayBufferViewElementSize(ctor) {
|
|
20562
20551
|
if (isDataViewConstructor(ctor)) {
|
|
@@ -20591,21 +20580,21 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
20591
20580
|
}
|
|
20592
20581
|
ReadableByteStreamControllerRespond(this._associatedReadableByteStreamController, bytesWritten);
|
|
20593
20582
|
}
|
|
20594
|
-
respondWithNewView(
|
|
20583
|
+
respondWithNewView(view5) {
|
|
20595
20584
|
if (!IsReadableStreamBYOBRequest(this)) {
|
|
20596
20585
|
throw byobRequestBrandCheckException("respondWithNewView");
|
|
20597
20586
|
}
|
|
20598
|
-
assertRequiredArgument(
|
|
20599
|
-
if (!ArrayBuffer.isView(
|
|
20587
|
+
assertRequiredArgument(view5, 1, "respondWithNewView");
|
|
20588
|
+
if (!ArrayBuffer.isView(view5)) {
|
|
20600
20589
|
throw new TypeError("You can only respond with array buffer views");
|
|
20601
20590
|
}
|
|
20602
20591
|
if (this._associatedReadableByteStreamController === void 0) {
|
|
20603
20592
|
throw new TypeError("This BYOB request has been invalidated");
|
|
20604
20593
|
}
|
|
20605
|
-
if (IsDetachedBuffer(
|
|
20594
|
+
if (IsDetachedBuffer(view5.buffer)) {
|
|
20606
20595
|
throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");
|
|
20607
20596
|
}
|
|
20608
|
-
ReadableByteStreamControllerRespondWithNewView(this._associatedReadableByteStreamController,
|
|
20597
|
+
ReadableByteStreamControllerRespondWithNewView(this._associatedReadableByteStreamController, view5);
|
|
20609
20598
|
}
|
|
20610
20599
|
}
|
|
20611
20600
|
Object.defineProperties(ReadableStreamBYOBRequest.prototype, {
|
|
@@ -20911,15 +20900,15 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
20911
20900
|
ReadableByteStreamControllerFillReadRequestFromQueue(controller, readRequest);
|
|
20912
20901
|
}
|
|
20913
20902
|
}
|
|
20914
|
-
function ReadableByteStreamControllerPullInto(controller,
|
|
20903
|
+
function ReadableByteStreamControllerPullInto(controller, view5, min, readIntoRequest) {
|
|
20915
20904
|
const stream = controller._controlledReadableByteStream;
|
|
20916
|
-
const ctor =
|
|
20905
|
+
const ctor = view5.constructor;
|
|
20917
20906
|
const elementSize = arrayBufferViewElementSize(ctor);
|
|
20918
|
-
const { byteOffset, byteLength } =
|
|
20907
|
+
const { byteOffset, byteLength } = view5;
|
|
20919
20908
|
const minimumFill = min * elementSize;
|
|
20920
20909
|
let buffer;
|
|
20921
20910
|
try {
|
|
20922
|
-
buffer = TransferArrayBuffer(
|
|
20911
|
+
buffer = TransferArrayBuffer(view5.buffer);
|
|
20923
20912
|
} catch (e7) {
|
|
20924
20913
|
readIntoRequest._errorSteps(e7);
|
|
20925
20914
|
return;
|
|
@@ -21111,15 +21100,15 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
21111
21100
|
const entry = controller._queue.shift();
|
|
21112
21101
|
controller._queueTotalSize -= entry.byteLength;
|
|
21113
21102
|
ReadableByteStreamControllerHandleQueueDrain(controller);
|
|
21114
|
-
const
|
|
21115
|
-
readRequest._chunkSteps(
|
|
21103
|
+
const view5 = new Uint8Array(entry.buffer, entry.byteOffset, entry.byteLength);
|
|
21104
|
+
readRequest._chunkSteps(view5);
|
|
21116
21105
|
}
|
|
21117
21106
|
function ReadableByteStreamControllerGetBYOBRequest(controller) {
|
|
21118
21107
|
if (controller._byobRequest === null && controller._pendingPullIntos.length > 0) {
|
|
21119
21108
|
const firstDescriptor = controller._pendingPullIntos.peek();
|
|
21120
|
-
const
|
|
21109
|
+
const view5 = new Uint8Array(firstDescriptor.buffer, firstDescriptor.byteOffset + firstDescriptor.bytesFilled, firstDescriptor.byteLength - firstDescriptor.bytesFilled);
|
|
21121
21110
|
const byobRequest = Object.create(ReadableStreamBYOBRequest.prototype);
|
|
21122
|
-
SetUpReadableStreamBYOBRequest(byobRequest, controller,
|
|
21111
|
+
SetUpReadableStreamBYOBRequest(byobRequest, controller, view5);
|
|
21123
21112
|
controller._byobRequest = byobRequest;
|
|
21124
21113
|
}
|
|
21125
21114
|
return controller._byobRequest;
|
|
@@ -21152,29 +21141,29 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
21152
21141
|
firstDescriptor.buffer = TransferArrayBuffer(firstDescriptor.buffer);
|
|
21153
21142
|
ReadableByteStreamControllerRespondInternal(controller, bytesWritten);
|
|
21154
21143
|
}
|
|
21155
|
-
function ReadableByteStreamControllerRespondWithNewView(controller,
|
|
21144
|
+
function ReadableByteStreamControllerRespondWithNewView(controller, view5) {
|
|
21156
21145
|
const firstDescriptor = controller._pendingPullIntos.peek();
|
|
21157
21146
|
const state2 = controller._controlledReadableByteStream._state;
|
|
21158
21147
|
if (state2 === "closed") {
|
|
21159
|
-
if (
|
|
21148
|
+
if (view5.byteLength !== 0) {
|
|
21160
21149
|
throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream");
|
|
21161
21150
|
}
|
|
21162
21151
|
} else {
|
|
21163
|
-
if (
|
|
21152
|
+
if (view5.byteLength === 0) {
|
|
21164
21153
|
throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");
|
|
21165
21154
|
}
|
|
21166
21155
|
}
|
|
21167
|
-
if (firstDescriptor.byteOffset + firstDescriptor.bytesFilled !==
|
|
21156
|
+
if (firstDescriptor.byteOffset + firstDescriptor.bytesFilled !== view5.byteOffset) {
|
|
21168
21157
|
throw new RangeError("The region specified by view does not match byobRequest");
|
|
21169
21158
|
}
|
|
21170
|
-
if (firstDescriptor.bufferByteLength !==
|
|
21159
|
+
if (firstDescriptor.bufferByteLength !== view5.buffer.byteLength) {
|
|
21171
21160
|
throw new RangeError("The buffer of view has different capacity than byobRequest");
|
|
21172
21161
|
}
|
|
21173
|
-
if (firstDescriptor.bytesFilled +
|
|
21162
|
+
if (firstDescriptor.bytesFilled + view5.byteLength > firstDescriptor.byteLength) {
|
|
21174
21163
|
throw new RangeError("The region specified by view is larger than byobRequest");
|
|
21175
21164
|
}
|
|
21176
|
-
const viewByteLength =
|
|
21177
|
-
firstDescriptor.buffer = TransferArrayBuffer(
|
|
21165
|
+
const viewByteLength = view5.byteLength;
|
|
21166
|
+
firstDescriptor.buffer = TransferArrayBuffer(view5.buffer);
|
|
21178
21167
|
ReadableByteStreamControllerRespondInternal(controller, viewByteLength);
|
|
21179
21168
|
}
|
|
21180
21169
|
function SetUpReadableByteStreamController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, autoAllocateChunkSize) {
|
|
@@ -21228,9 +21217,9 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
21228
21217
|
}
|
|
21229
21218
|
SetUpReadableByteStreamController(stream, controller, startAlgorithm, pullAlgorithm, cancelAlgorithm, highWaterMark, autoAllocateChunkSize);
|
|
21230
21219
|
}
|
|
21231
|
-
function SetUpReadableStreamBYOBRequest(request2, controller,
|
|
21220
|
+
function SetUpReadableStreamBYOBRequest(request2, controller, view5) {
|
|
21232
21221
|
request2._associatedReadableByteStreamController = controller;
|
|
21233
|
-
request2._view =
|
|
21222
|
+
request2._view = view5;
|
|
21234
21223
|
}
|
|
21235
21224
|
function byobRequestBrandCheckException(name) {
|
|
21236
21225
|
return new TypeError(`ReadableStreamBYOBRequest.prototype.${name} can only be used on a ReadableStreamBYOBRequest`);
|
|
@@ -21323,20 +21312,20 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
21323
21312
|
}
|
|
21324
21313
|
return ReadableStreamReaderGenericCancel(this, reason);
|
|
21325
21314
|
}
|
|
21326
|
-
read(
|
|
21315
|
+
read(view5, rawOptions = {}) {
|
|
21327
21316
|
if (!IsReadableStreamBYOBReader(this)) {
|
|
21328
21317
|
return promiseRejectedWith(byobReaderBrandCheckException("read"));
|
|
21329
21318
|
}
|
|
21330
|
-
if (!ArrayBuffer.isView(
|
|
21319
|
+
if (!ArrayBuffer.isView(view5)) {
|
|
21331
21320
|
return promiseRejectedWith(new TypeError("view must be an array buffer view"));
|
|
21332
21321
|
}
|
|
21333
|
-
if (
|
|
21322
|
+
if (view5.byteLength === 0) {
|
|
21334
21323
|
return promiseRejectedWith(new TypeError("view must have non-zero byteLength"));
|
|
21335
21324
|
}
|
|
21336
|
-
if (
|
|
21325
|
+
if (view5.buffer.byteLength === 0) {
|
|
21337
21326
|
return promiseRejectedWith(new TypeError(`view's buffer must have non-zero byteLength`));
|
|
21338
21327
|
}
|
|
21339
|
-
if (IsDetachedBuffer(
|
|
21328
|
+
if (IsDetachedBuffer(view5.buffer)) {
|
|
21340
21329
|
return promiseRejectedWith(new TypeError("view's buffer has been detached"));
|
|
21341
21330
|
}
|
|
21342
21331
|
let options;
|
|
@@ -21349,11 +21338,11 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
21349
21338
|
if (min === 0) {
|
|
21350
21339
|
return promiseRejectedWith(new TypeError("options.min must be greater than 0"));
|
|
21351
21340
|
}
|
|
21352
|
-
if (!isDataView(
|
|
21353
|
-
if (min >
|
|
21341
|
+
if (!isDataView(view5)) {
|
|
21342
|
+
if (min > view5.length) {
|
|
21354
21343
|
return promiseRejectedWith(new RangeError("options.min must be less than or equal to view's length"));
|
|
21355
21344
|
}
|
|
21356
|
-
} else if (min >
|
|
21345
|
+
} else if (min > view5.byteLength) {
|
|
21357
21346
|
return promiseRejectedWith(new RangeError("options.min must be less than or equal to view's byteLength"));
|
|
21358
21347
|
}
|
|
21359
21348
|
if (this._ownerReadableStream === void 0) {
|
|
@@ -21370,7 +21359,7 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
21370
21359
|
_closeSteps: (chunk) => resolvePromise({ value: chunk, done: true }),
|
|
21371
21360
|
_errorSteps: (e7) => rejectPromise(e7)
|
|
21372
21361
|
};
|
|
21373
|
-
ReadableStreamBYOBReaderRead(this,
|
|
21362
|
+
ReadableStreamBYOBReaderRead(this, view5, min, readIntoRequest);
|
|
21374
21363
|
return promise;
|
|
21375
21364
|
}
|
|
21376
21365
|
/**
|
|
@@ -21416,13 +21405,13 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
21416
21405
|
}
|
|
21417
21406
|
return x6 instanceof ReadableStreamBYOBReader;
|
|
21418
21407
|
}
|
|
21419
|
-
function ReadableStreamBYOBReaderRead(reader,
|
|
21408
|
+
function ReadableStreamBYOBReaderRead(reader, view5, min, readIntoRequest) {
|
|
21420
21409
|
const stream = reader._ownerReadableStream;
|
|
21421
21410
|
stream._disturbed = true;
|
|
21422
21411
|
if (stream._state === "errored") {
|
|
21423
21412
|
readIntoRequest._errorSteps(stream._storedError);
|
|
21424
21413
|
} else {
|
|
21425
|
-
ReadableByteStreamControllerPullInto(stream._readableStreamController,
|
|
21414
|
+
ReadableByteStreamControllerPullInto(stream._readableStreamController, view5, min, readIntoRequest);
|
|
21426
21415
|
}
|
|
21427
21416
|
}
|
|
21428
21417
|
function ReadableStreamBYOBReaderRelease(reader) {
|
|
@@ -23047,7 +23036,7 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
23047
23036
|
};
|
|
23048
23037
|
ReadableStreamDefaultReaderRead(reader, readRequest);
|
|
23049
23038
|
}
|
|
23050
|
-
function pullWithBYOBReader(
|
|
23039
|
+
function pullWithBYOBReader(view5, forBranch2) {
|
|
23051
23040
|
if (IsReadableStreamDefaultReader(reader)) {
|
|
23052
23041
|
ReadableStreamReaderGenericRelease(reader);
|
|
23053
23042
|
reader = AcquireReadableStreamBYOBReader(stream);
|
|
@@ -23113,7 +23102,7 @@ var require_ponyfill_es2018 = __commonJS({
|
|
|
23113
23102
|
reading = false;
|
|
23114
23103
|
}
|
|
23115
23104
|
};
|
|
23116
|
-
ReadableStreamBYOBReaderRead(reader,
|
|
23105
|
+
ReadableStreamBYOBReaderRead(reader, view5, 1, readIntoRequest);
|
|
23117
23106
|
}
|
|
23118
23107
|
function pull1Algorithm() {
|
|
23119
23108
|
if (reading) {
|
|
@@ -24790,7 +24779,7 @@ var init_multipart_parser = __esm({
|
|
|
24790
24779
|
let i7 = 0;
|
|
24791
24780
|
const length_ = data.length;
|
|
24792
24781
|
let previousIndex = this.index;
|
|
24793
|
-
let { lookbehind, boundary, boundaryChars, index:
|
|
24782
|
+
let { lookbehind, boundary, boundaryChars, index: index6, state: state2, flags } = this;
|
|
24794
24783
|
const boundaryLength = this.boundary.length;
|
|
24795
24784
|
const boundaryEnd = boundaryLength - 1;
|
|
24796
24785
|
const bufferLength = data.length;
|
|
@@ -24824,20 +24813,20 @@ var init_multipart_parser = __esm({
|
|
|
24824
24813
|
c6 = data[i7];
|
|
24825
24814
|
switch (state2) {
|
|
24826
24815
|
case S.START_BOUNDARY:
|
|
24827
|
-
if (
|
|
24816
|
+
if (index6 === boundary.length - 2) {
|
|
24828
24817
|
if (c6 === HYPHEN) {
|
|
24829
24818
|
flags |= F.LAST_BOUNDARY;
|
|
24830
24819
|
} else if (c6 !== CR) {
|
|
24831
24820
|
return;
|
|
24832
24821
|
}
|
|
24833
|
-
|
|
24822
|
+
index6++;
|
|
24834
24823
|
break;
|
|
24835
|
-
} else if (
|
|
24824
|
+
} else if (index6 - 1 === boundary.length - 2) {
|
|
24836
24825
|
if (flags & F.LAST_BOUNDARY && c6 === HYPHEN) {
|
|
24837
24826
|
state2 = S.END;
|
|
24838
24827
|
flags = 0;
|
|
24839
24828
|
} else if (!(flags & F.LAST_BOUNDARY) && c6 === LF) {
|
|
24840
|
-
|
|
24829
|
+
index6 = 0;
|
|
24841
24830
|
callback("onPartBegin");
|
|
24842
24831
|
state2 = S.HEADER_FIELD_START;
|
|
24843
24832
|
} else {
|
|
@@ -24845,17 +24834,17 @@ var init_multipart_parser = __esm({
|
|
|
24845
24834
|
}
|
|
24846
24835
|
break;
|
|
24847
24836
|
}
|
|
24848
|
-
if (c6 !== boundary[
|
|
24849
|
-
|
|
24837
|
+
if (c6 !== boundary[index6 + 2]) {
|
|
24838
|
+
index6 = -2;
|
|
24850
24839
|
}
|
|
24851
|
-
if (c6 === boundary[
|
|
24852
|
-
|
|
24840
|
+
if (c6 === boundary[index6 + 2]) {
|
|
24841
|
+
index6++;
|
|
24853
24842
|
}
|
|
24854
24843
|
break;
|
|
24855
24844
|
case S.HEADER_FIELD_START:
|
|
24856
24845
|
state2 = S.HEADER_FIELD;
|
|
24857
24846
|
mark("onHeaderField");
|
|
24858
|
-
|
|
24847
|
+
index6 = 0;
|
|
24859
24848
|
// falls through
|
|
24860
24849
|
case S.HEADER_FIELD:
|
|
24861
24850
|
if (c6 === CR) {
|
|
@@ -24863,12 +24852,12 @@ var init_multipart_parser = __esm({
|
|
|
24863
24852
|
state2 = S.HEADERS_ALMOST_DONE;
|
|
24864
24853
|
break;
|
|
24865
24854
|
}
|
|
24866
|
-
|
|
24855
|
+
index6++;
|
|
24867
24856
|
if (c6 === HYPHEN) {
|
|
24868
24857
|
break;
|
|
24869
24858
|
}
|
|
24870
24859
|
if (c6 === COLON) {
|
|
24871
|
-
if (
|
|
24860
|
+
if (index6 === 1) {
|
|
24872
24861
|
return;
|
|
24873
24862
|
}
|
|
24874
24863
|
dataCallback("onHeaderField", true);
|
|
@@ -24912,8 +24901,8 @@ var init_multipart_parser = __esm({
|
|
|
24912
24901
|
mark("onPartData");
|
|
24913
24902
|
// falls through
|
|
24914
24903
|
case S.PART_DATA:
|
|
24915
|
-
previousIndex =
|
|
24916
|
-
if (
|
|
24904
|
+
previousIndex = index6;
|
|
24905
|
+
if (index6 === 0) {
|
|
24917
24906
|
i7 += boundaryEnd;
|
|
24918
24907
|
while (i7 < bufferLength && !(data[i7] in boundaryChars)) {
|
|
24919
24908
|
i7 += boundaryLength;
|
|
@@ -24921,27 +24910,27 @@ var init_multipart_parser = __esm({
|
|
|
24921
24910
|
i7 -= boundaryEnd;
|
|
24922
24911
|
c6 = data[i7];
|
|
24923
24912
|
}
|
|
24924
|
-
if (
|
|
24925
|
-
if (boundary[
|
|
24926
|
-
if (
|
|
24913
|
+
if (index6 < boundary.length) {
|
|
24914
|
+
if (boundary[index6] === c6) {
|
|
24915
|
+
if (index6 === 0) {
|
|
24927
24916
|
dataCallback("onPartData", true);
|
|
24928
24917
|
}
|
|
24929
|
-
|
|
24918
|
+
index6++;
|
|
24930
24919
|
} else {
|
|
24931
|
-
|
|
24920
|
+
index6 = 0;
|
|
24932
24921
|
}
|
|
24933
|
-
} else if (
|
|
24934
|
-
|
|
24922
|
+
} else if (index6 === boundary.length) {
|
|
24923
|
+
index6++;
|
|
24935
24924
|
if (c6 === CR) {
|
|
24936
24925
|
flags |= F.PART_BOUNDARY;
|
|
24937
24926
|
} else if (c6 === HYPHEN) {
|
|
24938
24927
|
flags |= F.LAST_BOUNDARY;
|
|
24939
24928
|
} else {
|
|
24940
|
-
|
|
24929
|
+
index6 = 0;
|
|
24941
24930
|
}
|
|
24942
|
-
} else if (
|
|
24931
|
+
} else if (index6 - 1 === boundary.length) {
|
|
24943
24932
|
if (flags & F.PART_BOUNDARY) {
|
|
24944
|
-
|
|
24933
|
+
index6 = 0;
|
|
24945
24934
|
if (c6 === LF) {
|
|
24946
24935
|
flags &= ~F.PART_BOUNDARY;
|
|
24947
24936
|
callback("onPartEnd");
|
|
@@ -24955,14 +24944,14 @@ var init_multipart_parser = __esm({
|
|
|
24955
24944
|
state2 = S.END;
|
|
24956
24945
|
flags = 0;
|
|
24957
24946
|
} else {
|
|
24958
|
-
|
|
24947
|
+
index6 = 0;
|
|
24959
24948
|
}
|
|
24960
24949
|
} else {
|
|
24961
|
-
|
|
24950
|
+
index6 = 0;
|
|
24962
24951
|
}
|
|
24963
24952
|
}
|
|
24964
|
-
if (
|
|
24965
|
-
lookbehind[
|
|
24953
|
+
if (index6 > 0) {
|
|
24954
|
+
lookbehind[index6 - 1] = c6;
|
|
24966
24955
|
} else if (previousIndex > 0) {
|
|
24967
24956
|
const _lookbehind = new Uint8Array(lookbehind.buffer, lookbehind.byteOffset, lookbehind.byteLength);
|
|
24968
24957
|
callback("onPartData", 0, previousIndex, _lookbehind);
|
|
@@ -24980,7 +24969,7 @@ var init_multipart_parser = __esm({
|
|
|
24980
24969
|
dataCallback("onHeaderField");
|
|
24981
24970
|
dataCallback("onHeaderValue");
|
|
24982
24971
|
dataCallback("onPartData");
|
|
24983
|
-
this.index =
|
|
24972
|
+
this.index = index6;
|
|
24984
24973
|
this.state = state2;
|
|
24985
24974
|
this.flags = flags;
|
|
24986
24975
|
}
|
|
@@ -25257,9 +25246,9 @@ var init_body2 = __esm({
|
|
|
25257
25246
|
// ../node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/src/headers.js
|
|
25258
25247
|
function fromRawHeaders(headers = []) {
|
|
25259
25248
|
return new Headers2(
|
|
25260
|
-
headers.reduce((result2, value,
|
|
25261
|
-
if (
|
|
25262
|
-
result2.push(array2.slice(
|
|
25249
|
+
headers.reduce((result2, value, index6, array2) => {
|
|
25250
|
+
if (index6 % 2 === 0) {
|
|
25251
|
+
result2.push(array2.slice(index6, index6 + 2));
|
|
25263
25252
|
}
|
|
25264
25253
|
return result2;
|
|
25265
25254
|
}, []).filter(([name, value]) => {
|
|
@@ -29915,8 +29904,8 @@ var require_websocket_server = __commonJS({
|
|
|
29915
29904
|
*/
|
|
29916
29905
|
shouldHandle(req) {
|
|
29917
29906
|
if (this.options.path) {
|
|
29918
|
-
const
|
|
29919
|
-
const pathname =
|
|
29907
|
+
const index6 = req.url.indexOf("?");
|
|
29908
|
+
const pathname = index6 !== -1 ? req.url.slice(0, index6) : req.url;
|
|
29920
29909
|
if (pathname !== this.options.path) return false;
|
|
29921
29910
|
}
|
|
29922
29911
|
return true;
|
|
@@ -30212,13 +30201,13 @@ var require_re = __commonJS({
|
|
|
30212
30201
|
};
|
|
30213
30202
|
var createToken = (name, value, isGlobal) => {
|
|
30214
30203
|
const safe = makeSafeRegex(value);
|
|
30215
|
-
const
|
|
30216
|
-
debug(name,
|
|
30217
|
-
t7[name] =
|
|
30218
|
-
src[
|
|
30219
|
-
safeSrc[
|
|
30220
|
-
re[
|
|
30221
|
-
safeRe[
|
|
30204
|
+
const index6 = R++;
|
|
30205
|
+
debug(name, index6, value);
|
|
30206
|
+
t7[name] = index6;
|
|
30207
|
+
src[index6] = value;
|
|
30208
|
+
safeSrc[index6] = safe;
|
|
30209
|
+
re[index6] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
30210
|
+
safeRe[index6] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
30222
30211
|
};
|
|
30223
30212
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
30224
30213
|
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
@@ -34730,8 +34719,8 @@ var init_Schema = __esm({
|
|
|
34730
34719
|
namespace;
|
|
34731
34720
|
traits;
|
|
34732
34721
|
static assign(instance, values) {
|
|
34733
|
-
const
|
|
34734
|
-
return
|
|
34722
|
+
const schema5 = Object.assign(instance, values);
|
|
34723
|
+
return schema5;
|
|
34735
34724
|
}
|
|
34736
34725
|
static [Symbol.hasInstance](lhs) {
|
|
34737
34726
|
const isPrototype = this.prototype.isPrototypeOf(lhs);
|
|
@@ -34891,12 +34880,12 @@ var init_NormalizedSchema = __esm({
|
|
|
34891
34880
|
this.memberName = memberName;
|
|
34892
34881
|
const traitStack = [];
|
|
34893
34882
|
let _ref = ref;
|
|
34894
|
-
let
|
|
34883
|
+
let schema5 = ref;
|
|
34895
34884
|
this._isMemberSchema = false;
|
|
34896
34885
|
while (isMemberSchema(_ref)) {
|
|
34897
34886
|
traitStack.push(_ref[1]);
|
|
34898
34887
|
_ref = _ref[0];
|
|
34899
|
-
|
|
34888
|
+
schema5 = deref(_ref);
|
|
34900
34889
|
this._isMemberSchema = true;
|
|
34901
34890
|
}
|
|
34902
34891
|
if (traitStack.length > 0) {
|
|
@@ -34908,20 +34897,20 @@ var init_NormalizedSchema = __esm({
|
|
|
34908
34897
|
} else {
|
|
34909
34898
|
this.memberTraits = 0;
|
|
34910
34899
|
}
|
|
34911
|
-
if (
|
|
34900
|
+
if (schema5 instanceof _NormalizedSchema) {
|
|
34912
34901
|
const computedMemberTraits = this.memberTraits;
|
|
34913
|
-
Object.assign(this,
|
|
34914
|
-
this.memberTraits = Object.assign({}, computedMemberTraits,
|
|
34902
|
+
Object.assign(this, schema5);
|
|
34903
|
+
this.memberTraits = Object.assign({}, computedMemberTraits, schema5.getMemberTraits(), this.getMemberTraits());
|
|
34915
34904
|
this.normalizedTraits = void 0;
|
|
34916
|
-
this.memberName = memberName ??
|
|
34905
|
+
this.memberName = memberName ?? schema5.memberName;
|
|
34917
34906
|
return;
|
|
34918
34907
|
}
|
|
34919
|
-
this.schema = deref(
|
|
34908
|
+
this.schema = deref(schema5);
|
|
34920
34909
|
if (isStaticSchema(this.schema)) {
|
|
34921
34910
|
this.name = `${this.schema[1]}#${this.schema[2]}`;
|
|
34922
34911
|
this.traits = this.schema[3];
|
|
34923
34912
|
} else {
|
|
34924
|
-
this.name = this.memberName ?? String(
|
|
34913
|
+
this.name = this.memberName ?? String(schema5);
|
|
34925
34914
|
this.traits = 0;
|
|
34926
34915
|
}
|
|
34927
34916
|
if (this._isMemberSchema && !memberName) {
|
|
@@ -35036,8 +35025,8 @@ var init_NormalizedSchema = __esm({
|
|
|
35036
35025
|
if (!isDoc && !isMap) {
|
|
35037
35026
|
throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`);
|
|
35038
35027
|
}
|
|
35039
|
-
const
|
|
35040
|
-
const memberSchema = isDoc ? 15 :
|
|
35028
|
+
const schema5 = this.getSchema();
|
|
35029
|
+
const memberSchema = isDoc ? 15 : schema5[4] ?? 0;
|
|
35041
35030
|
return member([memberSchema, 0], "key");
|
|
35042
35031
|
}
|
|
35043
35032
|
getValueSchema() {
|
|
@@ -35143,10 +35132,10 @@ var init_TypeRegistry = __esm({
|
|
|
35143
35132
|
}
|
|
35144
35133
|
return _TypeRegistry.registries.get(namespace);
|
|
35145
35134
|
}
|
|
35146
|
-
register(shapeId,
|
|
35135
|
+
register(shapeId, schema5) {
|
|
35147
35136
|
const qualifiedName = this.normalizeShapeId(shapeId);
|
|
35148
35137
|
const registry = _TypeRegistry.for(qualifiedName.split("#")[0]);
|
|
35149
|
-
registry.schemas.set(qualifiedName,
|
|
35138
|
+
registry.schemas.set(qualifiedName, schema5);
|
|
35150
35139
|
}
|
|
35151
35140
|
getSchema(shapeId) {
|
|
35152
35141
|
const id = this.normalizeShapeId(shapeId);
|
|
@@ -36211,8 +36200,8 @@ var init_HttpProtocol = __esm({
|
|
|
36211
36200
|
getDefaultContentType() {
|
|
36212
36201
|
throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`);
|
|
36213
36202
|
}
|
|
36214
|
-
async deserializeHttpMessage(
|
|
36215
|
-
void
|
|
36203
|
+
async deserializeHttpMessage(schema5, context, response, arg4, arg5) {
|
|
36204
|
+
void schema5;
|
|
36216
36205
|
void context;
|
|
36217
36206
|
void response;
|
|
36218
36207
|
void arg4;
|
|
@@ -36252,7 +36241,7 @@ var init_HttpBindingProtocol = __esm({
|
|
|
36252
36241
|
const headers = {};
|
|
36253
36242
|
const endpoint = await context.endpoint();
|
|
36254
36243
|
const ns = NormalizedSchema.of(operationSchema?.input);
|
|
36255
|
-
const
|
|
36244
|
+
const schema5 = ns.getSchema();
|
|
36256
36245
|
let hasNonHttpBindingMember = false;
|
|
36257
36246
|
let payload;
|
|
36258
36247
|
const request2 = new HttpRequest({
|
|
@@ -36334,7 +36323,7 @@ var init_HttpBindingProtocol = __esm({
|
|
|
36334
36323
|
}
|
|
36335
36324
|
}
|
|
36336
36325
|
if (hasNonHttpBindingMember && input) {
|
|
36337
|
-
serializer.write(
|
|
36326
|
+
serializer.write(schema5, input);
|
|
36338
36327
|
payload = serializer.flush();
|
|
36339
36328
|
}
|
|
36340
36329
|
request2.headers = headers;
|
|
@@ -36407,7 +36396,7 @@ var init_HttpBindingProtocol = __esm({
|
|
|
36407
36396
|
dataObject.$metadata = this.deserializeMetadata(response);
|
|
36408
36397
|
return dataObject;
|
|
36409
36398
|
}
|
|
36410
|
-
async deserializeHttpMessage(
|
|
36399
|
+
async deserializeHttpMessage(schema5, context, response, arg4, arg5) {
|
|
36411
36400
|
let dataObject;
|
|
36412
36401
|
if (arg4 instanceof Set) {
|
|
36413
36402
|
dataObject = arg5;
|
|
@@ -36416,7 +36405,7 @@ var init_HttpBindingProtocol = __esm({
|
|
|
36416
36405
|
}
|
|
36417
36406
|
let discardResponseBody = true;
|
|
36418
36407
|
const deserializer = this.deserializer;
|
|
36419
|
-
const ns = NormalizedSchema.of(
|
|
36408
|
+
const ns = NormalizedSchema.of(schema5);
|
|
36420
36409
|
const nonHttpBindingMembers = [];
|
|
36421
36410
|
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
36422
36411
|
const memberTraits = memberSchema.getMemberTraits();
|
|
@@ -36499,7 +36488,7 @@ var init_RpcProtocol = __esm({
|
|
|
36499
36488
|
const headers = {};
|
|
36500
36489
|
const endpoint = await context.endpoint();
|
|
36501
36490
|
const ns = NormalizedSchema.of(operationSchema?.input);
|
|
36502
|
-
const
|
|
36491
|
+
const schema5 = ns.getSchema();
|
|
36503
36492
|
let payload;
|
|
36504
36493
|
const request2 = new HttpRequest({
|
|
36505
36494
|
protocol: "",
|
|
@@ -36536,7 +36525,7 @@ var init_RpcProtocol = __esm({
|
|
|
36536
36525
|
});
|
|
36537
36526
|
}
|
|
36538
36527
|
} else {
|
|
36539
|
-
serializer.write(
|
|
36528
|
+
serializer.write(schema5, _input);
|
|
36540
36529
|
payload = serializer.flush();
|
|
36541
36530
|
}
|
|
36542
36531
|
}
|
|
@@ -36710,8 +36699,8 @@ var init_HttpInterceptingShapeDeserializer = __esm({
|
|
|
36710
36699
|
this.codecDeserializer.setSerdeContext(serdeContext);
|
|
36711
36700
|
this.serdeContext = serdeContext;
|
|
36712
36701
|
}
|
|
36713
|
-
read(
|
|
36714
|
-
const ns = NormalizedSchema.of(
|
|
36702
|
+
read(schema5, data) {
|
|
36703
|
+
const ns = NormalizedSchema.of(schema5);
|
|
36715
36704
|
const traits = ns.getMergedTraits();
|
|
36716
36705
|
const toString = this.serdeContext?.utf8Encoder ?? toUtf8;
|
|
36717
36706
|
if (traits.httpHeader || traits.httpResponseCode) {
|
|
@@ -36754,8 +36743,8 @@ var init_ToStringShapeSerializer = __esm({
|
|
|
36754
36743
|
super();
|
|
36755
36744
|
this.settings = settings;
|
|
36756
36745
|
}
|
|
36757
|
-
write(
|
|
36758
|
-
const ns = NormalizedSchema.of(
|
|
36746
|
+
write(schema5, value) {
|
|
36747
|
+
const ns = NormalizedSchema.of(schema5);
|
|
36759
36748
|
switch (typeof value) {
|
|
36760
36749
|
case "object":
|
|
36761
36750
|
if (value === null) {
|
|
@@ -36854,8 +36843,8 @@ var init_HttpInterceptingShapeSerializer = __esm({
|
|
|
36854
36843
|
this.codecSerializer.setSerdeContext(serdeContext);
|
|
36855
36844
|
this.stringSerializer.setSerdeContext(serdeContext);
|
|
36856
36845
|
}
|
|
36857
|
-
write(
|
|
36858
|
-
const ns = NormalizedSchema.of(
|
|
36846
|
+
write(schema5, value) {
|
|
36847
|
+
const ns = NormalizedSchema.of(schema5);
|
|
36859
36848
|
const traits = ns.getMergedTraits();
|
|
36860
36849
|
if (traits.httpHeader || traits.httpLabel || traits.httpQuery) {
|
|
36861
36850
|
this.stringSerializer.write(ns, value);
|
|
@@ -37353,13 +37342,13 @@ var init_getAttr = __esm({
|
|
|
37353
37342
|
"use strict";
|
|
37354
37343
|
init_types3();
|
|
37355
37344
|
init_getAttrPathList();
|
|
37356
|
-
getAttr = (value, path2) => getAttrPathList(path2).reduce((acc,
|
|
37345
|
+
getAttr = (value, path2) => getAttrPathList(path2).reduce((acc, index6) => {
|
|
37357
37346
|
if (typeof acc !== "object") {
|
|
37358
|
-
throw new EndpointError(`Index '${
|
|
37347
|
+
throw new EndpointError(`Index '${index6}' in '${path2}' not found in '${JSON.stringify(value)}'`);
|
|
37359
37348
|
} else if (Array.isArray(acc)) {
|
|
37360
|
-
return acc[parseInt(
|
|
37349
|
+
return acc[parseInt(index6)];
|
|
37361
37350
|
}
|
|
37362
|
-
return acc[
|
|
37351
|
+
return acc[index6];
|
|
37363
37352
|
}, value);
|
|
37364
37353
|
}
|
|
37365
37354
|
});
|
|
@@ -39958,11 +39947,11 @@ var init_collect_stream_body2 = __esm({
|
|
|
39958
39947
|
});
|
|
39959
39948
|
|
|
39960
39949
|
// ../node_modules/.pnpm/@smithy+smithy-client@4.9.8/node_modules/@smithy/smithy-client/dist-es/schemaLogFilter.js
|
|
39961
|
-
function schemaLogFilter(
|
|
39950
|
+
function schemaLogFilter(schema5, data) {
|
|
39962
39951
|
if (data == null) {
|
|
39963
39952
|
return data;
|
|
39964
39953
|
}
|
|
39965
|
-
const ns = NormalizedSchema.of(
|
|
39954
|
+
const ns = NormalizedSchema.of(schema5);
|
|
39966
39955
|
if (ns.getMergedTraits().sensitive) {
|
|
39967
39956
|
return SENSITIVE_STRING;
|
|
39968
39957
|
}
|
|
@@ -40762,15 +40751,15 @@ var init_JsonShapeDeserializer = __esm({
|
|
|
40762
40751
|
super();
|
|
40763
40752
|
this.settings = settings;
|
|
40764
40753
|
}
|
|
40765
|
-
async read(
|
|
40766
|
-
return this._read(
|
|
40754
|
+
async read(schema5, data) {
|
|
40755
|
+
return this._read(schema5, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
|
|
40767
40756
|
}
|
|
40768
|
-
readObject(
|
|
40769
|
-
return this._read(
|
|
40757
|
+
readObject(schema5, data) {
|
|
40758
|
+
return this._read(schema5, data);
|
|
40770
40759
|
}
|
|
40771
|
-
_read(
|
|
40760
|
+
_read(schema5, value) {
|
|
40772
40761
|
const isObject = value !== null && typeof value === "object";
|
|
40773
|
-
const ns = NormalizedSchema.of(
|
|
40762
|
+
const ns = NormalizedSchema.of(schema5);
|
|
40774
40763
|
if (ns.isListSchema() && Array.isArray(value)) {
|
|
40775
40764
|
const listMember = ns.getValueSchema();
|
|
40776
40765
|
const out = [];
|
|
@@ -40944,14 +40933,14 @@ var init_JsonShapeSerializer = __esm({
|
|
|
40944
40933
|
super();
|
|
40945
40934
|
this.settings = settings;
|
|
40946
40935
|
}
|
|
40947
|
-
write(
|
|
40948
|
-
this.rootSchema = NormalizedSchema.of(
|
|
40936
|
+
write(schema5, value) {
|
|
40937
|
+
this.rootSchema = NormalizedSchema.of(schema5);
|
|
40949
40938
|
this.buffer = this._write(this.rootSchema, value);
|
|
40950
40939
|
}
|
|
40951
|
-
writeDiscriminatedDocument(
|
|
40952
|
-
this.write(
|
|
40940
|
+
writeDiscriminatedDocument(schema5, value) {
|
|
40941
|
+
this.write(schema5, value);
|
|
40953
40942
|
if (typeof this.buffer === "object") {
|
|
40954
|
-
this.buffer.__type = NormalizedSchema.of(
|
|
40943
|
+
this.buffer.__type = NormalizedSchema.of(schema5).getName(true);
|
|
40955
40944
|
}
|
|
40956
40945
|
}
|
|
40957
40946
|
flush() {
|
|
@@ -40963,9 +40952,9 @@ var init_JsonShapeSerializer = __esm({
|
|
|
40963
40952
|
}
|
|
40964
40953
|
return this.buffer;
|
|
40965
40954
|
}
|
|
40966
|
-
_write(
|
|
40955
|
+
_write(schema5, value, container) {
|
|
40967
40956
|
const isObject = value !== null && typeof value === "object";
|
|
40968
|
-
const ns = NormalizedSchema.of(
|
|
40957
|
+
const ns = NormalizedSchema.of(schema5);
|
|
40969
40958
|
if (ns.isListSchema() && Array.isArray(value)) {
|
|
40970
40959
|
const listMember = ns.getValueSchema();
|
|
40971
40960
|
const out = [];
|
|
@@ -41226,8 +41215,8 @@ function getAllMatches(string, regex) {
|
|
|
41226
41215
|
const allmatches = [];
|
|
41227
41216
|
allmatches.startIndex = regex.lastIndex - match2[0].length;
|
|
41228
41217
|
const len = match2.length;
|
|
41229
|
-
for (let
|
|
41230
|
-
allmatches.push(match2[
|
|
41218
|
+
for (let index6 = 0; index6 < len; index6++) {
|
|
41219
|
+
allmatches.push(match2[index6]);
|
|
41231
41220
|
}
|
|
41232
41221
|
matches.push(allmatches);
|
|
41233
41222
|
match2 = regex.exec(string);
|
|
@@ -41538,8 +41527,8 @@ function validateAttrName(attrName) {
|
|
|
41538
41527
|
function validateTagName(tagname) {
|
|
41539
41528
|
return isName(tagname);
|
|
41540
41529
|
}
|
|
41541
|
-
function getLineNumberForPosition(xmlData,
|
|
41542
|
-
const lines = xmlData.substring(0,
|
|
41530
|
+
function getLineNumberForPosition(xmlData, index6) {
|
|
41531
|
+
const lines = xmlData.substring(0, index6).split(/\r?\n/);
|
|
41543
41532
|
return {
|
|
41544
41533
|
line: lines.length,
|
|
41545
41534
|
// column number is last line's length + 1, because column numbering starts at 1:
|
|
@@ -41681,14 +41670,14 @@ function readDocType(xmlData, i7) {
|
|
|
41681
41670
|
};
|
|
41682
41671
|
} else if (hasBody && hasSeq(xmlData, "!ELEMENT", i7)) {
|
|
41683
41672
|
i7 += 8;
|
|
41684
|
-
const { index:
|
|
41685
|
-
i7 =
|
|
41673
|
+
const { index: index6 } = readElementExp(xmlData, i7 + 1);
|
|
41674
|
+
i7 = index6;
|
|
41686
41675
|
} else if (hasBody && hasSeq(xmlData, "!ATTLIST", i7)) {
|
|
41687
41676
|
i7 += 8;
|
|
41688
41677
|
} else if (hasBody && hasSeq(xmlData, "!NOTATION", i7)) {
|
|
41689
41678
|
i7 += 9;
|
|
41690
|
-
const { index:
|
|
41691
|
-
i7 =
|
|
41679
|
+
const { index: index6 } = readNotationExp(xmlData, i7 + 1);
|
|
41680
|
+
i7 = index6;
|
|
41692
41681
|
} else if (hasSeq(xmlData, "!--", i7)) comment = true;
|
|
41693
41682
|
else throw new Error(`Invalid DOCTYPE`);
|
|
41694
41683
|
angleBracketsCount++;
|
|
@@ -41835,11 +41824,11 @@ var init_DocTypeReader = __esm({
|
|
|
41835
41824
|
"../node_modules/.pnpm/fast-xml-parser@5.2.5/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"() {
|
|
41836
41825
|
"use strict";
|
|
41837
41826
|
init_util4();
|
|
41838
|
-
skipWhitespace = (data,
|
|
41839
|
-
while (
|
|
41840
|
-
|
|
41827
|
+
skipWhitespace = (data, index6) => {
|
|
41828
|
+
while (index6 < data.length && /\s/.test(data[index6])) {
|
|
41829
|
+
index6++;
|
|
41841
41830
|
}
|
|
41842
|
-
return
|
|
41831
|
+
return index6;
|
|
41843
41832
|
};
|
|
41844
41833
|
}
|
|
41845
41834
|
});
|
|
@@ -42111,24 +42100,24 @@ function isItStopNode(stopNodes, jPath, currentTagName) {
|
|
|
42111
42100
|
function tagExpWithClosingIndex(xmlData, i7, closingChar = ">") {
|
|
42112
42101
|
let attrBoundary;
|
|
42113
42102
|
let tagExp = "";
|
|
42114
|
-
for (let
|
|
42115
|
-
let ch = xmlData[
|
|
42103
|
+
for (let index6 = i7; index6 < xmlData.length; index6++) {
|
|
42104
|
+
let ch = xmlData[index6];
|
|
42116
42105
|
if (attrBoundary) {
|
|
42117
42106
|
if (ch === attrBoundary) attrBoundary = "";
|
|
42118
42107
|
} else if (ch === '"' || ch === "'") {
|
|
42119
42108
|
attrBoundary = ch;
|
|
42120
42109
|
} else if (ch === closingChar[0]) {
|
|
42121
42110
|
if (closingChar[1]) {
|
|
42122
|
-
if (xmlData[
|
|
42111
|
+
if (xmlData[index6 + 1] === closingChar[1]) {
|
|
42123
42112
|
return {
|
|
42124
42113
|
data: tagExp,
|
|
42125
|
-
index:
|
|
42114
|
+
index: index6
|
|
42126
42115
|
};
|
|
42127
42116
|
}
|
|
42128
42117
|
} else {
|
|
42129
42118
|
return {
|
|
42130
42119
|
data: tagExp,
|
|
42131
|
-
index:
|
|
42120
|
+
index: index6
|
|
42132
42121
|
};
|
|
42133
42122
|
}
|
|
42134
42123
|
} else if (ch === " ") {
|
|
@@ -42699,8 +42688,8 @@ var init_XmlShapeDeserializer = __esm({
|
|
|
42699
42688
|
this.serdeContext = serdeContext;
|
|
42700
42689
|
this.stringDeserializer.setSerdeContext(serdeContext);
|
|
42701
42690
|
}
|
|
42702
|
-
read(
|
|
42703
|
-
const ns = NormalizedSchema.of(
|
|
42691
|
+
read(schema5, bytes, key) {
|
|
42692
|
+
const ns = NormalizedSchema.of(schema5);
|
|
42704
42693
|
const memberSchemas = ns.getMemberSchemas();
|
|
42705
42694
|
const isEventPayload = ns.isStructSchema() && ns.isMemberSchema() && !!Object.values(memberSchemas).find((memberNs) => {
|
|
42706
42695
|
return !!memberNs.getMemberTraits().eventPayload;
|
|
@@ -42718,7 +42707,7 @@ var init_XmlShapeDeserializer = __esm({
|
|
|
42718
42707
|
}
|
|
42719
42708
|
const xmlString = (this.serdeContext?.utf8Encoder ?? toUtf8)(bytes);
|
|
42720
42709
|
const parsedObject = this.parseXml(xmlString);
|
|
42721
|
-
return this.readSchema(
|
|
42710
|
+
return this.readSchema(schema5, key ? parsedObject[key] : parsedObject);
|
|
42722
42711
|
}
|
|
42723
42712
|
readSchema(_schema, value) {
|
|
42724
42713
|
const ns = NormalizedSchema.of(_schema);
|
|
@@ -42839,11 +42828,11 @@ var init_QueryShapeSerializer = __esm({
|
|
|
42839
42828
|
super();
|
|
42840
42829
|
this.settings = settings;
|
|
42841
42830
|
}
|
|
42842
|
-
write(
|
|
42831
|
+
write(schema5, value, prefix2 = "") {
|
|
42843
42832
|
if (this.buffer === void 0) {
|
|
42844
42833
|
this.buffer = "";
|
|
42845
42834
|
}
|
|
42846
|
-
const ns = NormalizedSchema.of(
|
|
42835
|
+
const ns = NormalizedSchema.of(schema5);
|
|
42847
42836
|
if (prefix2 && !prefix2.endsWith(".")) {
|
|
42848
42837
|
prefix2 += ".";
|
|
42849
42838
|
}
|
|
@@ -43079,7 +43068,7 @@ var init_AwsQueryProtocol = __esm({
|
|
|
43079
43068
|
try {
|
|
43080
43069
|
return registry.getSchema(errorName);
|
|
43081
43070
|
} catch (e7) {
|
|
43082
|
-
return registry.find((
|
|
43071
|
+
return registry.find((schema5) => NormalizedSchema.of(schema5).getMergedTraits().awsQueryError?.[0] === errorName);
|
|
43083
43072
|
}
|
|
43084
43073
|
});
|
|
43085
43074
|
const ns = NormalizedSchema.of(errorSchema);
|
|
@@ -43340,8 +43329,8 @@ var init_user_agent_middleware = __esm({
|
|
|
43340
43329
|
if (prefix2 === "api") {
|
|
43341
43330
|
uaName = uaName.toLowerCase();
|
|
43342
43331
|
}
|
|
43343
|
-
return [prefix2, uaName, version3].filter((item) => item && item.length > 0).reduce((acc, item,
|
|
43344
|
-
switch (
|
|
43332
|
+
return [prefix2, uaName, version3].filter((item) => item && item.length > 0).reduce((acc, item, index6) => {
|
|
43333
|
+
switch (index6) {
|
|
43345
43334
|
case 0:
|
|
43346
43335
|
return item;
|
|
43347
43336
|
case 1:
|
|
@@ -46863,11 +46852,11 @@ var init_httpAuthExtensionConfiguration = __esm({
|
|
|
46863
46852
|
let _credentials = runtimeConfig.credentials;
|
|
46864
46853
|
return {
|
|
46865
46854
|
setHttpAuthScheme(httpAuthScheme) {
|
|
46866
|
-
const
|
|
46867
|
-
if (
|
|
46855
|
+
const index6 = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
46856
|
+
if (index6 === -1) {
|
|
46868
46857
|
_httpAuthSchemes.push(httpAuthScheme);
|
|
46869
46858
|
} else {
|
|
46870
|
-
_httpAuthSchemes.splice(
|
|
46859
|
+
_httpAuthSchemes.splice(index6, 1, httpAuthScheme);
|
|
46871
46860
|
}
|
|
46872
46861
|
},
|
|
46873
46862
|
httpAuthSchemes() {
|
|
@@ -48048,11 +48037,11 @@ var init_httpAuthExtensionConfiguration2 = __esm({
|
|
|
48048
48037
|
let _credentials = runtimeConfig.credentials;
|
|
48049
48038
|
return {
|
|
48050
48039
|
setHttpAuthScheme(httpAuthScheme) {
|
|
48051
|
-
const
|
|
48052
|
-
if (
|
|
48040
|
+
const index6 = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
48041
|
+
if (index6 === -1) {
|
|
48053
48042
|
_httpAuthSchemes.push(httpAuthScheme);
|
|
48054
48043
|
} else {
|
|
48055
|
-
_httpAuthSchemes.splice(
|
|
48044
|
+
_httpAuthSchemes.splice(index6, 1, httpAuthScheme);
|
|
48056
48045
|
}
|
|
48057
48046
|
},
|
|
48058
48047
|
httpAuthSchemes() {
|
|
@@ -49201,11 +49190,11 @@ var init_httpAuthExtensionConfiguration3 = __esm({
|
|
|
49201
49190
|
let _credentials = runtimeConfig.credentials;
|
|
49202
49191
|
return {
|
|
49203
49192
|
setHttpAuthScheme(httpAuthScheme) {
|
|
49204
|
-
const
|
|
49205
|
-
if (
|
|
49193
|
+
const index6 = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
49194
|
+
if (index6 === -1) {
|
|
49206
49195
|
_httpAuthSchemes.push(httpAuthScheme);
|
|
49207
49196
|
} else {
|
|
49208
|
-
_httpAuthSchemes.splice(
|
|
49197
|
+
_httpAuthSchemes.splice(index6, 1, httpAuthScheme);
|
|
49209
49198
|
}
|
|
49210
49199
|
},
|
|
49211
49200
|
httpAuthSchemes() {
|
|
@@ -50192,11 +50181,11 @@ var init_httpAuthExtensionConfiguration4 = __esm({
|
|
|
50192
50181
|
let _credentials = runtimeConfig.credentials;
|
|
50193
50182
|
return {
|
|
50194
50183
|
setHttpAuthScheme(httpAuthScheme) {
|
|
50195
|
-
const
|
|
50196
|
-
if (
|
|
50184
|
+
const index6 = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
50185
|
+
if (index6 === -1) {
|
|
50197
50186
|
_httpAuthSchemes.push(httpAuthScheme);
|
|
50198
50187
|
} else {
|
|
50199
|
-
_httpAuthSchemes.splice(
|
|
50188
|
+
_httpAuthSchemes.splice(index6, 1, httpAuthScheme);
|
|
50200
50189
|
}
|
|
50201
50190
|
},
|
|
50202
50191
|
httpAuthSchemes() {
|
|
@@ -51610,11 +51599,11 @@ var init_httpAuthExtensionConfiguration5 = __esm({
|
|
|
51610
51599
|
let _credentials = runtimeConfig.credentials;
|
|
51611
51600
|
return {
|
|
51612
51601
|
setHttpAuthScheme(httpAuthScheme) {
|
|
51613
|
-
const
|
|
51614
|
-
if (
|
|
51602
|
+
const index6 = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
51603
|
+
if (index6 === -1) {
|
|
51615
51604
|
_httpAuthSchemes.push(httpAuthScheme);
|
|
51616
51605
|
} else {
|
|
51617
|
-
_httpAuthSchemes.splice(
|
|
51606
|
+
_httpAuthSchemes.splice(index6, 1, httpAuthScheme);
|
|
51618
51607
|
}
|
|
51619
51608
|
},
|
|
51620
51609
|
httpAuthSchemes() {
|
|
@@ -56917,22 +56906,22 @@ var require_Float16Array = __commonJS({
|
|
|
56917
56906
|
}
|
|
56918
56907
|
})());
|
|
56919
56908
|
}
|
|
56920
|
-
at(
|
|
56909
|
+
at(index6) {
|
|
56921
56910
|
assertFloat16Array(this);
|
|
56922
56911
|
const float16bitsArray = getFloat16BitsArray(this);
|
|
56923
56912
|
const length = (0, _primordials.TypedArrayPrototypeGetLength)(float16bitsArray);
|
|
56924
|
-
const relativeIndex = (0, _spec.ToIntegerOrInfinity)(
|
|
56913
|
+
const relativeIndex = (0, _spec.ToIntegerOrInfinity)(index6);
|
|
56925
56914
|
const k6 = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
|
|
56926
56915
|
if (k6 < 0 || k6 >= length) {
|
|
56927
56916
|
return;
|
|
56928
56917
|
}
|
|
56929
56918
|
return (0, _converter.convertToNumber)(float16bitsArray[k6]);
|
|
56930
56919
|
}
|
|
56931
|
-
with(
|
|
56920
|
+
with(index6, value) {
|
|
56932
56921
|
assertFloat16Array(this);
|
|
56933
56922
|
const float16bitsArray = getFloat16BitsArray(this);
|
|
56934
56923
|
const length = (0, _primordials.TypedArrayPrototypeGetLength)(float16bitsArray);
|
|
56935
|
-
const relativeIndex = (0, _spec.ToIntegerOrInfinity)(
|
|
56924
|
+
const relativeIndex = (0, _spec.ToIntegerOrInfinity)(index6);
|
|
56936
56925
|
const k6 = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
|
|
56937
56926
|
const number2 = +value;
|
|
56938
56927
|
if (k6 < 0 || k6 >= length) {
|
|
@@ -57543,17 +57532,17 @@ var require_pgvector = __commonJS({
|
|
|
57543
57532
|
this.indexes = new Uint32Array(entries.length);
|
|
57544
57533
|
this.values = new Float32Array(entries.length);
|
|
57545
57534
|
for (let i7 = 0; i7 < entries.length; i7++) {
|
|
57546
|
-
const
|
|
57535
|
+
const index6 = parseInt(entries[i7][0], 10);
|
|
57547
57536
|
const val = entries[i7][1];
|
|
57548
|
-
if (Number.isNaN(
|
|
57537
|
+
if (Number.isNaN(index6)) {
|
|
57549
57538
|
throw new Error(`key ${entries[i7][0]} in data map is not an integer`);
|
|
57550
57539
|
}
|
|
57551
|
-
if (
|
|
57552
|
-
throw new Error(`index ${
|
|
57540
|
+
if (index6 < 0 || index6 >= length) {
|
|
57541
|
+
throw new Error(`index ${index6} is out of range of sparse vector length`);
|
|
57553
57542
|
}
|
|
57554
|
-
this.indexes[i7] =
|
|
57543
|
+
this.indexes[i7] = index6;
|
|
57555
57544
|
if (typeof val !== "number") {
|
|
57556
|
-
throw new Error(`expected value at index ${
|
|
57545
|
+
throw new Error(`expected value at index ${index6} to be number, got ${typeof val} ${val}`);
|
|
57557
57546
|
}
|
|
57558
57547
|
if (val === 0) {
|
|
57559
57548
|
throw new Error("elements in sparse vector cannot be 0");
|
|
@@ -57563,11 +57552,11 @@ var require_pgvector = __commonJS({
|
|
|
57563
57552
|
}
|
|
57564
57553
|
return new Proxy(this, {
|
|
57565
57554
|
get(target, p6) {
|
|
57566
|
-
const
|
|
57567
|
-
if (!Number.isNaN(
|
|
57568
|
-
if (
|
|
57555
|
+
const index6 = typeof p6 === "string" ? parseInt(p6, 10) : NaN;
|
|
57556
|
+
if (!Number.isNaN(index6)) {
|
|
57557
|
+
if (index6 < 0 || index6 >= target.length)
|
|
57569
57558
|
return void 0;
|
|
57570
|
-
const dataIndex = target.indexes.indexOf(
|
|
57559
|
+
const dataIndex = target.indexes.indexOf(index6);
|
|
57571
57560
|
return dataIndex === -1 ? 0 : target.values[dataIndex];
|
|
57572
57561
|
}
|
|
57573
57562
|
return target[p6];
|
|
@@ -59411,7 +59400,7 @@ var require_record = __commonJS({
|
|
|
59411
59400
|
};
|
|
59412
59401
|
var SQLRowObjectCodec = {
|
|
59413
59402
|
fromDatabase(values, { names }) {
|
|
59414
|
-
return Object.fromEntries(names.map((key,
|
|
59403
|
+
return Object.fromEntries(names.map((key, index6) => [key, values[index6]]));
|
|
59415
59404
|
},
|
|
59416
59405
|
toDatabase() {
|
|
59417
59406
|
throw new errors_1.InternalClientError("cannot encode SQL record as a query argument");
|
|
@@ -64751,8 +64740,8 @@ var require_wkt = __commonJS({
|
|
|
64751
64740
|
return geoms;
|
|
64752
64741
|
}
|
|
64753
64742
|
}
|
|
64754
|
-
function createParseError(_wkt,
|
|
64755
|
-
return new Error(`${error3} at position ${
|
|
64743
|
+
function createParseError(_wkt, index6, error3) {
|
|
64744
|
+
return new Error(`${error3} at position ${index6}`);
|
|
64756
64745
|
}
|
|
64757
64746
|
function assertNever(_type, message) {
|
|
64758
64747
|
throw new Error(message);
|
|
@@ -66198,18 +66187,18 @@ var require_common2 = __commonJS({
|
|
|
66198
66187
|
if (typeof args[0] !== "string") {
|
|
66199
66188
|
args.unshift("%O");
|
|
66200
66189
|
}
|
|
66201
|
-
let
|
|
66190
|
+
let index6 = 0;
|
|
66202
66191
|
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format2) => {
|
|
66203
66192
|
if (match2 === "%%") {
|
|
66204
66193
|
return "%";
|
|
66205
66194
|
}
|
|
66206
|
-
|
|
66195
|
+
index6++;
|
|
66207
66196
|
const formatter = createDebug.formatters[format2];
|
|
66208
66197
|
if (typeof formatter === "function") {
|
|
66209
|
-
const val = args[
|
|
66198
|
+
const val = args[index6];
|
|
66210
66199
|
match2 = formatter.call(self2, val);
|
|
66211
|
-
args.splice(
|
|
66212
|
-
|
|
66200
|
+
args.splice(index6, 1);
|
|
66201
|
+
index6--;
|
|
66213
66202
|
}
|
|
66214
66203
|
return match2;
|
|
66215
66204
|
});
|
|
@@ -66445,15 +66434,15 @@ var require_browser = __commonJS({
|
|
|
66445
66434
|
}
|
|
66446
66435
|
const c6 = "color: " + this.color;
|
|
66447
66436
|
args.splice(1, 0, c6, "color: inherit");
|
|
66448
|
-
let
|
|
66437
|
+
let index6 = 0;
|
|
66449
66438
|
let lastC = 0;
|
|
66450
66439
|
args[0].replace(/%[a-zA-Z%]/g, (match2) => {
|
|
66451
66440
|
if (match2 === "%%") {
|
|
66452
66441
|
return;
|
|
66453
66442
|
}
|
|
66454
|
-
|
|
66443
|
+
index6++;
|
|
66455
66444
|
if (match2 === "%c") {
|
|
66456
|
-
lastC =
|
|
66445
|
+
lastC = index6;
|
|
66457
66446
|
}
|
|
66458
66447
|
});
|
|
66459
66448
|
args.splice(lastC, 0, c6);
|
|
@@ -67199,8 +67188,8 @@ var require_sql_connection_string = __commonJS({
|
|
|
67199
67188
|
}
|
|
67200
67189
|
return valid;
|
|
67201
67190
|
}
|
|
67202
|
-
function parseSqlConnectionString(connectionString, canonicalProps = false, allowUnknown = false, strict = false,
|
|
67203
|
-
const flattenedSchema = Object.entries(
|
|
67191
|
+
function parseSqlConnectionString(connectionString, canonicalProps = false, allowUnknown = false, strict = false, schema5 = exports2.SCHEMA) {
|
|
67192
|
+
const flattenedSchema = Object.entries(schema5).reduce((flattened, [key, item]) => {
|
|
67204
67193
|
var _a3;
|
|
67205
67194
|
Object.assign(flattened, {
|
|
67206
67195
|
[key.toLowerCase()]: item
|
|
@@ -67857,8 +67846,8 @@ var require_Pool = __commonJS({
|
|
|
67857
67846
|
this._executeEventHandlers("destroySuccess", eventId, resource);
|
|
67858
67847
|
return res;
|
|
67859
67848
|
}).catch((err2) => this._logDestroyerError(eventId, resource, err2)).then((res) => {
|
|
67860
|
-
const
|
|
67861
|
-
this.pendingDestroys.splice(
|
|
67849
|
+
const index6 = this.pendingDestroys.findIndex((pd) => pd === pendingDestroy);
|
|
67850
|
+
this.pendingDestroys.splice(index6, 1);
|
|
67862
67851
|
return res;
|
|
67863
67852
|
});
|
|
67864
67853
|
}
|
|
@@ -68227,21 +68216,21 @@ var require_table = __commonJS({
|
|
|
68227
68216
|
this.columns = [];
|
|
68228
68217
|
this.rows = [];
|
|
68229
68218
|
Object.defineProperty(this.columns, "add", {
|
|
68230
|
-
value(name2,
|
|
68231
|
-
if (
|
|
68219
|
+
value(name2, column6, options) {
|
|
68220
|
+
if (column6 == null) {
|
|
68232
68221
|
throw new Error("Column data type is not defined.");
|
|
68233
68222
|
}
|
|
68234
|
-
if (
|
|
68235
|
-
|
|
68223
|
+
if (column6 instanceof Function) {
|
|
68224
|
+
column6 = column6();
|
|
68236
68225
|
}
|
|
68237
68226
|
options = options || {};
|
|
68238
|
-
|
|
68227
|
+
column6.name = name2;
|
|
68239
68228
|
["nullable", "primary", "identity", "readOnly", "length"].forEach((prop) => {
|
|
68240
68229
|
if (objectHasProperty(options, prop)) {
|
|
68241
|
-
|
|
68230
|
+
column6[prop] = options[prop];
|
|
68242
68231
|
}
|
|
68243
68232
|
});
|
|
68244
|
-
return this.push(
|
|
68233
|
+
return this.push(column6);
|
|
68245
68234
|
}
|
|
68246
68235
|
});
|
|
68247
68236
|
Object.defineProperty(
|
|
@@ -68411,10 +68400,10 @@ var require_shared = __commonJS({
|
|
|
68411
68400
|
var driver2 = {};
|
|
68412
68401
|
var map = [];
|
|
68413
68402
|
map.register = function(jstype, sqltype) {
|
|
68414
|
-
for (let
|
|
68415
|
-
const item = this[
|
|
68403
|
+
for (let index6 = 0; index6 < this.length; index6++) {
|
|
68404
|
+
const item = this[index6];
|
|
68416
68405
|
if (item.js === jstype) {
|
|
68417
|
-
this.splice(
|
|
68406
|
+
this.splice(index6, 1);
|
|
68418
68407
|
break;
|
|
68419
68408
|
}
|
|
68420
68409
|
}
|
|
@@ -69237,9 +69226,9 @@ var require_global_connection = __commonJS({
|
|
|
69237
69226
|
}
|
|
69238
69227
|
function removeListener(event, handler) {
|
|
69239
69228
|
if (!globalConnectionHandlers[event]) return globalConnection;
|
|
69240
|
-
const
|
|
69241
|
-
if (
|
|
69242
|
-
globalConnectionHandlers[event].splice(
|
|
69229
|
+
const index6 = globalConnectionHandlers[event].indexOf(handler);
|
|
69230
|
+
if (index6 === -1) return globalConnection;
|
|
69231
|
+
globalConnectionHandlers[event].splice(index6, 1);
|
|
69243
69232
|
if (globalConnectionHandlers[event].length === 0) globalConnectionHandlers[event] = void 0;
|
|
69244
69233
|
if (globalConnection) globalConnection.removeListener(event, handler);
|
|
69245
69234
|
return globalConnection;
|
|
@@ -69644,20 +69633,20 @@ var require_request = __commonJS({
|
|
|
69644
69633
|
*/
|
|
69645
69634
|
_template(strings, values, method) {
|
|
69646
69635
|
const command = [strings[0]];
|
|
69647
|
-
for (let
|
|
69648
|
-
const value = values[
|
|
69636
|
+
for (let index6 = 0; index6 < values.length; index6++) {
|
|
69637
|
+
const value = values[index6];
|
|
69649
69638
|
if (Array.isArray(value)) {
|
|
69650
69639
|
for (let parameterIndex = 0; parameterIndex < value.length; parameterIndex++) {
|
|
69651
|
-
this.input(`param${
|
|
69652
|
-
command.push(`@param${
|
|
69640
|
+
this.input(`param${index6 + 1}_${parameterIndex}`, value[parameterIndex]);
|
|
69641
|
+
command.push(`@param${index6 + 1}_${parameterIndex}`);
|
|
69653
69642
|
if (parameterIndex < value.length - 1) {
|
|
69654
69643
|
command.push(", ");
|
|
69655
69644
|
}
|
|
69656
69645
|
}
|
|
69657
|
-
command.push(strings[
|
|
69646
|
+
command.push(strings[index6 + 1]);
|
|
69658
69647
|
} else {
|
|
69659
|
-
this.input(`param${
|
|
69660
|
-
command.push(`@param${
|
|
69648
|
+
this.input(`param${index6 + 1}`, value);
|
|
69649
|
+
command.push(`@param${index6 + 1}`, strings[index6 + 1]);
|
|
69661
69650
|
}
|
|
69662
69651
|
}
|
|
69663
69652
|
if (method) {
|
|
@@ -69842,7 +69831,7 @@ var require_request = __commonJS({
|
|
|
69842
69831
|
* @param {Request~bulkCallback} [callback] A callback which is called after bulk load has completed, or an error has occurred. If omited, method returns Promise.
|
|
69843
69832
|
* @return {Request|Promise}
|
|
69844
69833
|
*/
|
|
69845
|
-
bulk(
|
|
69834
|
+
bulk(table6, options, callback) {
|
|
69846
69835
|
if (typeof options === "function") {
|
|
69847
69836
|
callback = options;
|
|
69848
69837
|
options = {};
|
|
@@ -69852,7 +69841,7 @@ var require_request = __commonJS({
|
|
|
69852
69841
|
if (this.stream === null && this.parent) this.stream = this.parent.config.stream;
|
|
69853
69842
|
if (this.arrayRowMode === null && this.parent) this.arrayRowMode = this.parent.config.arrayRowMode;
|
|
69854
69843
|
if (this.stream || typeof callback === "function") {
|
|
69855
|
-
this._bulk(
|
|
69844
|
+
this._bulk(table6, options, (err2, rowsAffected) => {
|
|
69856
69845
|
if (this.stream) {
|
|
69857
69846
|
if (err2) this.emit("error", err2);
|
|
69858
69847
|
return this.emit("done", {
|
|
@@ -69867,7 +69856,7 @@ var require_request = __commonJS({
|
|
|
69867
69856
|
return this;
|
|
69868
69857
|
}
|
|
69869
69858
|
return new shared.Promise((resolve2, reject) => {
|
|
69870
|
-
this._bulk(
|
|
69859
|
+
this._bulk(table6, options, (err2, rowsAffected) => {
|
|
69871
69860
|
if (err2) return reject(err2);
|
|
69872
69861
|
resolve2({
|
|
69873
69862
|
rowsAffected
|
|
@@ -69881,7 +69870,7 @@ var require_request = __commonJS({
|
|
|
69881
69870
|
* @param {object} options
|
|
69882
69871
|
* @param {Request~bulkCallback} callback
|
|
69883
69872
|
*/
|
|
69884
|
-
_bulk(
|
|
69873
|
+
_bulk(table6, options, callback) {
|
|
69885
69874
|
if (!this.parent) {
|
|
69886
69875
|
return setImmediate(callback, new RequestError2("No connection is specified for that request.", "ENOCONN"));
|
|
69887
69876
|
}
|
|
@@ -71194,7 +71183,7 @@ var require_bulk_load = __commonJS({
|
|
|
71194
71183
|
/**
|
|
71195
71184
|
* @private
|
|
71196
71185
|
*/
|
|
71197
|
-
constructor(
|
|
71186
|
+
constructor(table6, collation, connectionOptions, {
|
|
71198
71187
|
checkConstraints = false,
|
|
71199
71188
|
fireTriggers = false,
|
|
71200
71189
|
keepNulls = false,
|
|
@@ -71216,9 +71205,9 @@ var require_bulk_load = __commonJS({
|
|
|
71216
71205
|
if (typeof order !== "object" || order === null) {
|
|
71217
71206
|
throw new TypeError('The "options.order" property must be of type object.');
|
|
71218
71207
|
}
|
|
71219
|
-
for (const [
|
|
71208
|
+
for (const [column6, direction] of Object.entries(order)) {
|
|
71220
71209
|
if (direction !== "ASC" && direction !== "DESC") {
|
|
71221
|
-
throw new TypeError('The value of the "' +
|
|
71210
|
+
throw new TypeError('The value of the "' + column6 + '" key in the "options.order" object must be either "ASC" or "DESC".');
|
|
71222
71211
|
}
|
|
71223
71212
|
}
|
|
71224
71213
|
super();
|
|
@@ -71226,7 +71215,7 @@ var require_bulk_load = __commonJS({
|
|
|
71226
71215
|
this.canceled = false;
|
|
71227
71216
|
this.executionStarted = false;
|
|
71228
71217
|
this.collation = collation;
|
|
71229
|
-
this.table =
|
|
71218
|
+
this.table = table6;
|
|
71230
71219
|
this.options = connectionOptions;
|
|
71231
71220
|
this.callback = callback;
|
|
71232
71221
|
this.columns = [];
|
|
@@ -71275,7 +71264,7 @@ var require_bulk_load = __commonJS({
|
|
|
71275
71264
|
if (this.executionStarted) {
|
|
71276
71265
|
throw new Error("Columns cannot be added to bulk insert after execution has started.");
|
|
71277
71266
|
}
|
|
71278
|
-
const
|
|
71267
|
+
const column6 = {
|
|
71279
71268
|
type,
|
|
71280
71269
|
name,
|
|
71281
71270
|
value: null,
|
|
@@ -71288,18 +71277,18 @@ var require_bulk_load = __commonJS({
|
|
|
71288
71277
|
collation: this.collation
|
|
71289
71278
|
};
|
|
71290
71279
|
if ((type.id & 48) === 32) {
|
|
71291
|
-
if (
|
|
71292
|
-
|
|
71280
|
+
if (column6.length == null && type.resolveLength) {
|
|
71281
|
+
column6.length = type.resolveLength(column6);
|
|
71293
71282
|
}
|
|
71294
71283
|
}
|
|
71295
|
-
if (type.resolvePrecision &&
|
|
71296
|
-
|
|
71284
|
+
if (type.resolvePrecision && column6.precision == null) {
|
|
71285
|
+
column6.precision = type.resolvePrecision(column6);
|
|
71297
71286
|
}
|
|
71298
|
-
if (type.resolveScale &&
|
|
71299
|
-
|
|
71287
|
+
if (type.resolveScale && column6.scale == null) {
|
|
71288
|
+
column6.scale = type.resolveScale(column6);
|
|
71300
71289
|
}
|
|
71301
|
-
this.columns.push(
|
|
71302
|
-
this.columnsByName[name] =
|
|
71290
|
+
this.columns.push(column6);
|
|
71291
|
+
this.columnsByName[name] = column6;
|
|
71303
71292
|
}
|
|
71304
71293
|
/**
|
|
71305
71294
|
* @private
|
|
@@ -71320,8 +71309,8 @@ var require_bulk_load = __commonJS({
|
|
|
71320
71309
|
}
|
|
71321
71310
|
if (this.bulkOptions.order) {
|
|
71322
71311
|
const orderColumns = [];
|
|
71323
|
-
for (const [
|
|
71324
|
-
orderColumns.push(`${
|
|
71312
|
+
for (const [column6, direction] of Object.entries(this.bulkOptions.order)) {
|
|
71313
|
+
orderColumns.push(`${column6} ${direction}`);
|
|
71325
71314
|
}
|
|
71326
71315
|
if (orderColumns.length) {
|
|
71327
71316
|
addOptions.push(`ORDER (${orderColumns.join(", ")})`);
|
|
@@ -72420,9 +72409,9 @@ var require_debug2 = __commonJS({
|
|
|
72420
72409
|
return newDebugger;
|
|
72421
72410
|
}
|
|
72422
72411
|
function destroy() {
|
|
72423
|
-
const
|
|
72424
|
-
if (
|
|
72425
|
-
debuggers.splice(
|
|
72412
|
+
const index6 = debuggers.indexOf(this);
|
|
72413
|
+
if (index6 >= 0) {
|
|
72414
|
+
debuggers.splice(index6, 1);
|
|
72426
72415
|
return true;
|
|
72427
72416
|
}
|
|
72428
72417
|
return false;
|
|
@@ -75601,9 +75590,9 @@ var require_index_node_BF0Vz18w = __commonJS({
|
|
|
75601
75590
|
const cachedAuthorityUrlComponents = cachedAuthorityUrl.getUrlComponents();
|
|
75602
75591
|
const cachedAuthorityParts = cachedAuthorityUrlComponents.PathSegments;
|
|
75603
75592
|
const currentAuthorityParts = this.canonicalAuthorityUrlComponents.PathSegments;
|
|
75604
|
-
currentAuthorityParts.forEach((currentPart,
|
|
75605
|
-
let cachedPart = cachedAuthorityParts[
|
|
75606
|
-
if (
|
|
75593
|
+
currentAuthorityParts.forEach((currentPart, index6) => {
|
|
75594
|
+
let cachedPart = cachedAuthorityParts[index6];
|
|
75595
|
+
if (index6 === 0 && this.canReplaceTenant(cachedAuthorityUrlComponents)) {
|
|
75607
75596
|
const tenantId = new UrlString(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
|
|
75608
75597
|
if (cachedPart !== tenantId) {
|
|
75609
75598
|
this.logger.verbose(`Replacing tenant domain name ${cachedPart} with id ${tenantId}`);
|
|
@@ -79719,11 +79708,11 @@ ${serverError}`);
|
|
|
79719
79708
|
return skuArr.join(skuGroupSeparator);
|
|
79720
79709
|
}
|
|
79721
79710
|
function setSku(params) {
|
|
79722
|
-
const { skuArr, index:
|
|
79723
|
-
if (
|
|
79711
|
+
const { skuArr, index: index6, skuName, skuVersion } = params;
|
|
79712
|
+
if (index6 >= skuArr.length) {
|
|
79724
79713
|
return;
|
|
79725
79714
|
}
|
|
79726
|
-
skuArr[
|
|
79715
|
+
skuArr[index6] = [skuName, skuVersion].join(skuValueSeparator);
|
|
79727
79716
|
}
|
|
79728
79717
|
var ServerTelemetryManager = class _ServerTelemetryManager {
|
|
79729
79718
|
constructor(telemetryRequest, cacheManager) {
|
|
@@ -82028,17 +82017,17 @@ var require_lodash2 = __commonJS({
|
|
|
82028
82017
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
82029
82018
|
var freeParseInt = parseInt;
|
|
82030
82019
|
function arrayMap(array2, iteratee) {
|
|
82031
|
-
var
|
|
82032
|
-
while (++
|
|
82033
|
-
result2[
|
|
82020
|
+
var index6 = -1, length = array2 ? array2.length : 0, result2 = Array(length);
|
|
82021
|
+
while (++index6 < length) {
|
|
82022
|
+
result2[index6] = iteratee(array2[index6], index6, array2);
|
|
82034
82023
|
}
|
|
82035
82024
|
return result2;
|
|
82036
82025
|
}
|
|
82037
82026
|
function baseFindIndex(array2, predicate, fromIndex, fromRight) {
|
|
82038
|
-
var length = array2.length,
|
|
82039
|
-
while (fromRight ?
|
|
82040
|
-
if (predicate(array2[
|
|
82041
|
-
return
|
|
82027
|
+
var length = array2.length, index6 = fromIndex + (fromRight ? 1 : -1);
|
|
82028
|
+
while (fromRight ? index6-- : ++index6 < length) {
|
|
82029
|
+
if (predicate(array2[index6], index6, array2)) {
|
|
82030
|
+
return index6;
|
|
82042
82031
|
}
|
|
82043
82032
|
}
|
|
82044
82033
|
return -1;
|
|
@@ -82047,10 +82036,10 @@ var require_lodash2 = __commonJS({
|
|
|
82047
82036
|
if (value !== value) {
|
|
82048
82037
|
return baseFindIndex(array2, baseIsNaN, fromIndex);
|
|
82049
82038
|
}
|
|
82050
|
-
var
|
|
82051
|
-
while (++
|
|
82052
|
-
if (array2[
|
|
82053
|
-
return
|
|
82039
|
+
var index6 = fromIndex - 1, length = array2.length;
|
|
82040
|
+
while (++index6 < length) {
|
|
82041
|
+
if (array2[index6] === value) {
|
|
82042
|
+
return index6;
|
|
82054
82043
|
}
|
|
82055
82044
|
}
|
|
82056
82045
|
return -1;
|
|
@@ -82059,9 +82048,9 @@ var require_lodash2 = __commonJS({
|
|
|
82059
82048
|
return value !== value;
|
|
82060
82049
|
}
|
|
82061
82050
|
function baseTimes(n6, iteratee) {
|
|
82062
|
-
var
|
|
82063
|
-
while (++
|
|
82064
|
-
result2[
|
|
82051
|
+
var index6 = -1, result2 = Array(n6);
|
|
82052
|
+
while (++index6 < n6) {
|
|
82053
|
+
result2[index6] = iteratee(index6);
|
|
82065
82054
|
}
|
|
82066
82055
|
return result2;
|
|
82067
82056
|
}
|
|
@@ -82484,12 +82473,12 @@ var require_sign = __commonJS({
|
|
|
82484
82473
|
exp: { isValid: isNumber, message: '"exp" should be a number of seconds' },
|
|
82485
82474
|
nbf: { isValid: isNumber, message: '"nbf" should be a number of seconds' }
|
|
82486
82475
|
};
|
|
82487
|
-
function validate4(
|
|
82476
|
+
function validate4(schema5, allowUnknown, object, parameterName) {
|
|
82488
82477
|
if (!isPlainObject(object)) {
|
|
82489
82478
|
throw new Error('Expected "' + parameterName + '" to be a plain object.');
|
|
82490
82479
|
}
|
|
82491
82480
|
Object.keys(object).forEach(function(key) {
|
|
82492
|
-
const validator3 =
|
|
82481
|
+
const validator3 = schema5[key];
|
|
82493
82482
|
if (!validator3) {
|
|
82494
82483
|
if (!allowUnknown) {
|
|
82495
82484
|
throw new Error('"' + key + '" is not allowed in "' + parameterName + '"');
|
|
@@ -86751,9 +86740,9 @@ var require_msal_node = __commonJS({
|
|
|
86751
86740
|
const cachedAuthorityUrlComponents = cachedAuthorityUrl.getUrlComponents();
|
|
86752
86741
|
const cachedAuthorityParts = cachedAuthorityUrlComponents.PathSegments;
|
|
86753
86742
|
const currentAuthorityParts = this.canonicalAuthorityUrlComponents.PathSegments;
|
|
86754
|
-
currentAuthorityParts.forEach((currentPart,
|
|
86755
|
-
let cachedPart = cachedAuthorityParts[
|
|
86756
|
-
if (
|
|
86743
|
+
currentAuthorityParts.forEach((currentPart, index6) => {
|
|
86744
|
+
let cachedPart = cachedAuthorityParts[index6];
|
|
86745
|
+
if (index6 === 0 && this.canReplaceTenant(cachedAuthorityUrlComponents)) {
|
|
86757
86746
|
const tenantId = new UrlString(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];
|
|
86758
86747
|
if (cachedPart !== tenantId) {
|
|
86759
86748
|
this.logger.verbose(`Replacing tenant domain name ${cachedPart} with id ${tenantId}`);
|
|
@@ -88585,11 +88574,11 @@ ${serverError}`);
|
|
|
88585
88574
|
return skuArr.join(skuGroupSeparator);
|
|
88586
88575
|
}
|
|
88587
88576
|
function setSku(params) {
|
|
88588
|
-
const { skuArr, index:
|
|
88589
|
-
if (
|
|
88577
|
+
const { skuArr, index: index6, skuName, skuVersion } = params;
|
|
88578
|
+
if (index6 >= skuArr.length) {
|
|
88590
88579
|
return;
|
|
88591
88580
|
}
|
|
88592
|
-
skuArr[
|
|
88581
|
+
skuArr[index6] = [skuName, skuVersion].join(skuValueSeparator);
|
|
88593
88582
|
}
|
|
88594
88583
|
var ServerTelemetryManager = class _ServerTelemetryManager {
|
|
88595
88584
|
constructor(telemetryRequest, cacheManager) {
|
|
@@ -89669,8 +89658,8 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
89669
89658
|
if (byte >= maxNumber) {
|
|
89670
89659
|
continue;
|
|
89671
89660
|
}
|
|
89672
|
-
const
|
|
89673
|
-
charArr.push(CharSet.CV_CHARSET[
|
|
89661
|
+
const index6 = byte % CharSet.CV_CHARSET.length;
|
|
89662
|
+
charArr.push(CharSet.CV_CHARSET[index6]);
|
|
89674
89663
|
}
|
|
89675
89664
|
const verifier = charArr.join(Constants$1.EMPTY_STRING);
|
|
89676
89665
|
return EncodingUtils.base64EncodeUrl(verifier);
|
|
@@ -96285,9 +96274,9 @@ var require_dist = __commonJS({
|
|
|
96285
96274
|
return;
|
|
96286
96275
|
}
|
|
96287
96276
|
const sockets = this.sockets[name];
|
|
96288
|
-
const
|
|
96289
|
-
if (
|
|
96290
|
-
sockets.splice(
|
|
96277
|
+
const index6 = sockets.indexOf(socket);
|
|
96278
|
+
if (index6 !== -1) {
|
|
96279
|
+
sockets.splice(index6, 1);
|
|
96291
96280
|
this.totalSocketCount--;
|
|
96292
96281
|
if (sockets.length === 0) {
|
|
96293
96282
|
delete this.sockets[name];
|
|
@@ -96811,9 +96800,9 @@ var require_proxyPolicy = __commonJS({
|
|
|
96811
96800
|
}
|
|
96812
96801
|
}
|
|
96813
96802
|
const parsedUrl = new URL(proxyUrl);
|
|
96814
|
-
const
|
|
96803
|
+
const schema5 = parsedUrl.protocol ? parsedUrl.protocol + "//" : "";
|
|
96815
96804
|
return {
|
|
96816
|
-
host:
|
|
96805
|
+
host: schema5 + parsedUrl.hostname,
|
|
96817
96806
|
port: Number.parseInt(parsedUrl.port || "80"),
|
|
96818
96807
|
username: parsedUrl.username,
|
|
96819
96808
|
password: parsedUrl.password
|
|
@@ -106316,9 +106305,9 @@ var require_md4 = __commonJS({
|
|
|
106316
106305
|
if (notString && ARRAY_BUFFER && message instanceof ArrayBuffer) {
|
|
106317
106306
|
message = new Uint8Array(message);
|
|
106318
106307
|
}
|
|
106319
|
-
var code,
|
|
106308
|
+
var code, index6 = 0, i7, length = message.length || 0, blocks2 = this.blocks;
|
|
106320
106309
|
var buffer82 = this.buffer8;
|
|
106321
|
-
while (
|
|
106310
|
+
while (index6 < length) {
|
|
106322
106311
|
if (this.hashed) {
|
|
106323
106312
|
this.hashed = false;
|
|
106324
106313
|
blocks2[0] = blocks2[16];
|
|
@@ -106326,18 +106315,18 @@ var require_md4 = __commonJS({
|
|
|
106326
106315
|
}
|
|
106327
106316
|
if (notString) {
|
|
106328
106317
|
if (ARRAY_BUFFER) {
|
|
106329
|
-
for (i7 = this.start;
|
|
106330
|
-
buffer82[i7++] = message[
|
|
106318
|
+
for (i7 = this.start; index6 < length && i7 < 64; ++index6) {
|
|
106319
|
+
buffer82[i7++] = message[index6];
|
|
106331
106320
|
}
|
|
106332
106321
|
} else {
|
|
106333
|
-
for (i7 = this.start;
|
|
106334
|
-
blocks2[i7 >> 2] |= message[
|
|
106322
|
+
for (i7 = this.start; index6 < length && i7 < 64; ++index6) {
|
|
106323
|
+
blocks2[i7 >> 2] |= message[index6] << SHIFT[i7++ & 3];
|
|
106335
106324
|
}
|
|
106336
106325
|
}
|
|
106337
106326
|
} else {
|
|
106338
106327
|
if (ARRAY_BUFFER) {
|
|
106339
|
-
for (i7 = this.start;
|
|
106340
|
-
code = message.charCodeAt(
|
|
106328
|
+
for (i7 = this.start; index6 < length && i7 < 64; ++index6) {
|
|
106329
|
+
code = message.charCodeAt(index6);
|
|
106341
106330
|
if (code < 128) {
|
|
106342
106331
|
buffer82[i7++] = code;
|
|
106343
106332
|
} else if (code < 2048) {
|
|
@@ -106348,7 +106337,7 @@ var require_md4 = __commonJS({
|
|
|
106348
106337
|
buffer82[i7++] = 128 | code >> 6 & 63;
|
|
106349
106338
|
buffer82[i7++] = 128 | code & 63;
|
|
106350
106339
|
} else {
|
|
106351
|
-
code = 65536 + ((code & 1023) << 10 | message.charCodeAt(++
|
|
106340
|
+
code = 65536 + ((code & 1023) << 10 | message.charCodeAt(++index6) & 1023);
|
|
106352
106341
|
buffer82[i7++] = 240 | code >> 18;
|
|
106353
106342
|
buffer82[i7++] = 128 | code >> 12 & 63;
|
|
106354
106343
|
buffer82[i7++] = 128 | code >> 6 & 63;
|
|
@@ -106356,8 +106345,8 @@ var require_md4 = __commonJS({
|
|
|
106356
106345
|
}
|
|
106357
106346
|
}
|
|
106358
106347
|
} else {
|
|
106359
|
-
for (i7 = this.start;
|
|
106360
|
-
code = message.charCodeAt(
|
|
106348
|
+
for (i7 = this.start; index6 < length && i7 < 64; ++index6) {
|
|
106349
|
+
code = message.charCodeAt(index6);
|
|
106361
106350
|
if (code < 128) {
|
|
106362
106351
|
blocks2[i7 >> 2] |= code << SHIFT[i7++ & 3];
|
|
106363
106352
|
} else if (code < 2048) {
|
|
@@ -106368,7 +106357,7 @@ var require_md4 = __commonJS({
|
|
|
106368
106357
|
blocks2[i7 >> 2] |= (128 | code >> 6 & 63) << SHIFT[i7++ & 3];
|
|
106369
106358
|
blocks2[i7 >> 2] |= (128 | code & 63) << SHIFT[i7++ & 3];
|
|
106370
106359
|
} else {
|
|
106371
|
-
code = 65536 + ((code & 1023) << 10 | message.charCodeAt(++
|
|
106360
|
+
code = 65536 + ((code & 1023) << 10 | message.charCodeAt(++index6) & 1023);
|
|
106372
106361
|
blocks2[i7 >> 2] |= (240 | code >> 18) << SHIFT[i7++ & 3];
|
|
106373
106362
|
blocks2[i7 >> 2] |= (128 | code >> 12 & 63) << SHIFT[i7++ & 3];
|
|
106374
106363
|
blocks2[i7 >> 2] |= (128 | code >> 6 & 63) << SHIFT[i7++ & 3];
|
|
@@ -110914,9 +110903,9 @@ var require_readable = __commonJS({
|
|
|
110914
110903
|
});
|
|
110915
110904
|
return this;
|
|
110916
110905
|
}
|
|
110917
|
-
const
|
|
110918
|
-
if (
|
|
110919
|
-
state2.pipes.splice(
|
|
110906
|
+
const index6 = ArrayPrototypeIndexOf(state2.pipes, dest);
|
|
110907
|
+
if (index6 === -1) return this;
|
|
110908
|
+
state2.pipes.splice(index6, 1);
|
|
110920
110909
|
if (state2.pipes.length === 0) this.pause();
|
|
110921
110910
|
dest.emit("unpipe", this, unpipeInfo);
|
|
110922
110911
|
return this;
|
|
@@ -113324,7 +113313,7 @@ var require_operators2 = __commonJS({
|
|
|
113324
113313
|
validateAbortSignal(options.signal, "options.signal");
|
|
113325
113314
|
}
|
|
113326
113315
|
return async function* asIndexedPairs2() {
|
|
113327
|
-
let
|
|
113316
|
+
let index6 = 0;
|
|
113328
113317
|
for await (const val of this) {
|
|
113329
113318
|
var _options$signal;
|
|
113330
113319
|
if (options !== null && options !== void 0 && (_options$signal = options.signal) !== null && _options$signal !== void 0 && _options$signal.aborted) {
|
|
@@ -113332,7 +113321,7 @@ var require_operators2 = __commonJS({
|
|
|
113332
113321
|
cause: options.signal.reason
|
|
113333
113322
|
});
|
|
113334
113323
|
}
|
|
113335
|
-
yield [
|
|
113324
|
+
yield [index6++, val];
|
|
113336
113325
|
}
|
|
113337
113326
|
}.call(this);
|
|
113338
113327
|
}
|
|
@@ -113824,11 +113813,11 @@ var require_BufferList = __commonJS({
|
|
|
113824
113813
|
BufferList.prototype.getBuffers = function getBuffers() {
|
|
113825
113814
|
return this._bufs;
|
|
113826
113815
|
};
|
|
113827
|
-
BufferList.prototype.get = function get2(
|
|
113828
|
-
if (
|
|
113816
|
+
BufferList.prototype.get = function get2(index6) {
|
|
113817
|
+
if (index6 > this.length || index6 < 0) {
|
|
113829
113818
|
return void 0;
|
|
113830
113819
|
}
|
|
113831
|
-
const offset = this._offset(
|
|
113820
|
+
const offset = this._offset(index6);
|
|
113832
113821
|
return this._bufs[offset[0]][offset[1]];
|
|
113833
113822
|
};
|
|
113834
113823
|
BufferList.prototype.slice = function slice(start, end2) {
|
|
@@ -115560,18 +115549,18 @@ function messageWithCause(message, cause) {
|
|
|
115560
115549
|
}
|
|
115561
115550
|
this.message = msg;
|
|
115562
115551
|
}
|
|
115563
|
-
function messageForDateTimeParseException(message, text,
|
|
115552
|
+
function messageForDateTimeParseException(message, text, index6, cause) {
|
|
115564
115553
|
if (text === void 0) {
|
|
115565
115554
|
text = "";
|
|
115566
115555
|
}
|
|
115567
|
-
if (
|
|
115568
|
-
|
|
115556
|
+
if (index6 === void 0) {
|
|
115557
|
+
index6 = 0;
|
|
115569
115558
|
}
|
|
115570
115559
|
if (cause === void 0) {
|
|
115571
115560
|
cause = null;
|
|
115572
115561
|
}
|
|
115573
115562
|
var msg = message || this.name;
|
|
115574
|
-
msg += ": " + text + ", at index: " +
|
|
115563
|
+
msg += ": " + text + ", at index: " + index6;
|
|
115575
115564
|
if (cause !== null && cause instanceof Error) {
|
|
115576
115565
|
msg += "\n-------\nCaused by: " + cause.stack + "\n-------\n";
|
|
115577
115566
|
}
|
|
@@ -115580,7 +115569,7 @@ function messageForDateTimeParseException(message, text, index7, cause) {
|
|
|
115580
115569
|
return text;
|
|
115581
115570
|
};
|
|
115582
115571
|
this.errorIndex = function() {
|
|
115583
|
-
return
|
|
115572
|
+
return index6;
|
|
115584
115573
|
};
|
|
115585
115574
|
}
|
|
115586
115575
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -117601,16 +117590,16 @@ var init_js_joda_esm = __esm({
|
|
|
117601
117590
|
return Period2;
|
|
117602
117591
|
})(TemporalAmount);
|
|
117603
117592
|
ParsePosition = (function() {
|
|
117604
|
-
function ParsePosition2(
|
|
117605
|
-
this._index =
|
|
117593
|
+
function ParsePosition2(index6) {
|
|
117594
|
+
this._index = index6;
|
|
117606
117595
|
this._errorIndex = -1;
|
|
117607
117596
|
}
|
|
117608
117597
|
var _proto = ParsePosition2.prototype;
|
|
117609
117598
|
_proto.getIndex = function getIndex() {
|
|
117610
117599
|
return this._index;
|
|
117611
117600
|
};
|
|
117612
|
-
_proto.setIndex = function setIndex(
|
|
117613
|
-
this._index =
|
|
117601
|
+
_proto.setIndex = function setIndex(index6) {
|
|
117602
|
+
this._index = index6;
|
|
117614
117603
|
};
|
|
117615
117604
|
_proto.getErrorIndex = function getErrorIndex() {
|
|
117616
117605
|
return this._errorIndex;
|
|
@@ -128406,15 +128395,15 @@ var require_dbcs_codec = __commonJS({
|
|
|
128406
128395
|
this.nodeIdx = 0;
|
|
128407
128396
|
return ret;
|
|
128408
128397
|
};
|
|
128409
|
-
function findIdx(
|
|
128410
|
-
if (
|
|
128398
|
+
function findIdx(table6, val) {
|
|
128399
|
+
if (table6[0] > val) {
|
|
128411
128400
|
return -1;
|
|
128412
128401
|
}
|
|
128413
128402
|
var l6 = 0;
|
|
128414
|
-
var r7 =
|
|
128403
|
+
var r7 = table6.length;
|
|
128415
128404
|
while (l6 < r7 - 1) {
|
|
128416
128405
|
var mid = l6 + (r7 - l6 + 1 >> 1);
|
|
128417
|
-
if (
|
|
128406
|
+
if (table6[mid] <= val) {
|
|
128418
128407
|
l6 = mid;
|
|
128419
128408
|
} else {
|
|
128420
128409
|
r7 = mid;
|
|
@@ -131548,13 +131537,13 @@ var require_tvp = __commonJS({
|
|
|
131548
131537
|
},
|
|
131549
131538
|
generateTypeInfo(parameter) {
|
|
131550
131539
|
const databaseName = "";
|
|
131551
|
-
const
|
|
131540
|
+
const schema5 = parameter.value?.schema ?? "";
|
|
131552
131541
|
const typeName = parameter.value?.name ?? "";
|
|
131553
|
-
const bufferLength = 1 + 1 + Buffer.byteLength(databaseName, "ucs2") + 1 + Buffer.byteLength(
|
|
131542
|
+
const bufferLength = 1 + 1 + Buffer.byteLength(databaseName, "ucs2") + 1 + Buffer.byteLength(schema5, "ucs2") + 1 + Buffer.byteLength(typeName, "ucs2");
|
|
131554
131543
|
const buffer = new _writableTrackingBuffer.default(bufferLength, "ucs2");
|
|
131555
131544
|
buffer.writeUInt8(this.id);
|
|
131556
131545
|
buffer.writeBVarchar(databaseName);
|
|
131557
|
-
buffer.writeBVarchar(
|
|
131546
|
+
buffer.writeBVarchar(schema5);
|
|
131558
131547
|
buffer.writeBVarchar(typeName);
|
|
131559
131548
|
return buffer.data;
|
|
131560
131549
|
},
|
|
@@ -131580,12 +131569,12 @@ var require_tvp = __commonJS({
|
|
|
131580
131569
|
rows
|
|
131581
131570
|
} = parameter.value;
|
|
131582
131571
|
for (let i7 = 0, len = columns.length; i7 < len; i7++) {
|
|
131583
|
-
const
|
|
131572
|
+
const column6 = columns[i7];
|
|
131584
131573
|
const buff = Buffer.alloc(6);
|
|
131585
131574
|
buff.writeUInt32LE(0, 0);
|
|
131586
131575
|
buff.writeUInt16LE(0, 4);
|
|
131587
131576
|
yield buff;
|
|
131588
|
-
yield
|
|
131577
|
+
yield column6.type.generateTypeInfo(column6);
|
|
131589
131578
|
yield Buffer.from([0]);
|
|
131590
131579
|
}
|
|
131591
131580
|
yield TVP_END_TOKEN;
|
|
@@ -131593,24 +131582,24 @@ var require_tvp = __commonJS({
|
|
|
131593
131582
|
yield TVP_ROW_TOKEN;
|
|
131594
131583
|
const row = rows[i7];
|
|
131595
131584
|
for (let k6 = 0, len2 = row.length; k6 < len2; k6++) {
|
|
131596
|
-
const
|
|
131585
|
+
const column6 = columns[k6];
|
|
131597
131586
|
const value = row[k6];
|
|
131598
131587
|
let paramValue;
|
|
131599
131588
|
try {
|
|
131600
|
-
paramValue =
|
|
131589
|
+
paramValue = column6.type.validate(value, parameter.collation);
|
|
131601
131590
|
} catch (error3) {
|
|
131602
|
-
throw new _errors.InputError(`TVP column '${
|
|
131591
|
+
throw new _errors.InputError(`TVP column '${column6.name}' has invalid data at row index ${i7}`, {
|
|
131603
131592
|
cause: error3
|
|
131604
131593
|
});
|
|
131605
131594
|
}
|
|
131606
131595
|
const param = {
|
|
131607
131596
|
value: paramValue,
|
|
131608
|
-
length:
|
|
131609
|
-
scale:
|
|
131610
|
-
precision:
|
|
131597
|
+
length: column6.length,
|
|
131598
|
+
scale: column6.scale,
|
|
131599
|
+
precision: column6.precision
|
|
131611
131600
|
};
|
|
131612
|
-
yield
|
|
131613
|
-
yield*
|
|
131601
|
+
yield column6.type.generateParameterLength(param, options);
|
|
131602
|
+
yield* column6.type.generateParameterData(param, options);
|
|
131614
131603
|
}
|
|
131615
131604
|
}
|
|
131616
131605
|
yield TVP_END_TOKEN;
|
|
@@ -132267,10 +132256,10 @@ var require_metadata_parser = __commonJS({
|
|
|
132267
132256
|
}, offset);
|
|
132268
132257
|
}
|
|
132269
132258
|
case "Xml": {
|
|
132270
|
-
let
|
|
132259
|
+
let schema5;
|
|
132271
132260
|
({
|
|
132272
132261
|
offset,
|
|
132273
|
-
value:
|
|
132262
|
+
value: schema5
|
|
132274
132263
|
} = readSchema(buf, offset));
|
|
132275
132264
|
return new _helpers.Result({
|
|
132276
132265
|
userType,
|
|
@@ -132280,7 +132269,7 @@ var require_metadata_parser = __commonJS({
|
|
|
132280
132269
|
precision: void 0,
|
|
132281
132270
|
scale: void 0,
|
|
132282
132271
|
dataLength: void 0,
|
|
132283
|
-
schema:
|
|
132272
|
+
schema: schema5,
|
|
132284
132273
|
udtInfo: void 0
|
|
132285
132274
|
}, offset);
|
|
132286
132275
|
}
|
|
@@ -132414,14 +132403,14 @@ var require_colmetadata_token_parser = __commonJS({
|
|
|
132414
132403
|
}
|
|
132415
132404
|
return new _helpers.Result(tableName, offset);
|
|
132416
132405
|
}
|
|
132417
|
-
function readColumnName(buf, offset,
|
|
132406
|
+
function readColumnName(buf, offset, index6, metadata, options) {
|
|
132418
132407
|
let colName;
|
|
132419
132408
|
({
|
|
132420
132409
|
offset,
|
|
132421
132410
|
value: colName
|
|
132422
132411
|
} = (0, _helpers.readBVarChar)(buf, offset));
|
|
132423
132412
|
if (options.columnNameReplacer) {
|
|
132424
|
-
return new _helpers.Result(options.columnNameReplacer(colName,
|
|
132413
|
+
return new _helpers.Result(options.columnNameReplacer(colName, index6, metadata), offset);
|
|
132425
132414
|
} else if (options.camelCaseColumns) {
|
|
132426
132415
|
return new _helpers.Result(colName.replace(/^[A-Z]/, function(s7) {
|
|
132427
132416
|
return s7.toLowerCase();
|
|
@@ -132430,7 +132419,7 @@ var require_colmetadata_token_parser = __commonJS({
|
|
|
132430
132419
|
return new _helpers.Result(colName, offset);
|
|
132431
132420
|
}
|
|
132432
132421
|
}
|
|
132433
|
-
function readColumn(buf, offset, options,
|
|
132422
|
+
function readColumn(buf, offset, options, index6) {
|
|
132434
132423
|
let metadata;
|
|
132435
132424
|
({
|
|
132436
132425
|
offset,
|
|
@@ -132445,7 +132434,7 @@ var require_colmetadata_token_parser = __commonJS({
|
|
|
132445
132434
|
({
|
|
132446
132435
|
offset,
|
|
132447
132436
|
value: colName
|
|
132448
|
-
} = readColumnName(buf, offset,
|
|
132437
|
+
} = readColumnName(buf, offset, index6, metadata, options));
|
|
132449
132438
|
return new _helpers.Result({
|
|
132450
132439
|
userType: metadata.userType,
|
|
132451
132440
|
flags: metadata.flags,
|
|
@@ -132482,12 +132471,12 @@ var require_colmetadata_token_parser = __commonJS({
|
|
|
132482
132471
|
const columns = [];
|
|
132483
132472
|
for (let i7 = 0; i7 < columnCount; i7++) {
|
|
132484
132473
|
while (true) {
|
|
132485
|
-
let
|
|
132474
|
+
let column6;
|
|
132486
132475
|
let offset;
|
|
132487
132476
|
try {
|
|
132488
132477
|
({
|
|
132489
132478
|
offset,
|
|
132490
|
-
value:
|
|
132479
|
+
value: column6
|
|
132491
132480
|
} = readColumn(parser2.buffer, parser2.position, parser2.options, i7));
|
|
132492
132481
|
} catch (err2) {
|
|
132493
132482
|
if (err2 instanceof _helpers.NotEnoughDataError) {
|
|
@@ -132497,7 +132486,7 @@ var require_colmetadata_token_parser = __commonJS({
|
|
|
132497
132486
|
throw err2;
|
|
132498
132487
|
}
|
|
132499
132488
|
parser2.position = offset;
|
|
132500
|
-
columns.push(
|
|
132489
|
+
columns.push(column6);
|
|
132501
132490
|
break;
|
|
132502
132491
|
}
|
|
132503
132492
|
}
|
|
@@ -133070,12 +133059,12 @@ var require_order_token_parser = __commonJS({
|
|
|
133070
133059
|
}
|
|
133071
133060
|
const orderColumns = [];
|
|
133072
133061
|
for (let i7 = 0; i7 < tokenLength; i7 += 2) {
|
|
133073
|
-
let
|
|
133062
|
+
let column6;
|
|
133074
133063
|
({
|
|
133075
133064
|
offset,
|
|
133076
|
-
value:
|
|
133065
|
+
value: column6
|
|
133077
133066
|
} = (0, _helpers.readUInt16LE)(buf, offset));
|
|
133078
|
-
orderColumns.push(
|
|
133067
|
+
orderColumns.push(column6);
|
|
133079
133068
|
}
|
|
133080
133069
|
return new _helpers.Result(new _token.OrderToken(orderColumns), offset);
|
|
133081
133070
|
}
|
|
@@ -134046,10 +134035,10 @@ var require_row_token_parser = __commonJS({
|
|
|
134046
134035
|
}
|
|
134047
134036
|
if (parser2.options.useColumnNames) {
|
|
134048
134037
|
const columnsMap = /* @__PURE__ */ Object.create(null);
|
|
134049
|
-
columns.forEach((
|
|
134050
|
-
const colName =
|
|
134038
|
+
columns.forEach((column6) => {
|
|
134039
|
+
const colName = column6.metadata.colName;
|
|
134051
134040
|
if (columnsMap[colName] == null) {
|
|
134052
|
-
columnsMap[colName] =
|
|
134041
|
+
columnsMap[colName] = column6;
|
|
134053
134042
|
}
|
|
134054
134043
|
});
|
|
134055
134044
|
return new _token.RowToken(columnsMap);
|
|
@@ -134164,10 +134153,10 @@ var require_nbcrow_token_parser = __commonJS({
|
|
|
134164
134153
|
}
|
|
134165
134154
|
if (parser2.options.useColumnNames) {
|
|
134166
134155
|
const columnsMap = /* @__PURE__ */ Object.create(null);
|
|
134167
|
-
columns.forEach((
|
|
134168
|
-
const colName =
|
|
134156
|
+
columns.forEach((column6) => {
|
|
134157
|
+
const colName = column6.metadata.colName;
|
|
134169
134158
|
if (columnsMap[colName] == null) {
|
|
134170
|
-
columnsMap[colName] =
|
|
134159
|
+
columnsMap[colName] = column6;
|
|
134171
134160
|
}
|
|
134172
134161
|
});
|
|
134173
134162
|
return new _token.NBCRowToken(columnsMap);
|
|
@@ -137106,7 +137095,7 @@ var require_connection = __commonJS({
|
|
|
137106
137095
|
* @param table The name of the table to bulk-insert into.
|
|
137107
137096
|
* @param options A set of bulk load options.
|
|
137108
137097
|
*/
|
|
137109
|
-
newBulkLoad(
|
|
137098
|
+
newBulkLoad(table6, callbackOrOptions, callback) {
|
|
137110
137099
|
let options;
|
|
137111
137100
|
if (callback === void 0) {
|
|
137112
137101
|
callback = callbackOrOptions;
|
|
@@ -137117,7 +137106,7 @@ var require_connection = __commonJS({
|
|
|
137117
137106
|
if (typeof options !== "object") {
|
|
137118
137107
|
throw new TypeError('"options" argument must be an object');
|
|
137119
137108
|
}
|
|
137120
|
-
return new _bulkLoad.default(
|
|
137109
|
+
return new _bulkLoad.default(table6, this.databaseCollation, this.config.options, options, callback);
|
|
137121
137110
|
}
|
|
137122
137111
|
/**
|
|
137123
137112
|
* Execute a [[BulkLoad]].
|
|
@@ -138772,35 +138761,35 @@ var require_request3 = __commonJS({
|
|
|
138772
138761
|
var createColumns = function(metadata, arrayRowMode) {
|
|
138773
138762
|
let out = {};
|
|
138774
138763
|
if (arrayRowMode) out = [];
|
|
138775
|
-
for (let
|
|
138776
|
-
const
|
|
138764
|
+
for (let index6 = 0, length = metadata.length; index6 < length; index6++) {
|
|
138765
|
+
const column6 = metadata[index6];
|
|
138777
138766
|
const outColumn = {
|
|
138778
|
-
index:
|
|
138779
|
-
name:
|
|
138780
|
-
length:
|
|
138781
|
-
type: getMssqlType(
|
|
138782
|
-
scale:
|
|
138783
|
-
precision:
|
|
138784
|
-
nullable: !!(
|
|
138785
|
-
caseSensitive: !!(
|
|
138786
|
-
identity: !!(
|
|
138787
|
-
readOnly: !(
|
|
138767
|
+
index: index6,
|
|
138768
|
+
name: column6.colName,
|
|
138769
|
+
length: column6.dataLength,
|
|
138770
|
+
type: getMssqlType(column6.type, column6.dataLength),
|
|
138771
|
+
scale: column6.scale,
|
|
138772
|
+
precision: column6.precision,
|
|
138773
|
+
nullable: !!(column6.flags & 1),
|
|
138774
|
+
caseSensitive: !!(column6.flags & 2),
|
|
138775
|
+
identity: !!(column6.flags & 16),
|
|
138776
|
+
readOnly: !(column6.flags & 12)
|
|
138788
138777
|
};
|
|
138789
|
-
if (
|
|
138778
|
+
if (column6.udtInfo) {
|
|
138790
138779
|
outColumn.udt = {
|
|
138791
|
-
name:
|
|
138792
|
-
database:
|
|
138793
|
-
schema:
|
|
138794
|
-
assembly:
|
|
138780
|
+
name: column6.udtInfo.typeName,
|
|
138781
|
+
database: column6.udtInfo.dbname,
|
|
138782
|
+
schema: column6.udtInfo.owningSchema,
|
|
138783
|
+
assembly: column6.udtInfo.assemblyName
|
|
138795
138784
|
};
|
|
138796
|
-
if (DECLARATIONS[
|
|
138797
|
-
outColumn.type = DECLARATIONS[
|
|
138785
|
+
if (DECLARATIONS[column6.udtInfo.typeName]) {
|
|
138786
|
+
outColumn.type = DECLARATIONS[column6.udtInfo.typeName];
|
|
138798
138787
|
}
|
|
138799
138788
|
}
|
|
138800
138789
|
if (arrayRowMode) {
|
|
138801
138790
|
out.push(outColumn);
|
|
138802
138791
|
} else {
|
|
138803
|
-
out[
|
|
138792
|
+
out[column6.colName] = outColumn;
|
|
138804
138793
|
}
|
|
138805
138794
|
}
|
|
138806
138795
|
return out;
|
|
@@ -138852,18 +138841,18 @@ var require_request3 = __commonJS({
|
|
|
138852
138841
|
/*
|
|
138853
138842
|
Bulk load.
|
|
138854
138843
|
*/
|
|
138855
|
-
_bulk(
|
|
138856
|
-
super._bulk(
|
|
138844
|
+
_bulk(table6, options, callback) {
|
|
138845
|
+
super._bulk(table6, options, (err2) => {
|
|
138857
138846
|
if (err2) return callback(err2);
|
|
138858
138847
|
try {
|
|
138859
|
-
|
|
138848
|
+
table6._makeBulk();
|
|
138860
138849
|
} catch (e7) {
|
|
138861
138850
|
return callback(new RequestError2(e7, "EREQUEST"));
|
|
138862
138851
|
}
|
|
138863
|
-
if (!
|
|
138852
|
+
if (!table6.name) {
|
|
138864
138853
|
return callback(new RequestError2("Table name must be specified for bulk insert.", "ENAME"));
|
|
138865
138854
|
}
|
|
138866
|
-
if (
|
|
138855
|
+
if (table6.name.charAt(0) === "@") {
|
|
138867
138856
|
return callback(new RequestError2("You can't use table variables for bulk insert.", "ENAME"));
|
|
138868
138857
|
}
|
|
138869
138858
|
const errors = [];
|
|
@@ -138945,20 +138934,20 @@ var require_request3 = __commonJS({
|
|
|
138945
138934
|
}
|
|
138946
138935
|
}
|
|
138947
138936
|
};
|
|
138948
|
-
const bulk = connection.newBulkLoad(
|
|
138949
|
-
for (const col of
|
|
138937
|
+
const bulk = connection.newBulkLoad(table6.path, options, done);
|
|
138938
|
+
for (const col of table6.columns) {
|
|
138950
138939
|
bulk.addColumn(col.name, getTediousType(col.type), { nullable: col.nullable, length: col.length, scale: col.scale, precision: col.precision });
|
|
138951
138940
|
}
|
|
138952
|
-
if (
|
|
138953
|
-
const objectid =
|
|
138954
|
-
const req = new tds.Request(`if object_id('${objectid.replace(/'/g, "''")}') is null ${
|
|
138941
|
+
if (table6.create) {
|
|
138942
|
+
const objectid = table6.temporary ? `tempdb..[${table6.name}]` : table6.path;
|
|
138943
|
+
const req = new tds.Request(`if object_id('${objectid.replace(/'/g, "''")}') is null ${table6.declare()}`, (err4) => {
|
|
138955
138944
|
if (err4) return done(err4);
|
|
138956
|
-
connection.execBulkLoad(bulk,
|
|
138945
|
+
connection.execBulkLoad(bulk, table6.rows);
|
|
138957
138946
|
});
|
|
138958
138947
|
this._setCurrentRequest(req);
|
|
138959
138948
|
connection.execSqlBatch(req);
|
|
138960
138949
|
} else {
|
|
138961
|
-
connection.execBulkLoad(bulk,
|
|
138950
|
+
connection.execBulkLoad(bulk, table6.rows);
|
|
138962
138951
|
}
|
|
138963
138952
|
});
|
|
138964
138953
|
});
|
|
@@ -141213,7 +141202,7 @@ __export(studio_exports, {
|
|
|
141213
141202
|
prepareServer: () => prepareServer,
|
|
141214
141203
|
prepareSingleStoreSchema: () => prepareSingleStoreSchema
|
|
141215
141204
|
});
|
|
141216
|
-
var import_crypto9, import_drizzle_orm, import_relations, import_mssql_core2, import_mysql_core2, import_pg_core2, import_singlestore_core, import_sqlite_core2, import_fs4, import_node_https2, preparePgSchema, prepareMySqlSchema, prepareMsSqlSchema, prepareSQLiteSchema, prepareSingleStoreSchema, getCustomDefaults, drizzleForPostgres, drizzleForMySQL, drizzleForSQLite, drizzleForLibSQL, drizzleForSingleStore, extractRelations, init2, proxySchema, transactionProxySchema, benchmarkProxySchema, defaultsSchema,
|
|
141205
|
+
var import_crypto9, import_drizzle_orm, import_relations, import_mssql_core2, import_mysql_core2, import_pg_core2, import_singlestore_core, import_sqlite_core2, import_fs4, import_node_https2, preparePgSchema, prepareMySqlSchema, prepareMsSqlSchema, prepareSQLiteSchema, prepareSingleStoreSchema, getCustomDefaults, drizzleForPostgres, drizzleForMySQL, drizzleForSQLite, drizzleForLibSQL, drizzleForSingleStore, extractRelations, init2, proxySchema, transactionProxySchema, benchmarkProxySchema, defaultsSchema, schema4, jsonStringify, prepareServer;
|
|
141217
141206
|
var init_studio = __esm({
|
|
141218
141207
|
"src/cli/commands/studio.ts"() {
|
|
141219
141208
|
"use strict";
|
|
@@ -141242,9 +141231,9 @@ var init_studio = __esm({
|
|
|
141242
141231
|
const imports = prepareFilenames(path2);
|
|
141243
141232
|
const pgSchema2 = {};
|
|
141244
141233
|
const relations = {};
|
|
141245
|
-
const files = imports.map((it,
|
|
141234
|
+
const files = imports.map((it, index6) => ({
|
|
141246
141235
|
// get the file name from the path
|
|
141247
|
-
name: it.split("/").pop() || `schema${
|
|
141236
|
+
name: it.split("/").pop() || `schema${index6}.ts`,
|
|
141248
141237
|
content: import_fs4.default.readFileSync(it, "utf-8")
|
|
141249
141238
|
}));
|
|
141250
141239
|
await safeRegister(async () => {
|
|
@@ -141254,9 +141243,9 @@ var init_studio = __esm({
|
|
|
141254
141243
|
const i0values = Object.entries(i0);
|
|
141255
141244
|
i0values.forEach(([k6, t7]) => {
|
|
141256
141245
|
if ((0, import_drizzle_orm.is)(t7, import_pg_core2.PgTable)) {
|
|
141257
|
-
const
|
|
141258
|
-
pgSchema2[
|
|
141259
|
-
pgSchema2[
|
|
141246
|
+
const schema5 = (0, import_pg_core2.getTableConfig)(t7).schema || "public";
|
|
141247
|
+
pgSchema2[schema5] = pgSchema2[schema5] || {};
|
|
141248
|
+
pgSchema2[schema5][k6] = t7;
|
|
141260
141249
|
}
|
|
141261
141250
|
if ((0, import_drizzle_orm.is)(t7, import_relations.Relations)) {
|
|
141262
141251
|
relations[k6] = t7;
|
|
@@ -141272,9 +141261,9 @@ var init_studio = __esm({
|
|
|
141272
141261
|
public: {}
|
|
141273
141262
|
};
|
|
141274
141263
|
const relations = {};
|
|
141275
|
-
const files = imports.map((it,
|
|
141264
|
+
const files = imports.map((it, index6) => ({
|
|
141276
141265
|
// get the file name from the path
|
|
141277
|
-
name: it.split("/").pop() || `schema${
|
|
141266
|
+
name: it.split("/").pop() || `schema${index6}.ts`,
|
|
141278
141267
|
content: import_fs4.default.readFileSync(it, "utf-8")
|
|
141279
141268
|
}));
|
|
141280
141269
|
await safeRegister(async () => {
|
|
@@ -141284,8 +141273,8 @@ var init_studio = __esm({
|
|
|
141284
141273
|
const i0values = Object.entries(i0);
|
|
141285
141274
|
i0values.forEach(([k6, t7]) => {
|
|
141286
141275
|
if ((0, import_drizzle_orm.is)(t7, import_mysql_core2.MySqlTable)) {
|
|
141287
|
-
const
|
|
141288
|
-
mysqlSchema[
|
|
141276
|
+
const schema5 = (0, import_mysql_core2.getTableConfig)(t7).schema || "public";
|
|
141277
|
+
mysqlSchema[schema5][k6] = t7;
|
|
141289
141278
|
}
|
|
141290
141279
|
if ((0, import_drizzle_orm.is)(t7, import_relations.Relations)) {
|
|
141291
141280
|
relations[k6] = t7;
|
|
@@ -141301,9 +141290,9 @@ var init_studio = __esm({
|
|
|
141301
141290
|
public: {}
|
|
141302
141291
|
};
|
|
141303
141292
|
const relations = {};
|
|
141304
|
-
const files = imports.map((it,
|
|
141293
|
+
const files = imports.map((it, index6) => ({
|
|
141305
141294
|
// get the file name from the path
|
|
141306
|
-
name: it.split("/").pop() || `schema${
|
|
141295
|
+
name: it.split("/").pop() || `schema${index6}.ts`,
|
|
141307
141296
|
content: import_fs4.default.readFileSync(it, "utf-8")
|
|
141308
141297
|
}));
|
|
141309
141298
|
await safeRegister(async () => {
|
|
@@ -141313,8 +141302,8 @@ var init_studio = __esm({
|
|
|
141313
141302
|
const i0values = Object.entries(i0);
|
|
141314
141303
|
i0values.forEach(([k6, t7]) => {
|
|
141315
141304
|
if ((0, import_drizzle_orm.is)(t7, import_mssql_core2.MsSqlTable)) {
|
|
141316
|
-
const
|
|
141317
|
-
mssqlSchema[
|
|
141305
|
+
const schema5 = (0, import_mssql_core2.getTableConfig)(t7).schema || "public";
|
|
141306
|
+
mssqlSchema[schema5][k6] = t7;
|
|
141318
141307
|
}
|
|
141319
141308
|
if ((0, import_drizzle_orm.is)(t7, import_relations.Relations)) {
|
|
141320
141309
|
relations[k6] = t7;
|
|
@@ -141330,9 +141319,9 @@ var init_studio = __esm({
|
|
|
141330
141319
|
public: {}
|
|
141331
141320
|
};
|
|
141332
141321
|
const relations = {};
|
|
141333
|
-
const files = imports.map((it,
|
|
141322
|
+
const files = imports.map((it, index6) => ({
|
|
141334
141323
|
// get the file name from the path
|
|
141335
|
-
name: it.split("/").pop() || `schema${
|
|
141324
|
+
name: it.split("/").pop() || `schema${index6}.ts`,
|
|
141336
141325
|
content: import_fs4.default.readFileSync(it, "utf-8")
|
|
141337
141326
|
}));
|
|
141338
141327
|
await safeRegister(async () => {
|
|
@@ -141342,8 +141331,8 @@ var init_studio = __esm({
|
|
|
141342
141331
|
const i0values = Object.entries(i0);
|
|
141343
141332
|
i0values.forEach(([k6, t7]) => {
|
|
141344
141333
|
if ((0, import_drizzle_orm.is)(t7, import_sqlite_core2.SQLiteTable)) {
|
|
141345
|
-
const
|
|
141346
|
-
sqliteSchema[
|
|
141334
|
+
const schema5 = "public";
|
|
141335
|
+
sqliteSchema[schema5][k6] = t7;
|
|
141347
141336
|
}
|
|
141348
141337
|
if ((0, import_drizzle_orm.is)(t7, import_relations.Relations)) {
|
|
141349
141338
|
relations[k6] = t7;
|
|
@@ -141359,9 +141348,9 @@ var init_studio = __esm({
|
|
|
141359
141348
|
public: {}
|
|
141360
141349
|
};
|
|
141361
141350
|
const relations = {};
|
|
141362
|
-
const files = imports.map((it,
|
|
141351
|
+
const files = imports.map((it, index6) => ({
|
|
141363
141352
|
// get the file name from the path
|
|
141364
|
-
name: it.split("/").pop() || `schema${
|
|
141353
|
+
name: it.split("/").pop() || `schema${index6}.ts`,
|
|
141365
141354
|
content: import_fs4.default.readFileSync(it, "utf-8")
|
|
141366
141355
|
}));
|
|
141367
141356
|
await safeRegister(async () => {
|
|
@@ -141371,8 +141360,8 @@ var init_studio = __esm({
|
|
|
141371
141360
|
const i0values = Object.entries(i0);
|
|
141372
141361
|
i0values.forEach(([k6, t7]) => {
|
|
141373
141362
|
if ((0, import_drizzle_orm.is)(t7, import_singlestore_core.SingleStoreTable)) {
|
|
141374
|
-
const
|
|
141375
|
-
singlestoreSchema[
|
|
141363
|
+
const schema5 = (0, import_singlestore_core.getTableConfig)(t7).schema || "public";
|
|
141364
|
+
singlestoreSchema[schema5][k6] = t7;
|
|
141376
141365
|
}
|
|
141377
141366
|
if ((0, import_drizzle_orm.is)(t7, import_relations.Relations)) {
|
|
141378
141367
|
relations[k6] = t7;
|
|
@@ -141382,27 +141371,27 @@ var init_studio = __esm({
|
|
|
141382
141371
|
});
|
|
141383
141372
|
return { schema: singlestoreSchema, relations, files };
|
|
141384
141373
|
};
|
|
141385
|
-
getCustomDefaults = (
|
|
141374
|
+
getCustomDefaults = (schema5, casing2) => {
|
|
141386
141375
|
const customDefaults = [];
|
|
141387
|
-
Object.entries(
|
|
141388
|
-
Object.entries(tables).map(([,
|
|
141376
|
+
Object.entries(schema5).map(([schema6, tables]) => {
|
|
141377
|
+
Object.entries(tables).map(([, table6]) => {
|
|
141389
141378
|
let tableConfig;
|
|
141390
|
-
if ((0, import_drizzle_orm.is)(
|
|
141391
|
-
tableConfig = (0, import_pg_core2.getTableConfig)(
|
|
141392
|
-
} else if ((0, import_drizzle_orm.is)(
|
|
141393
|
-
tableConfig = (0, import_mysql_core2.getTableConfig)(
|
|
141394
|
-
} else if ((0, import_drizzle_orm.is)(
|
|
141395
|
-
tableConfig = (0, import_sqlite_core2.getTableConfig)(
|
|
141379
|
+
if ((0, import_drizzle_orm.is)(table6, import_pg_core2.PgTable)) {
|
|
141380
|
+
tableConfig = (0, import_pg_core2.getTableConfig)(table6);
|
|
141381
|
+
} else if ((0, import_drizzle_orm.is)(table6, import_mysql_core2.MySqlTable)) {
|
|
141382
|
+
tableConfig = (0, import_mysql_core2.getTableConfig)(table6);
|
|
141383
|
+
} else if ((0, import_drizzle_orm.is)(table6, import_sqlite_core2.SQLiteTable)) {
|
|
141384
|
+
tableConfig = (0, import_sqlite_core2.getTableConfig)(table6);
|
|
141396
141385
|
} else {
|
|
141397
|
-
tableConfig = (0, import_singlestore_core.getTableConfig)(
|
|
141386
|
+
tableConfig = (0, import_singlestore_core.getTableConfig)(table6);
|
|
141398
141387
|
}
|
|
141399
|
-
tableConfig.columns.map((
|
|
141400
|
-
if (
|
|
141388
|
+
tableConfig.columns.map((column6) => {
|
|
141389
|
+
if (column6.defaultFn) {
|
|
141401
141390
|
customDefaults.push({
|
|
141402
|
-
schema:
|
|
141391
|
+
schema: schema6,
|
|
141403
141392
|
table: tableConfig.name,
|
|
141404
|
-
column: getColumnCasing(
|
|
141405
|
-
func:
|
|
141393
|
+
column: getColumnCasing(column6, casing2),
|
|
141394
|
+
func: column6.defaultFn
|
|
141406
141395
|
});
|
|
141407
141396
|
}
|
|
141408
141397
|
});
|
|
@@ -141660,7 +141649,7 @@ var init_studio = __esm({
|
|
|
141660
141649
|
})
|
|
141661
141650
|
).min(1)
|
|
141662
141651
|
});
|
|
141663
|
-
|
|
141652
|
+
schema4 = external_exports.union([
|
|
141664
141653
|
init2,
|
|
141665
141654
|
proxySchema,
|
|
141666
141655
|
transactionProxySchema,
|
|
@@ -141681,7 +141670,7 @@ var init_studio = __esm({
|
|
|
141681
141670
|
});
|
|
141682
141671
|
};
|
|
141683
141672
|
prepareServer = async ({
|
|
141684
|
-
dialect:
|
|
141673
|
+
dialect: dialect5,
|
|
141685
141674
|
driver: driver2,
|
|
141686
141675
|
packageName,
|
|
141687
141676
|
databaseName,
|
|
@@ -141711,10 +141700,10 @@ var init_studio = __esm({
|
|
|
141711
141700
|
});
|
|
141712
141701
|
const relationalSchema = {
|
|
141713
141702
|
...Object.fromEntries(
|
|
141714
|
-
Object.entries(drizzleSchema).map(([schemaName,
|
|
141715
|
-
const mappedTableEntries = Object.entries(
|
|
141716
|
-
([tableName,
|
|
141717
|
-
return [`__${schemaName}__.${tableName}`,
|
|
141703
|
+
Object.entries(drizzleSchema).map(([schemaName, schema5]) => {
|
|
141704
|
+
const mappedTableEntries = Object.entries(schema5).map(
|
|
141705
|
+
([tableName, table6]) => {
|
|
141706
|
+
return [`__${schemaName}__.${tableName}`, table6];
|
|
141718
141707
|
}
|
|
141719
141708
|
);
|
|
141720
141709
|
return mappedTableEntries;
|
|
@@ -141726,7 +141715,7 @@ var init_studio = __esm({
|
|
|
141726
141715
|
relationalSchema,
|
|
141727
141716
|
import_relations.createTableRelationsHelpers
|
|
141728
141717
|
);
|
|
141729
|
-
app.post("/", zValidator("json",
|
|
141718
|
+
app.post("/", zValidator("json", schema4), async (c6) => {
|
|
141730
141719
|
const body = c6.req.valid("json");
|
|
141731
141720
|
const { type } = body;
|
|
141732
141721
|
if (type === "init") {
|
|
@@ -141752,7 +141741,7 @@ var init_studio = __esm({
|
|
|
141752
141741
|
}
|
|
141753
141742
|
return c6.json({
|
|
141754
141743
|
version: "6.3",
|
|
141755
|
-
dialect:
|
|
141744
|
+
dialect: dialect5,
|
|
141756
141745
|
driver: driver2,
|
|
141757
141746
|
packageName,
|
|
141758
141747
|
schemaFiles,
|
|
@@ -141806,18 +141795,18 @@ var init_studio = __esm({
|
|
|
141806
141795
|
}
|
|
141807
141796
|
if (type === "defaults") {
|
|
141808
141797
|
const columns = body.data;
|
|
141809
|
-
const result2 = columns.map((
|
|
141798
|
+
const result2 = columns.map((column6) => {
|
|
141810
141799
|
const found = customDefaults.find((d6) => {
|
|
141811
|
-
return d6.schema ===
|
|
141800
|
+
return d6.schema === column6.schema && d6.table === column6.table && d6.column === column6.column;
|
|
141812
141801
|
});
|
|
141813
141802
|
if (!found) {
|
|
141814
141803
|
throw new Error(
|
|
141815
|
-
`Custom default not found for ${
|
|
141804
|
+
`Custom default not found for ${column6.schema}.${column6.table}.${column6.column}`
|
|
141816
141805
|
);
|
|
141817
141806
|
}
|
|
141818
141807
|
const value = found.func();
|
|
141819
141808
|
return {
|
|
141820
|
-
...
|
|
141809
|
+
...column6,
|
|
141821
141810
|
value
|
|
141822
141811
|
};
|
|
141823
141812
|
});
|
|
@@ -141869,9 +141858,9 @@ var startStudioServer = async (imports, credentials, options) => {
|
|
|
141869
141858
|
const relations = {};
|
|
141870
141859
|
Object.entries(imports).forEach(([k6, t7]) => {
|
|
141871
141860
|
if (is2(t7, MySqlTable2)) {
|
|
141872
|
-
const
|
|
141873
|
-
mysqlSchema[
|
|
141874
|
-
mysqlSchema[
|
|
141861
|
+
const schema5 = getTableConfig(t7).schema || "public";
|
|
141862
|
+
mysqlSchema[schema5] = mysqlSchema[schema5] || {};
|
|
141863
|
+
mysqlSchema[schema5][k6] = t7;
|
|
141875
141864
|
}
|
|
141876
141865
|
if (is2(t7, Relations2)) {
|
|
141877
141866
|
relations[k6] = t7;
|