@utiliread/primitives 1.0.0-117 → 1.0.0-119
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 +109 -871
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -7
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/luxon-local.d.ts +2 -0
- package/dist/types/step.d.ts +2 -1
- package/package.json +2 -2
- package/src/index.ts +7 -0
- package/src/luxon-local.ts +3 -0
- package/src/step.ts +2 -1
- package/tsconfig.json +1 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { NumberFormatter, invariantDecimalSeparator, localeDecimalSeparator } fr
|
|
|
5
5
|
import type { AggregateId } from "./aggregate-id";
|
|
6
6
|
import type { BreakdownPeriod } from "./breakdown-rule";
|
|
7
7
|
import { BreakdownRule } from "./breakdown-rule";
|
|
8
|
+
import { Duration } from "./luxon-local";
|
|
8
9
|
import type { MeasureId } from "./measure-id";
|
|
9
10
|
import type { Medium } from "./medium";
|
|
10
11
|
import type { Optional } from "./optional";
|
|
@@ -16,4 +17,4 @@ import { RegisterLibrary } from "./register-library";
|
|
|
16
17
|
import { Repository } from "./repository";
|
|
17
18
|
import { TimeOrRule } from "./time-or-rule";
|
|
18
19
|
import type { UnitId } from "./unit-id";
|
|
19
|
-
export { AggregateId, BreakdownPeriod, BreakdownRule, DayOfWeek, invariantDecimalSeparator, localeDecimalSeparator, MeasureId, Medium, NumberFormatter, Optional, PrecisionNumber, RegisterConvention, RegisterDefinition, RegisterId, RegisterLibrary, registers, Repository, Step, TimeOrRule, UnitId, };
|
|
20
|
+
export { AggregateId, BreakdownPeriod, BreakdownRule, DayOfWeek, invariantDecimalSeparator, localeDecimalSeparator, MeasureId, Medium, NumberFormatter, Optional, PrecisionNumber, RegisterConvention, RegisterDefinition, RegisterId, RegisterLibrary, registers, Repository, Step, TimeOrRule, UnitId, Duration as __Duration, };
|
package/dist/types/step.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utiliread/primitives",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-119",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build": "parcel build && tsc --emitDeclarationOnly --
|
|
10
|
+
"build": "parcel build && tsc --emitDeclarationOnly --outDir dist/types",
|
|
11
11
|
"prettier": "prettier --write src/**/*.ts locales/**/*.json",
|
|
12
12
|
"test": "web-test-runner",
|
|
13
13
|
"clean": "rimraf .parcel-cache dist"
|
package/src/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
import type { AggregateId } from "./aggregate-id";
|
|
13
13
|
import type { BreakdownPeriod } from "./breakdown-rule";
|
|
14
14
|
import { BreakdownRule } from "./breakdown-rule";
|
|
15
|
+
import { Duration } from "./luxon-local";
|
|
15
16
|
import type { MeasureId } from "./measure-id";
|
|
16
17
|
import type { Medium } from "./medium";
|
|
17
18
|
import type { Optional } from "./optional";
|
|
@@ -45,4 +46,10 @@ export {
|
|
|
45
46
|
Step,
|
|
46
47
|
TimeOrRule,
|
|
47
48
|
UnitId,
|
|
49
|
+
|
|
50
|
+
// Hack to force parcel to include Duration in typings file
|
|
51
|
+
// Otherwise it seems to only include DateTime in the dist/index.d.ts which causes the file to be invalid
|
|
52
|
+
// The reason for the ./parcel-workaround file is that it seems to generate the expected typings.
|
|
53
|
+
// If we did `import { Duration } from "luxon"` instead and re-exported it as `__Duration` then it seems invalid.
|
|
54
|
+
Duration as __Duration,
|
|
48
55
|
};
|
package/src/step.ts
CHANGED