@continuous-excellence/ze-great-dashboard-aws 0.27.10 → 0.27.11
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/cli.js +2 -19
- package/dist/index.js +2 -19
- package/dist/lambda.mjs +2 -19
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -57,25 +57,8 @@ import { z as z2 } from "zod";
|
|
|
57
57
|
|
|
58
58
|
// packages/shared/src/duration.ts
|
|
59
59
|
import { z } from "zod";
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
ms: 1,
|
|
63
|
-
s: 1e3,
|
|
64
|
-
m: 6e4,
|
|
65
|
-
h: 36e5
|
|
66
|
-
};
|
|
67
|
-
function parseDuration(value2) {
|
|
68
|
-
const match = DURATION_PATTERN.exec(value2);
|
|
69
|
-
if (!match) return null;
|
|
70
|
-
const [, rawAmount, rawUnit] = match;
|
|
71
|
-
if (rawAmount === void 0 || rawUnit === void 0) return null;
|
|
72
|
-
const amount = Number(rawAmount);
|
|
73
|
-
if (amount <= 0) return null;
|
|
74
|
-
return amount * UNIT_MILLIS[rawUnit];
|
|
75
|
-
}
|
|
76
|
-
var durationSchema = z.string().refine((value2) => parseDuration(value2) !== null, {
|
|
77
|
-
message: 'must be a positive duration like "30s", "5m", or "1h"',
|
|
78
|
-
params: { constraint: 'Use a positive duration like "30s", "5m", or "1h".' }
|
|
60
|
+
var durationSchema = z.string().regex(/^[1-9][0-9]*(?:ms|s|m|h)$/, {
|
|
61
|
+
message: 'must be a positive duration like "30s", "5m", or "1h"'
|
|
79
62
|
}).brand();
|
|
80
63
|
|
|
81
64
|
// packages/shared/src/board-config.ts
|
package/dist/index.js
CHANGED
|
@@ -738,25 +738,8 @@ import { z as z2 } from "zod";
|
|
|
738
738
|
|
|
739
739
|
// packages/shared/src/duration.ts
|
|
740
740
|
import { z } from "zod";
|
|
741
|
-
var
|
|
742
|
-
|
|
743
|
-
ms: 1,
|
|
744
|
-
s: 1e3,
|
|
745
|
-
m: 6e4,
|
|
746
|
-
h: 36e5
|
|
747
|
-
};
|
|
748
|
-
function parseDuration(value2) {
|
|
749
|
-
const match = DURATION_PATTERN.exec(value2);
|
|
750
|
-
if (!match) return null;
|
|
751
|
-
const [, rawAmount, rawUnit] = match;
|
|
752
|
-
if (rawAmount === void 0 || rawUnit === void 0) return null;
|
|
753
|
-
const amount = Number(rawAmount);
|
|
754
|
-
if (amount <= 0) return null;
|
|
755
|
-
return amount * UNIT_MILLIS[rawUnit];
|
|
756
|
-
}
|
|
757
|
-
var durationSchema = z.string().refine((value2) => parseDuration(value2) !== null, {
|
|
758
|
-
message: 'must be a positive duration like "30s", "5m", or "1h"',
|
|
759
|
-
params: { constraint: 'Use a positive duration like "30s", "5m", or "1h".' }
|
|
741
|
+
var durationSchema = z.string().regex(/^[1-9][0-9]*(?:ms|s|m|h)$/, {
|
|
742
|
+
message: 'must be a positive duration like "30s", "5m", or "1h"'
|
|
760
743
|
}).brand();
|
|
761
744
|
|
|
762
745
|
// packages/shared/src/board-config.ts
|
package/dist/lambda.mjs
CHANGED
|
@@ -68971,25 +68971,8 @@ function date4(params) {
|
|
|
68971
68971
|
}
|
|
68972
68972
|
|
|
68973
68973
|
// packages/shared/src/duration.ts
|
|
68974
|
-
var
|
|
68975
|
-
|
|
68976
|
-
ms: 1,
|
|
68977
|
-
s: 1e3,
|
|
68978
|
-
m: 6e4,
|
|
68979
|
-
h: 36e5
|
|
68980
|
-
};
|
|
68981
|
-
function parseDuration(value) {
|
|
68982
|
-
const match2 = DURATION_PATTERN.exec(value);
|
|
68983
|
-
if (!match2) return null;
|
|
68984
|
-
const [, rawAmount, rawUnit] = match2;
|
|
68985
|
-
if (rawAmount === void 0 || rawUnit === void 0) return null;
|
|
68986
|
-
const amount = Number(rawAmount);
|
|
68987
|
-
if (amount <= 0) return null;
|
|
68988
|
-
return amount * UNIT_MILLIS[rawUnit];
|
|
68989
|
-
}
|
|
68990
|
-
var durationSchema = external_exports.string().refine((value) => parseDuration(value) !== null, {
|
|
68991
|
-
message: 'must be a positive duration like "30s", "5m", or "1h"',
|
|
68992
|
-
params: { constraint: 'Use a positive duration like "30s", "5m", or "1h".' }
|
|
68974
|
+
var durationSchema = external_exports.string().regex(/^[1-9][0-9]*(?:ms|s|m|h)$/, {
|
|
68975
|
+
message: 'must be a positive duration like "30s", "5m", or "1h"'
|
|
68993
68976
|
}).brand();
|
|
68994
68977
|
|
|
68995
68978
|
// packages/shared/src/board-config.ts
|
package/package.json
CHANGED