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

@tamagui/timer

Package Overview
Dependencies
Maintainers
1
Versions
904
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tamagui/timer - npm Package Compare versions

Comparing version 1.111.8 to 1.111.9

37

dist/esm/index.native.js
function timer() {
var runs = 0, typesOfRuns = /* @__PURE__ */ new Set(), timings = {};
var runs = 0,
typesOfRuns = /* @__PURE__ */new Set(),
timings = {};
function print() {
var typeRuns = runs / typesOfRuns.size, totalTime = 0, out = [
`Ran ${typeRuns} per-type, ${runs} total`,
...[
...typesOfRuns
].map(function(name) {
var avg = `avg ${`${timings[name] / typeRuns}`.slice(0, 9).padEnd(9)}ms`, total = timings[name];
var typeRuns = runs / typesOfRuns.size,
totalTime = 0,
out = [`Ran ${typeRuns} per-type, ${runs} total`, ...[...typesOfRuns].map(function (name) {
var avg = `avg ${`${timings[name] / typeRuns}`.slice(0, 9).padEnd(9)}ms`,
total = timings[name];
return totalTime += total, `${name.slice(0, 30).padStart(31)} | ${avg} | total ${total}ms`;
}),
` total ${totalTime}ms`
].join(`
}), ` total ${totalTime}ms`].join(`
`);

@@ -19,7 +18,9 @@ return console.info(out), out;

start(opts) {
var _opts_quiet, quiet = (_opts_quiet = opts?.quiet) !== null && _opts_quiet !== void 0 ? _opts_quiet : !0;
var _opts_quiet,
quiet = (_opts_quiet = opts?.quiet) !== null && _opts_quiet !== void 0 ? _opts_quiet : !0;
function time(strings) {
for (var _len = arguments.length, vars = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)
vars[_key - 1] = arguments[_key];
var _timings, _tag, elapsed = performance.now() - start;
for (var _len = arguments.length, vars = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) vars[_key - 1] = arguments[_key];
var _timings,
_tag,
elapsed = performance.now() - start;
start = performance.now();

@@ -31,3 +32,3 @@ var tag = strings[0];

var result = "";
strings.forEach(function(str, i) {
strings.forEach(function (str, i) {
result += `${str}${i === strings.length - 1 ? "" : vars[i]}`;

@@ -49,5 +50,3 @@ }), console.info(`${`${elapsed}ms`.slice(0, 6).padStart(7)} |`, result);

}
export {
timer
};
//# sourceMappingURL=index.js.map
export { timer };
//# sourceMappingURL=index.native.js.map
{
"name": "@tamagui/timer",
"version": "1.111.8",
"version": "1.111.9",
"types": "./types/index.d.ts",

@@ -21,3 +21,3 @@ "main": "dist/cjs",

"devDependencies": {
"@tamagui/build": "1.111.8"
"@tamagui/build": "1.111.9"
},

@@ -27,3 +27,3 @@ "exports": {

".": {
"react-native-import": "./dist/esm/index.native.mjs",
"react-native-import": "./dist/esm/index.native.js",
"react-native": "./dist/cjs/index.native.js",

@@ -30,0 +30,0 @@ "types": "./types/index.d.ts",

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