@reallyme/jose 0.4.4 → 0.4.6
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/LICENSE +1 -1
- package/NOTICE +3 -3
- package/dist/boundary.js +1 -1
- package/dist/errors.js +1 -1
- package/dist/facade-support.js +1 -1
- package/dist/facade.js +1 -1
- package/dist/index.js +1 -1
- package/dist/memory.js +1 -1
- package/dist/proto/generated/reallyme/jose/v1/jose_pb.js +1 -1
- package/dist/proto.js +1 -1
- package/dist/provider.js +1 -1
- package/dist/validate.js +1 -1
- package/dist/wasm/LICENSE +1 -1
- package/dist/wasm/reallyme_jose_wasm.js +25 -17
- package/dist/wasm/reallyme_jose_wasm_bg.wasm +0 -0
- package/dist/wasmModuleTypes.js +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -5,7 +5,7 @@ license notices and terms.
|
|
|
5
5
|
|
|
6
6
|
MIT License
|
|
7
7
|
|
|
8
|
-
Copyright (c) 2026 ReallyMe
|
|
8
|
+
Copyright (c) 2026 ReallyMe Technologies Limited
|
|
9
9
|
|
|
10
10
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
11
|
of this software and associated documentation files (the "Software"), to deal
|
package/NOTICE
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
SPDX-FileCopyrightText: 2026 ReallyMe
|
|
1
|
+
SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
|
|
2
2
|
|
|
3
3
|
SPDX-License-Identifier: MIT OR Apache-2.0
|
|
4
4
|
|
|
5
5
|
ReallyMe JOSE
|
|
6
|
-
Copyright © 2026 ReallyMe
|
|
6
|
+
Copyright © 2026 ReallyMe Technologies Limited. All rights reserved.
|
|
7
7
|
|
|
8
|
-
This package includes JOSE, JWT, JWS, and JWE helpers developed by ReallyMe
|
|
8
|
+
This package includes JOSE, JWT, JWS, and JWE helpers developed by ReallyMe Technologies Limited.
|
|
9
9
|
Except as otherwise noted, they are distributed under either the MIT License
|
|
10
10
|
or the Apache License, Version 2.0, at your option.
|
|
11
11
|
|
package/dist/boundary.js
CHANGED
package/dist/errors.js
CHANGED
package/dist/facade-support.js
CHANGED
package/dist/facade.js
CHANGED
package/dist/index.js
CHANGED
package/dist/memory.js
CHANGED
package/dist/proto.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// SPDX-FileCopyrightText: 2026 ReallyMe
|
|
1
|
+
// SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: MIT OR Apache-2.0
|
|
4
4
|
export { file_reallyme_jose_v1_jose, JoseBackendErrorSchema, JoseCompactResultSchema, JoseErrorReason, JoseErrorReasonSchema, JoseErrorSchema, JoseExpectedBytesSchema, JoseExpectedStringSchema, JoseJweContentEncryptionAlgorithm, JoseJweContentEncryptionAlgorithmSchema, JoseJweDecryptRequestSchema, JoseJweDecryptResponseSchema, JoseJweEncryptRequestSchema, JoseJweEncryptResponseSchema, JoseJweHeaderValidationPolicySchema, JoseJweKeyManagementAlgorithm, JoseJweKeyManagementAlgorithmSchema, JoseJwePlaintextResultSchema, JoseJwsSignRequestSchema, JoseJwsSignResponseSchema, JoseJwsVerifyRequestSchema, JoseJwsVerifyResponseSchema, JoseJwtClaimsResultSchema, JoseJwtDecodeUnsignedRequestSchema, JoseJwtDecodeUnsignedResponseSchema, JoseJwtEncodeUnsignedRequestSchema, JoseJwtEncodeUnsignedResponseSchema, JoseJwtHeaderValidationPolicySchema, JoseJwtSignRequestSchema, JoseJwtSignResponseSchema, JoseJwtTemporalValidationPolicySchema, JoseJwtVerifyRequestSchema, JoseJwtVerifyResponseSchema, JoseOperationContractVersion, JoseOperationContractVersionSchema, JoseOperationRequestSchema, JoseOperationResponseSchema, JosePrimitiveErrorSchema, JoseProviderErrorSchema, JoseSignatureAlgorithm, JoseSignatureAlgorithmSchema, JoseVerifyResultSchema, } from "./proto/generated/reallyme/jose/v1/jose_pb.js";
|
package/dist/provider.js
CHANGED
package/dist/validate.js
CHANGED
package/dist/wasm/LICENSE
CHANGED
|
@@ -5,7 +5,7 @@ license notices and terms.
|
|
|
5
5
|
|
|
6
6
|
MIT License
|
|
7
7
|
|
|
8
|
-
Copyright (c) 2026 ReallyMe
|
|
8
|
+
Copyright (c) 2026 ReallyMe Technologies Limited
|
|
9
9
|
|
|
10
10
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
11
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -22,31 +22,30 @@ export function executeOperationJson(request) {
|
|
|
22
22
|
function __wbg_get_imports() {
|
|
23
23
|
const import0 = {
|
|
24
24
|
__proto__: null,
|
|
25
|
-
|
|
25
|
+
__wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
|
|
26
26
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
27
27
|
},
|
|
28
|
-
|
|
28
|
+
__wbg_getRandomValues_8b6f1f663e6f188d: function() { return handleError(function (arg0, arg1) {
|
|
29
29
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
30
30
|
}, arguments); },
|
|
31
|
-
|
|
31
|
+
__wbg_length_186163212ffe79c3: function(arg0) {
|
|
32
32
|
const ret = arg0.length;
|
|
33
33
|
return ret;
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
__wbg_new_from_slice_b8daf545a41c6aa0: function(arg0, arg1) {
|
|
36
36
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
37
37
|
return ret;
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
__wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
|
|
40
40
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
41
41
|
},
|
|
42
42
|
__wbindgen_init_externref_table: function() {
|
|
43
43
|
const table = wasm.__wbindgen_externrefs;
|
|
44
|
-
const offset = table.grow(4);
|
|
45
44
|
table.set(0, undefined);
|
|
46
|
-
table.set(
|
|
47
|
-
table.set(
|
|
48
|
-
table.set(
|
|
49
|
-
table.set(
|
|
45
|
+
table.set(1024, undefined);
|
|
46
|
+
table.set(1025, null);
|
|
47
|
+
table.set(1026, true);
|
|
48
|
+
table.set(1027, false);
|
|
50
49
|
},
|
|
51
50
|
};
|
|
52
51
|
return {
|
|
@@ -67,7 +66,8 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
function getStringFromWasm0(ptr, len) {
|
|
70
|
-
|
|
69
|
+
ptr = ptr >>> 0;
|
|
70
|
+
return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -87,18 +87,18 @@ function handleError(f, args) {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
90
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
91
91
|
cachedTextDecoder.decode();
|
|
92
92
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
93
93
|
let numBytesDecoded = 0;
|
|
94
|
-
function decodeText(
|
|
95
|
-
numBytesDecoded +=
|
|
94
|
+
function decodeText(bytes) {
|
|
95
|
+
numBytesDecoded += bytes.length;
|
|
96
96
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
97
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true
|
|
97
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
|
|
98
98
|
cachedTextDecoder.decode();
|
|
99
|
-
numBytesDecoded =
|
|
99
|
+
numBytesDecoded = bytes.length;
|
|
100
100
|
}
|
|
101
|
-
return cachedTextDecoder.decode(
|
|
101
|
+
return cachedTextDecoder.decode(bytes);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
let wasmModule, wasmInstance, wasm;
|
|
@@ -170,9 +170,17 @@ function initSync(module) {
|
|
|
170
170
|
return __wbg_finalize_init(instance, module);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
let __wbg_init_promise;
|
|
173
174
|
async function __wbg_init(module_or_path) {
|
|
174
175
|
if (wasm !== undefined) return wasm;
|
|
176
|
+
if (__wbg_init_promise === undefined) {
|
|
177
|
+
__wbg_init_promise = __wbg_init_once(module_or_path);
|
|
178
|
+
__wbg_init_promise.catch(() => { __wbg_init_promise = undefined; });
|
|
179
|
+
}
|
|
180
|
+
return __wbg_init_promise;
|
|
181
|
+
}
|
|
175
182
|
|
|
183
|
+
async function __wbg_init_once(module_or_path) {
|
|
176
184
|
|
|
177
185
|
if (module_or_path !== undefined) {
|
|
178
186
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
Binary file
|
package/dist/wasmModuleTypes.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reallyme/jose",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "Strict JOSE, JWT, JWS, and JWE for TypeScript through the canonical ReallyMe Rust/WASM operation contract.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"test": "npm run build && node scripts/run-tests.mjs"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@bufbuild/protobuf": "2.
|
|
56
|
+
"@bufbuild/protobuf": "2.17.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"typescript": "7.0.2"
|