@utiliread/primitives 1.0.0-84 → 1.0.0-86
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 +10 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/medium.js +3 -0
- package/dist/cjs/medium.js.map +1 -0
- package/dist/cjs/unit-id.js.map +1 -1
- package/dist/esm/index.d.ts +11 -11
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/medium.d.ts +1 -0
- package/dist/esm/medium.js +2 -0
- package/dist/esm/medium.js.map +1 -0
- package/dist/esm/unit-id.d.ts +1 -1
- package/dist/esm/unit-id.js.map +1 -1
- package/locales/da/units.json +3 -1
- package/locales/en/units.json +3 -1
- package/package.json +1 -1
- package/src/index.ts +13 -11
- package/src/{consumption-type-id.ts → medium.ts} +1 -1
- package/src/unit-id.ts +2 -1
- /package/locales/da/{consumption-types.json → mediums.json} +0 -0
- /package/locales/en/{consumption-types.json → mediums.json} +0 -0
package/dist/cjs/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.localeDecimalSeparator = exports.invariantDecimalSeparator = exports.TimeOrRule = exports.Step = exports.Repository = exports.RegisterLibrary = exports.RegisterConvention = exports.PrecisionNumber = exports.NumberFormatter = exports.DayOfWeek = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
require("./repository"); // We need this to get the Repository namespace exported
|
|
5
|
+
const step_1 = require("./step");
|
|
6
|
+
Object.defineProperty(exports, "DayOfWeek", { enumerable: true, get: function () { return step_1.DayOfWeek; } });
|
|
7
|
+
Object.defineProperty(exports, "Step", { enumerable: true, get: function () { return step_1.Step; } });
|
|
6
8
|
const number_formatter_1 = require("./number-formatter");
|
|
7
9
|
Object.defineProperty(exports, "NumberFormatter", { enumerable: true, get: function () { return number_formatter_1.NumberFormatter; } });
|
|
8
10
|
Object.defineProperty(exports, "invariantDecimalSeparator", { enumerable: true, get: function () { return number_formatter_1.invariantDecimalSeparator; } });
|
|
9
11
|
Object.defineProperty(exports, "localeDecimalSeparator", { enumerable: true, get: function () { return number_formatter_1.localeDecimalSeparator; } });
|
|
10
|
-
const register_convention_1 = require("./register-convention");
|
|
11
|
-
Object.defineProperty(exports, "RegisterConvention", { enumerable: true, get: function () { return register_convention_1.RegisterConvention; } });
|
|
12
|
-
const step_1 = require("./step");
|
|
13
|
-
Object.defineProperty(exports, "Step", { enumerable: true, get: function () { return step_1.Step; } });
|
|
14
|
-
Object.defineProperty(exports, "DayOfWeek", { enumerable: true, get: function () { return step_1.DayOfWeek; } });
|
|
15
|
-
const time_or_rule_1 = require("./time-or-rule");
|
|
16
|
-
Object.defineProperty(exports, "TimeOrRule", { enumerable: true, get: function () { return time_or_rule_1.TimeOrRule; } });
|
|
17
12
|
const precision_number_1 = require("./precision-number");
|
|
18
13
|
Object.defineProperty(exports, "PrecisionNumber", { enumerable: true, get: function () { return precision_number_1.PrecisionNumber; } });
|
|
19
|
-
require("./
|
|
14
|
+
const register_convention_1 = require("./register-convention");
|
|
15
|
+
Object.defineProperty(exports, "RegisterConvention", { enumerable: true, get: function () { return register_convention_1.RegisterConvention; } });
|
|
16
|
+
const register_library_1 = require("./register-library");
|
|
17
|
+
Object.defineProperty(exports, "RegisterLibrary", { enumerable: true, get: function () { return register_library_1.RegisterLibrary; } });
|
|
20
18
|
const repository_1 = require("./repository");
|
|
21
19
|
Object.defineProperty(exports, "Repository", { enumerable: true, get: function () { return repository_1.Repository; } });
|
|
20
|
+
const time_or_rule_1 = require("./time-or-rule");
|
|
21
|
+
Object.defineProperty(exports, "TimeOrRule", { enumerable: true, get: function () { return time_or_rule_1.TimeOrRule; } });
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medium.js","sourceRoot":"","sources":["../../src/medium.ts"],"names":[],"mappings":""}
|
package/dist/cjs/unit-id.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-id.js","sourceRoot":"","sources":["../../src/unit-id.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"unit-id.js","sourceRoot":"","sources":["../../src/unit-id.ts"],"names":[],"mappings":";;;AAwGa,QAAA,WAAW,GAAa;IACjC,eAAe;IACf,UAAU;IACV,cAAc;IACd,cAAc;IACd,cAAc;IACd,SAAS;IACT,aAAa;IACb,aAAa;CAChB,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import type { UnitId } from "./unit-id";
|
|
4
|
-
import { RegisterLibrary } from "./register-library";
|
|
5
|
-
import type { RegisterDefinition } from "./register-definition";
|
|
1
|
+
import "./repository";
|
|
2
|
+
import { DayOfWeek, Step } from "./step";
|
|
6
3
|
import { NumberFormatter, invariantDecimalSeparator, localeDecimalSeparator } from "./number-formatter";
|
|
7
|
-
import { RegisterConvention } from "./register-convention";
|
|
8
4
|
import type { AggregateId } from "./aggregate-id";
|
|
9
5
|
import type { MeasureId } from "./measure-id";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import type { Medium } from "./medium";
|
|
7
|
+
import type { Optional } from "./optional";
|
|
12
8
|
import { PrecisionNumber } from "./precision-number";
|
|
13
|
-
import "./
|
|
9
|
+
import { RegisterConvention } from "./register-convention";
|
|
10
|
+
import type { RegisterDefinition } from "./register-definition";
|
|
11
|
+
import type { RegisterId } from "./register-id";
|
|
12
|
+
import { RegisterLibrary } from "./register-library";
|
|
14
13
|
import { Repository } from "./repository";
|
|
15
|
-
import
|
|
16
|
-
|
|
14
|
+
import { TimeOrRule } from "./time-or-rule";
|
|
15
|
+
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, };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./repository"; // We need this to get the Repository namespace exported
|
|
2
|
+
import { DayOfWeek, Step } from "./step";
|
|
2
3
|
import { NumberFormatter, invariantDecimalSeparator, localeDecimalSeparator, } from "./number-formatter";
|
|
3
|
-
import { RegisterConvention } from "./register-convention";
|
|
4
|
-
import { Step, DayOfWeek } from "./step";
|
|
5
|
-
import { TimeOrRule } from "./time-or-rule";
|
|
6
4
|
import { PrecisionNumber } from "./precision-number";
|
|
7
|
-
import "./
|
|
5
|
+
import { RegisterConvention } from "./register-convention";
|
|
6
|
+
import { RegisterLibrary } from "./register-library";
|
|
8
7
|
import { Repository } from "./repository";
|
|
8
|
+
import { TimeOrRule } from "./time-or-rule";
|
|
9
9
|
export { DayOfWeek, NumberFormatter, PrecisionNumber, RegisterConvention, RegisterLibrary, Repository, Step, TimeOrRule, invariantDecimalSeparator, localeDecimalSeparator, };
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC,CAAC,wDAAwD;AAE/E,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EACH,eAAe,EACf,yBAAyB,EACzB,sBAAsB,GACzB,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C,OAAO,EAGH,SAAS,EAET,eAAe,EACf,eAAe,EACf,kBAAkB,EAGlB,eAAe,EACf,UAAU,EACV,IAAI,EACJ,UAAU,EAEV,yBAAyB,EACzB,sBAAsB,GAEzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Medium = "none" | "heat" | "water" | "cooling" | "electricity" | "infrastructure" | "all";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"medium.js","sourceRoot":"","sources":["../../src/medium.ts"],"names":[],"mappings":""}
|
package/dist/esm/unit-id.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type UnitId = "unitless" | "milliWattHour" | "wattHour" | "kiloWattHour" | "megaWattHour" | "gigaWattHour" | "calorie" | "kiloCalorie" | "megaCalorie" | "joule" | "kiloJoule" | "megaJoule" | "gigaJoule" | "liter" | "cubicMeter" | "fluidOunce" | "gallon" | "gram" | "kiloGram" | "tonne" | "ounce" | "pound" | "ton" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | "milliWatt" | "milliWatt2" | "watt" | "watt2" | "kiloWatt" | "kiloWatt2" | "megaWatt" | "megaWatt2" | "gigaWatt" | "gigaWatt2" | "joulesPerSecond" | "joulesPerSecond2" | "joulesPerMinute" | "joulesPerMinute2" | "joulesPerHour" | "joulesPerHour2" | "litersPerSecond" | "litersPerSecond2" | "litersPerMinute" | "litersPerMinute2" | "litersPerHour" | "litersPerHour2" | "cubicMetersPerSecond" | "cubicMetersPerSecond2" | "cubicMetersPerMinute" | "cubicMetersPerMinute2" | "cubicMetersPerHour" | "cubicMetersPerHour2" | "fluidOuncesPerSecond" | "fluidOuncesPerSecond2" | "fluidOuncesPerMinute" | "fluidOuncesPerMinute2" | "fluidOuncesPerHour" | "fluidOuncesPerHour2" | "gallonsPerSecond" | "gallonsPerSecond2" | "gallonsPerMinute" | "gallonsPerMinute2" | "gallonsPerHour" | "gallonsPerHour2" | "gramsPerSecond" | "gramsPerSecond2" | "gramsPerMinute" | "gramsPerMinute2" | "gramsPerHour" | "gramsPerHour2" | "kiloGramsPerSecond" | "kiloGramsPerSecond2" | "kiloGramsPerMinute" | "kiloGramsPerMinute2" | "kiloGramsPerHour" | "kiloGramsPerHour2" | "celcius" | "kelvin" | "fahrenheit" | "bar" | "bar2" | "pascal" | "pascal2" | "kiloPascal" | "kiloPascal2" | "decibel" | "var" | "kiloVar" | "megaVar" | "varHour" | "kiloVarHour" | "megaVarHour" | "percentage" | "literCelcius" | "cubicMeterCelcius";
|
|
1
|
+
export type UnitId = "unitless" | "milliWattHour" | "wattHour" | "kiloWattHour" | "megaWattHour" | "gigaWattHour" | "calorie" | "kiloCalorie" | "megaCalorie" | "joule" | "kiloJoule" | "megaJoule" | "gigaJoule" | "liter" | "cubicMeter" | "fluidOunce" | "gallon" | "gram" | "kiloGram" | "tonne" | "ounce" | "pound" | "ton" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | "milliWatt" | "milliWatt2" | "watt" | "watt2" | "kiloWatt" | "kiloWatt2" | "megaWatt" | "megaWatt2" | "gigaWatt" | "gigaWatt2" | "joulesPerSecond" | "joulesPerSecond2" | "joulesPerMinute" | "joulesPerMinute2" | "joulesPerHour" | "joulesPerHour2" | "litersPerSecond" | "litersPerSecond2" | "litersPerMinute" | "litersPerMinute2" | "litersPerHour" | "litersPerHour2" | "cubicMetersPerSecond" | "cubicMetersPerSecond2" | "cubicMetersPerMinute" | "cubicMetersPerMinute2" | "cubicMetersPerHour" | "cubicMetersPerHour2" | "fluidOuncesPerSecond" | "fluidOuncesPerSecond2" | "fluidOuncesPerMinute" | "fluidOuncesPerMinute2" | "fluidOuncesPerHour" | "fluidOuncesPerHour2" | "gallonsPerSecond" | "gallonsPerSecond2" | "gallonsPerMinute" | "gallonsPerMinute2" | "gallonsPerHour" | "gallonsPerHour2" | "gramsPerSecond" | "gramsPerSecond2" | "gramsPerMinute" | "gramsPerMinute2" | "gramsPerHour" | "gramsPerHour2" | "kiloGramsPerSecond" | "kiloGramsPerSecond2" | "kiloGramsPerMinute" | "kiloGramsPerMinute2" | "kiloGramsPerHour" | "kiloGramsPerHour2" | "celcius" | "kelvin" | "fahrenheit" | "bar" | "bar2" | "pascal" | "pascal2" | "kiloPascal" | "kiloPascal2" | "decibel" | "var" | "kiloVar" | "megaVar" | "varHour" | "kiloVarHour" | "megaVarHour" | "percentage" | "literCelcius" | "cubicMeterCelcius" | "json";
|
|
2
2
|
export declare const energyUnits: UnitId[];
|
package/dist/esm/unit-id.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-id.js","sourceRoot":"","sources":["../../src/unit-id.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unit-id.js","sourceRoot":"","sources":["../../src/unit-id.ts"],"names":[],"mappings":"AAwGA,MAAM,CAAC,MAAM,WAAW,GAAa;IACjC,eAAe;IACf,UAAU;IACV,cAAc;IACd,cAAc;IACd,cAAc;IACd,SAAS;IACT,aAAa;IACb,aAAa;CAChB,CAAC"}
|
package/locales/da/units.json
CHANGED
package/locales/en/units.json
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import { RegisterLibrary } from "./register-library";
|
|
5
|
-
import type { RegisterDefinition } from "./register-definition";
|
|
1
|
+
import "./repository"; // We need this to get the Repository namespace exported
|
|
2
|
+
|
|
3
|
+
import { DayOfWeek, Step } from "./step";
|
|
6
4
|
import {
|
|
7
5
|
NumberFormatter,
|
|
8
6
|
invariantDecimalSeparator,
|
|
9
7
|
localeDecimalSeparator,
|
|
10
8
|
} from "./number-formatter";
|
|
11
|
-
|
|
9
|
+
|
|
12
10
|
import type { AggregateId } from "./aggregate-id";
|
|
13
11
|
import type { MeasureId } from "./measure-id";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
12
|
+
import type { Medium } from "./medium";
|
|
13
|
+
import type { Optional } from "./optional";
|
|
16
14
|
import { PrecisionNumber } from "./precision-number";
|
|
17
|
-
import "./
|
|
15
|
+
import { RegisterConvention } from "./register-convention";
|
|
16
|
+
import type { RegisterDefinition } from "./register-definition";
|
|
17
|
+
import type { RegisterId } from "./register-id";
|
|
18
|
+
import { RegisterLibrary } from "./register-library";
|
|
18
19
|
import { Repository } from "./repository";
|
|
19
|
-
import
|
|
20
|
+
import { TimeOrRule } from "./time-or-rule";
|
|
21
|
+
import type { UnitId } from "./unit-id";
|
|
20
22
|
|
|
21
23
|
export {
|
|
22
24
|
AggregateId,
|
|
23
|
-
|
|
25
|
+
Medium,
|
|
24
26
|
DayOfWeek,
|
|
25
27
|
MeasureId,
|
|
26
28
|
NumberFormatter,
|
package/src/unit-id.ts
CHANGED
|
File without changes
|
|
File without changes
|