Socket
Socket
Sign inDemoInstall

@segment/analytics.js-core

Package Overview
Dependencies
Maintainers
143
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.10.1 to 3.11.0

5

lib/cookie.js

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

var clone = require('@ndhoule/clone');
var cookie = require('component-cookie');
var cookie = require('@segment/cookie');
var debug = require('debug')('analytics.js:cookie');

@@ -48,3 +48,4 @@ var defaults = require('@ndhoule/defaults');

path: '/',
domain: domain
domain: domain,
sameSite: 'Lax'
});

@@ -51,0 +52,0 @@

2

lib/user.js

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

var inherit = require('inherits');
var rawCookie = require('component-cookie');
var rawCookie = require('@segment/cookie');
var uuid = require('uuid');

@@ -15,0 +15,0 @@ var localStorage = require('./store');

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

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

"@segment/canonical": "^1.0.0",
"@segment/cookie": "^1.1.5",
"@segment/is-meta": "^1.0.0",

@@ -51,3 +52,2 @@ "@segment/isodate": "^1.0.2",

"bind-all": "^1.0.0",
"component-cookie": "^1.1.2",
"component-emitter": "^1.2.1",

@@ -54,0 +54,0 @@ "component-event": "^0.1.4",

@@ -66,2 +66,6 @@ 'use strict';

it('should set SameSite=Lax by default', function() {
assert(cookie.options().sameSite === 'Lax');
});
it('should fallback to `domain=null` when it cant set the test cookie', function() {

@@ -68,0 +72,0 @@ cookie.options({ domain: 'baz.com' });

'use strict';
var assert = require('proclaim');
var rawCookie = require('component-cookie');
var rawCookie = require('@segment/cookie');
var sinon = require('sinon');

@@ -6,0 +6,0 @@ var analytics = require('../lib');

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