@ombori/grid-session-manager
Advanced tools
Comparing version 2.130.1 to 2.130.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.130.2](https://github.com/ombori/gridapp/compare/v2.130.1...v2.130.2) (2021-12-07) | ||
**Note:** Version bump only for package @ombori/grid-session-manager | ||
## [2.130.1](https://github.com/ombori/gridapp/compare/v2.130.0...v2.130.1) (2021-12-07) | ||
@@ -8,0 +16,0 @@ |
@@ -10,6 +10,5 @@ "use strict"; | ||
const types_1 = require("../types"); | ||
const lodash_1 = require("lodash"); | ||
const shorten_look_ups_1 = __importDefault(require("./shorten-look-ups")); | ||
const sendData = (url, data) => { | ||
const shortenedKeysData = lodash_1.omitBy(shorten_look_ups_1.default(data), lodash_1.isNil); | ||
const shortenedKeysData = shorten_look_ups_1.default(data); | ||
const jsonData = JSON.stringify(shortenedKeysData); | ||
@@ -16,0 +15,0 @@ if (typeof navigator !== 'undefined' && typeof navigator.sendBeacon === 'function') { |
export declare const shortenLookups: any; | ||
export default function shortenKeys(obj: any): any; | ||
export default function shortenKeys(obj: any): Partial<any>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.shortenLookups = void 0; | ||
const lodash_1 = require("lodash"); | ||
exports.shortenLookups = { | ||
@@ -64,4 +65,4 @@ captureId: 'a', | ||
} | ||
return result; | ||
return lodash_1.omitBy(result, lodash_1.isNil); | ||
} | ||
exports.default = shortenKeys; |
{ | ||
"name": "@ombori/grid-session-manager", | ||
"version": "2.130.1", | ||
"version": "2.130.2", | ||
"main": "dist/index.js", | ||
@@ -29,7 +29,6 @@ "scripts": { | ||
"lodash": "^4.17.21", | ||
"lodash.invert": "^4.3.0", | ||
"rimraf": "^3.0.2", | ||
"uuid": "^8.3.2" | ||
}, | ||
"gitHead": "0dd59e3d6a0d8271544b110741b2b6648e0f0215" | ||
"gitHead": "21b4bd65f97535e6a17916abed8d654a7b767435" | ||
} |
@@ -8,3 +8,3 @@ import axios from 'axios'; | ||
const sendData = (url: string, data: RequestData) => { | ||
const shortenedKeysData = omitBy(shortenKeys(data), isNil); | ||
const shortenedKeysData = shortenKeys(data); | ||
const jsonData = JSON.stringify(shortenedKeysData); | ||
@@ -11,0 +11,0 @@ |
@@ -1,2 +0,2 @@ | ||
import invert from 'lodash.invert'; | ||
import { omitBy, isNil } from 'lodash'; | ||
@@ -65,3 +65,3 @@ export const shortenLookups: any = { | ||
return result; | ||
return omitBy(result, isNil); | ||
} |
114096
7
- Removedlodash.invert@^4.3.0
- Removedlodash.invert@4.3.0(transitive)