Socket
Socket
Sign inDemoInstall

@segment/analytics.js-core

Package Overview
Dependencies
31
Maintainers
138
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.1 to 4.1.2

10

build/entity.js

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

var lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));
var lodash_assignin_1 = __importDefault(require("lodash.assignin"));
/*

@@ -14,3 +15,2 @@ * Module dependencies.

var defaults = require('@ndhoule/defaults');
var extend = require('@ndhoule/extend');
var memory = require('./memory');

@@ -188,6 +188,8 @@ var store = require('./store');

var current = this.id();
if (current === null || current === id)
traits = extend(this.traits(), traits);
if (id)
if (current === null || current === id) {
traits = lodash_assignin_1.default(this.traits(), traits);
}
if (id) {
this.id(id);
}
this.debug('identify %o, %o', id, traits);

@@ -194,0 +196,0 @@ this.traits(traits);

4

HISTORY.md

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

# 4.1.2 / 2020-09-16
- Replaces `@ndhoule/extend` with `lodash.assignin`
# 4.1.1 / 2020-09-15

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

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

import cloneDeep from 'lodash.clonedeep'
import assignIn from 'lodash.assignin'

@@ -14,3 +15,2 @@ /*

var defaults = require('@ndhoule/defaults');
var extend = require('@ndhoule/extend');
var memory = require('./memory');

@@ -226,6 +226,12 @@ var store = require('./store');

traits = traits || {};
var current = this.id();
if (current === null || current === id)
traits = extend(this.traits(), traits);
if (id) this.id(id);
const current = this.id();
if (current === null || current === id) {
traits = assignIn(this.traits(), traits);
}
if (id) {
this.id(id);
}
this.debug('identify %o, %o', id, traits);

@@ -232,0 +238,0 @@ this.traits(traits);

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

@@ -34,3 +34,2 @@ "types": "lib/index.d.ts",

"@ndhoule/defaults": "^2.0.1",
"@ndhoule/extend": "^2.0.0",
"@ndhoule/includes": "^2.0.1",

@@ -58,2 +57,3 @@ "@ndhoule/pick": "^2.0.0",

"is": "^3.1.0",
"lodash.assignin": "^4.2.0",
"lodash.clonedeep": "^4.5.0",

@@ -60,0 +60,0 @@ "new-date": "^1.0.0",

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