@fedify/fedify 1.6.0-dev.810 → 1.6.0-dev.811
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/esm/deno.js +1 -4
- package/esm/runtime/docloader.js +14 -7
- package/esm/runtime/key.js +3 -2
- package/esm/sig/http.js +35 -1
- package/esm/vocab/vocab.js +176 -176
- package/package.json +1 -1
- package/types/deno.d.ts +0 -3
- package/types/runtime/docloader.d.ts.map +1 -1
- package/types/runtime/key.d.ts.map +1 -1
- package/types/sig/http.d.ts +15 -0
- package/types/sig/http.d.ts.map +1 -1
- package/esm/deps/jsr.io/@david/which-runtime/0.2.1/mod.js +0 -10
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.js +0 -2
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.js +0 -32
- package/esm/deps/jsr.io/@std/crypto/1.0.5/timing_safe_equal.js +0 -55
- package/types/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts +0 -3
- package/types/deps/jsr.io/@david/which-runtime/0.2.1/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +0 -9
- package/types/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +0 -21
- package/types/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/crypto/1.0.5/timing_safe_equal.d.ts +0 -34
- package/types/deps/jsr.io/@std/crypto/1.0.5/timing_safe_equal.d.ts.map +0 -1
package/package.json
CHANGED
package/types/deno.d.ts
CHANGED
@@ -18,7 +18,6 @@ declare namespace _default {
|
|
18
18
|
};
|
19
19
|
let imports: {
|
20
20
|
"@cfworker/json-schema": string;
|
21
|
-
"@david/which-runtime": string;
|
22
21
|
"@deno/dnt": string;
|
23
22
|
"@es-toolkit/es-toolkit": string;
|
24
23
|
"@hugoalh/http-header-link": string;
|
@@ -26,8 +25,6 @@ declare namespace _default {
|
|
26
25
|
"@opentelemetry/semantic-conventions": string;
|
27
26
|
"@phensley/language-tag": string;
|
28
27
|
"@std/assert": string;
|
29
|
-
"@std/bytes": string;
|
30
|
-
"@std/crypto": string;
|
31
28
|
"@std/encoding": string;
|
32
29
|
"@std/http": string;
|
33
30
|
"@std/testing": string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"docloader.d.ts","sourceRoot":"","sources":["../../src/runtime/docloader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"docloader.d.ts","sourceRoot":"","sources":["../../src/runtime/docloader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAEL,KAAK,mCAAmC,EACzC,MAAM,gBAAgB,CAAC;AAOxB;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,OAAO,CAAC,EAAE,4BAA4B,KACnC,cAAc,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,mBAAmB,GAAG,MAAM,CAAC;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EG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,EAAE,EAAE,OAAO,CAAC;IAEZ;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;IAEf;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;CAC1E;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CACrB,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,iBAAiB,GAC/C,cAAc,CA4DhB;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAE,mBAAwB,GAC1C,MAAM,CAoBR"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../src/runtime/key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"key.d.ts","sourceRoot":"","sources":["../../src/runtime/key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAsB5C;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAqBxE;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAMxE;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAInE;AAID;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAEjE;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CA8BhF;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAuChF"}
|
package/types/sig/http.d.ts
CHANGED
@@ -203,4 +203,19 @@ export declare function doubleKnock(request: Request, identity: {
|
|
203
203
|
keyId: URL;
|
204
204
|
privateKey: dntShim.CryptoKey;
|
205
205
|
}, options?: DoubleKnockOptions): Promise<Response>;
|
206
|
+
/**
|
207
|
+
* Performs a timing-safe equality comparison between two `Uint8Array` values.
|
208
|
+
*
|
209
|
+
* This function is designed to take a constant amount of time to execute,
|
210
|
+
* dependent only on the length of the longer of the two arrays,
|
211
|
+
* regardless of where the first difference in bytes occurs. This helps
|
212
|
+
* prevent timing attacks.
|
213
|
+
*
|
214
|
+
* @param a The first bytes.
|
215
|
+
* @param b The second bytes.
|
216
|
+
* @returns `true` if the arrays are of the same length and contain the same
|
217
|
+
* bytes, `false` otherwise.
|
218
|
+
* @since 1.6.0
|
219
|
+
*/
|
220
|
+
export declare function timingSafeEqual(a: Uint8Array, b: Uint8Array): boolean;
|
206
221
|
//# sourceMappingURL=http.d.ts.map
|
package/types/sig/http.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/sig/http.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,oBAAoB,CAAC;
|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AAM,EAAE,MAAM,GACb,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAElE;;;;OAIG;IACH,YAAY,CACV,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,yBAAyB,GAC9B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,cAAc,CAAC,EAAE,mCAAmC,CAAC;IAErD;;;OAGG;IACH,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAEjC;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;IAAE,KAAK,EAAE,GAAG,CAAC;IAAC,UAAU,EAAE,OAAO,CAAC,SAAS,CAAA;CAAE,EACvD,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,QAAQ,CAAC,CA8FnB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAuBrE"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
const inner = {
|
2
|
-
// dnt-shim-ignore
|
3
|
-
// deno-lint-ignore no-explicit-any
|
4
|
-
isMaybeNode: globalThis.process?.versions?.node != null,
|
5
|
-
// dnt-shim-ignore
|
6
|
-
// deno-lint-ignore no-explicit-any
|
7
|
-
isDeno: globalThis.Deno?.version?.deno != null,
|
8
|
-
};
|
9
|
-
export const isNode = inner.isMaybeNode && !inner.isDeno;
|
10
|
-
export const isDeno = inner.isDeno;
|
@@ -1,32 +0,0 @@
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
2
|
-
// This module is browser compatible.
|
3
|
-
/**
|
4
|
-
* Concatenate an array of byte slices into a single slice.
|
5
|
-
*
|
6
|
-
* @param buffers Array of byte slices to concatenate.
|
7
|
-
* @returns A new byte slice containing all the input slices concatenated.
|
8
|
-
*
|
9
|
-
* @example Basic usage
|
10
|
-
* ```ts
|
11
|
-
* import { concat } from "@std/bytes/concat";
|
12
|
-
* import { assertEquals } from "@std/assert";
|
13
|
-
*
|
14
|
-
* const a = new Uint8Array([0, 1, 2]);
|
15
|
-
* const b = new Uint8Array([3, 4, 5]);
|
16
|
-
*
|
17
|
-
* assertEquals(concat([a, b]), new Uint8Array([0, 1, 2, 3, 4, 5]));
|
18
|
-
* ```
|
19
|
-
*/
|
20
|
-
export function concat(buffers) {
|
21
|
-
let length = 0;
|
22
|
-
for (const buffer of buffers) {
|
23
|
-
length += buffer.length;
|
24
|
-
}
|
25
|
-
const output = new Uint8Array(length);
|
26
|
-
let index = 0;
|
27
|
-
for (const buffer of buffers) {
|
28
|
-
output.set(buffer, index);
|
29
|
-
index += buffer.length;
|
30
|
-
}
|
31
|
-
return output;
|
32
|
-
}
|
@@ -1,55 +0,0 @@
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
2
|
-
// This module is browser compatible.
|
3
|
-
function toDataView(value) {
|
4
|
-
if (value instanceof DataView) {
|
5
|
-
return value;
|
6
|
-
}
|
7
|
-
return ArrayBuffer.isView(value)
|
8
|
-
? new DataView(value.buffer, value.byteOffset, value.byteLength)
|
9
|
-
: new DataView(value);
|
10
|
-
}
|
11
|
-
/**
|
12
|
-
* When checking the values of cryptographic hashes are equal, default
|
13
|
-
* comparisons can be susceptible to timing based attacks, where attacker is
|
14
|
-
* able to find out information about the host system by repeatedly checking
|
15
|
-
* response times to equality comparisons of values.
|
16
|
-
*
|
17
|
-
* It is likely some form of timing safe equality will make its way to the
|
18
|
-
* WebCrypto standard (see:
|
19
|
-
* {@link https://github.com/w3c/webcrypto/issues/270 | w3c/webcrypto#270}), but until
|
20
|
-
* that time, `timingSafeEqual()` is provided:
|
21
|
-
*
|
22
|
-
* @example Usage
|
23
|
-
* ```ts
|
24
|
-
* import { timingSafeEqual } from "@std/crypto/timing-safe-equal";
|
25
|
-
* import { assert } from "@std/assert";
|
26
|
-
*
|
27
|
-
* const a = await crypto.subtle.digest(
|
28
|
-
* "SHA-384",
|
29
|
-
* new TextEncoder().encode("hello world"),
|
30
|
-
* );
|
31
|
-
* const b = await crypto.subtle.digest(
|
32
|
-
* "SHA-384",
|
33
|
-
* new TextEncoder().encode("hello world"),
|
34
|
-
* );
|
35
|
-
*
|
36
|
-
* assert(timingSafeEqual(a, b));
|
37
|
-
* ```
|
38
|
-
*
|
39
|
-
* @param a The first value to compare.
|
40
|
-
* @param b The second value to compare.
|
41
|
-
* @returns `true` if the values are equal, otherwise `false`.
|
42
|
-
*/
|
43
|
-
export function timingSafeEqual(a, b) {
|
44
|
-
if (a.byteLength !== b.byteLength)
|
45
|
-
return false;
|
46
|
-
const dataViewA = toDataView(a);
|
47
|
-
const dataViewB = toDataView(b);
|
48
|
-
const length = a.byteLength;
|
49
|
-
let out = 0;
|
50
|
-
let i = -1;
|
51
|
-
while (++i < length) {
|
52
|
-
out |= dataViewA.getUint8(i) ^ dataViewB.getUint8(i);
|
53
|
-
}
|
54
|
-
return out === 0;
|
55
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@david/which-runtime/0.2.1/mod.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,MAAM,EAAE,OAA4C,CAAC;AAClE,eAAO,MAAM,MAAM,EAAE,OAAsB,CAAC"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Proxy type of {@code Uint8Array<ArrayBuffer} or {@code Uint8Array} in TypeScript 5.7 or below respectively.
|
3
|
-
*
|
4
|
-
* This type is internal utility type and should not be used directly.
|
5
|
-
*
|
6
|
-
* @internal @private
|
7
|
-
*/
|
8
|
-
export type Uint8Array_ = ReturnType<Uint8Array["slice"]>;
|
9
|
-
//# sourceMappingURL=_types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.6/_types.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import type { Uint8Array_ } from "./_types.js";
|
2
|
-
export type { Uint8Array_ };
|
3
|
-
/**
|
4
|
-
* Concatenate an array of byte slices into a single slice.
|
5
|
-
*
|
6
|
-
* @param buffers Array of byte slices to concatenate.
|
7
|
-
* @returns A new byte slice containing all the input slices concatenated.
|
8
|
-
*
|
9
|
-
* @example Basic usage
|
10
|
-
* ```ts
|
11
|
-
* import { concat } from "@std/bytes/concat";
|
12
|
-
* import { assertEquals } from "@std/assert";
|
13
|
-
*
|
14
|
-
* const a = new Uint8Array([0, 1, 2]);
|
15
|
-
* const b = new Uint8Array([3, 4, 5]);
|
16
|
-
*
|
17
|
-
* assertEquals(concat([a, b]), new Uint8Array([0, 1, 2, 3, 4, 5]));
|
18
|
-
* ```
|
19
|
-
*/
|
20
|
-
export declare function concat(buffers: readonly Uint8Array[]): Uint8Array_;
|
21
|
-
//# sourceMappingURL=concat.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/bytes/1.0.6/concat.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,GAAG,WAAW,CAalE"}
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* When checking the values of cryptographic hashes are equal, default
|
3
|
-
* comparisons can be susceptible to timing based attacks, where attacker is
|
4
|
-
* able to find out information about the host system by repeatedly checking
|
5
|
-
* response times to equality comparisons of values.
|
6
|
-
*
|
7
|
-
* It is likely some form of timing safe equality will make its way to the
|
8
|
-
* WebCrypto standard (see:
|
9
|
-
* {@link https://github.com/w3c/webcrypto/issues/270 | w3c/webcrypto#270}), but until
|
10
|
-
* that time, `timingSafeEqual()` is provided:
|
11
|
-
*
|
12
|
-
* @example Usage
|
13
|
-
* ```ts
|
14
|
-
* import { timingSafeEqual } from "@std/crypto/timing-safe-equal";
|
15
|
-
* import { assert } from "@std/assert";
|
16
|
-
*
|
17
|
-
* const a = await crypto.subtle.digest(
|
18
|
-
* "SHA-384",
|
19
|
-
* new TextEncoder().encode("hello world"),
|
20
|
-
* );
|
21
|
-
* const b = await crypto.subtle.digest(
|
22
|
-
* "SHA-384",
|
23
|
-
* new TextEncoder().encode("hello world"),
|
24
|
-
* );
|
25
|
-
*
|
26
|
-
* assert(timingSafeEqual(a, b));
|
27
|
-
* ```
|
28
|
-
*
|
29
|
-
* @param a The first value to compare.
|
30
|
-
* @param b The second value to compare.
|
31
|
-
* @returns `true` if the values are equal, otherwise `false`.
|
32
|
-
*/
|
33
|
-
export declare function timingSafeEqual(a: ArrayBufferView | ArrayBufferLike | DataView, b: ArrayBufferView | ArrayBufferLike | DataView): boolean;
|
34
|
-
//# sourceMappingURL=timing_safe_equal.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"timing_safe_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/crypto/1.0.5/timing_safe_equal.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,eAAe,CAC7B,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,QAAQ,EAC/C,CAAC,EAAE,eAAe,GAAG,eAAe,GAAG,QAAQ,GAC9C,OAAO,CAWT"}
|