Skip to content

Commit 1c10a88

Browse files
author
Julio Farah
authored
Get rid of ndhoule/entries in favor of Object.entries (#28)
1 parent 8fd03d4 commit 1c10a88

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

integrations/adometry/lib/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* Module dependencies.
55
*/
66

7-
var entries = require('@ndhoule/entries');
87
var extend = require('@ndhoule/extend');
98
var integration = require('@segment/analytics.js-integration');
109
var pick = require('@ndhoule/pick');
@@ -97,7 +96,7 @@ Adometry.prototype.page = function(page) {
9796
// TODO: Move into a lib file and test separately once we have multi-file support
9897
Adometry.prototype._hashify = function(props, prefix) {
9998
prefix = prefix || '';
100-
props = entries(props);
99+
props = Object.entries(props || {});
101100

102101
if (!props || !props.length) {
103102
return '';

integrations/adometry/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-adometry",
33
"description": "The Adometry analytics.js integration.",
4-
"version": "2.0.2",
4+
"version": "2.0.3",
55
"keywords": [
66
"analytics.js",
77
"analytics.js-integration",
@@ -24,7 +24,6 @@
2424
},
2525
"homepage": "https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/adometry#readme",
2626
"dependencies": {
27-
"@ndhoule/entries": "^2.0.0",
2827
"@ndhoule/extend": "^2.0.0",
2928
"@ndhoule/pick": "^2.0.0",
3029
"@ndhoule/values": "^2.0.1",

0 commit comments

Comments
 (0)