@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 +2 -2
- package/index.esm.js +2 -2
- package/package.json +3 -2
package/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var axios = require('axios');
|
|
4
|
-
var
|
|
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] =
|
|
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 {
|
|
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] =
|
|
417
|
+
headers[DynamicRequestIdHeader] = v4();
|
|
418
418
|
this.environmentId = environmentId;
|
|
419
419
|
let environment;
|
|
420
420
|
switch(baseApiUrl){
|