@sprig-technologies/sprig-browser 2.14.4 → 2.14.5

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": "@sprig-technologies/sprig-browser",
3
- "version": "2.14.4",
3
+ "version": "2.14.5",
4
4
  "description": "npm package for the sprig web sdk",
5
5
  "browser": "index.js",
6
6
  "scripts": {
package/shared/network.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import 'whatwg-fetch';
3
3
  import { HEADERS, INSTALLATION_METHOD } from './constants';
4
4
  import Deferred from './deferred';
5
- const { delay, NETWORK_CONFIG } = require('./networkHelper');
5
+ import { delay, NETWORK_CONFIG } from './networkHelper';
6
6
 
7
7
  let killswitch = false;
8
8
  let killswitchReason = '';
@@ -25,7 +25,7 @@ export function getHttpHeaders(Sprig = {}) {
25
25
  const headers = {
26
26
  'Content-Type': 'application/json',
27
27
  'userleap-platform': 'web',
28
- 'x-ul-sdk-version': '2.14.4', //version here doesn't matter. it is string-replaced when compiled
28
+ 'x-ul-sdk-version': '2.14.5', //version here doesn't matter. it is string-replaced when compiled
29
29
  };
30
30
  if (Sprig.envId) headers[HEADERS.ENVIRONMENT_ID] = Sprig.envId;
31
31
  if (Sprig.token) headers['Authorization'] = 'Bearer ' + Sprig.token;