@oxyhq/core 1.6.4 → 1.6.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.
@@ -4,7 +4,8 @@
4
4
  * Handles secure generation, storage, and retrieval of cryptographic keys.
5
5
  * Private keys are stored securely using expo-secure-store and never leave the device.
6
6
  */
7
- import { ec as EC } from 'elliptic';
7
+ import _cjs_elliptic from 'elliptic';
8
+ const { ec: EC } = _cjs_elliptic;
8
9
  import { isWeb, isIOS, isAndroid, isReactNative, isNodeJS } from '../utils/platform.js';
9
10
  import { logger } from '../utils/loggerUtils.js';
10
11
  import { isDev } from '../shared/utils/debugUtils.js';
@@ -7,7 +7,8 @@
7
7
  * - Browser/Node.js: Uses native crypto
8
8
  * - React Native: Falls back to expo-crypto if native crypto unavailable
9
9
  */
10
- import { Buffer } from 'buffer';
10
+ import _cjs_buffer from 'buffer';
11
+ const { Buffer } = _cjs_buffer;
11
12
  const getGlobalObject = () => {
12
13
  if (typeof globalThis !== 'undefined')
13
14
  return globalThis;
@@ -4,7 +4,8 @@
4
4
  * Handles signing and verification of messages using ECDSA secp256k1.
5
5
  * Used for authenticating requests and proving identity ownership.
6
6
  */
7
- import { ec as EC } from 'elliptic';
7
+ import _cjs_elliptic from 'elliptic';
8
+ const { ec: EC } = _cjs_elliptic;
8
9
  import { KeyManager } from './keyManager.js';
9
10
  import { isReactNative, isNodeJS } from '../utils/platform.js';
10
11
  // Lazy import for expo-crypto
@@ -1,14 +1,14 @@
1
- import enUS from './locales/en-US.json';
2
- import esES from './locales/es-ES.json';
3
- import caES from './locales/ca-ES.json';
4
- import frFR from './locales/fr-FR.json';
5
- import deDE from './locales/de-DE.json';
6
- import itIT from './locales/it-IT.json';
7
- import ptPT from './locales/pt-PT.json';
8
- import jaJP from './locales/ja-JP.json';
9
- import koKR from './locales/ko-KR.json';
10
- import zhCN from './locales/zh-CN.json';
11
- import arSA from './locales/ar-SA.json';
1
+ import enUS from './locales/en-US.json' with { type: "json" };
2
+ import esES from './locales/es-ES.json' with { type: "json" };
3
+ import caES from './locales/ca-ES.json' with { type: "json" };
4
+ import frFR from './locales/fr-FR.json' with { type: "json" };
5
+ import deDE from './locales/de-DE.json' with { type: "json" };
6
+ import itIT from './locales/it-IT.json' with { type: "json" };
7
+ import ptPT from './locales/pt-PT.json' with { type: "json" };
8
+ import jaJP from './locales/ja-JP.json' with { type: "json" };
9
+ import koKR from './locales/ko-KR.json' with { type: "json" };
10
+ import zhCN from './locales/zh-CN.json' with { type: "json" };
11
+ import arSA from './locales/ar-SA.json' with { type: "json" };
12
12
  const DICTS = {
13
13
  'en': enUS,
14
14
  'en-US': enUS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/core",
3
- "version": "1.6.4",
3
+ "version": "1.6.6",
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",