@oxyhq/core 1.6.5 → 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/core",
3
- "version": "1.6.5",
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",