wao 0.20.2 → 0.20.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/cjs/hb.js +4 -4
- package/cjs/helpers.js +1 -2
- package/esm/hb.js +2 -1
- package/esm/helpers.js +2 -2
- package/package.json +4 -5
package/cjs/hb.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _aoconnect = require("@permaweb/aoconnect");
|
|
8
8
|
var _ramda = require("ramda");
|
|
9
9
|
var _utils = require("./utils.js");
|
|
10
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -24,7 +24,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
24
24
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
25
25
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
26
26
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
27
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } //import { connect, createSigner } from "aoconnect-wao"
|
|
28
28
|
var randomBytes = function randomBytes(num) {
|
|
29
29
|
var array = new Uint8Array(num);
|
|
30
30
|
return crypto.getRandomValues(array);
|
|
@@ -159,11 +159,11 @@ var HB = /*#__PURE__*/function () {
|
|
|
159
159
|
return this.info();
|
|
160
160
|
case 2:
|
|
161
161
|
this._info = _context3.sent;
|
|
162
|
-
_connect = (0,
|
|
162
|
+
_connect = (0, _aoconnect.connect)({
|
|
163
163
|
MODE: "mainnet",
|
|
164
164
|
URL: this.url,
|
|
165
165
|
device: "",
|
|
166
|
-
signer: (0,
|
|
166
|
+
signer: (0, _aoconnect.createSigner)(jwk)
|
|
167
167
|
}), request = _connect.request;
|
|
168
168
|
this._request = request;
|
|
169
169
|
return _context3.abrupt("return", this);
|
package/cjs/helpers.js
CHANGED
|
@@ -8,7 +8,6 @@ exports.setup = exports.ok = exports.fail = exports.Testnet = exports.Src = void
|
|
|
8
8
|
var _index = require("./index.js");
|
|
9
9
|
var _assert = _interopRequireDefault(require("assert"));
|
|
10
10
|
var _aoconnect3 = require("@permaweb/aoconnect");
|
|
11
|
-
var _aoconnectWao = require("aoconnect-wao");
|
|
12
11
|
var _path = require("path");
|
|
13
12
|
var _fs = require("fs");
|
|
14
13
|
var _utils = require("./utils.js");
|
|
@@ -26,7 +25,7 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
|
|
|
26
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
26
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
28
27
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
29
|
-
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
28
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; } //import { connect } from "aoconnect-wao"
|
|
30
29
|
var _yargs$argv = (0, _yargs["default"])(process.argv.slice(2)).argv,
|
|
31
30
|
_yargs$argv$reset = _yargs$argv.reset,
|
|
32
31
|
reset = _yargs$argv$reset === void 0 ? false : _yargs$argv$reset,
|
package/esm/hb.js
CHANGED
package/esm/helpers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AR, AO } from "./index.js"
|
|
2
2
|
import assert from "assert"
|
|
3
|
-
import { createDataItemSigner } from "@permaweb/aoconnect"
|
|
4
|
-
import { connect } from "aoconnect-wao"
|
|
3
|
+
import { createDataItemSigner, connect } from "@permaweb/aoconnect"
|
|
4
|
+
//import { connect } from "aoconnect-wao"
|
|
5
5
|
import { dirname as _dirname, resolve } from "path"
|
|
6
6
|
import { mkdirSync, existsSync, writeFileSync, readFileSync } from "fs"
|
|
7
7
|
import { optAO } from "./utils.js"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wao",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.3",
|
|
4
4
|
"bin": {
|
|
5
5
|
"wao": "./cjs/cli.js",
|
|
6
6
|
"wao-esm": "./esm/cli.js"
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"@bokuweb/zstd-wasm": "^0.0.22",
|
|
32
32
|
"@dha-team/arbundles": "^1.0.1",
|
|
33
33
|
"@permaweb/ao-loader": "^0.0.44",
|
|
34
|
-
"@permaweb/aoconnect": "^0.0.
|
|
35
|
-
"aoconnect-wao": "https://gitpkg.vercel.app/weavedb/ao/connect?5cef9f0c1a4e8872308bbe0a7d004e44a7e008b6&scripts.postinstall=npm%20install%20--ignore-scripts%20%26%26%20npm%20run%20build",
|
|
34
|
+
"@permaweb/aoconnect": "^0.0.84",
|
|
36
35
|
"arbundles": "^0.11.1",
|
|
37
36
|
"arjson": "^0.0.2",
|
|
38
37
|
"arweave": "^1.15.1",
|
|
39
38
|
"base64url": "^3.0.1",
|
|
40
39
|
"body-parser": "^2.2.0",
|
|
41
40
|
"buffer": "^6.0.3",
|
|
41
|
+
"chokidar": "^4.0.3",
|
|
42
42
|
"cors": "^2.8.5",
|
|
43
43
|
"express": "^5.1.0",
|
|
44
44
|
"graphql": "^16.10.0",
|
|
@@ -50,8 +50,7 @@
|
|
|
50
50
|
"pm2": "^5.4.3",
|
|
51
51
|
"ramda": "^0.30.1",
|
|
52
52
|
"wasm-brotli": "^2.0.2",
|
|
53
|
-
"yargs": "^17.7.2"
|
|
54
|
-
"chokidar": "^4.0.3"
|
|
53
|
+
"yargs": "^17.7.2"
|
|
55
54
|
},
|
|
56
55
|
"devDependencies": {
|
|
57
56
|
"@babel/cli": "^7.24.8",
|