Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

probe.gl

Package Overview
Dependencies
Maintainers
6
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

probe.gl - npm Package Compare versions

Comparing version 3.0.0-alpha.6 to 3.0.0-alpha.7

4

dist/es5/lib/stat.js

@@ -69,3 +69,3 @@ "use strict";

value: function getAverageTime() {
return this.time / this.count;
return this.count > 0 ? this.time / this.count : 0;
}

@@ -75,3 +75,3 @@ }, {

value: function getHz() {
return this.count / (this.time / 1000);
return this.time > 0 ? this.count / (this.time / 1000) : 0;
}

@@ -78,0 +78,0 @@ }, {

@@ -47,2 +47,16 @@ "use strict";

}
}, {
key: "getTable",
value: function getTable() {
var table = {};
this.forEach(function (stat) {
table[stat.name] = {
time: stat.time || 0,
count: stat.count || 0,
average: stat.getAverageTime() || 0,
hz: stat.getHz() || 0
};
});
return table;
}
}]);

@@ -49,0 +63,0 @@ return Stats;

@@ -50,3 +50,3 @@ "use strict";

var VERSION = typeof "3.0.0-alpha.6" !== 'undefined' ? "3.0.0-alpha.6" : 'untranspiled source';
var VERSION = typeof "3.0.0-alpha.7" !== 'undefined' ? "3.0.0-alpha.7" : 'untranspiled source';
exports.VERSION = VERSION;

@@ -53,0 +53,0 @@ var isBrowser = (0, _isBrowser.default)();

@@ -45,7 +45,7 @@ import getHiResTimestamp from '../utils/hi-res-timestamp';

getAverageTime() {
return this.time / this.count;
return this.count > 0 ? this.time / this.count : 0;
}
getHz() {
return this.count / (this.time / 1000);
return this.time > 0 ? this.count / (this.time / 1000) : 0;
}

@@ -52,0 +52,0 @@

@@ -30,3 +30,16 @@ import Stat from './stat';

getTable() {
const table = {};
this.forEach(stat => {
table[stat.name] = {
time: stat.time || 0,
count: stat.count || 0,
average: stat.getAverageTime() || 0,
hz: stat.getHz() || 0
};
});
return table;
}
}
//# sourceMappingURL=stats.js.map
import checkIfBrowser from '../env/is-browser';
export { self, window, global, document, process, console } from '../env/globals';
export const VERSION = typeof "3.0.0-alpha.6" !== 'undefined' ? "3.0.0-alpha.6" : 'untranspiled source';
export const VERSION = typeof "3.0.0-alpha.7" !== 'undefined' ? "3.0.0-alpha.7" : 'untranspiled source';
export const isBrowser = checkIfBrowser();
//# sourceMappingURL=globals.js.map

@@ -59,3 +59,3 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";

value: function getAverageTime() {
return this.time / this.count;
return this.count > 0 ? this.time / this.count : 0;
}

@@ -65,3 +65,3 @@ }, {

value: function getHz() {
return this.count / (this.time / 1000);
return this.time > 0 ? this.count / (this.time / 1000) : 0;
}

@@ -68,0 +68,0 @@ }, {

@@ -38,2 +38,16 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";

}
}, {
key: "getTable",
value: function getTable() {
var table = {};
this.forEach(function (stat) {
table[stat.name] = {
time: stat.time || 0,
count: stat.count || 0,
average: stat.getAverageTime() || 0,
hz: stat.getHz() || 0
};
});
return table;
}
}]);

@@ -40,0 +54,0 @@

import checkIfBrowser from '../env/is-browser';
export { self, window, global, document, process, console } from '../env/globals';
export var VERSION = typeof "3.0.0-alpha.6" !== 'undefined' ? "3.0.0-alpha.6" : 'untranspiled source';
export var VERSION = typeof "3.0.0-alpha.7" !== 'undefined' ? "3.0.0-alpha.7" : 'untranspiled source';
export var isBrowser = checkIfBrowser();
//# sourceMappingURL=globals.js.map

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "3.0.0-alpha.6",
"version": "3.0.0-alpha.7",
"keywords": [

@@ -8,0 +8,0 @@ "javascript",

@@ -54,3 +54,3 @@ import getHiResTimestamp from '../utils/hi-res-timestamp';

getAverageTime() {
return this.time / this.count;
return this.count > 0 ? this.time / this.count : 0;
}

@@ -60,3 +60,3 @@

getHz() {
return this.count / (this.time / 1000);
return this.time > 0 ? this.count / (this.time / 1000) : 0;
}

@@ -63,0 +63,0 @@

@@ -30,2 +30,16 @@ import Stat from './stat';

}
getTable() {
const table = {};
this.forEach(stat => {
table[stat.name] = {
time: stat.time || 0,
count: stat.count || 0,
average: stat.getAverageTime() || 0,
hz: stat.getHz() || 0
};
});
return table;
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc