@mmobeus/luadata-wasm 0.1.14 → 0.1.15
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 +2 -1
- package/package.json +1 -1
- package/wasm/luadata_wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -37,8 +37,9 @@ const json = convert(luaString, {
|
|
|
37
37
|
|
|
38
38
|
## Options
|
|
39
39
|
|
|
40
|
-
The `convert` function accepts an optional options object with
|
|
40
|
+
The `convert` function accepts an optional options object with four groups:
|
|
41
41
|
|
|
42
|
+
- **Schema** (`schema`, `unknownFields`) — provide a JSON Schema string to guide type decisions, overriding heuristics
|
|
42
43
|
- **String transform** — limit string length during parsing (`truncate`, `empty`, `redact`, `replace`)
|
|
43
44
|
- **Array detection** — control how integer-keyed Lua tables map to JSON arrays (`sparse`, `index-only`, `none`)
|
|
44
45
|
- **Empty tables** — choose how empty Lua tables render in JSON (`null`, `omit`, `array`, `object`)
|
package/package.json
CHANGED
|
Binary file
|