@tinycloud/sdk-core 2.7.0-beta.3 → 2.7.0
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/{capability-DpdAwc1W.d.cts → capability-BjzXwtNw.d.cts} +3 -2
- package/dist/{capability-DpdAwc1W.d.ts → capability-BjzXwtNw.d.ts} +3 -2
- package/dist/index.cjs +3100 -352
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +154 -10
- package/dist/index.d.ts +154 -10
- package/dist/index.js +3095 -344
- package/dist/index.js.map +1 -1
- package/dist/policy/index.cjs +1217 -59
- package/dist/policy/index.cjs.map +1 -1
- package/dist/policy/index.d.cts +4 -4
- package/dist/policy/index.d.ts +4 -4
- package/dist/policy/index.js +1208 -54
- package/dist/policy/index.js.map +1 -1
- package/dist/requester/index.cjs +1234 -78
- package/dist/requester/index.cjs.map +1 -1
- package/dist/requester/index.d.cts +1 -1
- package/dist/requester/index.d.ts +1 -1
- package/dist/requester/index.js +1227 -75
- package/dist/requester/index.js.map +1 -1
- package/dist/{signed-object-BHkLbCXI.d.ts → signed-object-C6mWbTbB.d.ts} +1 -1
- package/dist/{signed-object-CpXNKC4d.d.cts → signed-object-IMAm5a32.d.cts} +1 -1
- package/package.json +6 -3
|
@@ -7,7 +7,8 @@ type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
|
7
7
|
* This local encoder is intentionally stricter than JSON.stringify:
|
|
8
8
|
* it rejects non-plain JSON inputs, sparse arrays, undefined/functions/symbols,
|
|
9
9
|
* non-finite numbers, BigInt, dangerous prototype keys, and lone surrogates.
|
|
10
|
-
* Object keys are sorted by
|
|
10
|
+
* Object keys are sorted lexicographically by their raw UTF-16 code units,
|
|
11
|
+
* as required by RFC 8785 section 3.2.3, before serialization.
|
|
11
12
|
*/
|
|
12
13
|
declare function jcsCanonicalize(input: unknown): string;
|
|
13
14
|
declare function normalizeJson(input: unknown, path?: string): JsonValue;
|
|
@@ -43,4 +44,4 @@ declare function canonicalizePolicyCapability(input: unknown): PolicyCapability;
|
|
|
43
44
|
declare function policyCapabilityDigestHex(input: unknown): string;
|
|
44
45
|
declare function policyCapabilityContains(authority: unknown, request: unknown): boolean;
|
|
45
46
|
|
|
46
|
-
export { type JsonObject as J,
|
|
47
|
+
export { type JsonObject as J, PolicyCapabilityError as P, type JsonValue as a, type PolicyCapability as b, type PolicyCapabilityErrorCode as c, canonicalizePolicyCapability as d, normalizePolicyCapability as e, policyCapabilityDigestHex as f, jcsCanonicalize as j, normalizeJson as n, policyCapabilityContains as p, serialize as s };
|
|
@@ -7,7 +7,8 @@ type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
|
7
7
|
* This local encoder is intentionally stricter than JSON.stringify:
|
|
8
8
|
* it rejects non-plain JSON inputs, sparse arrays, undefined/functions/symbols,
|
|
9
9
|
* non-finite numbers, BigInt, dangerous prototype keys, and lone surrogates.
|
|
10
|
-
* Object keys are sorted by
|
|
10
|
+
* Object keys are sorted lexicographically by their raw UTF-16 code units,
|
|
11
|
+
* as required by RFC 8785 section 3.2.3, before serialization.
|
|
11
12
|
*/
|
|
12
13
|
declare function jcsCanonicalize(input: unknown): string;
|
|
13
14
|
declare function normalizeJson(input: unknown, path?: string): JsonValue;
|
|
@@ -43,4 +44,4 @@ declare function canonicalizePolicyCapability(input: unknown): PolicyCapability;
|
|
|
43
44
|
declare function policyCapabilityDigestHex(input: unknown): string;
|
|
44
45
|
declare function policyCapabilityContains(authority: unknown, request: unknown): boolean;
|
|
45
46
|
|
|
46
|
-
export { type JsonObject as J,
|
|
47
|
+
export { type JsonObject as J, PolicyCapabilityError as P, type JsonValue as a, type PolicyCapability as b, type PolicyCapabilityErrorCode as c, canonicalizePolicyCapability as d, normalizePolicyCapability as e, policyCapabilityDigestHex as f, jcsCanonicalize as j, normalizeJson as n, policyCapabilityContains as p, serialize as s };
|