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

@xylabs/timer

Package Overview
Dependencies
Maintainers
0
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/timer - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

58

package.json
{
"name": "@xylabs/timer",
"version": "4.0.3",
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
"keywords": [
"xylabs",
"timer",
"setTimeout",
"utility",
"typescript",
"esm"
],
"homepage": "https://xylabs.com",
"bugs": {
"url": "git+https://github.com/xylabs/sdk-js/issues",
"email": "support@xylabs.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/xylabs/sdk-js.git"
},
"license": "LGPL-3.0-only",
"name": "@xylabs/timer",
"author": {
"name": "XY Labs Development Team",
"email": "support@xylabs.com",
"name": "XY Labs Development Team",
"url": "https://xylabs.com"
},
"bugs": {
"email": "support@xylabs.com",
"url": "git+https://github.com/xylabs/sdk-js/issues"
},
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
"sideEffects": false,
"type": "module",
"exports": {

@@ -21,11 +37,11 @@ ".": {

},
"module": "./dist/neutral/index.mjs",
"types": "./dist/neutral/index.d.ts",
"module": "./dist/neutral/index.mjs",
"dependencies": {
"@xylabs/assert": "^4.0.2"
"@xylabs/assert": "^4.0.3"
},
"devDependencies": {
"@types/node": "^22.4.0",
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
"@xylabs/tsconfig": "^4.0.0-rc.15",
"@types/node": "^22.5.0",
"@xylabs/ts-scripts-yarn3": "^4.0.0",
"@xylabs/tsconfig": "^4.0.0",
"typescript": "^5.5.4"

@@ -36,21 +52,5 @@ },

},
"homepage": "https://xylabs.com",
"keywords": [
"xylabs",
"timer",
"setTimeout",
"utility",
"typescript",
"esm"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/xylabs/sdk-js.git"
},
"sideEffects": false,
"version": "4.0.2",
"type": "module"
}
}

@@ -33,3 +33,5 @@ import { assertEx } from '@xylabs/assert'

clearTimeout(currentTimeout)
timeouts = newTimeouts.map(timeout => ({ delay: timeout.delay - delayPassed, func: timeout.func, id: timeout.id }))
timeouts = newTimeouts.map(timeout => ({
delay: timeout.delay - delayPassed, func: timeout.func, id: timeout.id,
}))
// restart timeout since it needs to be different

@@ -59,3 +61,5 @@ interval = newInterval

const id = `${Date.now()}|${Math.random() * 9_999_999_999}`
timeouts.push({ delay, func, id })
timeouts.push({
delay, func, id,
})
update()

@@ -62,0 +66,0 @@ return id

@@ -5,5 +5,3 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'

browser: {},
neutral: {
src: true,
},
neutral: { src: true },
node: {},

@@ -10,0 +8,0 @@ },

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