wao 0.20.2 → 0.20.4

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 CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
- var _aoconnectWao = require("aoconnect-wao");
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, _aoconnectWao.connect)({
162
+ _connect = (0, _aoconnect.connect)({
163
163
  MODE: "mainnet",
164
164
  URL: this.url,
165
165
  device: "",
166
- signer: (0, _aoconnectWao.createSigner)(jwk)
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
@@ -1,4 +1,5 @@
1
- import { connect, createSigner } from "aoconnect-wao"
1
+ //import { connect, createSigner } from "aoconnect-wao"
2
+ import { connect, createSigner } from "@permaweb/aoconnect"
2
3
  import { last, isNotNil, mergeLeft } from "ramda"
3
4
  import { buildTags } from "./utils.js"
4
5
 
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.2",
3
+ "version": "0.20.4",
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.62",
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",
@@ -49,9 +49,9 @@
49
49
  "md5": "^2.3.0",
50
50
  "pm2": "^5.4.3",
51
51
  "ramda": "^0.30.1",
52
+ "warp-arbundles": "^1.0.4",
52
53
  "wasm-brotli": "^2.0.2",
53
- "yargs": "^17.7.2",
54
- "chokidar": "^4.0.3"
54
+ "yargs": "^17.7.2"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@babel/cli": "^7.24.8",