Socket
Socket
Sign inDemoInstall

@ombori/grid-session-manager

Package Overview
Dependencies
81
Maintainers
18
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.130.0 to 2.130.1

11

CHANGELOG.md

@@ -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 @@

5

dist/session-api/send-events.js

@@ -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',

4

package.json
{
"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',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc