ws-process 0.3.49 → 0.3.51

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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +2 -3
package/index.js CHANGED
@@ -22,7 +22,6 @@ import {
22
22
  } from './actions';
23
23
 
24
24
  import reducer, { initialState } from './reducer';
25
- import 'url-search-params-polyfill';
26
25
  import { cutStringByLength, createSplitPayload } from './lib/split-payload';
27
26
 
28
27
  const local = {
@@ -642,7 +641,11 @@ function asyncSend(msg) {
642
641
  headers['bsg-support-system-external-id'] = user.pid;
643
642
  // headers['bsg-support-partner-id'] = user.partnerID;
644
643
  // headers['bsg-support-system-id'] = user.systemID;
645
- headers['x-api-key'] = [user.systemID, user.partnerID].join('@');
644
+ if (tryit(() => msg.body.Idp) === 'google' && !user.systemID && !user.partnerID) {
645
+ headers['x-api-key'] = '5db1bf127d3fcc0cfdd8880cb5cbe6f9'; // means "initial login"
646
+ } else {
647
+ headers['x-api-key'] = [user.systemID, user.partnerID].join('@');
648
+ }
646
649
  headers['request-datetime'] = cProcessItemRoot.requestTime;
647
650
  headers.href = window.location.href;
648
651
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-process",
3
- "version": "0.3.49",
3
+ "version": "0.3.51",
4
4
  "description": "Process Management for Web Socket Client",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,8 +29,7 @@
29
29
  "immer": "3.1.3",
30
30
  "react": "16.8.6",
31
31
  "react-dom": "16.8.6",
32
- "ui5-lib-rc": "0.8.3",
33
- "url-search-params-polyfill": "7.0.0"
32
+ "ui5-lib-rc": "0.8.3"
34
33
  },
35
34
  "devDependencies": {
36
35
  "@babel/cli": "7.8.4",