jlens-wasm 0.13.0 → 0.14.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/README.md CHANGED
@@ -7,6 +7,9 @@ diagnostics and hover driven by a JSON Schema inferred from sample documents.
7
7
  This is an ES module for browsers (`--target web`). It also runs in Node.js 20+ and Deno if you
8
8
  pass the `.wasm` bytes to `init`.
9
9
 
10
+ Try it in the [web editor](https://thkprado.github.io/jlens/editor/), which is built on this
11
+ package, and read the [jlens book](https://thkprado.github.io/jlens/) for the language and the API.
12
+
10
13
  ```js
11
14
  import init, { Expression } from "jlens-wasm";
12
15
 
@@ -39,7 +42,9 @@ with the JSONata error `code`, plus `position`, `start`, `end` and `token` when
39
42
 
40
43
  All offsets, in both directions, are UTF-16 code units, like JavaScript string indexes.
41
44
 
42
- The full guide is the "WebAssembly (browser)" chapter of the jlens book (`docs/src/guides/wasm.md`).
45
+ The full guide is the
46
+ [WebAssembly chapter](https://thkprado.github.io/jlens/guides/wasm.html) of the
47
+ [jlens book](https://thkprado.github.io/jlens/).
43
48
 
44
49
  ## License
45
50
 
package/jlens.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /* @ts-self-types="./jlens.d.ts" */
2
- import { jlensCallable } from './snippets/jlens-wasm-8f70bef341ac4aed/inline0.js';
3
- import { jlensLevel } from './snippets/jlens-wasm-8f70bef341ac4aed/inline1.js';
2
+ import { jlensCallable } from './snippets/jlens-wasm-0ebe6c190d22168f/inline0.js';
3
+ import { jlensLevel } from './snippets/jlens-wasm-0ebe6c190d22168f/inline1.js';
4
4
 
5
5
 
6
6
  /**
@@ -431,11 +431,11 @@ function __wbg_get_imports() {
431
431
  const ret = Array.isArray(arg0);
432
432
  return ret;
433
433
  },
434
- __wbg_jlensCallable_06b1183d73f75f40: function(arg0, arg1) {
434
+ __wbg_jlensCallable_533c1b276c5d6c1f: function(arg0, arg1) {
435
435
  const ret = jlensCallable(arg0, arg1 >>> 0);
436
436
  return ret;
437
437
  },
438
- __wbg_jlensLevel_541f3ed0b0472e8b: function() { return handleError(function (arg0, arg1, arg2) {
438
+ __wbg_jlensLevel_fc8af4a9a6130cb9: function() { return handleError(function (arg0, arg1, arg2) {
439
439
  const ret = jlensLevel(arg0, arg1 >>> 0, arg2 >>> 0);
440
440
  return ret;
441
441
  }, arguments); },
package/jlens_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jlens-wasm",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "JSONata in WebAssembly, with evaluation audits and schema-driven autocomplete",
5
5
  "license": "MIT",
6
6
  "repository": {