@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 CHANGED
@@ -5,7 +5,7 @@ license notices and terms.
5
5
 
6
6
  MIT License
7
7
 
8
- Copyright (c) 2026 ReallyMe LLC
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 LLC
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 LLC. All rights reserved.
6
+ Copyright © 2026 ReallyMe Technologies Limited. All rights reserved.
7
7
 
8
- This package includes JOSE, JWT, JWS, and JWE helpers developed by ReallyMe LLC.
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
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
1
+ // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  import { ReallyMeJoseError } from "./errors.js";
package/dist/errors.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
1
+ // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  /** Audit-safe SDK error. It never retains caller input or backend text. */
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
1
+ // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  import { fromBinary, toBinary } from "@bufbuild/protobuf";
package/dist/facade.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
1
+ // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  import { create } from "@bufbuild/protobuf";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
1
+ // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  export { executeOperation, executeOperationJson } from "./boundary.js";
package/dist/memory.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
1
+ // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  import { invalidInput } from "./validate.js";
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
1
+ // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
package/dist/proto.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
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
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
1
+ // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  import { ReallyMeJoseError } from "./errors.js";
package/dist/validate.js CHANGED
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
1
+ // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  import { ReallyMeJoseError } from "./errors.js";
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 LLC
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
- __wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
25
+ __wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
26
26
  throw new Error(getStringFromWasm0(arg0, arg1));
27
27
  },
28
- __wbg_getRandomValues_436a51d0629d84e1: function() { return handleError(function (arg0, arg1) {
28
+ __wbg_getRandomValues_8b6f1f663e6f188d: function() { return handleError(function (arg0, arg1) {
29
29
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
30
30
  }, arguments); },
31
- __wbg_length_7f3c00c40364105e: function(arg0) {
31
+ __wbg_length_186163212ffe79c3: function(arg0) {
32
32
  const ret = arg0.length;
33
33
  return ret;
34
34
  },
35
- __wbg_new_from_slice_9a868026ffa4208a: function(arg0, arg1) {
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
- __wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
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(offset + 0, undefined);
47
- table.set(offset + 1, null);
48
- table.set(offset + 2, true);
49
- table.set(offset + 3, false);
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
- return decodeText(ptr >>> 0, len);
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, fatal: 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(ptr, len) {
95
- numBytesDecoded += len;
94
+ function decodeText(bytes) {
95
+ numBytesDecoded += bytes.length;
96
96
  if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
97
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
97
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
98
98
  cachedTextDecoder.decode();
99
- numBytesDecoded = len;
99
+ numBytesDecoded = bytes.length;
100
100
  }
101
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
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) {
@@ -1,4 +1,4 @@
1
- // SPDX-FileCopyrightText: 2026 ReallyMe LLC
1
+ // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reallyme/jose",
3
- "version": "0.4.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.16.0"
56
+ "@bufbuild/protobuf": "2.17.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "typescript": "7.0.2"