threekit-browser-metrics
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -17,2 +17,10 @@ 'use strict'; | ||
var fetch = void 0; | ||
var isBrowser = process.browser; | ||
if (!isBrowser) { | ||
fetch = require('node-fetch'); | ||
} else { | ||
fetch = window.fetch; | ||
} | ||
var metricsType = { | ||
@@ -19,0 +27,0 @@ counter: true, |
{ | ||
"name": "threekit-browser-metrics", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"node-fetch": "^2.3.0", | ||
"promjs": "^0.3.3" | ||
@@ -8,0 +9,0 @@ }, |
Sorry, the diff of this file is too big to display
90937
156
1
2
+ Addednode-fetch@^2.3.0
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)