@prisma/orm-framework 8.0.0-rc.23-dev.9 → 8.0.0-rc.23-dev.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/{date-CiIJMjsO.mjs → date-CXI6LCYR.mjs} +10 -2
- package/dist/date-CXI6LCYR.mjs.map +1 -0
- package/dist/{date-D0A-2GsY.d.mts → date-Ek2ojnY-.d.mts} +6 -2
- package/dist/date-Ek2ojnY-.d.mts.map +1 -0
- package/dist/type-implementations.d.mts +2 -2
- package/dist/type-implementations.mjs +2 -2
- package/dist/type-implementations__date.d.mts +2 -2
- package/dist/type-implementations__date.mjs +2 -2
- package/package.json +16 -16
- package/dist/date-CiIJMjsO.mjs.map +0 -1
- package/dist/date-D0A-2GsY.d.mts.map +0 -1
|
@@ -17,7 +17,15 @@ function utcIsoTextOf(value, earliestMilliseconds) {
|
|
|
17
17
|
if (!Number.isFinite(milliseconds) || milliseconds < earliestMilliseconds) return void 0;
|
|
18
18
|
return value.toISOString();
|
|
19
19
|
}
|
|
20
|
+
/** The fraction of ISO text with any zeros past its third digit removed, so `09:30:00.500000` is the millisecond it names. */
|
|
21
|
+
function withoutZerosBelowAMillisecond(text) {
|
|
22
|
+
return text.replace(/(\.\d{3})0+(?!\d)/, "$1");
|
|
23
|
+
}
|
|
24
|
+
/** The fraction of ISO text padded to exactly three digits, as `toISOString()` writes it. */
|
|
25
|
+
function withThreeFractionDigits(text) {
|
|
26
|
+
return text.replace(/(\d{2}:\d{2}:\d{2})(?:\.(\d{1,3}))?(?=Z?$)/, (_whole, clock, fraction) => `${clock}.${(fraction ?? "").padEnd(3, "0")}`);
|
|
27
|
+
}
|
|
20
28
|
//#endregion
|
|
21
|
-
export { utcIsoTextOf as i, hasDigitsBelowAMillisecond as n, isValidDate as r, hasDigitsBelow as t };
|
|
29
|
+
export { withThreeFractionDigits as a, utcIsoTextOf as i, hasDigitsBelowAMillisecond as n, withoutZerosBelowAMillisecond as o, isValidDate as r, hasDigitsBelow as t };
|
|
22
30
|
|
|
23
|
-
//# sourceMappingURL=date-
|
|
31
|
+
//# sourceMappingURL=date-CXI6LCYR.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-CXI6LCYR.mjs","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/date.mjs"],"sourcesContent":["//#region src/date.ts\n/** Whether `value` is a `Date` that holds an instant, not an Invalid Date. */\nfunction isValidDate(value) {\n\treturn value instanceof Date && Number.isFinite(value.getTime());\n}\n/** Whether ISO text has nonzero fraction digits past the first `fractionDigits`. */\nfunction hasDigitsBelow(text, fractionDigits) {\n\treturn /[1-9]/.test(/\\.(\\d+)/.exec(text)?.[1]?.slice(fractionDigits) ?? \"\");\n}\n/** Whether ISO text has nonzero digits below a millisecond, which a `Date` drops. */\nfunction hasDigitsBelowAMillisecond(text) {\n\treturn hasDigitsBelow(text, 3);\n}\n/** `value` in UTC as `Date.toISOString` writes it, or `undefined` for an Invalid Date or one before `earliestMilliseconds`. */\nfunction utcIsoTextOf(value, earliestMilliseconds) {\n\tconst milliseconds = value.getTime();\n\tif (!Number.isFinite(milliseconds) || milliseconds < earliestMilliseconds) return void 0;\n\treturn value.toISOString();\n}\n/** The fraction of ISO text with any zeros past its third digit removed, so `09:30:00.500000` is the millisecond it names. */\nfunction withoutZerosBelowAMillisecond(text) {\n\treturn text.replace(/(\\.\\d{3})0+(?!\\d)/, \"$1\");\n}\n/** The fraction of ISO text padded to exactly three digits, as `toISOString()` writes it. */\nfunction withThreeFractionDigits(text) {\n\treturn text.replace(/(\\d{2}:\\d{2}:\\d{2})(?:\\.(\\d{1,3}))?(?=Z?$)/, (_whole, clock, fraction) => `${clock}.${(fraction ?? \"\").padEnd(3, \"0\")}`);\n}\n//#endregion\nexport { hasDigitsBelow, hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf, withThreeFractionDigits, withoutZerosBelowAMillisecond };\n\n//# sourceMappingURL=date.mjs.map"],"mappings":";;AAEA,SAAS,YAAY,OAAO;CAC3B,OAAO,iBAAiB,QAAQ,OAAO,SAAS,MAAM,QAAQ,CAAC;AAChE;;AAEA,SAAS,eAAe,MAAM,gBAAgB;CAC7C,OAAO,QAAQ,KAAK,UAAU,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE,MAAM,cAAc,KAAK,EAAE;AAC3E;;AAEA,SAAS,2BAA2B,MAAM;CACzC,OAAO,eAAe,MAAM,CAAC;AAC9B;;AAEA,SAAS,aAAa,OAAO,sBAAsB;CAClD,MAAM,eAAe,MAAM,QAAQ;CACnC,IAAI,CAAC,OAAO,SAAS,YAAY,KAAK,eAAe,sBAAsB,OAAO,KAAK;CACvF,OAAO,MAAM,YAAY;AAC1B;;AAEA,SAAS,8BAA8B,MAAM;CAC5C,OAAO,KAAK,QAAQ,qBAAqB,IAAI;AAC9C;;AAEA,SAAS,wBAAwB,MAAM;CACtC,OAAO,KAAK,QAAQ,+CAA+C,QAAQ,OAAO,aAAa,GAAG,MAAM,IAAI,YAAY,GAAA,CAAI,OAAO,GAAG,GAAG,GAAG;AAC7I"}
|
|
@@ -8,6 +8,10 @@ declare function hasDigitsBelow(text: string, fractionDigits: number): boolean;
|
|
|
8
8
|
declare function hasDigitsBelowAMillisecond(text: string): boolean;
|
|
9
9
|
/** `value` in UTC as `Date.toISOString` writes it, or `undefined` for an Invalid Date or one before `earliestMilliseconds`. */
|
|
10
10
|
declare function utcIsoTextOf(value: Date, earliestMilliseconds: number): string | undefined;
|
|
11
|
+
/** The fraction of ISO text with any zeros past its third digit removed, so `09:30:00.500000` is the millisecond it names. */
|
|
12
|
+
declare function withoutZerosBelowAMillisecond(text: string): string;
|
|
13
|
+
/** The fraction of ISO text padded to exactly three digits, as `toISOString()` writes it. */
|
|
14
|
+
declare function withThreeFractionDigits(text: string): string;
|
|
11
15
|
//#endregion
|
|
12
|
-
export { utcIsoTextOf as i, hasDigitsBelowAMillisecond as n, isValidDate as r, hasDigitsBelow as t };
|
|
13
|
-
//# sourceMappingURL=date-
|
|
16
|
+
export { withThreeFractionDigits as a, utcIsoTextOf as i, hasDigitsBelowAMillisecond as n, withoutZerosBelowAMillisecond as o, isValidDate as r, hasDigitsBelow as t };
|
|
17
|
+
//# sourceMappingURL=date-Ek2ojnY-.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-Ek2ojnY-.d.mts","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/date.d.mts"],"mappings":";;;iBAEiB,YAAY,iBAAiB,SAAS;;iBAEtC,eAAe,cAAc;;iBAE7B,2BAA2B;;iBAE3B,aAAa,OAAO,MAAM;;iBAE1B,8BAA8B;;iBAE9B,wBAAwB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-
|
|
1
|
+
import { a as withThreeFractionDigits, i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, o as withoutZerosBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-Ek2ojnY-.mjs";
|
|
2
2
|
import { n as ISO_DURATION_AS_WRITTEN, t as ISO_DURATION } from "./duration-cFUtCY2y.mjs";
|
|
3
3
|
import { n as findTemporal, r as setFallbackTemporal, t as TemporalImplementation } from "./temporal-ByipDkUQ-BSRSKsqk.mjs";
|
|
4
4
|
import { _ as timeStringNow, a as PLAIN_DATE_NOW_GENERATOR_ID, c as TIME_STRING_NOW_GENERATOR_ID, d as fractionDigitsOf, f as instantNow, g as plainTimeNow, h as plainDateTimeNow, i as INSTANT_STRING_NOW_GENERATOR_ID, l as dateStringNow, m as plainDateNow, n as GeneratorParams, o as PLAIN_DATE_TIME_NOW_GENERATOR_ID, p as instantStringNow, r as INSTANT_NOW_GENERATOR_ID, s as PLAIN_TIME_NOW_GENERATOR_ID, t as DATE_STRING_NOW_GENERATOR_ID, u as dateTimeStringNow } from "./now-BAgn1BJy.mjs";
|
|
5
5
|
import "./temporal-DIeQx56W.mjs";
|
|
6
6
|
import { a as temporalToText, i as temporalFromText, n as TemporalValue, o as withoutUtcDesignator, r as describeValue, t as TemporalTag } from "./temporal-text-CRbkPKoz.mjs";
|
|
7
|
-
export { DATE_STRING_NOW_GENERATOR_ID, type GeneratorParams, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, ISO_DURATION, ISO_DURATION_AS_WRITTEN, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, type TemporalImplementation, type TemporalTag, type TemporalValue, dateStringNow, dateTimeStringNow, describeValue, findTemporal, fractionDigitsOf, hasDigitsBelow, hasDigitsBelowAMillisecond, instantNow, instantStringNow, isValidDate, plainDateNow, plainDateTimeNow, plainTimeNow, setFallbackTemporal, temporalFromText, temporalToText, timeStringNow, utcIsoTextOf, withoutUtcDesignator };
|
|
7
|
+
export { DATE_STRING_NOW_GENERATOR_ID, type GeneratorParams, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, ISO_DURATION, ISO_DURATION_AS_WRITTEN, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, type TemporalImplementation, type TemporalTag, type TemporalValue, dateStringNow, dateTimeStringNow, describeValue, findTemporal, fractionDigitsOf, hasDigitsBelow, hasDigitsBelowAMillisecond, instantNow, instantStringNow, isValidDate, plainDateNow, plainDateTimeNow, plainTimeNow, setFallbackTemporal, temporalFromText, temporalToText, timeStringNow, utcIsoTextOf, withThreeFractionDigits, withoutUtcDesignator, withoutZerosBelowAMillisecond };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-
|
|
1
|
+
import { a as withThreeFractionDigits, i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, o as withoutZerosBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-CXI6LCYR.mjs";
|
|
2
2
|
import { n as ISO_DURATION_AS_WRITTEN, t as ISO_DURATION } from "./duration-BqxS5qWq.mjs";
|
|
3
3
|
import { a as PLAIN_DATE_TIME_NOW_GENERATOR_ID, c as dateStringNow, d as instantNow, f as instantStringNow, g as timeStringNow, h as plainTimeNow, i as PLAIN_DATE_NOW_GENERATOR_ID, l as dateTimeStringNow, m as plainDateTimeNow, n as INSTANT_NOW_GENERATOR_ID, o as PLAIN_TIME_NOW_GENERATOR_ID, p as plainDateNow, r as INSTANT_STRING_NOW_GENERATOR_ID, s as TIME_STRING_NOW_GENERATOR_ID, t as DATE_STRING_NOW_GENERATOR_ID, u as fractionDigitsOf } from "./now-rRujKrwj.mjs";
|
|
4
4
|
import { n as setFallbackTemporal, t as findTemporal } from "./temporal-BlPzxzji.mjs";
|
|
5
5
|
import { i as withoutUtcDesignator, n as temporalFromText, r as temporalToText, t as describeValue } from "./temporal-text-DTDPzvc_.mjs";
|
|
6
|
-
export { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, ISO_DURATION, ISO_DURATION_AS_WRITTEN, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, dateStringNow, dateTimeStringNow, describeValue, findTemporal, fractionDigitsOf, hasDigitsBelow, hasDigitsBelowAMillisecond, instantNow, instantStringNow, isValidDate, plainDateNow, plainDateTimeNow, plainTimeNow, setFallbackTemporal, temporalFromText, temporalToText, timeStringNow, utcIsoTextOf, withoutUtcDesignator };
|
|
6
|
+
export { DATE_STRING_NOW_GENERATOR_ID, INSTANT_NOW_GENERATOR_ID, INSTANT_STRING_NOW_GENERATOR_ID, ISO_DURATION, ISO_DURATION_AS_WRITTEN, PLAIN_DATE_NOW_GENERATOR_ID, PLAIN_DATE_TIME_NOW_GENERATOR_ID, PLAIN_TIME_NOW_GENERATOR_ID, TIME_STRING_NOW_GENERATOR_ID, dateStringNow, dateTimeStringNow, describeValue, findTemporal, fractionDigitsOf, hasDigitsBelow, hasDigitsBelowAMillisecond, instantNow, instantStringNow, isValidDate, plainDateNow, plainDateTimeNow, plainTimeNow, setFallbackTemporal, temporalFromText, temporalToText, timeStringNow, utcIsoTextOf, withThreeFractionDigits, withoutUtcDesignator, withoutZerosBelowAMillisecond };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-
|
|
2
|
-
export { hasDigitsBelow, hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf };
|
|
1
|
+
import { a as withThreeFractionDigits, i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, o as withoutZerosBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-Ek2ojnY-.mjs";
|
|
2
|
+
export { hasDigitsBelow, hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf, withThreeFractionDigits, withoutZerosBelowAMillisecond };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-
|
|
2
|
-
export { hasDigitsBelow, hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf };
|
|
1
|
+
import { a as withThreeFractionDigits, i as utcIsoTextOf, n as hasDigitsBelowAMillisecond, o as withoutZerosBelowAMillisecond, r as isValidDate, t as hasDigitsBelow } from "./date-CXI6LCYR.mjs";
|
|
2
|
+
export { hasDigitsBelow, hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf, withThreeFractionDigits, withoutZerosBelowAMillisecond };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-framework",
|
|
3
|
-
"version": "8.0.0-rc.23-dev.
|
|
3
|
+
"version": "8.0.0-rc.23-dev.11",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
"uniku": "^0.5.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@internal/config": "8.0.0-rc.23-dev.
|
|
21
|
-
"@internal/contract": "8.0.0-rc.23-dev.
|
|
22
|
-
"@internal/contract-authoring": "8.0.0-rc.23-dev.
|
|
23
|
-
"@internal/errors": "8.0.0-rc.23-dev.
|
|
24
|
-
"@internal/framework-components": "8.0.0-rc.23-dev.
|
|
25
|
-
"@internal/ids": "8.0.0-rc.23-dev.
|
|
26
|
-
"@internal/operations": "8.0.0-rc.23-dev.
|
|
27
|
-
"@internal/psl-parser": "8.0.0-rc.23-dev.
|
|
28
|
-
"@internal/psl-printer": "8.0.0-rc.23-dev.
|
|
29
|
-
"@internal/ts-render": "8.0.0-rc.23-dev.
|
|
30
|
-
"@internal/type-implementations": "8.0.0-rc.23-dev.
|
|
31
|
-
"@repo/tsconfig": "8.0.0-rc.23-dev.
|
|
32
|
-
"@internal/publish-surface": "8.0.0-rc.23-dev.
|
|
33
|
-
"@repo/tsdown": "8.0.0-rc.23-dev.
|
|
34
|
-
"@internal/utils": "8.0.0-rc.23-dev.
|
|
20
|
+
"@internal/config": "8.0.0-rc.23-dev.11",
|
|
21
|
+
"@internal/contract": "8.0.0-rc.23-dev.11",
|
|
22
|
+
"@internal/contract-authoring": "8.0.0-rc.23-dev.11",
|
|
23
|
+
"@internal/errors": "8.0.0-rc.23-dev.11",
|
|
24
|
+
"@internal/framework-components": "8.0.0-rc.23-dev.11",
|
|
25
|
+
"@internal/ids": "8.0.0-rc.23-dev.11",
|
|
26
|
+
"@internal/operations": "8.0.0-rc.23-dev.11",
|
|
27
|
+
"@internal/psl-parser": "8.0.0-rc.23-dev.11",
|
|
28
|
+
"@internal/psl-printer": "8.0.0-rc.23-dev.11",
|
|
29
|
+
"@internal/ts-render": "8.0.0-rc.23-dev.11",
|
|
30
|
+
"@internal/type-implementations": "8.0.0-rc.23-dev.11",
|
|
31
|
+
"@repo/tsconfig": "8.0.0-rc.23-dev.11",
|
|
32
|
+
"@internal/publish-surface": "8.0.0-rc.23-dev.11",
|
|
33
|
+
"@repo/tsdown": "8.0.0-rc.23-dev.11",
|
|
34
|
+
"@internal/utils": "8.0.0-rc.23-dev.11",
|
|
35
35
|
"tsdown": "0.22.14",
|
|
36
36
|
"typescript": "5.9.3",
|
|
37
37
|
"vitest": "5.0.0-rc.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-CiIJMjsO.mjs","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/date.mjs"],"sourcesContent":["//#region src/date.ts\n/** Whether `value` is a `Date` that holds an instant, not an Invalid Date. */\nfunction isValidDate(value) {\n\treturn value instanceof Date && Number.isFinite(value.getTime());\n}\n/** Whether ISO text has nonzero fraction digits past the first `fractionDigits`. */\nfunction hasDigitsBelow(text, fractionDigits) {\n\treturn /[1-9]/.test(/\\.(\\d+)/.exec(text)?.[1]?.slice(fractionDigits) ?? \"\");\n}\n/** Whether ISO text has nonzero digits below a millisecond, which a `Date` drops. */\nfunction hasDigitsBelowAMillisecond(text) {\n\treturn hasDigitsBelow(text, 3);\n}\n/** `value` in UTC as `Date.toISOString` writes it, or `undefined` for an Invalid Date or one before `earliestMilliseconds`. */\nfunction utcIsoTextOf(value, earliestMilliseconds) {\n\tconst milliseconds = value.getTime();\n\tif (!Number.isFinite(milliseconds) || milliseconds < earliestMilliseconds) return void 0;\n\treturn value.toISOString();\n}\n//#endregion\nexport { hasDigitsBelow, hasDigitsBelowAMillisecond, isValidDate, utcIsoTextOf };\n\n//# sourceMappingURL=date.mjs.map"],"mappings":";;AAEA,SAAS,YAAY,OAAO;CAC3B,OAAO,iBAAiB,QAAQ,OAAO,SAAS,MAAM,QAAQ,CAAC;AAChE;;AAEA,SAAS,eAAe,MAAM,gBAAgB;CAC7C,OAAO,QAAQ,KAAK,UAAU,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE,MAAM,cAAc,KAAK,EAAE;AAC3E;;AAEA,SAAS,2BAA2B,MAAM;CACzC,OAAO,eAAe,MAAM,CAAC;AAC9B;;AAEA,SAAS,aAAa,OAAO,sBAAsB;CAClD,MAAM,eAAe,MAAM,QAAQ;CACnC,IAAI,CAAC,OAAO,SAAS,YAAY,KAAK,eAAe,sBAAsB,OAAO,KAAK;CACvF,OAAO,MAAM,YAAY;AAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-D0A-2GsY.d.mts","names":[],"sources":["../../../../3-targets/0-shared/type-implementations/dist/date.d.mts"],"mappings":";;;iBAEiB,YAAY,iBAAiB,SAAS;;iBAEtC,eAAe,cAAc;;iBAE7B,2BAA2B;;iBAE3B,aAAa,OAAO,MAAM"}
|