@fedify/redis 2.4.0-dev.1581 → 2.4.0-dev.1599
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/codec.cjs +1 -1
- package/dist/codec.js +1 -1
- package/dist/kv.cjs +1 -1
- package/dist/kv.js +1 -1
- package/dist/mod.cjs +1 -1
- package/dist/mod.js +1 -1
- package/dist/mq.cjs +5 -2
- package/dist/mq.js +1 -1
- package/dist/node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/chunks/apiHelpers.cjs +143 -0
- package/dist/node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/chunks/classApi-basic.cjs +854 -0
- package/dist/node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/chunks/internal.cjs +2711 -0
- package/dist/node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/chunks/root.cjs +5 -0
- package/dist/node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/index.cjs +8 -0
- package/dist/node_modules/.pnpm/temporal-utils@1.0.1/node_modules/temporal-utils/dist/errorMessages.cjs +15 -0
- package/dist/node_modules/.pnpm/temporal-utils@1.0.1/node_modules/temporal-utils/dist/utils.cjs +51 -0
- package/package.json +7 -6
package/dist/node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/index.cjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
const require_root = require("./chunks/root.cjs");
|
|
3
|
+
const require_classApi_basic = require("./chunks/classApi-basic.cjs");
|
|
4
|
+
//#region ../../node_modules/.pnpm/temporal-polyfill@1.0.1/node_modules/temporal-polyfill/index.js
|
|
5
|
+
const Temporal = require_root.NativeTemporal || require_classApi_basic.Temporal;
|
|
6
|
+
require_root.NativeTemporal ? Date.prototype.toTemporalInstant : require_classApi_basic.toTemporalInstant;
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.Temporal = Temporal;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/temporal-utils@1.0.1/node_modules/temporal-utils/dist/errorMessages.js
|
|
3
|
+
const expectedPositive = (entityName, num) => `Non-positive ${entityName}: ${num}`;
|
|
4
|
+
const expectedFinite = (entityName, num) => `Non-finite ${entityName}: ${num}`;
|
|
5
|
+
const forbiddenBigIntToNumber = (entityName) => `Cannot convert bigint to ${entityName}`;
|
|
6
|
+
const invalidObject = "Invalid object";
|
|
7
|
+
const numberOutOfRange = (entityName, val, min, max) => invalidEntity(entityName, val) + `; must be between ${min}-${max}`;
|
|
8
|
+
const invalidEntity = (fieldName, val) => `Invalid ${fieldName}: ${val}`;
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.expectedFinite = expectedFinite;
|
|
11
|
+
exports.expectedPositive = expectedPositive;
|
|
12
|
+
exports.forbiddenBigIntToNumber = forbiddenBigIntToNumber;
|
|
13
|
+
exports.invalidEntity = invalidEntity;
|
|
14
|
+
exports.invalidObject = invalidObject;
|
|
15
|
+
exports.numberOutOfRange = numberOutOfRange;
|
package/dist/node_modules/.pnpm/temporal-utils@1.0.1/node_modules/temporal-utils/dist/utils.cjs
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
const require_errorMessages = require("./errorMessages.cjs");
|
|
3
|
+
//#region ../../node_modules/.pnpm/temporal-utils@1.0.1/node_modules/temporal-utils/dist/utils.js
|
|
4
|
+
const nanoInMicro = 1e3;
|
|
5
|
+
const nanoInMilli = 1e6;
|
|
6
|
+
const nanoInSec = 1e9;
|
|
7
|
+
const nanoInMinute = 6e10;
|
|
8
|
+
const nanoInHour = 36e11;
|
|
9
|
+
function normalizeOptions(options) {
|
|
10
|
+
if (options === void 0) return Object.create(null);
|
|
11
|
+
return requireObjectLike(options);
|
|
12
|
+
}
|
|
13
|
+
function toFiniteNumber(arg, entityName = "number") {
|
|
14
|
+
if (typeof arg === "bigint") throw new TypeError(require_errorMessages.forbiddenBigIntToNumber(entityName));
|
|
15
|
+
arg = Number(arg);
|
|
16
|
+
if (!Number.isFinite(arg)) throw new RangeError(require_errorMessages.expectedFinite(entityName, arg));
|
|
17
|
+
return arg;
|
|
18
|
+
}
|
|
19
|
+
function toIntegerWithTrunc(arg, entityName) {
|
|
20
|
+
return Math.trunc(toFiniteNumber(arg, entityName)) || 0;
|
|
21
|
+
}
|
|
22
|
+
function toPositiveIntegerWithTruncation(arg, entityName) {
|
|
23
|
+
return requireNumberIsPositive(toIntegerWithTrunc(arg, entityName), entityName);
|
|
24
|
+
}
|
|
25
|
+
function requireNumberIsPositive(num, entityName = "number") {
|
|
26
|
+
if (num <= 0) throw new RangeError(require_errorMessages.expectedPositive(entityName, num));
|
|
27
|
+
return num;
|
|
28
|
+
}
|
|
29
|
+
function constrainToRange(num, min, max) {
|
|
30
|
+
return Math.min(Math.max(num, min), max);
|
|
31
|
+
}
|
|
32
|
+
function isObjectLike(arg) {
|
|
33
|
+
return arg !== null && (typeof arg === "object" || typeof arg === "function");
|
|
34
|
+
}
|
|
35
|
+
function requireObjectLike(arg) {
|
|
36
|
+
if (!isObjectLike(arg)) throw new TypeError(require_errorMessages.invalidObject);
|
|
37
|
+
return arg;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.constrainToRange = constrainToRange;
|
|
41
|
+
exports.isObjectLike = isObjectLike;
|
|
42
|
+
exports.nanoInHour = nanoInHour;
|
|
43
|
+
exports.nanoInMicro = nanoInMicro;
|
|
44
|
+
exports.nanoInMilli = nanoInMilli;
|
|
45
|
+
exports.nanoInMinute = nanoInMinute;
|
|
46
|
+
exports.nanoInSec = nanoInSec;
|
|
47
|
+
exports.normalizeOptions = normalizeOptions;
|
|
48
|
+
exports.requireObjectLike = requireObjectLike;
|
|
49
|
+
exports.toFiniteNumber = toFiniteNumber;
|
|
50
|
+
exports.toIntegerWithTrunc = toIntegerWithTrunc;
|
|
51
|
+
exports.toPositiveIntegerWithTruncation = toPositiveIntegerWithTruncation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/redis",
|
|
3
|
-
"version": "2.4.0-dev.
|
|
3
|
+
"version": "2.4.0-dev.1599+7b19967f",
|
|
4
4
|
"description": "Redis drivers for Fedify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fedify",
|
|
@@ -74,20 +74,21 @@
|
|
|
74
74
|
"package.json"
|
|
75
75
|
],
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@
|
|
78
|
-
"
|
|
77
|
+
"@logtape/logtape": "^2.2.0",
|
|
78
|
+
"temporal-polyfill": "^1.0.1"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"ioredis": "^5.8.2",
|
|
82
|
-
"@fedify/fedify": "^2.4.0-dev.
|
|
82
|
+
"@fedify/fedify": "^2.4.0-dev.1599+7b19967f"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@std/async": "npm:@jsr/std__async@^1.0.13",
|
|
86
|
+
"@js-temporal/polyfill": "^0.5.1",
|
|
86
87
|
"@types/node": "^22.17.0",
|
|
87
88
|
"tsdown": "^0.22.0",
|
|
88
89
|
"typescript": "^6.0.0",
|
|
89
|
-
"@fedify/
|
|
90
|
-
"@fedify/
|
|
90
|
+
"@fedify/testing": "^2.4.0-dev.1599+7b19967f",
|
|
91
|
+
"@fedify/fixture": "^2.0.0"
|
|
91
92
|
},
|
|
92
93
|
"scripts": {
|
|
93
94
|
"build:self": "tsdown",
|