Socket
Socket
Sign inDemoInstall

@segment/analytics.js-core

Package Overview
Dependencies
Maintainers
147
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.11.0 to 3.11.1-dev.0

.idea/workspace.xml

5

lib/cookie.js

@@ -12,3 +12,2 @@ 'use strict';

var defaults = require('@ndhoule/defaults');
var json = require('json3');
var topDomain = require('@segment/top-domain');

@@ -77,3 +76,3 @@

try {
value = json.stringify(value);
value = window.JSON.stringify(value);
cookie(key, value, clone(this._options));

@@ -96,3 +95,3 @@ return true;

var value = cookie(key);
value = value ? json.parse(value) : null;
value = value ? window.JSON.parse(value) : null;
return value;

@@ -99,0 +98,0 @@ } catch (e) {

@@ -13,4 +13,3 @@ 'use strict';

var type = require('component-type');
var uuid = require('uuid').v4;
var json = require('json3');
var uuid = require('uuid/v4');
var md5 = require('spark-md5').hash;

@@ -83,3 +82,3 @@

// generate and attach a messageId to msg
msg.messageId = 'ajs-' + md5(json.stringify(msg) + uuid());
msg.messageId = 'ajs-' + md5(window.JSON.stringify(msg) + uuid());

@@ -86,0 +85,0 @@ // cleanup

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

@@ -61,3 +61,2 @@ "keywords": [

"is": "^3.1.0",
"json3": "^3.3.2",
"new-date": "^1.0.0",

@@ -67,3 +66,3 @@ "next-tick": "^0.2.2",

"spark-md5": "^2.0.2",
"uuid": "^2.0.2"
"uuid": "^3.4.0"
},

@@ -70,0 +69,0 @@ "devDependencies": {

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