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

@lskjs/mutex

Package Overview
Dependencies
Maintainers
12
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lskjs/mutex - npm Package Compare versions

Comparing version 3.8.1 to 3.16.4

lib/index.d.mts

2

lib/index.js

@@ -1,2 +0,2 @@

"use strict";var n=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var i=(t,e)=>n(t,"name",{value:e,configurable:!0});var m=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},p=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of u(e))!l.call(t,s)&&s!==r&&n(t,s,{get:()=>e[s],enumerable:!(a=d(e,s))||a.enumerable});return t};var w=t=>p(n({},"__esModule",{value:!0}),t);var y={};m(y,{Mutex:()=>o,default:()=>c});module.exports=w(y);var f=require("async-mutex");var x=i(t=>new Promise(e=>setTimeout(e,t)),"delay"),o=class extends f.Mutex{async isAsyncLocked(e=1e3,r=100){let a=new Date;for(;;){if(!this.isLocked())return!1;if(e&&Number(a)+e<Date.now())return!0;await x(r)}}};i(o,"Mutex");var c=o;0&&(module.exports={Mutex});
"use strict";var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var i=(t,e)=>a(t,"name",{value:e,configurable:!0});var m=(t,e)=>{for(var r in e)a(t,r,{get:e[r],enumerable:!0})},x=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of d(e))!l.call(t,s)&&s!==r&&a(t,s,{get:()=>e[s],enumerable:!(o=c(e,s))||o.enumerable});return t};var p=t=>x(a({},"__esModule",{value:!0}),t);var y={};m(y,{Mutex:()=>n,default:()=>u});module.exports=p(y);var f=require("async-mutex");var w=i(t=>new Promise(e=>setTimeout(e,t)),"delay"),n=class extends f.Mutex{static{i(this,"Mutex")}async isAsyncLocked(e=1e3,r=100){let o=new Date;for(;;){if(!this.isLocked())return!1;if(e&&Number(o)+e<Date.now())return!0;await w(r)}}},u=n;0&&(module.exports={Mutex});
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

"use strict";var o=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var i=(t,e)=>o(t,"name",{value:e,configurable:!0});var l=(t,e)=>{for(var s in e)o(t,s,{get:e[s],enumerable:!0})},w=(t,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!f.call(t,r)&&r!==s&&o(t,r,{get:()=>e[r],enumerable:!(n=d(e,r))||n.enumerable});return t};var m=t=>w(o({},"__esModule",{value:!0}),t);var y={};l(y,{Mutex:()=>a,default:()=>x});module.exports=m(y);var c=require("async-mutex");var p=i(t=>new Promise(e=>setTimeout(e,t)),"delay"),a=class extends c.Mutex{async isAsyncLocked(e=1e3,s=100){let n=new Date;for(;;){if(!this.isLocked())return!1;if(e&&Number(n)+e<Date.now())return!0;await p(s)}}};i(a,"Mutex");var x=a;0&&(module.exports={Mutex});
"use strict";var n=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var i=(t,e)=>n(t,"name",{value:e,configurable:!0});var l=(t,e)=>{for(var s in e)n(t,s,{get:e[s],enumerable:!0})},w=(t,e,s,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of d(e))!f.call(t,r)&&r!==s&&n(t,r,{get:()=>e[r],enumerable:!(a=u(e,r))||a.enumerable});return t};var m=t=>w(n({},"__esModule",{value:!0}),t);var y={};l(y,{Mutex:()=>o,default:()=>p});module.exports=m(y);var c=require("async-mutex");var x=i(t=>new Promise(e=>setTimeout(e,t)),"delay"),o=class extends c.Mutex{static{i(this,"Mutex")}async isAsyncLocked(e=1e3,s=100){let a=new Date;for(;;){if(!this.isLocked())return!1;if(e&&Number(a)+e<Date.now())return!0;await x(s)}}},p=o;0&&(module.exports={Mutex});
//# sourceMappingURL=Mutex.js.map
{
"name": "@lskjs/mutex",
"version": "3.8.1",
"version": "3.16.4",
"description": "LSK.js – mutex – async mutex",
"author": "Igor Suvorov <hi@isuvorov.com> (https://github.com/isuvorov)",
"private": false,
"dependencies": {
"async-mutex": "0.4.0"
},
"//": "///////////========================/////////========================/////////========================//////////",
"prettier": "@lskjs/eslint-config/prettier",
"eslintConfig": {
"extends": "@lskjs/eslint-config"
},
"jest": {
"preset": "@lskjs/jest-config"
},
"files": [

@@ -28,2 +37,9 @@ "lib",

},
"size-limit": [
{
"path": "lib/index.js",
"limit": "5kb"
}
],
"///": "//////////========================/////////========================/////////========================/////////",
"repository": "https://github.com/lskjs/lskjs/tree/master//libs/mutex",

@@ -42,3 +58,9 @@ "homepage": "https://github.com/lskjs/lskjs/tree/master//libs/mutex",

],
"gitHead": "851edc745717332b82bef5c650eb77c233d980eb"
}
"////": "/////////========================/////////========================/////////========================/////////",
"scripts": {
"dev": " lsk run dev",
"build": " lsk run build",
"test": " lsk run test",
"release": " lsk run release"
}
}

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

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