@dynamic-labs-wallet/core 0.0.56 → 0.0.57

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/index.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var axios = require('axios');
4
- var crypto = require('crypto');
4
+ var uuid = require('uuid');
5
5
 
6
6
  const DYNAMIC_AUTH_PROD_BASE_API_URL = 'https://app.dynamicauth.com';
7
7
  const DYNAMIC_AUTH_PREPROD_BASE_API_URL = 'https://app.dynamic-preprod.xyz';
@@ -416,7 +416,7 @@ class BaseClient {
416
416
  constructor({ environmentId, baseApiUrl, authToken, baseClientRelayApiUrl }){
417
417
  const headers = {};
418
418
  headers['Authorization'] = authToken ? `Bearer ${authToken}` : undefined;
419
- headers[DynamicRequestIdHeader] = crypto.randomUUID();
419
+ headers[DynamicRequestIdHeader] = uuid.v4();
420
420
  this.environmentId = environmentId;
421
421
  let environment;
422
422
  switch(baseApiUrl){
package/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios';
2
- import { randomUUID } from 'crypto';
2
+ import { v4 } from 'uuid';
3
3
 
4
4
  const DYNAMIC_AUTH_PROD_BASE_API_URL = 'https://app.dynamicauth.com';
5
5
  const DYNAMIC_AUTH_PREPROD_BASE_API_URL = 'https://app.dynamic-preprod.xyz';
@@ -414,7 +414,7 @@ class BaseClient {
414
414
  constructor({ environmentId, baseApiUrl, authToken, baseClientRelayApiUrl }){
415
415
  const headers = {};
416
416
  headers['Authorization'] = authToken ? `Bearer ${authToken}` : undefined;
417
- headers[DynamicRequestIdHeader] = randomUUID();
417
+ headers[DynamicRequestIdHeader] = v4();
418
418
  this.environmentId = environmentId;
419
419
  let environment;
420
420
  switch(baseApiUrl){
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/core",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
- "axios": "1.7.9"
6
+ "axios": "1.7.9",
7
+ "uuid": "11.1.0"
7
8
  },
8
9
  "files": [
9
10
  "*",