Skip to content

Commit 2470fd9

Browse files
authored
STRATCONN-5792: Remove vulnerable dependency from several destinations. (#828)
* STRATCONN-5792: Remove vulnerable dependency from several destinations. * update * untouch other dependencies
1 parent adef8c3 commit 2470fd9

File tree

19 files changed

+93
-30
lines changed

19 files changed

+93
-30
lines changed

integrations/chartbeat/lib/index.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
'use strict';
22

3+
const defaults = (obj, defaults) => {
4+
const result = { ...defaults };
5+
for (const key in obj) {
6+
if (obj[key] !== undefined) {
7+
result[key] = obj[key];
8+
}
9+
}
10+
return result;
11+
};
12+
313
/**
414
* Module dependencies.
515
*/
616

7-
var defaults = require('@ndhoule/defaults');
817
var integration = require('@segment/analytics.js-integration');
918
var onBody = require('on-body');
1019

@@ -117,4 +126,4 @@ Chartbeat.prototype._initialize = function() {
117126
// not load until that is confirmed. Otherwise it may trigger errors.
118127
self.load({ script: script }, self.ready); // switch ready to true for real once the script has loaded
119128
});
120-
};
129+
};

integrations/chartbeat/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@segment/analytics.js-integration-chartbeat",
33
"description": "The Chartbeat analytics.js integration.",
4-
"version": "2.2.3",
4+
"version": "2.2.4",
55
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",
@@ -24,7 +24,6 @@
2424
"url": "git+https://github.com/segmentio/analytics.js-integrations.git"
2525
},
2626
"dependencies": {
27-
"@ndhoule/defaults": "^2.0.1",
2827
"@segment/analytics.js-integration": "^3.2.0",
2928
"on-body": "0.0.1"
3029
},

integrations/google-analytics-4/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@segment/analytics.js-integration-google-analytics-4",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "",
55
"main": "lib/index.js",
66
"directories": {
@@ -21,7 +21,6 @@
2121
"url": "git+https://github.com/segmentio/analytics.js-integrations.git"
2222
},
2323
"dependencies": {
24-
"@ndhoule/defaults": "^2.0.1",
2524
"@segment/analytics.js-integration": "^3.1.0",
2625
"component-each": "^0.2.6",
2726
"extend": "^3.0.2",

integrations/google-analytics/lib/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
'use strict';
22

3+
const defaults = (obj, defaults) => {
4+
const result = { ...defaults };
5+
for (const key in obj) {
6+
if (obj[key] !== undefined) {
7+
result[key] = obj[key];
8+
}
9+
}
10+
return result;
11+
};
12+
313
/**
414
* Module dependencies.
515
*/
616

717
var Track = require('segmentio-facade').Track;
8-
var defaults = require('@ndhoule/defaults');
918
var dot = require('obj-case');
1019
var each = require('component-each');
1120
var integration = require('@segment/analytics.js-integration');

integrations/google-analytics/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@segment/analytics.js-integration-google-analytics",
33
"description": "The Google Analytics analytics.js integration.",
4-
"version": "2.18.5",
4+
"version": "2.18.6",
55
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",
@@ -24,7 +24,6 @@
2424
"url": "git+https://github.com/segmentio/analytics.js-integrations.git"
2525
},
2626
"dependencies": {
27-
"@ndhoule/defaults": "^2.0.1",
2827
"@segment/analytics.js-integration": "^3.1.0",
2928
"component-each": "^0.2.6",
3029
"extend": "^3.0.2",

integrations/gtag/lib/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
'use strict';
22

3+
const defaults = (obj, defaults) => {
4+
const result = { ...defaults };
5+
for (const key in obj) {
6+
if (obj[key] !== undefined) {
7+
result[key] = obj[key];
8+
}
9+
}
10+
return result;
11+
};
12+
313
/**
414
* Module dependencies.
515
*/
616

717
var integration = require('@segment/analytics.js-integration');
818
var Track = require('segmentio-facade').Track;
919
var reject = require('reject');
10-
var defaults = require('@ndhoule/defaults');
1120
var extend = require('extend');
1221

1322
/**

integrations/gtag/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@segment/analytics.js-integration-gtag",
33
"description": "The Gtag analytics.js integration.",
4-
"version": "1.0.2",
4+
"version": "1.0.3",
55
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",

integrations/intercom/lib/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
'use strict';
22

3+
const defaults = (obj, defaults) => {
4+
const result = { ...defaults };
5+
for (const key in obj) {
6+
if (obj[key] !== undefined) {
7+
result[key] = obj[key];
8+
}
9+
}
10+
return result;
11+
};
12+
313
/**
414
* Module dependencies.
515
*/
616

717
var convertDates = require('@segment/convert-dates');
8-
var defaults = require('@ndhoule/defaults');
918
var del = require('obj-case').del;
1019
var integration = require('@segment/analytics.js-integration');
1120
var is = require('is');

integrations/intercom/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@segment/analytics.js-integration-intercom",
33
"description": "The Intercom analytics.js integration.",
4-
"version": "3.1.0",
4+
"version": "3.1.1",
55
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",
@@ -25,7 +25,6 @@
2525
},
2626
"dependencies": {
2727
"@ndhoule/clone": "^1.0.0",
28-
"@ndhoule/defaults": "^2.0.1",
2928
"@ndhoule/each": "^2.0.1",
3029
"@ndhoule/extend": "^2.0.0",
3130
"@ndhoule/foldl": "^2.0.1",

integrations/owneriq/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@owneriq/analytics.js-integration-owneriq-pixel",
33
"description": "The OwnerIQ analytics.js integration.",
4-
"version": "1.0.19",
4+
"version": "1.0.20",
55
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",
@@ -24,7 +24,6 @@
2424
},
2525
"homepage": "https://github.com/owneriq/analytics.js-integration-owneriq#readme",
2626
"dependencies": {
27-
"@ndhoule/defaults": "^2.0.1",
2827
"@segment/analytics.js-integration": "^3.1.0",
2928
"component-each": "^0.2.6",
3029
"extend": "^3.0.2",

0 commit comments

Comments
 (0)