@yydb/yydb-linux-x64 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -21,9 +21,9 @@ npx yydb serve app.yydb --bind 127.0.0.1:7700
21
21
  |-------------|------------------------------------|
22
22
  | npm package | `@yydb/yydb-linux-x64` |
23
23
  | Platform | Linux x64 with glibc (`linux/x64`) |
24
- | Binding | `yydb.linux-x64.node` |
24
+ | Binding | `lib/yydb-linux-x64-gnu.node` |
25
25
 
26
- The same binding is also available in the [release archives](https://github.com/yy-database/yydb.rs/releases).
26
+ Install via `@yydb/yydb` optionalDependencies or add `@yydb/yydb-linux-x64` directly.
27
27
 
28
28
  [YYDB overview](https://github.com/yy-database/yydb.rs) ·
29
29
  [License](https://github.com/yy-database/yydb.rs/blob/dev/License.md)
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ import { createRequire } from 'node:module';
2
+
3
+ const require = createRequire(import.meta.url);
4
+ export default require('./lib/yydb-linux-x64-gnu.node');
Binary file
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@yydb/yydb-linux-x64",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "YYDB native binding for Linux x64; installed automatically by @yydb/yydb",
5
5
  "license": "MPL-2.0",
6
+ "type": "module",
7
+ "main": "./index.js",
8
+ "exports": {
9
+ ".": "./index.js"
10
+ },
6
11
  "os": [
7
12
  "linux"
8
13
  ],
@@ -10,7 +15,8 @@
10
15
  "x64"
11
16
  ],
12
17
  "files": [
13
- "yydb.linux-x64.node",
18
+ "index.js",
19
+ "lib",
14
20
  "README.md"
15
21
  ],
16
22
  "repository": {
Binary file