File tree Expand file tree Collapse file tree 6 files changed +6
-12
lines changed Expand file tree Collapse file tree 6 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 77var integration = require ( '@segment/analytics.js-integration' ) ;
88var Track = require ( 'segmentio-facade' ) . Track ;
99var del = require ( 'obj-case' ) . del ;
10- var clone = require ( '@ndhoule/clone' ) ;
1110var appboyUtil = require ( './appboyUtil' ) ;
1211
1312/**
@@ -194,7 +193,7 @@ Appboy.prototype.identify = function(identify) {
194193 var gender = identify . gender ( ) ;
195194 var lastName = identify . lastName ( ) ;
196195 var phone = identify . phone ( ) ;
197- var traits = clone ( identify . traits ( ) ) ;
196+ var traits = { ... identify . traits ( ) } ;
198197
199198 var options = this . options ;
200199
Original file line number Diff line number Diff line change 11{
22 "name" : " @segment/analytics.js-integration-appboy" ,
33 "description" : " The Appboy analytics.js integration." ,
4- "version" : " 1.14.1 " ,
4+ "version" : " 1.14.2 " ,
55 "keywords" : [
66 " analytics.js" ,
77 " analytics.js-integration" ,
2424 "url" : " git+https://github.com/segmentio/analytics.js-integrations.git"
2525 },
2626 "dependencies" : {
27- "@ndhoule/clone" : " ^1.0.0" ,
2827 "@segment/analytics.js-integration" : " ^3.3.2" ,
2928 "obj-case" : " ^0.2.0" ,
3029 "@segment/facade" : " ^3.3.1"
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ var del = require('obj-case').del;
99var integration = require ( '@segment/analytics.js-integration' ) ;
1010var is = require ( 'is' ) ;
1111var extend = require ( '@ndhoule/extend' ) ;
12- var clone = require ( '@ndhoule/clone' ) ;
1312var pick = require ( '@ndhoule/pick' ) ;
1413
1514/**
@@ -267,7 +266,7 @@ function formatNestedCustomTraits(obj, settings) {
267266 var semanticTraits = basicIntercomTraits . concat ( richLinkProperties ) ;
268267
269268 // clone traits so we don't modify the original object
270- var customTraits = clone ( obj ) ;
269+ var customTraits = { ... obj } ;
271270
272271 // filter out semanticTraits so that we only format custom nested traits
273272 semanticTraits . forEach ( function ( trait ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " @segment/analytics.js-integration-intercom" ,
33 "description" : " The Intercom analytics.js integration." ,
4- "version" : " 3.0.3 " ,
4+ "version" : " 3.0.4 " ,
55 "keywords" : [
66 " analytics.js" ,
77 " analytics.js-integration" ,
2424 "url" : " git+https://github.com/segmentio/analytics.js-integrations.git"
2525 },
2626 "dependencies" : {
27- "@ndhoule/clone" : " ^1.0.0" ,
2827 "@ndhoule/extend" : " ^2.0.0" ,
2928 "@ndhoule/foldl" : " ^2.0.1" ,
3029 "@ndhoule/pick" : " ^2.0.0" ,
Original file line number Diff line number Diff line change 55 */
66
77var integration = require ( '@segment/analytics.js-integration' ) ;
8- var clone = require ( '@ndhoule/clone' ) ;
98
109/**
1110 * Expose `Keen IO` integration.
@@ -144,7 +143,7 @@ Keen.prototype.identify = function(identify) {
144143 props = this . addons ( props , identify ) ;
145144 this . client . setGlobalProperties ( function ( ) {
146145 // Clone the props so the Keen Client can't manipulate the ref
147- return clone ( props ) ;
146+ return { ... props } ;
148147 } ) ;
149148} ;
150149
Original file line number Diff line number Diff line change 11{
22 "name" : " @segment/analytics.js-integration-keen-io" ,
33 "description" : " The Keen Io analytics.js integration." ,
4- "version" : " 2.1.2 " ,
4+ "version" : " 2.1.3 " ,
55 "keywords" : [
66 " analytics.js" ,
77 " analytics.js-integration" ,
2424 "url" : " git+https://github.com/segmentio/analytics.js-integrations.git"
2525 },
2626 "dependencies" : {
27- "@ndhoule/clone" : " ^1.0.0" ,
2827 "@segment/analytics.js-integration" : " ^3.3.2"
2928 },
3029 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments