@utiliread/primitives 1.0.0-87 → 1.0.0-88

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/cjs/index.js CHANGED
@@ -1,7 +1,32 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.localeDecimalSeparator = exports.invariantDecimalSeparator = exports.TimeOrRule = exports.Step = exports.Repository = exports.RegisterLibrary = exports.RegisterConvention = exports.PrecisionNumber = exports.NumberFormatter = exports.DayOfWeek = void 0;
26
+ exports.registers = exports.localeDecimalSeparator = exports.invariantDecimalSeparator = exports.TimeOrRule = exports.Step = exports.Repository = exports.RegisterLibrary = exports.RegisterConvention = exports.PrecisionNumber = exports.NumberFormatter = exports.DayOfWeek = void 0;
4
27
  require("./repository"); // We need this to get the Repository namespace exported
28
+ const registers = __importStar(require("./registers"));
29
+ exports.registers = registers;
5
30
  const step_1 = require("./step");
6
31
  Object.defineProperty(exports, "DayOfWeek", { enumerable: true, get: function () { return step_1.DayOfWeek; } });
7
32
  Object.defineProperty(exports, "Step", { enumerable: true, get: function () { return step_1.Step; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,wBAAsB,CAAC,wDAAwD;AAE/E,iCAAyC;AAuBrC,0FAvBK,gBAAS,OAuBL;AAST,qFAhCgB,WAAI,OAgChB;AA/BR,yDAI4B;AAoBxB,gGAvBA,kCAAe,OAuBA;AAUf,0GAhCA,4CAAyB,OAgCA;AACzB,uGAhCA,yCAAsB,OAgCA;AAzB1B,yDAAqD;AAejD,gGAfK,kCAAe,OAeL;AAdnB,+DAA2D;AAevD,mGAfK,wCAAkB,OAeL;AAZtB,yDAAqD;AAejD,gGAfK,kCAAe,OAeL;AAdnB,6CAA0C;AAetC,2FAfK,uBAAU,OAeL;AAdd,iDAA4C;AAgBxC,2FAhBK,yBAAU,OAgBL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAAsB,CAAC,wDAAwD;AAE/E,uDAAwC;AAwCpC,8BAAS;AAtCb,iCAAyC;AAuBrC,0FAvBK,gBAAS,OAuBL;AAST,qFAhCgB,WAAI,OAgChB;AA/BR,yDAI4B;AAoBxB,gGAvBA,kCAAe,OAuBA;AAUf,0GAhCA,4CAAyB,OAgCA;AACzB,uGAhCA,yCAAsB,OAgCA;AAzB1B,yDAAqD;AAejD,gGAfK,kCAAe,OAeL;AAdnB,+DAA2D;AAevD,mGAfK,wCAAkB,OAeL;AAZtB,yDAAqD;AAejD,gGAfK,kCAAe,OAeL;AAdnB,6CAA0C;AAetC,2FAfK,uBAAU,OAeL;AAdd,iDAA4C;AAgBxC,2FAhBK,yBAAU,OAgBL"}
@@ -1,4 +1,5 @@
1
1
  import "./repository";
2
+ import * as registers from "./registers";
2
3
  import { DayOfWeek, Step } from "./step";
3
4
  import { NumberFormatter, invariantDecimalSeparator, localeDecimalSeparator } from "./number-formatter";
4
5
  import type { AggregateId } from "./aggregate-id";
@@ -13,4 +14,4 @@ import { RegisterLibrary } from "./register-library";
13
14
  import { Repository } from "./repository";
14
15
  import { TimeOrRule } from "./time-or-rule";
15
16
  import type { UnitId } from "./unit-id";
16
- export { AggregateId, Medium, DayOfWeek, MeasureId, NumberFormatter, PrecisionNumber, RegisterConvention, RegisterDefinition, RegisterId, RegisterLibrary, Repository, Step, TimeOrRule, UnitId, invariantDecimalSeparator, localeDecimalSeparator, Optional, };
17
+ export { AggregateId, Medium, DayOfWeek, MeasureId, NumberFormatter, PrecisionNumber, RegisterConvention, RegisterDefinition, RegisterId, RegisterLibrary, Repository, Step, TimeOrRule, UnitId, invariantDecimalSeparator, localeDecimalSeparator, Optional, registers, };
package/dist/esm/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import "./repository"; // We need this to get the Repository namespace exported
2
+ import * as registers from "./registers";
2
3
  import { DayOfWeek, Step } from "./step";
3
4
  import { NumberFormatter, invariantDecimalSeparator, localeDecimalSeparator, } from "./number-formatter";
4
5
  import { PrecisionNumber } from "./precision-number";
@@ -6,5 +7,5 @@ import { RegisterConvention } from "./register-convention";
6
7
  import { RegisterLibrary } from "./register-library";
7
8
  import { Repository } from "./repository";
8
9
  import { TimeOrRule } from "./time-or-rule";
9
- export { DayOfWeek, NumberFormatter, PrecisionNumber, RegisterConvention, RegisterLibrary, Repository, Step, TimeOrRule, invariantDecimalSeparator, localeDecimalSeparator, };
10
+ export { DayOfWeek, NumberFormatter, PrecisionNumber, RegisterConvention, RegisterLibrary, Repository, Step, TimeOrRule, invariantDecimalSeparator, localeDecimalSeparator, registers, };
10
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC,CAAC,wD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tB,SAAS,GACZ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utiliread/primitives",
3
- "version": "1.0.0-87",
3
+ "version": "1.0.0-88",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -15,9 +15,13 @@
15
15
  "access": "public"
16
16
  },
17
17
  "exports": {
18
- "./*": {
19
- "import": "./dist/esm/*.js",
20
- "require": "./dist/cjs/*.js"
18
+ "./registers": {
19
+ "import": "./dist/esm/registers/index.js",
20
+ "require": "./dist/cjs/registers/index.js"
21
+ },
22
+ ".": {
23
+ "import": "./dist/esm/index.js",
24
+ "require": "./dist/cjs/index.js"
21
25
  }
22
26
  },
23
27
  "devDependencies": {
package/src/index.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import "./repository"; // We need this to get the Repository namespace exported
2
2
 
3
+ import * as registers from "./registers"
4
+
3
5
  import { DayOfWeek, Step } from "./step";
4
6
  import {
5
7
  NumberFormatter,
@@ -38,4 +40,5 @@ export {
38
40
  invariantDecimalSeparator,
39
41
  localeDecimalSeparator,
40
42
  Optional,
43
+ registers,
41
44
  };