wao 0.4.10 → 0.5.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/esm/test.js CHANGED
@@ -4,14 +4,21 @@ import { acc, mu, su, cu } from "./accounts.js"
4
4
  import { connect } from "./aoconnect.js"
5
5
  import AO from "./tao.js"
6
6
  import AR from "./tar.js"
7
+ import GQL from "./tgql.js"
8
+ import ArMem from "./armem.js"
7
9
  import { dirname } from "./utils.js"
8
10
  import { Src, setup, ok, fail } from "./helpers.js"
11
+ import Server from "./server.js"
12
+
9
13
  const blueprint = async pkg => {
10
14
  return readFileSync(resolve(await dirname(), `lua/${pkg}.lua`), "utf8")
11
15
  }
12
- const scheduler = "GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA"
16
+ const scheduler = "_GQ33BkPtZrqxA84vM8Zk-N2aO0toNNu_C-l-rawrBA"
13
17
 
14
18
  export {
19
+ Server,
20
+ GQL,
21
+ ArMem,
15
22
  AO,
16
23
  AR,
17
24
  connect,
package/esm/tgql.js CHANGED
@@ -80,7 +80,6 @@ export default class GQL {
80
80
  let ids = null
81
81
  if (is(Array, opt.ids)) ids = opt.ids
82
82
  else if (is(String, opt.id)) ids = [opt.id]
83
-
84
83
  let data = []
85
84
  let blocks = this.mem.blocks
86
85
  if (opt.asc !== true) blocks = reverse(blocks)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wao",
3
- "version": "0.4.10",
3
+ "version": "0.5.0",
4
4
  "description": "",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -27,6 +27,16 @@
27
27
  "arbundles": "^0.11.1",
28
28
  "arweave": "^1.15.1",
29
29
  "base64url": "^3.0.1",
30
+ "body-parser": "^1.20.3",
31
+ "express": "^4.21.2",
32
+ "graphql": "^16.10.0",
30
33
  "ramda": "^0.30.1"
34
+ },
35
+ "bin": {
36
+ "wao": "./cjs/run.js",
37
+ "wao-esm": "./esm/run.js"
38
+ },
39
+ "scripts": {
40
+ "server": "node --experimental-wasm-memory64 cjs/run.js"
31
41
  }
32
42
  }