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

@apigames/highres-timer

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apigames/highres-timer - npm Package Compare versions

Comparing version 1.0.22 to 1.0.23

17

lib/highres.timer.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var json_1 = require("@apigames/json");
var _perfomancePolyfill = function () {
if ("performance" in window === false) {
if (json_1.isFalse('performance' in window)) {
window.performance = {};
}
Date.now = (Date.now || (function () {
return new Date().getTime();
}));
if ("now" in window.performance === false) {
Date.now = (Date.now || (function () { return new Date().getTime(); }));
if (json_1.isFalse('now' in window.performance)) {
var nowOffset_1 = Date.now();

@@ -25,4 +24,4 @@ if (performance.timing && performance.timing.navigationStart) {

if (previousTimestamp) {
seconds = seconds - previousTimestamp[0];
nanoseconds = nanoseconds - previousTimestamp[1];
seconds -= previousTimestamp[0];
nanoseconds -= previousTimestamp[1];
if (nanoseconds < 0) {

@@ -40,5 +39,5 @@ seconds--;

};
if ((typeof process === 'undefined' || typeof process.hrtime === 'undefined') && typeof window.process === 'undefined') {
if ((json_1.isUndefined(typeof process) || json_1.isUndefined(typeof process.hrtime)) && json_1.isUndefined(typeof window.process)) {
window.process = {};
}
exports.default = typeof process.hrtime === 'undefined' ? (window.process.hrtime = _hrtime) : process.hrtime;
exports.default = json_1.isUndefined(typeof process.hrtime) ? (window.process.hrtime = _hrtime) : process.hrtime;

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "1.0.22",
"version": "1.0.23",
"main": "lib/index.js",

@@ -22,8 +22,11 @@ "types": "lib/index.d.ts",

},
"dependencies": {
"@apigames/json": "1.0.52"
},
"devDependencies": {
"@types/jest": "26.0.23",
"@types/node": "14.17.1",
"@typescript-eslint/eslint-plugin": "4.26.0",
"@typescript-eslint/parser": "4.26.0",
"eslint": "7.27.0",
"@types/node": "14.17.4",
"@typescript-eslint/eslint-plugin": "4.28.1",
"@typescript-eslint/parser": "4.28.1",
"eslint": "7.29.0",
"eslint-config-airbnb": "18.2.1",

@@ -34,5 +37,5 @@ "eslint-plugin-import": "2.23.4",

"eslint-plugin-react-hooks": "4.2.0",
"jest": "26.6.3",
"ts-jest": "26.5.6",
"typescript": "4.3.2"
"jest": "27.0.6",
"ts-jest": "27.0.3",
"typescript": "4.3.4"
},

@@ -39,0 +42,0 @@ "repository": {

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