@monorise/core 3.0.3-dev.0 → 3.0.4
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/dist/index.d.ts +15 -10
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -465,7 +465,7 @@ new EventBridgeClient();
|
|
|
465
465
|
// middlewares/general-error-handler.ts
|
|
466
466
|
createFactory();
|
|
467
467
|
|
|
468
|
-
// ../../node_modules/zod/
|
|
468
|
+
// ../../node_modules/zod/v3/external.js
|
|
469
469
|
var external_exports = {};
|
|
470
470
|
__export(external_exports, {
|
|
471
471
|
BRAND: () => BRAND,
|
|
@@ -577,7 +577,7 @@ __export(external_exports, {
|
|
|
577
577
|
void: () => voidType
|
|
578
578
|
});
|
|
579
579
|
|
|
580
|
-
// ../../node_modules/zod/
|
|
580
|
+
// ../../node_modules/zod/v3/helpers/util.js
|
|
581
581
|
var util;
|
|
582
582
|
(function(util2) {
|
|
583
583
|
util2.assertEqual = (_) => {
|
|
@@ -707,7 +707,7 @@ var getParsedType = (data) => {
|
|
|
707
707
|
}
|
|
708
708
|
};
|
|
709
709
|
|
|
710
|
-
// ../../node_modules/zod/
|
|
710
|
+
// ../../node_modules/zod/v3/ZodError.js
|
|
711
711
|
var ZodIssueCode = util.arrayToEnum([
|
|
712
712
|
"invalid_type",
|
|
713
713
|
"invalid_literal",
|
|
@@ -807,8 +807,9 @@ var ZodError = class _ZodError extends Error {
|
|
|
807
807
|
const formErrors = [];
|
|
808
808
|
for (const sub of this.issues) {
|
|
809
809
|
if (sub.path.length > 0) {
|
|
810
|
-
|
|
811
|
-
fieldErrors[
|
|
810
|
+
const firstEl = sub.path[0];
|
|
811
|
+
fieldErrors[firstEl] = fieldErrors[firstEl] || [];
|
|
812
|
+
fieldErrors[firstEl].push(mapper(sub));
|
|
812
813
|
} else {
|
|
813
814
|
formErrors.push(mapper(sub));
|
|
814
815
|
}
|
|
@@ -824,7 +825,7 @@ ZodError.create = (issues) => {
|
|
|
824
825
|
return error;
|
|
825
826
|
};
|
|
826
827
|
|
|
827
|
-
// ../../node_modules/zod/
|
|
828
|
+
// ../../node_modules/zod/v3/locales/en.js
|
|
828
829
|
var errorMap = (issue, _ctx) => {
|
|
829
830
|
let message;
|
|
830
831
|
switch (issue.code) {
|
|
@@ -886,6 +887,8 @@ var errorMap = (issue, _ctx) => {
|
|
|
886
887
|
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
887
888
|
else if (issue.type === "number")
|
|
888
889
|
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
890
|
+
else if (issue.type === "bigint")
|
|
891
|
+
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
889
892
|
else if (issue.type === "date")
|
|
890
893
|
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
891
894
|
else
|
|
@@ -925,7 +928,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
925
928
|
};
|
|
926
929
|
var en_default = errorMap;
|
|
927
930
|
|
|
928
|
-
// ../../node_modules/zod/
|
|
931
|
+
// ../../node_modules/zod/v3/errors.js
|
|
929
932
|
var overrideErrorMap = en_default;
|
|
930
933
|
function setErrorMap(map) {
|
|
931
934
|
overrideErrorMap = map;
|
|
@@ -934,7 +937,7 @@ function getErrorMap() {
|
|
|
934
937
|
return overrideErrorMap;
|
|
935
938
|
}
|
|
936
939
|
|
|
937
|
-
// ../../node_modules/zod/
|
|
940
|
+
// ../../node_modules/zod/v3/helpers/parseUtil.js
|
|
938
941
|
var makeIssue = (params) => {
|
|
939
942
|
const { data, path, errorMaps, issueData } = params;
|
|
940
943
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -1043,14 +1046,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
1043
1046
|
var isValid = (x) => x.status === "valid";
|
|
1044
1047
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
1045
1048
|
|
|
1046
|
-
// ../../node_modules/zod/
|
|
1049
|
+
// ../../node_modules/zod/v3/helpers/errorUtil.js
|
|
1047
1050
|
var errorUtil;
|
|
1048
1051
|
(function(errorUtil2) {
|
|
1049
1052
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
1050
1053
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message == null ? void 0 : message.message;
|
|
1051
1054
|
})(errorUtil || (errorUtil = {}));
|
|
1052
1055
|
|
|
1053
|
-
// ../../node_modules/zod/
|
|
1056
|
+
// ../../node_modules/zod/v3/types.js
|
|
1054
1057
|
var ParseInputLazyPath = class {
|
|
1055
1058
|
constructor(parent, value, path, key) {
|
|
1056
1059
|
this._cachedPath = [];
|
|
@@ -1450,6 +1453,8 @@ function isValidJWT(jwt, alg) {
|
|
|
1450
1453
|
return false;
|
|
1451
1454
|
try {
|
|
1452
1455
|
const [header] = jwt.split(".");
|
|
1456
|
+
if (!header)
|
|
1457
|
+
return false;
|
|
1453
1458
|
const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
|
|
1454
1459
|
const decoded = JSON.parse(atob(base64));
|
|
1455
1460
|
if (typeof decoded !== "object" || decoded === null)
|
package/dist/index.js
CHANGED
|
@@ -2975,7 +2975,7 @@ var GetEntityController = class {
|
|
|
2975
2975
|
// controllers/entity/list-entities.controller.ts
|
|
2976
2976
|
import { createMiddleware as createMiddleware7 } from "hono/factory";
|
|
2977
2977
|
|
|
2978
|
-
// ../../node_modules/zod/
|
|
2978
|
+
// ../../node_modules/zod/v3/external.js
|
|
2979
2979
|
var external_exports = {};
|
|
2980
2980
|
__export(external_exports, {
|
|
2981
2981
|
BRAND: () => BRAND,
|
|
@@ -3087,7 +3087,7 @@ __export(external_exports, {
|
|
|
3087
3087
|
void: () => voidType
|
|
3088
3088
|
});
|
|
3089
3089
|
|
|
3090
|
-
// ../../node_modules/zod/
|
|
3090
|
+
// ../../node_modules/zod/v3/helpers/util.js
|
|
3091
3091
|
var util;
|
|
3092
3092
|
(function(util2) {
|
|
3093
3093
|
util2.assertEqual = (_) => {
|
|
@@ -3217,7 +3217,7 @@ var getParsedType = (data) => {
|
|
|
3217
3217
|
}
|
|
3218
3218
|
};
|
|
3219
3219
|
|
|
3220
|
-
// ../../node_modules/zod/
|
|
3220
|
+
// ../../node_modules/zod/v3/ZodError.js
|
|
3221
3221
|
var ZodIssueCode = util.arrayToEnum([
|
|
3222
3222
|
"invalid_type",
|
|
3223
3223
|
"invalid_literal",
|
|
@@ -3317,8 +3317,9 @@ var ZodError = class _ZodError extends Error {
|
|
|
3317
3317
|
const formErrors = [];
|
|
3318
3318
|
for (const sub of this.issues) {
|
|
3319
3319
|
if (sub.path.length > 0) {
|
|
3320
|
-
|
|
3321
|
-
fieldErrors[
|
|
3320
|
+
const firstEl = sub.path[0];
|
|
3321
|
+
fieldErrors[firstEl] = fieldErrors[firstEl] || [];
|
|
3322
|
+
fieldErrors[firstEl].push(mapper(sub));
|
|
3322
3323
|
} else {
|
|
3323
3324
|
formErrors.push(mapper(sub));
|
|
3324
3325
|
}
|
|
@@ -3334,7 +3335,7 @@ ZodError.create = (issues) => {
|
|
|
3334
3335
|
return error;
|
|
3335
3336
|
};
|
|
3336
3337
|
|
|
3337
|
-
// ../../node_modules/zod/
|
|
3338
|
+
// ../../node_modules/zod/v3/locales/en.js
|
|
3338
3339
|
var errorMap = (issue, _ctx) => {
|
|
3339
3340
|
let message;
|
|
3340
3341
|
switch (issue.code) {
|
|
@@ -3396,6 +3397,8 @@ var errorMap = (issue, _ctx) => {
|
|
|
3396
3397
|
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
3397
3398
|
else if (issue.type === "number")
|
|
3398
3399
|
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
3400
|
+
else if (issue.type === "bigint")
|
|
3401
|
+
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
3399
3402
|
else if (issue.type === "date")
|
|
3400
3403
|
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
3401
3404
|
else
|
|
@@ -3435,7 +3438,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
3435
3438
|
};
|
|
3436
3439
|
var en_default = errorMap;
|
|
3437
3440
|
|
|
3438
|
-
// ../../node_modules/zod/
|
|
3441
|
+
// ../../node_modules/zod/v3/errors.js
|
|
3439
3442
|
var overrideErrorMap = en_default;
|
|
3440
3443
|
function setErrorMap(map) {
|
|
3441
3444
|
overrideErrorMap = map;
|
|
@@ -3444,7 +3447,7 @@ function getErrorMap() {
|
|
|
3444
3447
|
return overrideErrorMap;
|
|
3445
3448
|
}
|
|
3446
3449
|
|
|
3447
|
-
// ../../node_modules/zod/
|
|
3450
|
+
// ../../node_modules/zod/v3/helpers/parseUtil.js
|
|
3448
3451
|
var makeIssue = (params) => {
|
|
3449
3452
|
const { data, path, errorMaps, issueData } = params;
|
|
3450
3453
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -3553,14 +3556,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
3553
3556
|
var isValid = (x) => x.status === "valid";
|
|
3554
3557
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
3555
3558
|
|
|
3556
|
-
// ../../node_modules/zod/
|
|
3559
|
+
// ../../node_modules/zod/v3/helpers/errorUtil.js
|
|
3557
3560
|
var errorUtil;
|
|
3558
3561
|
(function(errorUtil2) {
|
|
3559
3562
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
3560
3563
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message == null ? void 0 : message.message;
|
|
3561
3564
|
})(errorUtil || (errorUtil = {}));
|
|
3562
3565
|
|
|
3563
|
-
// ../../node_modules/zod/
|
|
3566
|
+
// ../../node_modules/zod/v3/types.js
|
|
3564
3567
|
var ParseInputLazyPath = class {
|
|
3565
3568
|
constructor(parent, value, path, key) {
|
|
3566
3569
|
this._cachedPath = [];
|
|
@@ -3960,6 +3963,8 @@ function isValidJWT(jwt, alg) {
|
|
|
3960
3963
|
return false;
|
|
3961
3964
|
try {
|
|
3962
3965
|
const [header] = jwt.split(".");
|
|
3966
|
+
if (!header)
|
|
3967
|
+
return false;
|
|
3963
3968
|
const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
|
|
3964
3969
|
const decoded = JSON.parse(atob(base64));
|
|
3965
3970
|
if (typeof decoded !== "object" || decoded === null)
|
|
@@ -6955,7 +6960,7 @@ var ListEntitiesController = class {
|
|
|
6955
6960
|
}
|
|
6956
6961
|
const results = yield this.entityRepository.listEntities(__spreadValues({
|
|
6957
6962
|
entityType,
|
|
6958
|
-
limit: Number(limit),
|
|
6963
|
+
limit: limit ? Number(limit) : void 0,
|
|
6959
6964
|
options: {
|
|
6960
6965
|
lastKey
|
|
6961
6966
|
}
|