@basemaps/server 8.0.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/basemaps-server.cjs +511 -141
- package/package.json +6 -6
package/bin/basemaps-server.cjs
CHANGED
|
@@ -9308,9 +9308,9 @@ __export(tslib_es6_exports, {
|
|
|
9308
9308
|
__asyncValues: () => __asyncValues,
|
|
9309
9309
|
__await: () => __await,
|
|
9310
9310
|
__awaiter: () => __awaiter,
|
|
9311
|
-
__classPrivateFieldGet: () =>
|
|
9311
|
+
__classPrivateFieldGet: () => __classPrivateFieldGet2,
|
|
9312
9312
|
__classPrivateFieldIn: () => __classPrivateFieldIn,
|
|
9313
|
-
__classPrivateFieldSet: () =>
|
|
9313
|
+
__classPrivateFieldSet: () => __classPrivateFieldSet2,
|
|
9314
9314
|
__createBinding: () => __createBinding,
|
|
9315
9315
|
__decorate: () => __decorate,
|
|
9316
9316
|
__disposeResources: () => __disposeResources,
|
|
@@ -9704,14 +9704,14 @@ function __importStar(mod) {
|
|
|
9704
9704
|
function __importDefault(mod) {
|
|
9705
9705
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
9706
9706
|
}
|
|
9707
|
-
function
|
|
9707
|
+
function __classPrivateFieldGet2(receiver, state, kind, f) {
|
|
9708
9708
|
if (kind === "a" && !f)
|
|
9709
9709
|
throw new TypeError("Private accessor was defined without a getter");
|
|
9710
9710
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
9711
9711
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
9712
9712
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
9713
9713
|
}
|
|
9714
|
-
function
|
|
9714
|
+
function __classPrivateFieldSet2(receiver, state, value, kind, f) {
|
|
9715
9715
|
if (kind === "m")
|
|
9716
9716
|
throw new TypeError("Private method is not writable");
|
|
9717
9717
|
if (kind === "a" && !f)
|
|
@@ -9883,8 +9883,8 @@ var init_tslib_es6 = __esm({
|
|
|
9883
9883
|
__makeTemplateObject,
|
|
9884
9884
|
__importStar,
|
|
9885
9885
|
__importDefault,
|
|
9886
|
-
__classPrivateFieldGet,
|
|
9887
|
-
__classPrivateFieldSet,
|
|
9886
|
+
__classPrivateFieldGet: __classPrivateFieldGet2,
|
|
9887
|
+
__classPrivateFieldSet: __classPrivateFieldSet2,
|
|
9888
9888
|
__classPrivateFieldIn,
|
|
9889
9889
|
__addDisposableResource,
|
|
9890
9890
|
__disposeResources,
|
|
@@ -13644,8 +13644,8 @@ __export(tslib_es6_exports2, {
|
|
|
13644
13644
|
__asyncValues: () => __asyncValues2,
|
|
13645
13645
|
__await: () => __await2,
|
|
13646
13646
|
__awaiter: () => __awaiter2,
|
|
13647
|
-
__classPrivateFieldGet: () =>
|
|
13648
|
-
__classPrivateFieldSet: () =>
|
|
13647
|
+
__classPrivateFieldGet: () => __classPrivateFieldGet3,
|
|
13648
|
+
__classPrivateFieldSet: () => __classPrivateFieldSet3,
|
|
13649
13649
|
__createBinding: () => __createBinding2,
|
|
13650
13650
|
__decorate: () => __decorate2,
|
|
13651
13651
|
__exportStar: () => __exportStar2,
|
|
@@ -13956,13 +13956,13 @@ function __importStar2(mod) {
|
|
|
13956
13956
|
function __importDefault2(mod) {
|
|
13957
13957
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
13958
13958
|
}
|
|
13959
|
-
function
|
|
13959
|
+
function __classPrivateFieldGet3(receiver, privateMap) {
|
|
13960
13960
|
if (!privateMap.has(receiver)) {
|
|
13961
13961
|
throw new TypeError("attempted to get private field on non-instance");
|
|
13962
13962
|
}
|
|
13963
13963
|
return privateMap.get(receiver);
|
|
13964
13964
|
}
|
|
13965
|
-
function
|
|
13965
|
+
function __classPrivateFieldSet3(receiver, privateMap, value) {
|
|
13966
13966
|
if (!privateMap.has(receiver)) {
|
|
13967
13967
|
throw new TypeError("attempted to set private field on non-instance");
|
|
13968
13968
|
}
|
|
@@ -42134,8 +42134,8 @@ __export(tslib_es6_exports3, {
|
|
|
42134
42134
|
__asyncValues: () => __asyncValues3,
|
|
42135
42135
|
__await: () => __await3,
|
|
42136
42136
|
__awaiter: () => __awaiter3,
|
|
42137
|
-
__classPrivateFieldGet: () =>
|
|
42138
|
-
__classPrivateFieldSet: () =>
|
|
42137
|
+
__classPrivateFieldGet: () => __classPrivateFieldGet4,
|
|
42138
|
+
__classPrivateFieldSet: () => __classPrivateFieldSet4,
|
|
42139
42139
|
__createBinding: () => __createBinding3,
|
|
42140
42140
|
__decorate: () => __decorate3,
|
|
42141
42141
|
__exportStar: () => __exportStar3,
|
|
@@ -42446,13 +42446,13 @@ function __importStar3(mod) {
|
|
|
42446
42446
|
function __importDefault3(mod) {
|
|
42447
42447
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
42448
42448
|
}
|
|
42449
|
-
function
|
|
42449
|
+
function __classPrivateFieldGet4(receiver, privateMap) {
|
|
42450
42450
|
if (!privateMap.has(receiver)) {
|
|
42451
42451
|
throw new TypeError("attempted to get private field on non-instance");
|
|
42452
42452
|
}
|
|
42453
42453
|
return privateMap.get(receiver);
|
|
42454
42454
|
}
|
|
42455
|
-
function
|
|
42455
|
+
function __classPrivateFieldSet4(receiver, privateMap, value) {
|
|
42456
42456
|
if (!privateMap.has(receiver)) {
|
|
42457
42457
|
throw new TypeError("attempted to set private field on non-instance");
|
|
42458
42458
|
}
|
|
@@ -124913,9 +124913,9 @@ var ulid2 = __toESM(require_index_umd(), 1);
|
|
|
124913
124913
|
var CliInfo = {
|
|
124914
124914
|
// Detect unlinked packages looks for this string since its a package name, slightly work around it
|
|
124915
124915
|
package: "@basemaps/cli",
|
|
124916
|
-
version: "
|
|
124917
|
-
hash: "
|
|
124918
|
-
buildId: "
|
|
124916
|
+
version: "v8.1.0-6-g69195be6",
|
|
124917
|
+
hash: "69195be692efa914369fa854d3bae16355dc0dc8",
|
|
124918
|
+
buildId: "15601557572-1"
|
|
124919
124919
|
};
|
|
124920
124920
|
var CliDate = (/* @__PURE__ */ new Date()).toISOString();
|
|
124921
124921
|
var CliId = ulid2.ulid();
|
|
@@ -125222,7 +125222,10 @@ var quotelessJson = (obj) => {
|
|
|
125222
125222
|
const json = JSON.stringify(obj, null, 2);
|
|
125223
125223
|
return json.replace(/"([^"]+)":/g, "$1:");
|
|
125224
125224
|
};
|
|
125225
|
-
var ZodError = class extends Error {
|
|
125225
|
+
var ZodError = class _ZodError extends Error {
|
|
125226
|
+
get errors() {
|
|
125227
|
+
return this.issues;
|
|
125228
|
+
}
|
|
125226
125229
|
constructor(issues) {
|
|
125227
125230
|
super();
|
|
125228
125231
|
this.issues = [];
|
|
@@ -125241,9 +125244,6 @@ var ZodError = class extends Error {
|
|
|
125241
125244
|
this.name = "ZodError";
|
|
125242
125245
|
this.issues = issues;
|
|
125243
125246
|
}
|
|
125244
|
-
get errors() {
|
|
125245
|
-
return this.issues;
|
|
125246
|
-
}
|
|
125247
125247
|
format(_mapper) {
|
|
125248
125248
|
const mapper = _mapper || function(issue) {
|
|
125249
125249
|
return issue.message;
|
|
@@ -125280,6 +125280,11 @@ var ZodError = class extends Error {
|
|
|
125280
125280
|
processError(this);
|
|
125281
125281
|
return fieldErrors;
|
|
125282
125282
|
}
|
|
125283
|
+
static assert(value) {
|
|
125284
|
+
if (!(value instanceof _ZodError)) {
|
|
125285
|
+
throw new Error(`Not a ZodError: ${value}`);
|
|
125286
|
+
}
|
|
125287
|
+
}
|
|
125283
125288
|
toString() {
|
|
125284
125289
|
return this.message;
|
|
125285
125290
|
}
|
|
@@ -125422,6 +125427,13 @@ var makeIssue = (params) => {
|
|
|
125422
125427
|
...issueData,
|
|
125423
125428
|
path: fullPath
|
|
125424
125429
|
};
|
|
125430
|
+
if (issueData.message !== void 0) {
|
|
125431
|
+
return {
|
|
125432
|
+
...issueData,
|
|
125433
|
+
path: fullPath,
|
|
125434
|
+
message: issueData.message
|
|
125435
|
+
};
|
|
125436
|
+
}
|
|
125425
125437
|
let errorMessage = "";
|
|
125426
125438
|
const maps = errorMaps.filter((m) => !!m).slice().reverse();
|
|
125427
125439
|
for (const map of maps) {
|
|
@@ -125430,20 +125442,24 @@ var makeIssue = (params) => {
|
|
|
125430
125442
|
return {
|
|
125431
125443
|
...issueData,
|
|
125432
125444
|
path: fullPath,
|
|
125433
|
-
message:
|
|
125445
|
+
message: errorMessage
|
|
125434
125446
|
};
|
|
125435
125447
|
};
|
|
125436
125448
|
var EMPTY_PATH = [];
|
|
125437
125449
|
function addIssueToContext(ctx, issueData) {
|
|
125450
|
+
const overrideMap = getErrorMap();
|
|
125438
125451
|
const issue = makeIssue({
|
|
125439
125452
|
issueData,
|
|
125440
125453
|
data: ctx.data,
|
|
125441
125454
|
path: ctx.path,
|
|
125442
125455
|
errorMaps: [
|
|
125443
125456
|
ctx.common.contextualErrorMap,
|
|
125457
|
+
// contextual error map is first priority
|
|
125444
125458
|
ctx.schemaErrorMap,
|
|
125445
|
-
|
|
125446
|
-
|
|
125459
|
+
// then schema-bound map if available
|
|
125460
|
+
overrideMap,
|
|
125461
|
+
// then global override map
|
|
125462
|
+
overrideMap === errorMap ? void 0 : errorMap
|
|
125447
125463
|
// then global default map
|
|
125448
125464
|
].filter((x) => !!x)
|
|
125449
125465
|
});
|
|
@@ -125475,9 +125491,11 @@ var ParseStatus = class _ParseStatus {
|
|
|
125475
125491
|
static async mergeObjectAsync(status, pairs) {
|
|
125476
125492
|
const syncPairs = [];
|
|
125477
125493
|
for (const pair of pairs) {
|
|
125494
|
+
const key = await pair.key;
|
|
125495
|
+
const value = await pair.value;
|
|
125478
125496
|
syncPairs.push({
|
|
125479
|
-
key
|
|
125480
|
-
value
|
|
125497
|
+
key,
|
|
125498
|
+
value
|
|
125481
125499
|
});
|
|
125482
125500
|
}
|
|
125483
125501
|
return _ParseStatus.mergeObjectSync(status, syncPairs);
|
|
@@ -125510,11 +125528,29 @@ var isAborted = (x) => x.status === "aborted";
|
|
|
125510
125528
|
var isDirty = (x) => x.status === "dirty";
|
|
125511
125529
|
var isValid = (x) => x.status === "valid";
|
|
125512
125530
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
125531
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
125532
|
+
if (kind === "a" && !f)
|
|
125533
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
125534
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
125535
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
125536
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
125537
|
+
}
|
|
125538
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
125539
|
+
if (kind === "m")
|
|
125540
|
+
throw new TypeError("Private method is not writable");
|
|
125541
|
+
if (kind === "a" && !f)
|
|
125542
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
125543
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
125544
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
125545
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
125546
|
+
}
|
|
125513
125547
|
var errorUtil;
|
|
125514
125548
|
(function(errorUtil2) {
|
|
125515
125549
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
125516
125550
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
125517
125551
|
})(errorUtil || (errorUtil = {}));
|
|
125552
|
+
var _ZodEnum_cache;
|
|
125553
|
+
var _ZodNativeEnum_cache;
|
|
125518
125554
|
var ParseInputLazyPath = class {
|
|
125519
125555
|
constructor(parent, value, path3, key) {
|
|
125520
125556
|
this._cachedPath = [];
|
|
@@ -125563,44 +125599,21 @@ function processCreateParams(params) {
|
|
|
125563
125599
|
if (errorMap2)
|
|
125564
125600
|
return { errorMap: errorMap2, description };
|
|
125565
125601
|
const customMap = (iss, ctx) => {
|
|
125566
|
-
|
|
125567
|
-
|
|
125602
|
+
var _a2, _b;
|
|
125603
|
+
const { message } = params;
|
|
125604
|
+
if (iss.code === "invalid_enum_value") {
|
|
125605
|
+
return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
|
|
125606
|
+
}
|
|
125568
125607
|
if (typeof ctx.data === "undefined") {
|
|
125569
|
-
return { message:
|
|
125608
|
+
return { message: (_a2 = message !== null && message !== void 0 ? message : required_error) !== null && _a2 !== void 0 ? _a2 : ctx.defaultError };
|
|
125570
125609
|
}
|
|
125571
|
-
|
|
125610
|
+
if (iss.code !== "invalid_type")
|
|
125611
|
+
return { message: ctx.defaultError };
|
|
125612
|
+
return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };
|
|
125572
125613
|
};
|
|
125573
125614
|
return { errorMap: customMap, description };
|
|
125574
125615
|
}
|
|
125575
125616
|
var ZodType = class {
|
|
125576
|
-
constructor(def) {
|
|
125577
|
-
this.spa = this.safeParseAsync;
|
|
125578
|
-
this._def = def;
|
|
125579
|
-
this.parse = this.parse.bind(this);
|
|
125580
|
-
this.safeParse = this.safeParse.bind(this);
|
|
125581
|
-
this.parseAsync = this.parseAsync.bind(this);
|
|
125582
|
-
this.safeParseAsync = this.safeParseAsync.bind(this);
|
|
125583
|
-
this.spa = this.spa.bind(this);
|
|
125584
|
-
this.refine = this.refine.bind(this);
|
|
125585
|
-
this.refinement = this.refinement.bind(this);
|
|
125586
|
-
this.superRefine = this.superRefine.bind(this);
|
|
125587
|
-
this.optional = this.optional.bind(this);
|
|
125588
|
-
this.nullable = this.nullable.bind(this);
|
|
125589
|
-
this.nullish = this.nullish.bind(this);
|
|
125590
|
-
this.array = this.array.bind(this);
|
|
125591
|
-
this.promise = this.promise.bind(this);
|
|
125592
|
-
this.or = this.or.bind(this);
|
|
125593
|
-
this.and = this.and.bind(this);
|
|
125594
|
-
this.transform = this.transform.bind(this);
|
|
125595
|
-
this.brand = this.brand.bind(this);
|
|
125596
|
-
this.default = this.default.bind(this);
|
|
125597
|
-
this.catch = this.catch.bind(this);
|
|
125598
|
-
this.describe = this.describe.bind(this);
|
|
125599
|
-
this.pipe = this.pipe.bind(this);
|
|
125600
|
-
this.readonly = this.readonly.bind(this);
|
|
125601
|
-
this.isNullable = this.isNullable.bind(this);
|
|
125602
|
-
this.isOptional = this.isOptional.bind(this);
|
|
125603
|
-
}
|
|
125604
125617
|
get description() {
|
|
125605
125618
|
return this._def.description;
|
|
125606
125619
|
}
|
|
@@ -125664,6 +125677,43 @@ var ZodType = class {
|
|
|
125664
125677
|
const result = this._parseSync({ data, path: ctx.path, parent: ctx });
|
|
125665
125678
|
return handleResult(ctx, result);
|
|
125666
125679
|
}
|
|
125680
|
+
"~validate"(data) {
|
|
125681
|
+
var _a2, _b;
|
|
125682
|
+
const ctx = {
|
|
125683
|
+
common: {
|
|
125684
|
+
issues: [],
|
|
125685
|
+
async: !!this["~standard"].async
|
|
125686
|
+
},
|
|
125687
|
+
path: [],
|
|
125688
|
+
schemaErrorMap: this._def.errorMap,
|
|
125689
|
+
parent: null,
|
|
125690
|
+
data,
|
|
125691
|
+
parsedType: getParsedType(data)
|
|
125692
|
+
};
|
|
125693
|
+
if (!this["~standard"].async) {
|
|
125694
|
+
try {
|
|
125695
|
+
const result = this._parseSync({ data, path: [], parent: ctx });
|
|
125696
|
+
return isValid(result) ? {
|
|
125697
|
+
value: result.value
|
|
125698
|
+
} : {
|
|
125699
|
+
issues: ctx.common.issues
|
|
125700
|
+
};
|
|
125701
|
+
} catch (err) {
|
|
125702
|
+
if ((_b = (_a2 = err === null || err === void 0 ? void 0 : err.message) === null || _a2 === void 0 ? void 0 : _a2.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes("encountered")) {
|
|
125703
|
+
this["~standard"].async = true;
|
|
125704
|
+
}
|
|
125705
|
+
ctx.common = {
|
|
125706
|
+
issues: [],
|
|
125707
|
+
async: true
|
|
125708
|
+
};
|
|
125709
|
+
}
|
|
125710
|
+
}
|
|
125711
|
+
return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result) ? {
|
|
125712
|
+
value: result.value
|
|
125713
|
+
} : {
|
|
125714
|
+
issues: ctx.common.issues
|
|
125715
|
+
});
|
|
125716
|
+
}
|
|
125667
125717
|
async parseAsync(data, params) {
|
|
125668
125718
|
const result = await this.safeParseAsync(data, params);
|
|
125669
125719
|
if (result.success)
|
|
@@ -125741,6 +125791,39 @@ var ZodType = class {
|
|
|
125741
125791
|
superRefine(refinement) {
|
|
125742
125792
|
return this._refinement(refinement);
|
|
125743
125793
|
}
|
|
125794
|
+
constructor(def) {
|
|
125795
|
+
this.spa = this.safeParseAsync;
|
|
125796
|
+
this._def = def;
|
|
125797
|
+
this.parse = this.parse.bind(this);
|
|
125798
|
+
this.safeParse = this.safeParse.bind(this);
|
|
125799
|
+
this.parseAsync = this.parseAsync.bind(this);
|
|
125800
|
+
this.safeParseAsync = this.safeParseAsync.bind(this);
|
|
125801
|
+
this.spa = this.spa.bind(this);
|
|
125802
|
+
this.refine = this.refine.bind(this);
|
|
125803
|
+
this.refinement = this.refinement.bind(this);
|
|
125804
|
+
this.superRefine = this.superRefine.bind(this);
|
|
125805
|
+
this.optional = this.optional.bind(this);
|
|
125806
|
+
this.nullable = this.nullable.bind(this);
|
|
125807
|
+
this.nullish = this.nullish.bind(this);
|
|
125808
|
+
this.array = this.array.bind(this);
|
|
125809
|
+
this.promise = this.promise.bind(this);
|
|
125810
|
+
this.or = this.or.bind(this);
|
|
125811
|
+
this.and = this.and.bind(this);
|
|
125812
|
+
this.transform = this.transform.bind(this);
|
|
125813
|
+
this.brand = this.brand.bind(this);
|
|
125814
|
+
this.default = this.default.bind(this);
|
|
125815
|
+
this.catch = this.catch.bind(this);
|
|
125816
|
+
this.describe = this.describe.bind(this);
|
|
125817
|
+
this.pipe = this.pipe.bind(this);
|
|
125818
|
+
this.readonly = this.readonly.bind(this);
|
|
125819
|
+
this.isNullable = this.isNullable.bind(this);
|
|
125820
|
+
this.isOptional = this.isOptional.bind(this);
|
|
125821
|
+
this["~standard"] = {
|
|
125822
|
+
version: 1,
|
|
125823
|
+
vendor: "zod",
|
|
125824
|
+
validate: (data) => this["~validate"](data)
|
|
125825
|
+
};
|
|
125826
|
+
}
|
|
125744
125827
|
optional() {
|
|
125745
125828
|
return ZodOptional.create(this, this._def);
|
|
125746
125829
|
}
|
|
@@ -125751,7 +125834,7 @@ var ZodType = class {
|
|
|
125751
125834
|
return this.nullable().optional();
|
|
125752
125835
|
}
|
|
125753
125836
|
array() {
|
|
125754
|
-
return ZodArray.create(this
|
|
125837
|
+
return ZodArray.create(this);
|
|
125755
125838
|
}
|
|
125756
125839
|
promise() {
|
|
125757
125840
|
return ZodPromise.create(this, this._def);
|
|
@@ -125816,35 +125899,45 @@ var ZodType = class {
|
|
|
125816
125899
|
}
|
|
125817
125900
|
};
|
|
125818
125901
|
var cuidRegex = /^c[^\s-]{8,}$/i;
|
|
125819
|
-
var cuid2Regex = /^[
|
|
125820
|
-
var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}
|
|
125902
|
+
var cuid2Regex = /^[0-9a-z]+$/;
|
|
125903
|
+
var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
|
|
125821
125904
|
var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
|
|
125822
|
-
var
|
|
125905
|
+
var nanoidRegex = /^[a-z0-9_-]{21}$/i;
|
|
125906
|
+
var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
|
|
125907
|
+
var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
125908
|
+
var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
|
|
125823
125909
|
var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
125824
125910
|
var emojiRegex;
|
|
125825
|
-
var ipv4Regex = /^((
|
|
125826
|
-
var
|
|
125827
|
-
var
|
|
125911
|
+
var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
125912
|
+
var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
|
|
125913
|
+
var ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
|
|
125914
|
+
var ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
125915
|
+
var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
|
|
125916
|
+
var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
|
|
125917
|
+
var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
|
|
125918
|
+
var dateRegex = new RegExp(`^${dateRegexSource}$`);
|
|
125919
|
+
function timeRegexSource(args) {
|
|
125920
|
+
let secondsRegexSource = `[0-5]\\d`;
|
|
125828
125921
|
if (args.precision) {
|
|
125829
|
-
|
|
125830
|
-
|
|
125831
|
-
|
|
125832
|
-
return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${args.precision}}Z$`);
|
|
125833
|
-
}
|
|
125834
|
-
} else if (args.precision === 0) {
|
|
125835
|
-
if (args.offset) {
|
|
125836
|
-
return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$`);
|
|
125837
|
-
} else {
|
|
125838
|
-
return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$`);
|
|
125839
|
-
}
|
|
125840
|
-
} else {
|
|
125841
|
-
if (args.offset) {
|
|
125842
|
-
return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$`);
|
|
125843
|
-
} else {
|
|
125844
|
-
return new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$`);
|
|
125845
|
-
}
|
|
125922
|
+
secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
|
|
125923
|
+
} else if (args.precision == null) {
|
|
125924
|
+
secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
|
|
125846
125925
|
}
|
|
125847
|
-
|
|
125926
|
+
const secondsQuantifier = args.precision ? "+" : "?";
|
|
125927
|
+
return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
|
|
125928
|
+
}
|
|
125929
|
+
function timeRegex(args) {
|
|
125930
|
+
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
125931
|
+
}
|
|
125932
|
+
function datetimeRegex(args) {
|
|
125933
|
+
let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
|
|
125934
|
+
const opts = [];
|
|
125935
|
+
opts.push(args.local ? `Z?` : `Z`);
|
|
125936
|
+
if (args.offset)
|
|
125937
|
+
opts.push(`([+-]\\d{2}:?\\d{2})`);
|
|
125938
|
+
regex = `${regex}(${opts.join("|")})`;
|
|
125939
|
+
return new RegExp(`^${regex}$`);
|
|
125940
|
+
}
|
|
125848
125941
|
function isValidIP(ip, version3) {
|
|
125849
125942
|
if ((version3 === "v4" || !version3) && ipv4Regex.test(ip)) {
|
|
125850
125943
|
return true;
|
|
@@ -125854,6 +125947,33 @@ function isValidIP(ip, version3) {
|
|
|
125854
125947
|
}
|
|
125855
125948
|
return false;
|
|
125856
125949
|
}
|
|
125950
|
+
function isValidJWT(jwt, alg) {
|
|
125951
|
+
if (!jwtRegex.test(jwt))
|
|
125952
|
+
return false;
|
|
125953
|
+
try {
|
|
125954
|
+
const [header] = jwt.split(".");
|
|
125955
|
+
const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
|
|
125956
|
+
const decoded = JSON.parse(atob(base64));
|
|
125957
|
+
if (typeof decoded !== "object" || decoded === null)
|
|
125958
|
+
return false;
|
|
125959
|
+
if (!decoded.typ || !decoded.alg)
|
|
125960
|
+
return false;
|
|
125961
|
+
if (alg && decoded.alg !== alg)
|
|
125962
|
+
return false;
|
|
125963
|
+
return true;
|
|
125964
|
+
} catch (_a2) {
|
|
125965
|
+
return false;
|
|
125966
|
+
}
|
|
125967
|
+
}
|
|
125968
|
+
function isValidCidr(ip, version3) {
|
|
125969
|
+
if ((version3 === "v4" || !version3) && ipv4CidrRegex.test(ip)) {
|
|
125970
|
+
return true;
|
|
125971
|
+
}
|
|
125972
|
+
if ((version3 === "v6" || !version3) && ipv6CidrRegex.test(ip)) {
|
|
125973
|
+
return true;
|
|
125974
|
+
}
|
|
125975
|
+
return false;
|
|
125976
|
+
}
|
|
125857
125977
|
var ZodString = class _ZodString extends ZodType {
|
|
125858
125978
|
_parse(input) {
|
|
125859
125979
|
if (this._def.coerce) {
|
|
@@ -125862,15 +125982,11 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
125862
125982
|
const parsedType = this._getType(input);
|
|
125863
125983
|
if (parsedType !== ZodParsedType.string) {
|
|
125864
125984
|
const ctx2 = this._getOrReturnCtx(input);
|
|
125865
|
-
addIssueToContext(
|
|
125866
|
-
|
|
125867
|
-
|
|
125868
|
-
|
|
125869
|
-
|
|
125870
|
-
received: ctx2.parsedType
|
|
125871
|
-
}
|
|
125872
|
-
//
|
|
125873
|
-
);
|
|
125985
|
+
addIssueToContext(ctx2, {
|
|
125986
|
+
code: ZodIssueCode.invalid_type,
|
|
125987
|
+
expected: ZodParsedType.string,
|
|
125988
|
+
received: ctx2.parsedType
|
|
125989
|
+
});
|
|
125874
125990
|
return INVALID;
|
|
125875
125991
|
}
|
|
125876
125992
|
const status = new ParseStatus();
|
|
@@ -125961,6 +126077,16 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
125961
126077
|
});
|
|
125962
126078
|
status.dirty();
|
|
125963
126079
|
}
|
|
126080
|
+
} else if (check.kind === "nanoid") {
|
|
126081
|
+
if (!nanoidRegex.test(input.data)) {
|
|
126082
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
126083
|
+
addIssueToContext(ctx, {
|
|
126084
|
+
validation: "nanoid",
|
|
126085
|
+
code: ZodIssueCode.invalid_string,
|
|
126086
|
+
message: check.message
|
|
126087
|
+
});
|
|
126088
|
+
status.dirty();
|
|
126089
|
+
}
|
|
125964
126090
|
} else if (check.kind === "cuid") {
|
|
125965
126091
|
if (!cuidRegex.test(input.data)) {
|
|
125966
126092
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
@@ -126062,6 +126188,38 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
126062
126188
|
});
|
|
126063
126189
|
status.dirty();
|
|
126064
126190
|
}
|
|
126191
|
+
} else if (check.kind === "date") {
|
|
126192
|
+
const regex = dateRegex;
|
|
126193
|
+
if (!regex.test(input.data)) {
|
|
126194
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
126195
|
+
addIssueToContext(ctx, {
|
|
126196
|
+
code: ZodIssueCode.invalid_string,
|
|
126197
|
+
validation: "date",
|
|
126198
|
+
message: check.message
|
|
126199
|
+
});
|
|
126200
|
+
status.dirty();
|
|
126201
|
+
}
|
|
126202
|
+
} else if (check.kind === "time") {
|
|
126203
|
+
const regex = timeRegex(check);
|
|
126204
|
+
if (!regex.test(input.data)) {
|
|
126205
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
126206
|
+
addIssueToContext(ctx, {
|
|
126207
|
+
code: ZodIssueCode.invalid_string,
|
|
126208
|
+
validation: "time",
|
|
126209
|
+
message: check.message
|
|
126210
|
+
});
|
|
126211
|
+
status.dirty();
|
|
126212
|
+
}
|
|
126213
|
+
} else if (check.kind === "duration") {
|
|
126214
|
+
if (!durationRegex.test(input.data)) {
|
|
126215
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
126216
|
+
addIssueToContext(ctx, {
|
|
126217
|
+
validation: "duration",
|
|
126218
|
+
code: ZodIssueCode.invalid_string,
|
|
126219
|
+
message: check.message
|
|
126220
|
+
});
|
|
126221
|
+
status.dirty();
|
|
126222
|
+
}
|
|
126065
126223
|
} else if (check.kind === "ip") {
|
|
126066
126224
|
if (!isValidIP(input.data, check.version)) {
|
|
126067
126225
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
@@ -126072,6 +126230,46 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
126072
126230
|
});
|
|
126073
126231
|
status.dirty();
|
|
126074
126232
|
}
|
|
126233
|
+
} else if (check.kind === "jwt") {
|
|
126234
|
+
if (!isValidJWT(input.data, check.alg)) {
|
|
126235
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
126236
|
+
addIssueToContext(ctx, {
|
|
126237
|
+
validation: "jwt",
|
|
126238
|
+
code: ZodIssueCode.invalid_string,
|
|
126239
|
+
message: check.message
|
|
126240
|
+
});
|
|
126241
|
+
status.dirty();
|
|
126242
|
+
}
|
|
126243
|
+
} else if (check.kind === "cidr") {
|
|
126244
|
+
if (!isValidCidr(input.data, check.version)) {
|
|
126245
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
126246
|
+
addIssueToContext(ctx, {
|
|
126247
|
+
validation: "cidr",
|
|
126248
|
+
code: ZodIssueCode.invalid_string,
|
|
126249
|
+
message: check.message
|
|
126250
|
+
});
|
|
126251
|
+
status.dirty();
|
|
126252
|
+
}
|
|
126253
|
+
} else if (check.kind === "base64") {
|
|
126254
|
+
if (!base64Regex.test(input.data)) {
|
|
126255
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
126256
|
+
addIssueToContext(ctx, {
|
|
126257
|
+
validation: "base64",
|
|
126258
|
+
code: ZodIssueCode.invalid_string,
|
|
126259
|
+
message: check.message
|
|
126260
|
+
});
|
|
126261
|
+
status.dirty();
|
|
126262
|
+
}
|
|
126263
|
+
} else if (check.kind === "base64url") {
|
|
126264
|
+
if (!base64urlRegex.test(input.data)) {
|
|
126265
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
126266
|
+
addIssueToContext(ctx, {
|
|
126267
|
+
validation: "base64url",
|
|
126268
|
+
code: ZodIssueCode.invalid_string,
|
|
126269
|
+
message: check.message
|
|
126270
|
+
});
|
|
126271
|
+
status.dirty();
|
|
126272
|
+
}
|
|
126075
126273
|
} else {
|
|
126076
126274
|
util.assertNever(check);
|
|
126077
126275
|
}
|
|
@@ -126103,6 +126301,9 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
126103
126301
|
uuid(message) {
|
|
126104
126302
|
return this._addCheck({ kind: "uuid", ...errorUtil.errToObj(message) });
|
|
126105
126303
|
}
|
|
126304
|
+
nanoid(message) {
|
|
126305
|
+
return this._addCheck({ kind: "nanoid", ...errorUtil.errToObj(message) });
|
|
126306
|
+
}
|
|
126106
126307
|
cuid(message) {
|
|
126107
126308
|
return this._addCheck({ kind: "cuid", ...errorUtil.errToObj(message) });
|
|
126108
126309
|
}
|
|
@@ -126112,16 +126313,32 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
126112
126313
|
ulid(message) {
|
|
126113
126314
|
return this._addCheck({ kind: "ulid", ...errorUtil.errToObj(message) });
|
|
126114
126315
|
}
|
|
126316
|
+
base64(message) {
|
|
126317
|
+
return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
|
|
126318
|
+
}
|
|
126319
|
+
base64url(message) {
|
|
126320
|
+
return this._addCheck({
|
|
126321
|
+
kind: "base64url",
|
|
126322
|
+
...errorUtil.errToObj(message)
|
|
126323
|
+
});
|
|
126324
|
+
}
|
|
126325
|
+
jwt(options) {
|
|
126326
|
+
return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) });
|
|
126327
|
+
}
|
|
126115
126328
|
ip(options) {
|
|
126116
126329
|
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
|
126117
126330
|
}
|
|
126331
|
+
cidr(options) {
|
|
126332
|
+
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
126333
|
+
}
|
|
126118
126334
|
datetime(options) {
|
|
126119
|
-
var _a2;
|
|
126335
|
+
var _a2, _b;
|
|
126120
126336
|
if (typeof options === "string") {
|
|
126121
126337
|
return this._addCheck({
|
|
126122
126338
|
kind: "datetime",
|
|
126123
126339
|
precision: null,
|
|
126124
126340
|
offset: false,
|
|
126341
|
+
local: false,
|
|
126125
126342
|
message: options
|
|
126126
126343
|
});
|
|
126127
126344
|
}
|
|
@@ -126129,9 +126346,30 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
126129
126346
|
kind: "datetime",
|
|
126130
126347
|
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
|
126131
126348
|
offset: (_a2 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a2 !== void 0 ? _a2 : false,
|
|
126349
|
+
local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,
|
|
126350
|
+
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
|
126351
|
+
});
|
|
126352
|
+
}
|
|
126353
|
+
date(message) {
|
|
126354
|
+
return this._addCheck({ kind: "date", message });
|
|
126355
|
+
}
|
|
126356
|
+
time(options) {
|
|
126357
|
+
if (typeof options === "string") {
|
|
126358
|
+
return this._addCheck({
|
|
126359
|
+
kind: "time",
|
|
126360
|
+
precision: null,
|
|
126361
|
+
message: options
|
|
126362
|
+
});
|
|
126363
|
+
}
|
|
126364
|
+
return this._addCheck({
|
|
126365
|
+
kind: "time",
|
|
126366
|
+
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
|
126132
126367
|
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
|
126133
126368
|
});
|
|
126134
126369
|
}
|
|
126370
|
+
duration(message) {
|
|
126371
|
+
return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });
|
|
126372
|
+
}
|
|
126135
126373
|
regex(regex, message) {
|
|
126136
126374
|
return this._addCheck({
|
|
126137
126375
|
kind: "regex",
|
|
@@ -126183,8 +126421,7 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
126183
126421
|
});
|
|
126184
126422
|
}
|
|
126185
126423
|
/**
|
|
126186
|
-
*
|
|
126187
|
-
* @see {@link ZodString.min}
|
|
126424
|
+
* Equivalent to `.min(1)`
|
|
126188
126425
|
*/
|
|
126189
126426
|
nonempty(message) {
|
|
126190
126427
|
return this.min(1, errorUtil.errToObj(message));
|
|
@@ -126210,6 +126447,15 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
126210
126447
|
get isDatetime() {
|
|
126211
126448
|
return !!this._def.checks.find((ch) => ch.kind === "datetime");
|
|
126212
126449
|
}
|
|
126450
|
+
get isDate() {
|
|
126451
|
+
return !!this._def.checks.find((ch) => ch.kind === "date");
|
|
126452
|
+
}
|
|
126453
|
+
get isTime() {
|
|
126454
|
+
return !!this._def.checks.find((ch) => ch.kind === "time");
|
|
126455
|
+
}
|
|
126456
|
+
get isDuration() {
|
|
126457
|
+
return !!this._def.checks.find((ch) => ch.kind === "duration");
|
|
126458
|
+
}
|
|
126213
126459
|
get isEmail() {
|
|
126214
126460
|
return !!this._def.checks.find((ch) => ch.kind === "email");
|
|
126215
126461
|
}
|
|
@@ -126222,6 +126468,9 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
126222
126468
|
get isUUID() {
|
|
126223
126469
|
return !!this._def.checks.find((ch) => ch.kind === "uuid");
|
|
126224
126470
|
}
|
|
126471
|
+
get isNANOID() {
|
|
126472
|
+
return !!this._def.checks.find((ch) => ch.kind === "nanoid");
|
|
126473
|
+
}
|
|
126225
126474
|
get isCUID() {
|
|
126226
126475
|
return !!this._def.checks.find((ch) => ch.kind === "cuid");
|
|
126227
126476
|
}
|
|
@@ -126234,6 +126483,15 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
126234
126483
|
get isIP() {
|
|
126235
126484
|
return !!this._def.checks.find((ch) => ch.kind === "ip");
|
|
126236
126485
|
}
|
|
126486
|
+
get isCIDR() {
|
|
126487
|
+
return !!this._def.checks.find((ch) => ch.kind === "cidr");
|
|
126488
|
+
}
|
|
126489
|
+
get isBase64() {
|
|
126490
|
+
return !!this._def.checks.find((ch) => ch.kind === "base64");
|
|
126491
|
+
}
|
|
126492
|
+
get isBase64url() {
|
|
126493
|
+
return !!this._def.checks.find((ch) => ch.kind === "base64url");
|
|
126494
|
+
}
|
|
126237
126495
|
get minLength() {
|
|
126238
126496
|
let min = null;
|
|
126239
126497
|
for (const ch of this._def.checks) {
|
|
@@ -126511,17 +126769,15 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
126511
126769
|
}
|
|
126512
126770
|
_parse(input) {
|
|
126513
126771
|
if (this._def.coerce) {
|
|
126514
|
-
|
|
126772
|
+
try {
|
|
126773
|
+
input.data = BigInt(input.data);
|
|
126774
|
+
} catch (_a2) {
|
|
126775
|
+
return this._getInvalidInput(input);
|
|
126776
|
+
}
|
|
126515
126777
|
}
|
|
126516
126778
|
const parsedType = this._getType(input);
|
|
126517
126779
|
if (parsedType !== ZodParsedType.bigint) {
|
|
126518
|
-
|
|
126519
|
-
addIssueToContext(ctx2, {
|
|
126520
|
-
code: ZodIssueCode.invalid_type,
|
|
126521
|
-
expected: ZodParsedType.bigint,
|
|
126522
|
-
received: ctx2.parsedType
|
|
126523
|
-
});
|
|
126524
|
-
return INVALID;
|
|
126780
|
+
return this._getInvalidInput(input);
|
|
126525
126781
|
}
|
|
126526
126782
|
let ctx = void 0;
|
|
126527
126783
|
const status = new ParseStatus();
|
|
@@ -126568,6 +126824,15 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
126568
126824
|
}
|
|
126569
126825
|
return { status: status.value, value: input.data };
|
|
126570
126826
|
}
|
|
126827
|
+
_getInvalidInput(input) {
|
|
126828
|
+
const ctx = this._getOrReturnCtx(input);
|
|
126829
|
+
addIssueToContext(ctx, {
|
|
126830
|
+
code: ZodIssueCode.invalid_type,
|
|
126831
|
+
expected: ZodParsedType.bigint,
|
|
126832
|
+
received: ctx.parsedType
|
|
126833
|
+
});
|
|
126834
|
+
return INVALID;
|
|
126835
|
+
}
|
|
126571
126836
|
gte(value, message) {
|
|
126572
126837
|
return this.setLimit("min", value, true, errorUtil.toString(message));
|
|
126573
126838
|
}
|
|
@@ -127147,9 +127412,10 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
127147
127412
|
const syncPairs = [];
|
|
127148
127413
|
for (const pair of pairs) {
|
|
127149
127414
|
const key = await pair.key;
|
|
127415
|
+
const value = await pair.value;
|
|
127150
127416
|
syncPairs.push({
|
|
127151
127417
|
key,
|
|
127152
|
-
value
|
|
127418
|
+
value,
|
|
127153
127419
|
alwaysSet: pair.alwaysSet
|
|
127154
127420
|
});
|
|
127155
127421
|
}
|
|
@@ -127500,15 +127766,25 @@ var getDiscriminator = (type) => {
|
|
|
127500
127766
|
} else if (type instanceof ZodEnum) {
|
|
127501
127767
|
return type.options;
|
|
127502
127768
|
} else if (type instanceof ZodNativeEnum) {
|
|
127503
|
-
return
|
|
127769
|
+
return util.objectValues(type.enum);
|
|
127504
127770
|
} else if (type instanceof ZodDefault) {
|
|
127505
127771
|
return getDiscriminator(type._def.innerType);
|
|
127506
127772
|
} else if (type instanceof ZodUndefined) {
|
|
127507
127773
|
return [void 0];
|
|
127508
127774
|
} else if (type instanceof ZodNull) {
|
|
127509
127775
|
return [null];
|
|
127776
|
+
} else if (type instanceof ZodOptional) {
|
|
127777
|
+
return [void 0, ...getDiscriminator(type.unwrap())];
|
|
127778
|
+
} else if (type instanceof ZodNullable) {
|
|
127779
|
+
return [null, ...getDiscriminator(type.unwrap())];
|
|
127780
|
+
} else if (type instanceof ZodBranded) {
|
|
127781
|
+
return getDiscriminator(type.unwrap());
|
|
127782
|
+
} else if (type instanceof ZodReadonly) {
|
|
127783
|
+
return getDiscriminator(type.unwrap());
|
|
127784
|
+
} else if (type instanceof ZodCatch) {
|
|
127785
|
+
return getDiscriminator(type._def.innerType);
|
|
127510
127786
|
} else {
|
|
127511
|
-
return
|
|
127787
|
+
return [];
|
|
127512
127788
|
}
|
|
127513
127789
|
};
|
|
127514
127790
|
var ZodDiscriminatedUnion = class _ZodDiscriminatedUnion extends ZodType {
|
|
@@ -127568,7 +127844,7 @@ var ZodDiscriminatedUnion = class _ZodDiscriminatedUnion extends ZodType {
|
|
|
127568
127844
|
const optionsMap = /* @__PURE__ */ new Map();
|
|
127569
127845
|
for (const type of options) {
|
|
127570
127846
|
const discriminatorValues = getDiscriminator(type.shape[discriminator]);
|
|
127571
|
-
if (!discriminatorValues) {
|
|
127847
|
+
if (!discriminatorValues.length) {
|
|
127572
127848
|
throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
|
|
127573
127849
|
}
|
|
127574
127850
|
for (const value of discriminatorValues) {
|
|
@@ -127768,7 +128044,8 @@ var ZodRecord = class _ZodRecord extends ZodType {
|
|
|
127768
128044
|
for (const key in ctx.data) {
|
|
127769
128045
|
pairs.push({
|
|
127770
128046
|
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
|
|
127771
|
-
value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key))
|
|
128047
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
|
|
128048
|
+
alwaysSet: key in ctx.data
|
|
127772
128049
|
});
|
|
127773
128050
|
}
|
|
127774
128051
|
if (ctx.common.async) {
|
|
@@ -128112,6 +128389,10 @@ function createZodEnum(values, params) {
|
|
|
128112
128389
|
});
|
|
128113
128390
|
}
|
|
128114
128391
|
var ZodEnum = class _ZodEnum extends ZodType {
|
|
128392
|
+
constructor() {
|
|
128393
|
+
super(...arguments);
|
|
128394
|
+
_ZodEnum_cache.set(this, void 0);
|
|
128395
|
+
}
|
|
128115
128396
|
_parse(input) {
|
|
128116
128397
|
if (typeof input.data !== "string") {
|
|
128117
128398
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -128123,7 +128404,10 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
128123
128404
|
});
|
|
128124
128405
|
return INVALID;
|
|
128125
128406
|
}
|
|
128126
|
-
if (this
|
|
128407
|
+
if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f")) {
|
|
128408
|
+
__classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
|
|
128409
|
+
}
|
|
128410
|
+
if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {
|
|
128127
128411
|
const ctx = this._getOrReturnCtx(input);
|
|
128128
128412
|
const expectedValues = this._def.values;
|
|
128129
128413
|
addIssueToContext(ctx, {
|
|
@@ -128159,15 +128443,26 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
128159
128443
|
}
|
|
128160
128444
|
return enumValues;
|
|
128161
128445
|
}
|
|
128162
|
-
extract(values) {
|
|
128163
|
-
return _ZodEnum.create(values
|
|
128446
|
+
extract(values, newDef = this._def) {
|
|
128447
|
+
return _ZodEnum.create(values, {
|
|
128448
|
+
...this._def,
|
|
128449
|
+
...newDef
|
|
128450
|
+
});
|
|
128164
128451
|
}
|
|
128165
|
-
exclude(values) {
|
|
128166
|
-
return _ZodEnum.create(this.options.filter((opt) => !values.includes(opt))
|
|
128452
|
+
exclude(values, newDef = this._def) {
|
|
128453
|
+
return _ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {
|
|
128454
|
+
...this._def,
|
|
128455
|
+
...newDef
|
|
128456
|
+
});
|
|
128167
128457
|
}
|
|
128168
128458
|
};
|
|
128459
|
+
_ZodEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
128169
128460
|
ZodEnum.create = createZodEnum;
|
|
128170
128461
|
var ZodNativeEnum = class extends ZodType {
|
|
128462
|
+
constructor() {
|
|
128463
|
+
super(...arguments);
|
|
128464
|
+
_ZodNativeEnum_cache.set(this, void 0);
|
|
128465
|
+
}
|
|
128171
128466
|
_parse(input) {
|
|
128172
128467
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
128173
128468
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -128180,7 +128475,10 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
128180
128475
|
});
|
|
128181
128476
|
return INVALID;
|
|
128182
128477
|
}
|
|
128183
|
-
if (
|
|
128478
|
+
if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f")) {
|
|
128479
|
+
__classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f");
|
|
128480
|
+
}
|
|
128481
|
+
if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, "f").has(input.data)) {
|
|
128184
128482
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
128185
128483
|
addIssueToContext(ctx, {
|
|
128186
128484
|
received: ctx.data,
|
|
@@ -128195,6 +128493,7 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
128195
128493
|
return this._def.values;
|
|
128196
128494
|
}
|
|
128197
128495
|
};
|
|
128496
|
+
_ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
128198
128497
|
ZodNativeEnum.create = (values, params) => {
|
|
128199
128498
|
return new ZodNativeEnum({
|
|
128200
128499
|
values,
|
|
@@ -128258,26 +128557,38 @@ var ZodEffects = class extends ZodType {
|
|
|
128258
128557
|
checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);
|
|
128259
128558
|
if (effect.type === "preprocess") {
|
|
128260
128559
|
const processed = effect.transform(ctx.data, checkCtx);
|
|
128261
|
-
if (ctx.common.issues.length) {
|
|
128262
|
-
return {
|
|
128263
|
-
status: "dirty",
|
|
128264
|
-
value: ctx.data
|
|
128265
|
-
};
|
|
128266
|
-
}
|
|
128267
128560
|
if (ctx.common.async) {
|
|
128268
|
-
return Promise.resolve(processed).then((processed2) => {
|
|
128269
|
-
|
|
128561
|
+
return Promise.resolve(processed).then(async (processed2) => {
|
|
128562
|
+
if (status.value === "aborted")
|
|
128563
|
+
return INVALID;
|
|
128564
|
+
const result = await this._def.schema._parseAsync({
|
|
128270
128565
|
data: processed2,
|
|
128271
128566
|
path: ctx.path,
|
|
128272
128567
|
parent: ctx
|
|
128273
128568
|
});
|
|
128569
|
+
if (result.status === "aborted")
|
|
128570
|
+
return INVALID;
|
|
128571
|
+
if (result.status === "dirty")
|
|
128572
|
+
return DIRTY(result.value);
|
|
128573
|
+
if (status.value === "dirty")
|
|
128574
|
+
return DIRTY(result.value);
|
|
128575
|
+
return result;
|
|
128274
128576
|
});
|
|
128275
128577
|
} else {
|
|
128276
|
-
|
|
128578
|
+
if (status.value === "aborted")
|
|
128579
|
+
return INVALID;
|
|
128580
|
+
const result = this._def.schema._parseSync({
|
|
128277
128581
|
data: processed,
|
|
128278
128582
|
path: ctx.path,
|
|
128279
128583
|
parent: ctx
|
|
128280
128584
|
});
|
|
128585
|
+
if (result.status === "aborted")
|
|
128586
|
+
return INVALID;
|
|
128587
|
+
if (result.status === "dirty")
|
|
128588
|
+
return DIRTY(result.value);
|
|
128589
|
+
if (status.value === "dirty")
|
|
128590
|
+
return DIRTY(result.value);
|
|
128591
|
+
return result;
|
|
128281
128592
|
}
|
|
128282
128593
|
}
|
|
128283
128594
|
if (effect.type === "refinement") {
|
|
@@ -128566,10 +128877,16 @@ var ZodPipeline = class _ZodPipeline extends ZodType {
|
|
|
128566
128877
|
var ZodReadonly = class extends ZodType {
|
|
128567
128878
|
_parse(input) {
|
|
128568
128879
|
const result = this._def.innerType._parse(input);
|
|
128569
|
-
|
|
128570
|
-
|
|
128571
|
-
|
|
128572
|
-
|
|
128880
|
+
const freeze = (data) => {
|
|
128881
|
+
if (isValid(data)) {
|
|
128882
|
+
data.value = Object.freeze(data.value);
|
|
128883
|
+
}
|
|
128884
|
+
return data;
|
|
128885
|
+
};
|
|
128886
|
+
return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
|
|
128887
|
+
}
|
|
128888
|
+
unwrap() {
|
|
128889
|
+
return this._def.innerType;
|
|
128573
128890
|
}
|
|
128574
128891
|
};
|
|
128575
128892
|
ZodReadonly.create = (type, params) => {
|
|
@@ -128579,19 +128896,35 @@ ZodReadonly.create = (type, params) => {
|
|
|
128579
128896
|
...processCreateParams(params)
|
|
128580
128897
|
});
|
|
128581
128898
|
};
|
|
128582
|
-
|
|
128899
|
+
function cleanParams(params, data) {
|
|
128900
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
128901
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
128902
|
+
return p2;
|
|
128903
|
+
}
|
|
128904
|
+
function custom(check, _params = {}, fatal) {
|
|
128583
128905
|
if (check)
|
|
128584
128906
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
128585
128907
|
var _a2, _b;
|
|
128586
|
-
|
|
128587
|
-
|
|
128588
|
-
|
|
128589
|
-
|
|
128590
|
-
|
|
128908
|
+
const r = check(data);
|
|
128909
|
+
if (r instanceof Promise) {
|
|
128910
|
+
return r.then((r2) => {
|
|
128911
|
+
var _a3, _b2;
|
|
128912
|
+
if (!r2) {
|
|
128913
|
+
const params = cleanParams(_params, data);
|
|
128914
|
+
const _fatal = (_b2 = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b2 !== void 0 ? _b2 : true;
|
|
128915
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
128916
|
+
}
|
|
128917
|
+
});
|
|
128918
|
+
}
|
|
128919
|
+
if (!r) {
|
|
128920
|
+
const params = cleanParams(_params, data);
|
|
128921
|
+
const _fatal = (_b = (_a2 = params.fatal) !== null && _a2 !== void 0 ? _a2 : fatal) !== null && _b !== void 0 ? _b : true;
|
|
128922
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
128591
128923
|
}
|
|
128924
|
+
return;
|
|
128592
128925
|
});
|
|
128593
128926
|
return ZodAny.create();
|
|
128594
|
-
}
|
|
128927
|
+
}
|
|
128595
128928
|
var late = {
|
|
128596
128929
|
object: ZodObject.lazycreate
|
|
128597
128930
|
};
|
|
@@ -128710,6 +129043,7 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
128710
129043
|
ZodParsedType,
|
|
128711
129044
|
getParsedType,
|
|
128712
129045
|
ZodType,
|
|
129046
|
+
datetimeRegex,
|
|
128713
129047
|
ZodString,
|
|
128714
129048
|
ZodNumber,
|
|
128715
129049
|
ZodBigInt,
|
|
@@ -129062,6 +129396,12 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
|
|
|
129062
129396
|
writable: true,
|
|
129063
129397
|
value: void 0
|
|
129064
129398
|
});
|
|
129399
|
+
Object.defineProperty(this, "hash", {
|
|
129400
|
+
enumerable: true,
|
|
129401
|
+
configurable: true,
|
|
129402
|
+
writable: true,
|
|
129403
|
+
value: void 0
|
|
129404
|
+
});
|
|
129065
129405
|
Object.defineProperty(this, "Imagery", {
|
|
129066
129406
|
enumerable: true,
|
|
129067
129407
|
configurable: true,
|
|
@@ -129105,6 +129445,9 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
|
|
|
129105
129445
|
value: []
|
|
129106
129446
|
});
|
|
129107
129447
|
}
|
|
129448
|
+
static is(cfg) {
|
|
129449
|
+
return cfg.type === "memory";
|
|
129450
|
+
}
|
|
129108
129451
|
put(obj) {
|
|
129109
129452
|
this.objects.set(obj.id, obj);
|
|
129110
129453
|
}
|
|
@@ -129249,6 +129592,7 @@ var ConfigProviderMemory = class _ConfigProviderMemory extends BasemapsConfigPro
|
|
|
129249
129592
|
obj.updatedAt = updatedAt;
|
|
129250
129593
|
mem.assets = cfg.assets;
|
|
129251
129594
|
mem.id = cfg.id;
|
|
129595
|
+
mem.hash = cfg.hash;
|
|
129252
129596
|
return mem;
|
|
129253
129597
|
}
|
|
129254
129598
|
};
|
|
@@ -130732,6 +131076,7 @@ fsa.register("https://", new FsHttp());
|
|
|
130732
131076
|
fsa.register("s3://", s3Fs);
|
|
130733
131077
|
fsa.register("s3://nz-imagery", s3FsPublic);
|
|
130734
131078
|
fsa.register("s3://nz-elevation", s3FsPublic);
|
|
131079
|
+
fsa.register("s3://nz-coastal", s3FsPublic);
|
|
130735
131080
|
var Fsa = fsa;
|
|
130736
131081
|
var FsaChunk = new SourceChunk({ size: 128 * 1024 });
|
|
130737
131082
|
fsa.middleware.push(FsaChunk);
|
|
@@ -136024,9 +136369,9 @@ var Router = class {
|
|
|
136024
136369
|
};
|
|
136025
136370
|
|
|
136026
136371
|
// ../../node_modules/@linzjs/lambda/build/src/function.js
|
|
136027
|
-
var version2 = "
|
|
136028
|
-
var hash = "
|
|
136029
|
-
var buildId = "
|
|
136372
|
+
var version2 = "v8.1.0-6-g69195be6";
|
|
136373
|
+
var hash = "69195be692efa914369fa854d3bae16355dc0dc8";
|
|
136374
|
+
var buildId = "15601557572-1";
|
|
136030
136375
|
var versionInfo = { version: version2, hash, buildId };
|
|
136031
136376
|
async function runFunction(req, fn) {
|
|
136032
136377
|
if (!req.timer.timers.has("lambda"))
|
|
@@ -139056,6 +139401,12 @@ var Queue = class {
|
|
|
139056
139401
|
__privateWrapper(this, _size)._--;
|
|
139057
139402
|
return current.value;
|
|
139058
139403
|
}
|
|
139404
|
+
peek() {
|
|
139405
|
+
if (!__privateGet(this, _head)) {
|
|
139406
|
+
return;
|
|
139407
|
+
}
|
|
139408
|
+
return __privateGet(this, _head).value;
|
|
139409
|
+
}
|
|
139059
139410
|
clear() {
|
|
139060
139411
|
__privateSet(this, _head, void 0);
|
|
139061
139412
|
__privateSet(this, _tail, void 0);
|
|
@@ -139071,6 +139422,11 @@ var Queue = class {
|
|
|
139071
139422
|
current = current.next;
|
|
139072
139423
|
}
|
|
139073
139424
|
}
|
|
139425
|
+
*drain() {
|
|
139426
|
+
while (__privateGet(this, _head)) {
|
|
139427
|
+
yield this.dequeue();
|
|
139428
|
+
}
|
|
139429
|
+
}
|
|
139074
139430
|
};
|
|
139075
139431
|
_head = new WeakMap();
|
|
139076
139432
|
_tail = new WeakMap();
|
|
@@ -140442,7 +140798,15 @@ async function tileXyzGet(req) {
|
|
|
140442
140798
|
}
|
|
140443
140799
|
|
|
140444
140800
|
// ../lambda-tiler/build/routes/version.js
|
|
140445
|
-
function
|
|
140801
|
+
function getConfigHash(cfg) {
|
|
140802
|
+
if (!ConfigProviderMemory.is(cfg))
|
|
140803
|
+
return void 0;
|
|
140804
|
+
if (cfg.id == null)
|
|
140805
|
+
return void 0;
|
|
140806
|
+
return { id: cfg.id, hash: cfg.hash };
|
|
140807
|
+
}
|
|
140808
|
+
async function versionGet(req) {
|
|
140809
|
+
const config = await ConfigLoader.load(req);
|
|
140446
140810
|
const response = new LambdaHttpResponse(200, "ok");
|
|
140447
140811
|
response.header(HttpHeader.CacheControl, "no-store");
|
|
140448
140812
|
response.json({
|
|
@@ -140450,17 +140814,23 @@ function versionGet() {
|
|
|
140450
140814
|
* last git version tag
|
|
140451
140815
|
* @example "v6.42.1"
|
|
140452
140816
|
*/
|
|
140453
|
-
version: "
|
|
140817
|
+
version: "v8.1.0-6-g69195be6",
|
|
140454
140818
|
/**
|
|
140455
140819
|
* Full git commit hash
|
|
140456
140820
|
* @example "e4231b1ee62c276c8657c56677ced02681dfe5d6"
|
|
140457
140821
|
*/
|
|
140458
|
-
hash: "
|
|
140822
|
+
hash: "69195be692efa914369fa854d3bae16355dc0dc8",
|
|
140459
140823
|
/**
|
|
140824
|
+
*
|
|
140460
140825
|
* The exact build that this release was run from
|
|
140461
140826
|
* @example "1658821493-3"
|
|
140462
140827
|
*/
|
|
140463
|
-
buildId: "
|
|
140828
|
+
buildId: "15601557572-1",
|
|
140829
|
+
/**
|
|
140830
|
+
* Configuration id that was used to power this config
|
|
140831
|
+
* @example { "id": "cb_01JTQ7ZK49F8EY4N5DRJ3XFT73", hash: "HcByZ8WS2zpaTxFJp6wSKg2eUpwahLqAGEQdcDxKxqp6" }
|
|
140832
|
+
*/
|
|
140833
|
+
config: getConfigHash(config)
|
|
140464
140834
|
});
|
|
140465
140835
|
return Promise.resolve(response);
|
|
140466
140836
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basemaps/server",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/linz/basemaps.git",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"sharp": "^0.33.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@basemaps/config": "^8.
|
|
56
|
-
"@basemaps/config-loader": "^8.
|
|
55
|
+
"@basemaps/config": "^8.1.0",
|
|
56
|
+
"@basemaps/config-loader": "^8.2.0",
|
|
57
57
|
"@basemaps/geo": "^8.0.0",
|
|
58
|
-
"@basemaps/lambda-tiler": "^8.
|
|
58
|
+
"@basemaps/lambda-tiler": "^8.2.0",
|
|
59
59
|
"@basemaps/landing": "^6.39.0",
|
|
60
|
-
"@basemaps/shared": "^8.
|
|
60
|
+
"@basemaps/shared": "^8.2.0",
|
|
61
61
|
"@fastify/formbody": "^7.0.1",
|
|
62
62
|
"@fastify/static": "^6.5.0",
|
|
63
63
|
"cmd-ts": "^0.12.1",
|
|
64
64
|
"fastify": "^4.9.2",
|
|
65
65
|
"pretty-json-log": "^1.0.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "69195be692efa914369fa854d3bae16355dc0dc8"
|
|
68
68
|
}
|