@oxy.so/core 7.14.0 → 7.15.1

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.0",
3
+ "version": "7.15.1",
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",
@@ -187,11 +187,11 @@
187
187
  "@scure/bip39": "^2.4.0",
188
188
  "buffer": "^6.0.3",
189
189
  "express-rate-limit": "^8.6.0",
190
- "helmet": "^8.0.0",
190
+ "helmet": "^8.3.0",
191
191
  "invariant": "^2.2.4",
192
192
  "jwt-decode": "^4.0.0",
193
- "socket.io-client": "^4.8.1",
194
- "tldts": "^7.4.10",
193
+ "socket.io-client": "^4.8.4",
194
+ "tldts": "^7.4.19",
195
195
  "zod": "^4.6.7"
196
196
  },
197
197
  "peerDependencies": {
@@ -225,18 +225,18 @@
225
225
  "devDependencies": {
226
226
  "@react-native-async-storage/async-storage": "^3.1.1",
227
227
  "@types/express": "^4.17.25",
228
- "@types/invariant": "^2.2.34",
229
- "@types/node": "^20.19.43",
230
- "expo-crypto": "~56.0.3",
231
- "expo-secure-store": "~57.0.4",
228
+ "@types/invariant": "^2.2.37",
229
+ "@types/node": "^26.6.6",
230
+ "expo-crypto": "~58.0.7",
231
+ "expo-secure-store": "~58.0.2",
232
232
  "express": "^4.22.2",
233
233
  "express-rate-limit": "^8.6.0",
234
- "jest": "^30.5.1",
235
- "regexpu-core": "^6.4.0",
236
- "typescript": "^5.9.2",
234
+ "jest": "^30.5.2",
235
+ "regexpu-core": "^6.5.3",
236
+ "typescript": "~6.0.3",
237
237
  "helmet": "^8.3.0",
238
- "socket.io": "^4.8.1",
239
- "@aws-sdk/credential-provider-node": "3.972.83",
240
- "@aws-sdk/credential-provider-ini": "3.973.16"
238
+ "socket.io": "^4.8.4",
239
+ "@aws-sdk/credential-provider-node": "3.972.92",
240
+ "@aws-sdk/credential-provider-ini": "3.973.25"
241
241
  }
242
242
  }
@@ -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
  }