@iyulab/m3l-napi 0.25.0 → 0.27.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.
Files changed (2) hide show
  1. package/README.md +13 -0
  2. package/package.json +7 -6
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # @iyulab/m3l-napi
2
+
3
+ The native Node.js addon behind [`@iyulab/m3l`](https://www.npmjs.com/package/@iyulab/m3l) — the
4
+ [M3L](https://github.com/iyulab/m3l) parser compiled from the Rust `m3l-core` crate (napi-rs), with one prebuilt binary
5
+ per platform (Windows x64, Linux x64, macOS x64 and arm64).
6
+
7
+ **Install `@iyulab/m3l` instead.** It depends on this package and adds an ES module entry (`import { parse } from
8
+ '@iyulab/m3l'`), TypeScript declarations for the argument and result types, and the documentation. This package is a
9
+ CommonJS module whose exports are the addon's own function table, so from an ES module it can only be imported as a
10
+ default (`import addon from '@iyulab/m3l-napi'`).
11
+
12
+ The functions are `parse`, `parseMulti`, `validate`, `validateMulti` and `lint`; each takes strings and returns a JSON
13
+ string. See the [`@iyulab/m3l` README](https://www.npmjs.com/package/@iyulab/m3l) for what they take and return.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iyulab/m3l-napi",
3
- "version": "0.25.0",
3
+ "version": "0.27.0",
4
4
  "description": "M3L parser Node.js native addon via napi-rs",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -16,13 +16,14 @@
16
16
  },
17
17
  "files": [
18
18
  "index.js",
19
- "index.d.ts"
19
+ "index.d.ts",
20
+ "README.md"
20
21
  ],
21
22
  "optionalDependencies": {
22
- "@iyulab/m3l-napi-win32-x64-msvc": "0.25.0",
23
- "@iyulab/m3l-napi-linux-x64-gnu": "0.25.0",
24
- "@iyulab/m3l-napi-darwin-x64": "0.25.0",
25
- "@iyulab/m3l-napi-darwin-arm64": "0.25.0"
23
+ "@iyulab/m3l-napi-win32-x64-msvc": "0.27.0",
24
+ "@iyulab/m3l-napi-linux-x64-gnu": "0.27.0",
25
+ "@iyulab/m3l-napi-darwin-x64": "0.27.0",
26
+ "@iyulab/m3l-napi-darwin-arm64": "0.27.0"
26
27
  },
27
28
  "repository": {
28
29
  "type": "git",