@tamagui/timer
Advanced tools
Comparing version 1.121.11 to 1.121.12-1737177163952
@@ -15,7 +15,7 @@ var __defProp = Object.defineProperty; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
var index_exports = {}; | ||
__export(index_exports, { | ||
timer: () => timer | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
module.exports = __toCommonJS(index_exports); | ||
function timer() { | ||
@@ -42,5 +42,3 @@ let runs = 0; | ||
function time(strings, ...vars) { | ||
const elapsed = performance.now() - start; | ||
start = performance.now(); | ||
const tag = templateToString(strings, ...vars); | ||
const elapsed = performance.now() - start, tag = templateToString(strings, ...vars); | ||
if (typesOfRuns.add(tag), runs++, timings[tag] ??= 0, timings[tag] += elapsed, !quiet) { | ||
@@ -52,2 +50,3 @@ let result = ""; | ||
} | ||
start = performance.now(); | ||
} | ||
@@ -54,0 +53,0 @@ let start = performance.now(); |
@@ -16,7 +16,7 @@ "use strict"; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
var index_exports = {}; | ||
__export(index_exports, { | ||
timer: () => timer | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
module.exports = __toCommonJS(index_exports); | ||
function timer() { | ||
@@ -44,5 +44,3 @@ var runs = 0, typesOfRuns = /* @__PURE__ */ new Set(), timings = {}; | ||
vars[_key - 1] = arguments[_key]; | ||
var _timings, _tag, elapsed = performance.now() - start; | ||
start = performance.now(); | ||
var tag = templateToString(strings, ...vars); | ||
var _timings, _tag, elapsed = performance.now() - start, tag = templateToString(strings, ...vars); | ||
typesOfRuns.add(tag), runs++; | ||
@@ -56,2 +54,3 @@ var _; | ||
} | ||
start = performance.now(); | ||
} | ||
@@ -58,0 +57,0 @@ var start = performance.now(); |
@@ -22,5 +22,3 @@ function timer() { | ||
function time(strings, ...vars) { | ||
const elapsed = performance.now() - start; | ||
start = performance.now(); | ||
const tag = templateToString(strings, ...vars); | ||
const elapsed = performance.now() - start, tag = templateToString(strings, ...vars); | ||
if (typesOfRuns.add(tag), runs++, timings[tag] ??= 0, timings[tag] += elapsed, !quiet) { | ||
@@ -32,2 +30,3 @@ let result = ""; | ||
} | ||
start = performance.now(); | ||
} | ||
@@ -34,0 +33,0 @@ let start = performance.now(); |
@@ -23,5 +23,3 @@ function timer() { | ||
vars[_key - 1] = arguments[_key]; | ||
var _timings, _tag, elapsed = performance.now() - start; | ||
start = performance.now(); | ||
var tag = templateToString(strings, ...vars); | ||
var _timings, _tag, elapsed = performance.now() - start, tag = templateToString(strings, ...vars); | ||
typesOfRuns.add(tag), runs++; | ||
@@ -35,2 +33,3 @@ var _; | ||
} | ||
start = performance.now(); | ||
} | ||
@@ -37,0 +36,0 @@ var start = performance.now(); |
{ | ||
"name": "@tamagui/timer", | ||
"version": "1.121.11", | ||
"version": "1.121.12-1737177163952", | ||
"types": "./types/index.d.ts", | ||
@@ -21,3 +21,3 @@ "main": "dist/cjs", | ||
"devDependencies": { | ||
"@tamagui/build": "1.121.11" | ||
"@tamagui/build": "1.121.12-1737177163952" | ||
}, | ||
@@ -24,0 +24,0 @@ "exports": { |
@@ -33,3 +33,2 @@ // let it be called as a template string tag function | ||
const elapsed = performance.now() - start | ||
start = performance.now() | ||
const tag = templateToString(strings, ...vars) | ||
@@ -47,2 +46,3 @@ typesOfRuns.add(tag) | ||
} | ||
start = performance.now() | ||
} | ||
@@ -49,0 +49,0 @@ |
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
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
27293
439
2