@ombori/grid-session-manager
Advanced tools
Comparing version 2.130.0 to 2.130.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.130.1](https://github.com/ombori/gridapp/compare/v2.130.0...v2.130.1) (2021-12-07) | ||
### Bug Fixes | ||
* axios call body ([68aa812](https://github.com/ombori/gridapp/commit/68aa8126084e471c15b30c0090db5c73ee4cab4d)) | ||
# [2.130.0](https://github.com/ombori/gridapp/compare/v2.129.2...v2.130.0) (2021-12-07) | ||
@@ -8,0 +19,0 @@ |
@@ -13,3 +13,4 @@ "use strict"; | ||
const sendData = (url, data) => { | ||
const jsonData = JSON.stringify(lodash_1.omitBy(shorten_look_ups_1.default(data), lodash_1.isNil)); | ||
const shortenedKeysData = lodash_1.omitBy(shorten_look_ups_1.default(data), lodash_1.isNil); | ||
const jsonData = JSON.stringify(shortenedKeysData); | ||
if (typeof navigator !== 'undefined' && typeof navigator.sendBeacon === 'function') { | ||
@@ -19,3 +20,3 @@ return navigator.sendBeacon(url, jsonData) ? Promise.resolve() : Promise.reject(); | ||
return axios_1.default | ||
.post(url, shorten_look_ups_1.default(data), { | ||
.post(url, shortenedKeysData, { | ||
headers: { | ||
@@ -22,0 +23,0 @@ contentType: 'Application/json; charset=utf-8', |
{ | ||
"name": "@ombori/grid-session-manager", | ||
"version": "2.130.0", | ||
"version": "2.130.1", | ||
"main": "dist/index.js", | ||
@@ -33,3 +33,3 @@ "scripts": { | ||
}, | ||
"gitHead": "1160c2e79d1b822f2cd7f33047c4660ac8b0117d" | ||
"gitHead": "0dd59e3d6a0d8271544b110741b2b6648e0f0215" | ||
} |
@@ -8,3 +8,4 @@ import axios from 'axios'; | ||
const sendData = (url: string, data: RequestData) => { | ||
const jsonData = JSON.stringify(omitBy(shortenKeys(data), isNil)); | ||
const shortenedKeysData = omitBy(shortenKeys(data), isNil); | ||
const jsonData = JSON.stringify(shortenedKeysData); | ||
@@ -16,3 +17,3 @@ if (typeof navigator !== 'undefined' && typeof navigator.sendBeacon === 'function') { | ||
return axios | ||
.post(url, shortenKeys(data), { | ||
.post(url, shortenedKeysData, { | ||
headers: { | ||
@@ -19,0 +20,0 @@ contentType: 'Application/json; charset=utf-8', |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
113950
2895
2