Socket
Socket
Sign inDemoInstall

@segment/analytics.js-core

Package Overview
Dependencies
Maintainers
149
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@segment/analytics.js-core - npm Package Compare versions

Comparing version 3.13.1 to 3.13.2

4

HISTORY.md

@@ -0,1 +1,5 @@

# 3.13.2 / 2020-05-21
- fix: null values should delete cookies
# 3.13.1 / 2020-05-04

@@ -2,0 +6,0 @@

2

lib/cookie.js

@@ -76,3 +76,3 @@ 'use strict';

value = window.JSON.stringify(value);
cookie(key, value, clone(this._options));
cookie(key, value === 'null' ? null : value, clone(this._options));
return true;

@@ -79,0 +79,0 @@ } catch (e) {

{
"name": "@segment/analytics.js-core",
"author": "Segment <friends@segment.com>",
"version": "3.13.1",
"version": "3.13.2",
"description": "The hassle-free way to integrate analytics into any web application.",

@@ -6,0 +6,0 @@ "keywords": [

@@ -52,2 +52,7 @@ 'use strict';

});
it('null cookie should be null after setting', function() {
cookie.set('cookie-null', null);
assert(cookie.get('cookie-null') === null);
});
});

@@ -54,0 +59,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc