@universal-lock/memory 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Lucas Rainett
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,72 @@
1
+ # @universal-lock/memory
2
+
3
+ In-memory backend for [`universal-lock`](https://github.com/lucasrainett/universal-lock). Stores locks in a plain JavaScript object using timestamps for stale detection.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install universal-lock @universal-lock/memory
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### ESM
14
+
15
+ ```typescript
16
+ import { lockFactory } from "universal-lock";
17
+ import { createBackend } from "@universal-lock/memory";
18
+
19
+ const lock = lockFactory(createBackend());
20
+
21
+ const release = await lock.acquire("my-resource");
22
+ try {
23
+ // critical section
24
+ } finally {
25
+ await release();
26
+ }
27
+ ```
28
+
29
+ ### CommonJS
30
+
31
+ ```javascript
32
+ const { lockFactory } = require("universal-lock");
33
+ const { createBackend } = require("@universal-lock/memory");
34
+
35
+ const lock = lockFactory(createBackend());
36
+ ```
37
+
38
+ ### Browser (IIFE)
39
+
40
+ ```html
41
+ <script src="https://unpkg.com/@universal-lock/memory/dist/index.global.js"></script>
42
+ <script src="https://unpkg.com/universal-lock/dist/index.global.js"></script>
43
+ <script>
44
+ const lock = UniversalLock.lockFactory(UniversalLockMemory.createBackend());
45
+ </script>
46
+ ```
47
+
48
+ ## API
49
+
50
+ ### `createBackend()`
51
+
52
+ Creates an in-memory backend instance. No arguments required.
53
+
54
+ ```typescript
55
+ import { createBackend } from "@universal-lock/memory";
56
+
57
+ const backend = createBackend();
58
+ ```
59
+
60
+ ## When to Use
61
+
62
+ - Development and testing
63
+ - Single-process Node.js applications
64
+ - Prototyping before switching to a distributed backend
65
+
66
+ ## Limitations
67
+
68
+ - Locks are **not** shared across processes or servers. For distributed locking, use [`@universal-lock/redis`](https://www.npmjs.com/package/@universal-lock/redis).
69
+
70
+ ## License
71
+
72
+ [MIT](https://github.com/lucasrainett/universal-lock/blob/master/LICENSE)
@@ -0,0 +1,5 @@
1
+ import { BackendFactory } from '@universal-lock/types';
2
+
3
+ declare const createBackend: BackendFactory;
4
+
5
+ export { createBackend };
@@ -0,0 +1,5 @@
1
+ import { BackendFactory } from '@universal-lock/types';
2
+
3
+ declare const createBackend: BackendFactory;
4
+
5
+ export { createBackend };
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var UniversalLockMemory = (() => {
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ createBackend: () => createBackend
25
+ });
26
+ var createBackend = () => {
27
+ const locks = {};
28
+ const setup = async () => {
29
+ };
30
+ const acquire = async (lockName, stale, lockId) => {
31
+ const now = Date.now();
32
+ const existing = locks[lockName];
33
+ const lockExpired = existing && existing.timestamp + stale <= now;
34
+ if (!existing || lockExpired) {
35
+ locks[lockName] = { lockId, timestamp: now };
36
+ } else {
37
+ throw new Error(`${lockName} already locked`);
38
+ }
39
+ };
40
+ const renew = async (lockName, lockId) => {
41
+ const existing = locks[lockName];
42
+ if (!existing) throw new Error(`${lockName} not locked`);
43
+ if (existing.lockId !== lockId)
44
+ throw new Error(`${lockName} not owned by caller`);
45
+ existing.timestamp = Date.now();
46
+ };
47
+ const release = async (lockName, lockId) => {
48
+ const existing = locks[lockName];
49
+ if (!existing) throw new Error(`${lockName} not locked`);
50
+ if (existing.lockId !== lockId)
51
+ throw new Error(`${lockName} not owned by caller`);
52
+ delete locks[lockName];
53
+ };
54
+ return {
55
+ setup,
56
+ acquire,
57
+ renew,
58
+ release
59
+ };
60
+ };
61
+ return __toCommonJS(index_exports);
62
+ })();
63
+ //# sourceMappingURL=index.global.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type {\n\tBackend,\n\tBackendAcquireFunction,\n\tBackendFactory,\n\tBackendReleaseFunction,\n\tBackendRenewFunction,\n\tBackendSetupFunction,\n\tTimestampLockEntry,\n} from \"@universal-lock/types\";\n\nexport const createBackend: BackendFactory = (): Backend => {\n\tconst locks: Record<string, TimestampLockEntry> = {};\n\n\tconst setup: BackendSetupFunction = async () => {};\n\n\tconst acquire: BackendAcquireFunction = async (lockName, stale, lockId) => {\n\t\tconst now = Date.now();\n\t\tconst existing = locks[lockName];\n\t\t// A lock is considered expired if its timestamp + stale duration has passed,\n\t\t// allowing takeover of locks from crashed processes that never released\n\t\tconst lockExpired = existing && existing.timestamp + stale <= now;\n\t\tif (!existing || lockExpired) {\n\t\t\tlocks[lockName] = { lockId, timestamp: now };\n\t\t} else {\n\t\t\tthrow new Error(`${lockName} already locked`);\n\t\t}\n\t};\n\n\tconst renew: BackendRenewFunction = async (lockName, lockId) => {\n\t\tconst existing = locks[lockName];\n\t\tif (!existing) throw new Error(`${lockName} not locked`);\n\t\tif (existing.lockId !== lockId)\n\t\t\tthrow new Error(`${lockName} not owned by caller`);\n\t\texisting.timestamp = Date.now();\n\t};\n\n\tconst release: BackendReleaseFunction = async (lockName, lockId) => {\n\t\tconst existing = locks[lockName];\n\t\tif (!existing) throw new Error(`${lockName} not locked`);\n\t\tif (existing.lockId !== lockId)\n\t\t\tthrow new Error(`${lockName} not owned by caller`);\n\t\tdelete locks[lockName];\n\t};\n\n\treturn {\n\t\tsetup,\n\t\tacquire,\n\t\trenew,\n\t\trelease,\n\t};\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAUO,MAAM,gBAAgC,MAAe;AAC3D,UAAM,QAA4C,CAAC;AAEnD,UAAM,QAA8B,YAAY;AAAA,IAAC;AAEjD,UAAM,UAAkC,OAAO,UAAU,OAAO,WAAW;AAC1E,YAAM,MAAM,KAAK,IAAI;AACrB,YAAM,WAAW,MAAM,QAAQ;AAG/B,YAAM,cAAc,YAAY,SAAS,YAAY,SAAS;AAC9D,UAAI,CAAC,YAAY,aAAa;AAC7B,cAAM,QAAQ,IAAI,EAAE,QAAQ,WAAW,IAAI;AAAA,MAC5C,OAAO;AACN,cAAM,IAAI,MAAM,GAAG,QAAQ,iBAAiB;AAAA,MAC7C;AAAA,IACD;AAEA,UAAM,QAA8B,OAAO,UAAU,WAAW;AAC/D,YAAM,WAAW,MAAM,QAAQ;AAC/B,UAAI,CAAC,SAAU,OAAM,IAAI,MAAM,GAAG,QAAQ,aAAa;AACvD,UAAI,SAAS,WAAW;AACvB,cAAM,IAAI,MAAM,GAAG,QAAQ,sBAAsB;AAClD,eAAS,YAAY,KAAK,IAAI;AAAA,IAC/B;AAEA,UAAM,UAAkC,OAAO,UAAU,WAAW;AACnE,YAAM,WAAW,MAAM,QAAQ;AAC/B,UAAI,CAAC,SAAU,OAAM,IAAI,MAAM,GAAG,QAAQ,aAAa;AACvD,UAAI,SAAS,WAAW;AACvB,cAAM,IAAI,MAAM,GAAG,QAAQ,sBAAsB;AAClD,aAAO,MAAM,QAAQ;AAAA,IACtB;AAEA,WAAO;AAAA,MACN;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,EACD;","names":[]}
package/dist/index.js ADDED
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ createBackend: () => createBackend
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ var createBackend = () => {
27
+ const locks = {};
28
+ const setup = async () => {
29
+ };
30
+ const acquire = async (lockName, stale, lockId) => {
31
+ const now = Date.now();
32
+ const existing = locks[lockName];
33
+ const lockExpired = existing && existing.timestamp + stale <= now;
34
+ if (!existing || lockExpired) {
35
+ locks[lockName] = { lockId, timestamp: now };
36
+ } else {
37
+ throw new Error(`${lockName} already locked`);
38
+ }
39
+ };
40
+ const renew = async (lockName, lockId) => {
41
+ const existing = locks[lockName];
42
+ if (!existing) throw new Error(`${lockName} not locked`);
43
+ if (existing.lockId !== lockId)
44
+ throw new Error(`${lockName} not owned by caller`);
45
+ existing.timestamp = Date.now();
46
+ };
47
+ const release = async (lockName, lockId) => {
48
+ const existing = locks[lockName];
49
+ if (!existing) throw new Error(`${lockName} not locked`);
50
+ if (existing.lockId !== lockId)
51
+ throw new Error(`${lockName} not owned by caller`);
52
+ delete locks[lockName];
53
+ };
54
+ return {
55
+ setup,
56
+ acquire,
57
+ renew,
58
+ release
59
+ };
60
+ };
61
+ // Annotate the CommonJS export names for ESM import in node:
62
+ 0 && (module.exports = {
63
+ createBackend
64
+ });
65
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type {\n\tBackend,\n\tBackendAcquireFunction,\n\tBackendFactory,\n\tBackendReleaseFunction,\n\tBackendRenewFunction,\n\tBackendSetupFunction,\n\tTimestampLockEntry,\n} from \"@universal-lock/types\";\n\nexport const createBackend: BackendFactory = (): Backend => {\n\tconst locks: Record<string, TimestampLockEntry> = {};\n\n\tconst setup: BackendSetupFunction = async () => {};\n\n\tconst acquire: BackendAcquireFunction = async (lockName, stale, lockId) => {\n\t\tconst now = Date.now();\n\t\tconst existing = locks[lockName];\n\t\t// A lock is considered expired if its timestamp + stale duration has passed,\n\t\t// allowing takeover of locks from crashed processes that never released\n\t\tconst lockExpired = existing && existing.timestamp + stale <= now;\n\t\tif (!existing || lockExpired) {\n\t\t\tlocks[lockName] = { lockId, timestamp: now };\n\t\t} else {\n\t\t\tthrow new Error(`${lockName} already locked`);\n\t\t}\n\t};\n\n\tconst renew: BackendRenewFunction = async (lockName, lockId) => {\n\t\tconst existing = locks[lockName];\n\t\tif (!existing) throw new Error(`${lockName} not locked`);\n\t\tif (existing.lockId !== lockId)\n\t\t\tthrow new Error(`${lockName} not owned by caller`);\n\t\texisting.timestamp = Date.now();\n\t};\n\n\tconst release: BackendReleaseFunction = async (lockName, lockId) => {\n\t\tconst existing = locks[lockName];\n\t\tif (!existing) throw new Error(`${lockName} not locked`);\n\t\tif (existing.lockId !== lockId)\n\t\t\tthrow new Error(`${lockName} not owned by caller`);\n\t\tdelete locks[lockName];\n\t};\n\n\treturn {\n\t\tsetup,\n\t\tacquire,\n\t\trenew,\n\t\trelease,\n\t};\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,IAAM,gBAAgC,MAAe;AAC3D,QAAM,QAA4C,CAAC;AAEnD,QAAM,QAA8B,YAAY;AAAA,EAAC;AAEjD,QAAM,UAAkC,OAAO,UAAU,OAAO,WAAW;AAC1E,UAAM,MAAM,KAAK,IAAI;AACrB,UAAM,WAAW,MAAM,QAAQ;AAG/B,UAAM,cAAc,YAAY,SAAS,YAAY,SAAS;AAC9D,QAAI,CAAC,YAAY,aAAa;AAC7B,YAAM,QAAQ,IAAI,EAAE,QAAQ,WAAW,IAAI;AAAA,IAC5C,OAAO;AACN,YAAM,IAAI,MAAM,GAAG,QAAQ,iBAAiB;AAAA,IAC7C;AAAA,EACD;AAEA,QAAM,QAA8B,OAAO,UAAU,WAAW;AAC/D,UAAM,WAAW,MAAM,QAAQ;AAC/B,QAAI,CAAC,SAAU,OAAM,IAAI,MAAM,GAAG,QAAQ,aAAa;AACvD,QAAI,SAAS,WAAW;AACvB,YAAM,IAAI,MAAM,GAAG,QAAQ,sBAAsB;AAClD,aAAS,YAAY,KAAK,IAAI;AAAA,EAC/B;AAEA,QAAM,UAAkC,OAAO,UAAU,WAAW;AACnE,UAAM,WAAW,MAAM,QAAQ;AAC/B,QAAI,CAAC,SAAU,OAAM,IAAI,MAAM,GAAG,QAAQ,aAAa;AACvD,QAAI,SAAS,WAAW;AACvB,YAAM,IAAI,MAAM,GAAG,QAAQ,sBAAsB;AAClD,WAAO,MAAM,QAAQ;AAAA,EACtB;AAEA,SAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,40 @@
1
+ // src/index.ts
2
+ var createBackend = () => {
3
+ const locks = {};
4
+ const setup = async () => {
5
+ };
6
+ const acquire = async (lockName, stale, lockId) => {
7
+ const now = Date.now();
8
+ const existing = locks[lockName];
9
+ const lockExpired = existing && existing.timestamp + stale <= now;
10
+ if (!existing || lockExpired) {
11
+ locks[lockName] = { lockId, timestamp: now };
12
+ } else {
13
+ throw new Error(`${lockName} already locked`);
14
+ }
15
+ };
16
+ const renew = async (lockName, lockId) => {
17
+ const existing = locks[lockName];
18
+ if (!existing) throw new Error(`${lockName} not locked`);
19
+ if (existing.lockId !== lockId)
20
+ throw new Error(`${lockName} not owned by caller`);
21
+ existing.timestamp = Date.now();
22
+ };
23
+ const release = async (lockName, lockId) => {
24
+ const existing = locks[lockName];
25
+ if (!existing) throw new Error(`${lockName} not locked`);
26
+ if (existing.lockId !== lockId)
27
+ throw new Error(`${lockName} not owned by caller`);
28
+ delete locks[lockName];
29
+ };
30
+ return {
31
+ setup,
32
+ acquire,
33
+ renew,
34
+ release
35
+ };
36
+ };
37
+ export {
38
+ createBackend
39
+ };
40
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type {\n\tBackend,\n\tBackendAcquireFunction,\n\tBackendFactory,\n\tBackendReleaseFunction,\n\tBackendRenewFunction,\n\tBackendSetupFunction,\n\tTimestampLockEntry,\n} from \"@universal-lock/types\";\n\nexport const createBackend: BackendFactory = (): Backend => {\n\tconst locks: Record<string, TimestampLockEntry> = {};\n\n\tconst setup: BackendSetupFunction = async () => {};\n\n\tconst acquire: BackendAcquireFunction = async (lockName, stale, lockId) => {\n\t\tconst now = Date.now();\n\t\tconst existing = locks[lockName];\n\t\t// A lock is considered expired if its timestamp + stale duration has passed,\n\t\t// allowing takeover of locks from crashed processes that never released\n\t\tconst lockExpired = existing && existing.timestamp + stale <= now;\n\t\tif (!existing || lockExpired) {\n\t\t\tlocks[lockName] = { lockId, timestamp: now };\n\t\t} else {\n\t\t\tthrow new Error(`${lockName} already locked`);\n\t\t}\n\t};\n\n\tconst renew: BackendRenewFunction = async (lockName, lockId) => {\n\t\tconst existing = locks[lockName];\n\t\tif (!existing) throw new Error(`${lockName} not locked`);\n\t\tif (existing.lockId !== lockId)\n\t\t\tthrow new Error(`${lockName} not owned by caller`);\n\t\texisting.timestamp = Date.now();\n\t};\n\n\tconst release: BackendReleaseFunction = async (lockName, lockId) => {\n\t\tconst existing = locks[lockName];\n\t\tif (!existing) throw new Error(`${lockName} not locked`);\n\t\tif (existing.lockId !== lockId)\n\t\t\tthrow new Error(`${lockName} not owned by caller`);\n\t\tdelete locks[lockName];\n\t};\n\n\treturn {\n\t\tsetup,\n\t\tacquire,\n\t\trenew,\n\t\trelease,\n\t};\n};\n"],"mappings":";AAUO,IAAM,gBAAgC,MAAe;AAC3D,QAAM,QAA4C,CAAC;AAEnD,QAAM,QAA8B,YAAY;AAAA,EAAC;AAEjD,QAAM,UAAkC,OAAO,UAAU,OAAO,WAAW;AAC1E,UAAM,MAAM,KAAK,IAAI;AACrB,UAAM,WAAW,MAAM,QAAQ;AAG/B,UAAM,cAAc,YAAY,SAAS,YAAY,SAAS;AAC9D,QAAI,CAAC,YAAY,aAAa;AAC7B,YAAM,QAAQ,IAAI,EAAE,QAAQ,WAAW,IAAI;AAAA,IAC5C,OAAO;AACN,YAAM,IAAI,MAAM,GAAG,QAAQ,iBAAiB;AAAA,IAC7C;AAAA,EACD;AAEA,QAAM,QAA8B,OAAO,UAAU,WAAW;AAC/D,UAAM,WAAW,MAAM,QAAQ;AAC/B,QAAI,CAAC,SAAU,OAAM,IAAI,MAAM,GAAG,QAAQ,aAAa;AACvD,QAAI,SAAS,WAAW;AACvB,YAAM,IAAI,MAAM,GAAG,QAAQ,sBAAsB;AAClD,aAAS,YAAY,KAAK,IAAI;AAAA,EAC/B;AAEA,QAAM,UAAkC,OAAO,UAAU,WAAW;AACnE,UAAM,WAAW,MAAM,QAAQ;AAC/B,QAAI,CAAC,SAAU,OAAM,IAAI,MAAM,GAAG,QAAQ,aAAa;AACvD,QAAI,SAAS,WAAW;AACvB,YAAM,IAAI,MAAM,GAAG,QAAQ,sBAAsB;AAClD,WAAO,MAAM,QAAQ;AAAA,EACtB;AAEA,SAAO;AAAA,IACN;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD;","names":[]}
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@universal-lock/memory",
3
+ "version": "1.0.0",
4
+ "description": "In-memory backend for universal-lock",
5
+ "sideEffects": false,
6
+ "engines": {
7
+ "node": ">=16"
8
+ },
9
+ "main": "dist/index.js",
10
+ "module": "dist/index.mjs",
11
+ "browser": "dist/index.global.js",
12
+ "types": "dist/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "import": {
16
+ "types": "./dist/index.d.mts",
17
+ "default": "./dist/index.mjs"
18
+ },
19
+ "require": {
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/index.js"
22
+ }
23
+ }
24
+ },
25
+ "files": [
26
+ "/dist"
27
+ ],
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/lucasrainett/universal-lock",
31
+ "directory": "packages/memory"
32
+ },
33
+ "keywords": [
34
+ "universal-lock",
35
+ "lock",
36
+ "mutex",
37
+ "memory",
38
+ "backend"
39
+ ],
40
+ "author": {
41
+ "name": "Lucas Rainett",
42
+ "email": "lucas@rainett.dev",
43
+ "url": "https://github.com/lucasrainett"
44
+ },
45
+ "license": "MIT",
46
+ "dependencies": {
47
+ "@universal-lock/types": "1.0.0"
48
+ },
49
+ "scripts": {
50
+ "build": "tsup",
51
+ "clean": "rm -rf dist"
52
+ }
53
+ }