@ray-db/core 0.1.5
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 +21 -0
- package/README.md +87 -0
- package/browser.js +1 -0
- package/index.d.ts +1376 -0
- package/index.js +610 -0
- package/package.json +126 -0
package/package.json
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ray-db/core",
|
|
3
|
+
"version": "0.1.5",
|
|
4
|
+
"description": "Template project for writing node package with napi-rs",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+ssh://git@github.com/napi-rs/package-template.git"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"browser": "browser.js",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"napi-rs",
|
|
14
|
+
"NAPI",
|
|
15
|
+
"N-API",
|
|
16
|
+
"Rust",
|
|
17
|
+
"node-addon",
|
|
18
|
+
"node-addon-api"
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
"index.d.ts",
|
|
22
|
+
"index.js",
|
|
23
|
+
"browser.js"
|
|
24
|
+
],
|
|
25
|
+
"napi": {
|
|
26
|
+
"binaryName": "core",
|
|
27
|
+
"targets": [
|
|
28
|
+
"x86_64-pc-windows-msvc",
|
|
29
|
+
"x86_64-apple-darwin",
|
|
30
|
+
"x86_64-unknown-linux-gnu",
|
|
31
|
+
"aarch64-apple-darwin",
|
|
32
|
+
"wasm32-wasip1-threads"
|
|
33
|
+
],
|
|
34
|
+
"wasm": {
|
|
35
|
+
"browser": {
|
|
36
|
+
"fs": true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"registry": "https://registry.npmjs.org/",
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"artifacts": "napi artifacts",
|
|
49
|
+
"bench": "node --import @oxc-node/core/register benchmark/bench.ts",
|
|
50
|
+
"build": "napi build --platform --release",
|
|
51
|
+
"build:debug": "napi build --platform",
|
|
52
|
+
"build:wasm": "napi build --target wasm32-wasip1-threads --release && node scripts/rename-wasm.mjs",
|
|
53
|
+
"build:wasm:debug": "napi build --target wasm32-wasip1-threads && node scripts/rename-wasm.mjs",
|
|
54
|
+
"format": "run-p format:prettier format:rs format:toml",
|
|
55
|
+
"format:prettier": "prettier . -w",
|
|
56
|
+
"format:toml": "taplo format",
|
|
57
|
+
"format:rs": "cargo fmt",
|
|
58
|
+
"lint": "oxlint .",
|
|
59
|
+
"prepublishOnly": "napi prepublish -t npm",
|
|
60
|
+
"test": "ava",
|
|
61
|
+
"test:wasm": "node scripts/wasm-smoke.mjs",
|
|
62
|
+
"preversion": "napi build --platform && git add .",
|
|
63
|
+
"version": "napi version",
|
|
64
|
+
"prepare": "husky"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@napi-rs/wasm-runtime": "^1.1.1"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@emnapi/core": "^1.5.0",
|
|
71
|
+
"@emnapi/runtime": "^1.5.0",
|
|
72
|
+
"@napi-rs/cli": "^3.2.0",
|
|
73
|
+
"@oxc-node/core": "^0.0.35",
|
|
74
|
+
"@taplo/cli": "^0.7.0",
|
|
75
|
+
"@tybys/wasm-util": "^0.10.0",
|
|
76
|
+
"ava": "^6.4.1",
|
|
77
|
+
"chalk": "^5.6.2",
|
|
78
|
+
"husky": "^9.1.7",
|
|
79
|
+
"lint-staged": "^16.1.6",
|
|
80
|
+
"npm-run-all2": "^8.0.4",
|
|
81
|
+
"oxlint": "^1.14.0",
|
|
82
|
+
"prettier": "^3.6.2",
|
|
83
|
+
"tinybench": "^6.0.0",
|
|
84
|
+
"typescript": "^5.9.2"
|
|
85
|
+
},
|
|
86
|
+
"lint-staged": {
|
|
87
|
+
"*.@(js|ts|tsx)": [
|
|
88
|
+
"oxlint --fix"
|
|
89
|
+
],
|
|
90
|
+
"*.@(js|ts|tsx|yml|yaml|md|json)": [
|
|
91
|
+
"prettier --write"
|
|
92
|
+
],
|
|
93
|
+
"*.toml": [
|
|
94
|
+
"taplo format"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"ava": {
|
|
98
|
+
"extensions": {
|
|
99
|
+
"ts": "module"
|
|
100
|
+
},
|
|
101
|
+
"timeout": "2m",
|
|
102
|
+
"workerThreads": false,
|
|
103
|
+
"environmentVariables": {
|
|
104
|
+
"OXC_TSCONFIG_PATH": "./__test__/tsconfig.json"
|
|
105
|
+
},
|
|
106
|
+
"nodeArguments": [
|
|
107
|
+
"--import",
|
|
108
|
+
"@oxc-node/core/register"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"prettier": {
|
|
112
|
+
"printWidth": 120,
|
|
113
|
+
"semi": false,
|
|
114
|
+
"trailingComma": "all",
|
|
115
|
+
"singleQuote": true,
|
|
116
|
+
"arrowParens": "always"
|
|
117
|
+
},
|
|
118
|
+
"packageManager": "yarn@4.12.0",
|
|
119
|
+
"optionalDependencies": {
|
|
120
|
+
"@ray-db/core-win32-x64-msvc": "0.1.5",
|
|
121
|
+
"@ray-db/core-darwin-x64": "0.1.5",
|
|
122
|
+
"@ray-db/core-linux-x64-gnu": "0.1.5",
|
|
123
|
+
"@ray-db/core-darwin-arm64": "0.1.5",
|
|
124
|
+
"@ray-db/core-wasm32-wasi": "0.1.5"
|
|
125
|
+
}
|
|
126
|
+
}
|