@segment/analytics.js-core
Advanced tools
Comparing version 3.13.1 to 3.13.2
@@ -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 @@ |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
262614
6249