@utiliread/primitives 1.0.0-54 → 1.0.0-55
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 +3 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/time-or-rule.js +2 -1
- package/dist/cjs/time-or-rule.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/time-or-rule.d.ts +5 -0
- package/dist/esm/time-or-rule.js +1 -2
- package/dist/esm/time-or-rule.js.map +1 -1
- package/package.json +1 -1
- package/src/time-or-rule.ts +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.localeDecimalSeparator = exports.invariantDecimalSeparator = exports.Step = exports.Repository = exports.RegisterLibrary = exports.RegisterConvention = exports.PrecisionNumber = exports.NumberFormatter = exports.DayOfWeek = void 0;
|
|
3
|
+
exports.localeDecimalSeparator = exports.invariantDecimalSeparator = exports.TimeOrRule = exports.Step = exports.Repository = exports.RegisterLibrary = exports.RegisterConvention = exports.PrecisionNumber = exports.NumberFormatter = exports.DayOfWeek = void 0;
|
|
4
4
|
const register_library_1 = require("./register-library");
|
|
5
5
|
Object.defineProperty(exports, "RegisterLibrary", { enumerable: true, get: function () { return register_library_1.RegisterLibrary; } });
|
|
6
6
|
const number_formatter_1 = require("./number-formatter");
|
|
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "RegisterConvention", { enumerable: true, get: fu
|
|
|
12
12
|
const step_1 = require("./step");
|
|
13
13
|
Object.defineProperty(exports, "Step", { enumerable: true, get: function () { return step_1.Step; } });
|
|
14
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; } });
|
|
15
17
|
const precision_number_1 = require("./precision-number");
|
|
16
18
|
Object.defineProperty(exports, "PrecisionNumber", { enumerable: true, get: function () { return precision_number_1.PrecisionNumber; } });
|
|
17
19
|
require("./repository"); // We need this to get the Repository namespace exported
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAGA,yDAAqD;AAuBjD,gGAvBK,kCAAe,OAuBL;AArBnB,yDAAwG;AAgBpG,gGAhBK,kCAAe,OAgBL;AAUf,0GA1BsB,4CAAyB,OA0BtB;AACzB,uGA3BiD,yCAAsB,OA2BjD;AA1B1B,+DAA2D;AAiBvD,mGAjBK,wCAAkB,OAiBL;AAdtB,iCAAyC;AAmBrC,qFAnBK,WAAI,OAmBL;AATJ,0FAVW,gBAAS,OAUX;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAGA,yDAAqD;AAuBjD,gGAvBK,kCAAe,OAuBL;AArBnB,yDAAwG;AAgBpG,gGAhBK,kCAAe,OAgBL;AAUf,0GA1BsB,4CAAyB,OA0BtB;AACzB,uGA3BiD,yCAAsB,OA2BjD;AA1B1B,+DAA2D;AAiBvD,mGAjBK,wCAAkB,OAiBL;AAdtB,iCAAyC;AAmBrC,qFAnBK,WAAI,OAmBL;AATJ,0FAVW,gBAAS,OAUX;AATb,iDAA4C;AAmBxC,2FAnBK,yBAAU,OAmBL;AAlBd,yDAAqD;AAWjD,gGAXK,kCAAe,OAWL;AAVnB,wBAAsB,CAAC,wDAAwD;AAC/E,6CAA0C;AActC,2FAdK,uBAAU,OAcL"}
|
package/dist/cjs/time-or-rule.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimeOrRule = void 0;
|
|
3
4
|
var TimeOrRule;
|
|
4
5
|
(function (TimeOrRule) {
|
|
5
6
|
function isTime(input) {
|
|
@@ -14,5 +15,5 @@ var TimeOrRule;
|
|
|
14
15
|
return isRule(input) ? input : input.toJSON();
|
|
15
16
|
}
|
|
16
17
|
TimeOrRule.asJSON = asJSON;
|
|
17
|
-
})(TimeOrRule || (TimeOrRule = {}));
|
|
18
|
+
})(TimeOrRule = exports.TimeOrRule || (exports.TimeOrRule = {}));
|
|
18
19
|
//# sourceMappingURL=time-or-rule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-or-rule.js","sourceRoot":"","sources":["../../src/time-or-rule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"time-or-rule.js","sourceRoot":"","sources":["../../src/time-or-rule.ts"],"names":[],"mappings":";;;AAIA,IAAiB,UAAU,CAY1B;AAZD,WAAiB,UAAU;IACvB,SAAgB,MAAM,CAAC,KAAiB;QACpC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;IACrC,CAAC;IAFe,iBAAM,SAErB,CAAA;IAED,SAAgB,MAAM,CAAC,KAAiB;QACpC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;IACrC,CAAC;IAFe,iBAAM,SAErB,CAAA;IAED,SAAgB,MAAM,CAAC,KAAiB;QACpC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAClD,CAAC;IAFe,iBAAM,SAErB,CAAA;AACL,CAAC,EAZgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAY1B"}
|
package/dist/esm/index.js
CHANGED
|
@@ -2,8 +2,9 @@ import { RegisterLibrary } from "./register-library";
|
|
|
2
2
|
import { NumberFormatter, invariantDecimalSeparator, localeDecimalSeparator } from "./number-formatter";
|
|
3
3
|
import { RegisterConvention } from "./register-convention";
|
|
4
4
|
import { Step, DayOfWeek } from "./step";
|
|
5
|
+
import { TimeOrRule } from "./time-or-rule";
|
|
5
6
|
import { PrecisionNumber } from "./precision-number";
|
|
6
7
|
import "./repository"; // We need this to get the Repository namespace exported
|
|
7
8
|
import { Repository } from "./repository";
|
|
8
|
-
export { DayOfWeek, NumberFormatter, PrecisionNumber, RegisterConvention, RegisterLibrary, Repository, Step, invariantDecimalSeparator, localeDecimalSeparator, };
|
|
9
|
+
export { DayOfWeek, NumberFormatter, PrecisionNumber, RegisterConvention, RegisterLibrary, Repository, Step, TimeOrRule, invariantDecimalSeparator, localeDecimalSeparator, };
|
|
9
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":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACxG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACxG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,cAAc,CAAC,CAAC,wDAAwD;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAGH,SAAS,EAET,eAAe,EACf,eAAe,EACf,kBAAkB,EAGlB,eAAe,EACf,UAAU,EACV,IAAI,EACJ,UAAU,EAEV,yBAAyB,EACzB,sBAAsB,GAEzB,CAAC"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { DateTime } from "luxon";
|
|
2
2
|
export declare type TimeOrRule = Date | DateTime | string;
|
|
3
|
+
export declare namespace TimeOrRule {
|
|
4
|
+
function isTime(input: TimeOrRule): input is Date | DateTime;
|
|
5
|
+
function isRule(input: TimeOrRule): input is string;
|
|
6
|
+
function asJSON(input: TimeOrRule): string;
|
|
7
|
+
}
|
package/dist/esm/time-or-rule.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var TimeOrRule;
|
|
1
|
+
export var TimeOrRule;
|
|
2
2
|
(function (TimeOrRule) {
|
|
3
3
|
function isTime(input) {
|
|
4
4
|
return typeof input !== "string";
|
|
@@ -13,5 +13,4 @@ var TimeOrRule;
|
|
|
13
13
|
}
|
|
14
14
|
TimeOrRule.asJSON = asJSON;
|
|
15
15
|
})(TimeOrRule || (TimeOrRule = {}));
|
|
16
|
-
export {};
|
|
17
16
|
//# sourceMappingURL=time-or-rule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-or-rule.js","sourceRoot":"","sources":["../../src/time-or-rule.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"time-or-rule.js","sourceRoot":"","sources":["../../src/time-or-rule.ts"],"names":[],"mappings":"AAIA,MAAM,KAAW,UAAU,CAY1B;AAZD,WAAiB,UAAU;IACvB,SAAgB,MAAM,CAAC,KAAiB;QACpC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;IACrC,CAAC;IAFe,iBAAM,SAErB,CAAA;IAED,SAAgB,MAAM,CAAC,KAAiB;QACpC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;IACrC,CAAC;IAFe,iBAAM,SAErB,CAAA;IAED,SAAgB,MAAM,CAAC,KAAiB;QACpC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAClD,CAAC;IAFe,iBAAM,SAErB,CAAA;AACL,CAAC,EAZgB,UAAU,KAAV,UAAU,QAY1B"}
|
package/package.json
CHANGED
package/src/time-or-rule.ts
CHANGED