balena-universal-ga
Advanced tools
Comparing version 2.0.0 to 2.0.1-fix-loader-inclusion-c2e664c50af611544ee72477ef97254d7407da92
"use strict"; | ||
if (window.ga === undefined) { | ||
require('./ga-loader'); | ||
require('../vendor/ga-loader'); | ||
} | ||
@@ -5,0 +5,0 @@ const TRACKER_NAME = 'resinAnalytics'; |
@@ -7,2 +7,7 @@ # Change Log | ||
# v2.0.1 | ||
## (2020-07-15) | ||
* Fix ga-loader inclusion [Pagan Gazzard] | ||
# v2.0.0 | ||
@@ -9,0 +14,0 @@ ## (2020-07-15) |
{ | ||
"name": "balena-universal-ga", | ||
"version": "2.0.0", | ||
"version": "2.0.1-fix-loader-inclusion-c2e664c50af611544ee72477ef97254d7407da92", | ||
"description": "A CommonJS wrapper for both Node.js and browser (async) version of Google Analytics library", | ||
@@ -8,4 +8,4 @@ "main": "build/node.js", | ||
"scripts": { | ||
"lint": "balena-lint -e js -e ts --typescript src/browser.js src/ga-loader.d.ts src/node.js", | ||
"lint-fix": "balena-lint -e js -e ts --typescript --fix src/browser.js src/ga-loader.d.ts src/node.js", | ||
"lint": "balena-lint -e js -e ts --typescript src vendor/ga-loader.d.ts", | ||
"lint-fix": "balena-lint -e js -e ts --typescript --fix src vendor/ga-loader.d.ts", | ||
"test": "npm run lint", | ||
@@ -12,0 +12,0 @@ "prepare": "tsc" |
if (window.ga === undefined) { | ||
require('./ga-loader'); | ||
require('../vendor/ga-loader'); | ||
} | ||
@@ -73,5 +73,5 @@ | ||
} | ||
timeout = setTimeout(() => reject(new Error('Timed out')), 1000) | ||
timeout = setTimeout(() => reject(new Error('Timed out')), 1000); | ||
}).then(() => { | ||
clearTimeout(timeout) | ||
clearTimeout(timeout); | ||
}); | ||
@@ -78,0 +78,0 @@ }, |
@@ -36,3 +36,3 @@ const ua = require('universal-analytics'); | ||
if (err) { | ||
return reject(err) | ||
return reject(err); | ||
} | ||
@@ -39,0 +39,0 @@ resolve(result); |
@@ -22,4 +22,4 @@ { | ||
"exclude": [ | ||
"./src/ga-loader.js" | ||
"./vendor/ga-loader.js" | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10735
1