rust-node-cache 0.1.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/package.json ADDED
@@ -0,0 +1,109 @@
1
+ {
2
+ "name": "rust-node-cache",
3
+ "version": "0.1.0",
4
+ "description": "Ultra-fast in-memory cache for Node.js powered by Rust.",
5
+ "keywords": [
6
+ "cache",
7
+ "in-memory",
8
+ "rust",
9
+ "napi",
10
+ "performance",
11
+ "ttl",
12
+ "dashmap",
13
+ "express",
14
+ "fastify",
15
+ "nestjs"
16
+ ],
17
+ "license": "MIT",
18
+ "author": {
19
+ "name": "Roberto Lima",
20
+ "url": "https://github.com/robertolima-dev"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/robertolima-dev/rust-node-cache.git"
25
+ },
26
+ "homepage": "https://github.com/robertolima-dev/rust-node-cache",
27
+ "main": "dist/index.js",
28
+ "module": "dist/index.mjs",
29
+ "types": "dist/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.ts",
33
+ "import": "./dist/index.mjs",
34
+ "require": "./dist/index.js"
35
+ },
36
+ "./express": {
37
+ "types": "./dist/express.d.ts",
38
+ "import": "./dist/express.mjs",
39
+ "require": "./dist/express.js"
40
+ },
41
+ "./fastify": {
42
+ "types": "./dist/fastify.d.ts",
43
+ "import": "./dist/fastify.mjs",
44
+ "require": "./dist/fastify.js"
45
+ },
46
+ "./nestjs": {
47
+ "types": "./dist/nestjs.d.ts",
48
+ "import": "./dist/nestjs.mjs",
49
+ "require": "./dist/nestjs.js"
50
+ }
51
+ },
52
+ "files": [
53
+ "dist",
54
+ "binding.js",
55
+ "binding.d.ts",
56
+ "index.node",
57
+ "*.node",
58
+ "README.md",
59
+ "LICENSE"
60
+ ],
61
+ "napi": {
62
+ "name": "rust-node-cache",
63
+ "triples": {
64
+ "defaults": true,
65
+ "additional": [
66
+ "aarch64-apple-darwin",
67
+ "aarch64-unknown-linux-gnu",
68
+ "x86_64-unknown-linux-gnu",
69
+ "x86_64-pc-windows-msvc"
70
+ ]
71
+ }
72
+ },
73
+ "engines": {
74
+ "node": ">= 18"
75
+ },
76
+ "scripts": {
77
+ "build:native": "napi build --platform --release --js binding.js --dts binding.d.ts",
78
+ "build:native:debug": "napi build --platform --js binding.js --dts binding.d.ts",
79
+ "build:js": "tsup",
80
+ "build": "npm run build:native && npm run build:js",
81
+ "test": "vitest run",
82
+ "test:watch": "vitest",
83
+ "prepublishOnly": "npm run build"
84
+ },
85
+ "devDependencies": {
86
+ "@napi-rs/cli": "^2.18.4",
87
+ "@nestjs/common": "^10.3.0",
88
+ "@types/express": "^4.17.21",
89
+ "@types/node": "^20.14.0",
90
+ "express": "^4.19.2",
91
+ "fastify": "^4.28.0",
92
+ "rxjs": "^7.8.1",
93
+ "tsup": "^8.1.0",
94
+ "typescript": "^5.5.0",
95
+ "vitest": "^1.6.0"
96
+ },
97
+ "peerDependencies": {
98
+ "@nestjs/common": ">=9",
99
+ "express": ">=4",
100
+ "fastify": ">=4",
101
+ "rxjs": ">=7"
102
+ },
103
+ "peerDependenciesMeta": {
104
+ "@nestjs/common": { "optional": true },
105
+ "express": { "optional": true },
106
+ "fastify": { "optional": true },
107
+ "rxjs": { "optional": true }
108
+ }
109
+ }
Binary file