New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sapphire/stopwatch

Package Overview
Dependencies
Maintainers
3
Versions
885
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapphire/stopwatch - npm Package Compare versions

Comparing version 1.2.0-next.f43ae158.0 to 1.2.0-next.f6909ee1.0

22

dist/index.js

@@ -35,4 +35,4 @@ "use strict";

this.digits = digits;
tslib_1.__classPrivateFieldSet(this, _Stopwatch_start, perf_hooks_1.performance.now(), "f");
tslib_1.__classPrivateFieldSet(this, _Stopwatch_end, null, "f");
(0, tslib_1.__classPrivateFieldSet)(this, _Stopwatch_start, perf_hooks_1.performance.now(), "f");
(0, tslib_1.__classPrivateFieldSet)(this, _Stopwatch_end, null, "f");
}

@@ -43,3 +43,3 @@ /**

get duration() {
return tslib_1.__classPrivateFieldGet(this, _Stopwatch_end, "f") ? tslib_1.__classPrivateFieldGet(this, _Stopwatch_end, "f") - tslib_1.__classPrivateFieldGet(this, _Stopwatch_start, "f") : perf_hooks_1.performance.now() - tslib_1.__classPrivateFieldGet(this, _Stopwatch_start, "f");
return (0, tslib_1.__classPrivateFieldGet)(this, _Stopwatch_end, "f") ? (0, tslib_1.__classPrivateFieldGet)(this, _Stopwatch_end, "f") - (0, tslib_1.__classPrivateFieldGet)(this, _Stopwatch_start, "f") : perf_hooks_1.performance.now() - (0, tslib_1.__classPrivateFieldGet)(this, _Stopwatch_start, "f");
}

@@ -50,3 +50,3 @@ /**

get running() {
return Boolean(!tslib_1.__classPrivateFieldGet(this, _Stopwatch_end, "f"));
return Boolean(!(0, tslib_1.__classPrivateFieldGet)(this, _Stopwatch_end, "f"));
}

@@ -57,4 +57,4 @@ /**

restart() {
tslib_1.__classPrivateFieldSet(this, _Stopwatch_start, perf_hooks_1.performance.now(), "f");
tslib_1.__classPrivateFieldSet(this, _Stopwatch_end, null, "f");
(0, tslib_1.__classPrivateFieldSet)(this, _Stopwatch_start, perf_hooks_1.performance.now(), "f");
(0, tslib_1.__classPrivateFieldSet)(this, _Stopwatch_end, null, "f");
return this;

@@ -66,4 +66,4 @@ }

reset() {
tslib_1.__classPrivateFieldSet(this, _Stopwatch_start, perf_hooks_1.performance.now(), "f");
tslib_1.__classPrivateFieldSet(this, _Stopwatch_end, tslib_1.__classPrivateFieldGet(this, _Stopwatch_start, "f"), "f");
(0, tslib_1.__classPrivateFieldSet)(this, _Stopwatch_start, perf_hooks_1.performance.now(), "f");
(0, tslib_1.__classPrivateFieldSet)(this, _Stopwatch_end, (0, tslib_1.__classPrivateFieldGet)(this, _Stopwatch_start, "f"), "f");
return this;

@@ -76,4 +76,4 @@ }

if (!this.running) {
tslib_1.__classPrivateFieldSet(this, _Stopwatch_start, perf_hooks_1.performance.now() - this.duration, "f");
tslib_1.__classPrivateFieldSet(this, _Stopwatch_end, null, "f");
(0, tslib_1.__classPrivateFieldSet)(this, _Stopwatch_start, perf_hooks_1.performance.now() - this.duration, "f");
(0, tslib_1.__classPrivateFieldSet)(this, _Stopwatch_end, null, "f");
}

@@ -87,3 +87,3 @@ return this;

if (this.running)
tslib_1.__classPrivateFieldSet(this, _Stopwatch_end, perf_hooks_1.performance.now(), "f");
(0, tslib_1.__classPrivateFieldSet)(this, _Stopwatch_end, perf_hooks_1.performance.now(), "f");
return this;

@@ -90,0 +90,0 @@ }

{
"name": "@sapphire/stopwatch",
"version": "1.2.0-next.f43ae158.0",
"version": "1.2.0-next.f6909ee1.0",
"description": "Accurately measure passing time.",

@@ -10,2 +10,3 @@ "author": "@sapphire",

"types": "dist/index.d.ts",
"typedocMain": "src/index.ts",
"exports": {

@@ -57,3 +58,3 @@ "import": "./dist/index.mjs",

},
"gitHead": "f43ae15809b8875bf99520de7e8bf21cd8b5b583"
"gitHead": "f6909ee14a83dd73cccf983c490dbadbba72cc97"
}

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