@oxy.so/core 7.14.1 → 7.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/core",
3
- "version": "7.14.1",
3
+ "version": "7.16.0",
4
4
  "description": "OxyHQ SDK Foundation — API client, authentication, cryptographic identity, and shared utilities",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -182,7 +182,7 @@
182
182
  "@noble/ciphers": "^2.4.0",
183
183
  "@noble/hashes": "^2.4.0",
184
184
  "@oxy.so/contracts": "6.5.0",
185
- "@oxy.so/protocol": "^1.6.0",
185
+ "@oxy.so/protocol": "^1.6.1",
186
186
  "@oxy.so/telemetry": "^2.1.0",
187
187
  "@scure/bip39": "^2.4.0",
188
188
  "buffer": "^6.0.3",
@@ -198,7 +198,7 @@
198
198
  "@react-native-async-storage/async-storage": "<4.0.0",
199
199
  "expo-crypto": "<59.0.0",
200
200
  "expo-secure-store": "<59.0.0",
201
- "express": "^4.0.0",
201
+ "express": "^4.0.0 || ^5.0.0",
202
202
  "@aws-sdk/credential-provider-node": ">=3.972.83 <4",
203
203
  "@aws-sdk/credential-provider-ini": ">=3.973.16 <4"
204
204
  },
@@ -224,16 +224,16 @@
224
224
  },
225
225
  "devDependencies": {
226
226
  "@react-native-async-storage/async-storage": "^3.1.1",
227
- "@types/express": "^4.17.25",
227
+ "@types/express": "^5.0.6",
228
228
  "@types/invariant": "^2.2.37",
229
- "@types/node": "^20.19.43",
229
+ "@types/node": "^26.6.6",
230
230
  "expo-crypto": "~58.0.7",
231
231
  "expo-secure-store": "~58.0.2",
232
- "express": "^4.22.2",
232
+ "express": "^5.3.0",
233
233
  "express-rate-limit": "^8.6.0",
234
234
  "jest": "^30.5.2",
235
235
  "regexpu-core": "^6.5.3",
236
- "typescript": "^5.9.2",
236
+ "typescript": "~6.0.3",
237
237
  "helmet": "^8.3.0",
238
238
  "socket.io": "^4.8.4",
239
239
  "@aws-sdk/credential-provider-node": "3.972.92",
@@ -1380,7 +1380,7 @@ export class OxyServer extends OxyServices {
1380
1380
  let verified = false;
1381
1381
  try {
1382
1382
  const publicKey = nodeCrypto.createPublicKey({
1383
- key: jwk as unknown as import('node:crypto').JsonWebKey,
1383
+ key: jwk,
1384
1384
  format: 'jwk',
1385
1385
  });
1386
1386
  verified = nodeCrypto.verify(
@@ -25,7 +25,6 @@ import {
25
25
  type ServiceIntrospection,
26
26
  } from '@oxy.so/contracts';
27
27
  import { jwtDecode } from 'jwt-decode';
28
- import type { JsonWebKey } from 'node:crypto';
29
28
  import type { ApiError, User } from '../models/interfaces';
30
29
  import { loadNodeCrypto } from '@oxy.so/protocol';
31
30
  import { logger } from '../logger';
@@ -1759,7 +1758,7 @@ async function verifyServiceTokenSignature(
1759
1758
  const jwk = await resolveServiceTokenPublicKey(header.kid, options.jwksUrl, options.cache);
1760
1759
  let publicKey: Awaited<ReturnType<typeof nodeCrypto.createPublicKey>>;
1761
1760
  try {
1762
- publicKey = nodeCrypto.createPublicKey({ key: jwk as unknown as JsonWebKey, format: 'jwk' });
1761
+ publicKey = nodeCrypto.createPublicKey({ key: jwk, format: 'jwk' });
1763
1762
  } catch {
1764
1763
  throw new ServiceTokenSignatureError('Service token public key is invalid');
1765
1764
  }