wao 0.17.0 → 0.18.1

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/ao.js CHANGED
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
  var WarpArBundles = _interopRequireWildcard(require("warp-arbundles"));
8
8
  var _ar4 = _interopRequireDefault(require("./ar.js"));
9
9
  var _md = _interopRequireDefault(require("md5"));
10
- var _aoconnectWao = require("aoconnect-wao");
10
+ var _aoconnect = require("@permaweb/aoconnect");
11
11
  var _ramda = require("ramda");
12
12
  var _utils = require("./utils.js");
13
13
  var _WarpArBundles$defaul;
@@ -142,7 +142,7 @@ var AO = /*#__PURE__*/function () {
142
142
  this.ar = new _ar4["default"](_ar);
143
143
  }
144
144
  if (!in_memory && aoconnect) {
145
- var _connect = (0, _aoconnectWao.connect)(aoconnect),
145
+ var _connect = (0, _aoconnect.connect)(aoconnect),
146
146
  _results = _connect.results,
147
147
  _assign = _connect.assign,
148
148
  _result = _connect.result,
@@ -160,14 +160,14 @@ var AO = /*#__PURE__*/function () {
160
160
  this.monitor = _monitor;
161
161
  this.unmonitor = _unmonitor;
162
162
  } else {
163
- this.assign = _aoconnectWao.assign;
164
- this.result = _aoconnectWao.result;
165
- this.results = _aoconnectWao.results;
166
- this.message = _aoconnectWao.message;
167
- this.spawn = _aoconnectWao.spawn;
168
- this.dryrun = _aoconnectWao.dryrun;
169
- this.monitor = _aoconnectWao.monitor;
170
- this.unmonitor = _aoconnectWao.unmonitor;
163
+ this.assign = _aoconnect.assign;
164
+ this.result = _aoconnect.result;
165
+ this.results = _aoconnect.results;
166
+ this.message = _aoconnect.message;
167
+ this.spawn = _aoconnect.spawn;
168
+ this.dryrun = _aoconnect.dryrun;
169
+ this.monitor = _aoconnect.monitor;
170
+ this.unmonitor = _aoconnect.unmonitor;
171
171
  }
172
172
  if (this.wao) {
173
173
  this.module = _utils.srcs.module_wao;
@@ -207,9 +207,9 @@ var AO = /*#__PURE__*/function () {
207
207
  if (wallet !== null && wallet !== void 0 && wallet.n && typeof window !== "undefined") {
208
208
  return createDataItemSigner2(wallet);
209
209
  } else if (wallet.test) {
210
- return (0, _aoconnectWao.createDataItemSigner)(wallet.jwk);
210
+ return (0, _aoconnect.createDataItemSigner)(wallet.jwk);
211
211
  } else {
212
- return (0, _aoconnectWao.createDataItemSigner)(wallet);
212
+ return (0, _aoconnect.createDataItemSigner)(wallet);
213
213
  }
214
214
  }
215
215
  }, {
@@ -591,7 +591,8 @@ var AO = /*#__PURE__*/function () {
591
591
  if (auth) tags.Authority = auth;
592
592
  if (!tags.Authority && this.authority) tags.Authority = this.authority;
593
593
  _tags = (0, _utils.buildTags)(null, tags);
594
- _context8.next = 17;
594
+ console.log("yo.....................", data, _tags);
595
+ _context8.next = 18;
595
596
  return this.spawn({
596
597
  variant: this.variant,
597
598
  memory: memory,
@@ -601,26 +602,26 @@ var AO = /*#__PURE__*/function () {
601
602
  tags: _tags,
602
603
  data: (0, _utils.jsonToStr)(data)
603
604
  });
604
- case 17:
605
+ case 18:
605
606
  pid = _context8.sent;
606
- _context8.next = 23;
607
+ _context8.next = 24;
607
608
  break;
608
- case 20:
609
- _context8.prev = 20;
609
+ case 21:
610
+ _context8.prev = 21;
610
611
  _context8.t0 = _context8["catch"](10);
611
612
  err = _context8.t0;
612
- case 23:
613
+ case 24:
613
614
  p = pid ? this.p(pid) : null;
614
615
  return _context8.abrupt("return", {
615
616
  err: err,
616
617
  pid: pid,
617
618
  p: p
618
619
  });
619
- case 25:
620
+ case 26:
620
621
  case "end":
621
622
  return _context8.stop();
622
623
  }
623
- }, _callee8, this, [[10, 20]]);
624
+ }, _callee8, this, [[10, 21]]);
624
625
  }));
625
626
  function spwn() {
626
627
  return _spwn.apply(this, arguments);
package/cjs/bao.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports["default"] = void 0;
8
8
  var _ao = _interopRequireDefault(require("./ao.js"));
9
- var _aoconnectWao = require("aoconnect-wao");
9
+ var _aoconnect = require("@permaweb/aoconnect");
10
10
  var _utils = require("./utils.js");
11
11
  var _ramda = require("ramda");
12
12
  var _hb = _interopRequireDefault(require("./hb.js"));
@@ -81,7 +81,7 @@ var AO = /*#__PURE__*/function (_MAO) {
81
81
  in_memory: true
82
82
  })]);
83
83
  _this.in_memory = true;
84
- _this.createDataItemSigner = (_opt$createDataItemSi = opt.createDataItemSigner) !== null && _opt$createDataItemSi !== void 0 ? _opt$createDataItemSi : _aoconnectWao.createDataItemSigner;
84
+ _this.createDataItemSigner = (_opt$createDataItemSi = opt.createDataItemSigner) !== null && _opt$createDataItemSi !== void 0 ? _opt$createDataItemSi : _aoconnect.createDataItemSigner;
85
85
  _this.hb = opt.hb;
86
86
  var _opt$connect = opt.connect(opt.mem, {
87
87
  variant: opt.variant,
package/cjs/helpers.js CHANGED
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.setup = exports.ok = exports.fail = exports.Testnet = exports.Src = void 0;
8
8
  var _index = require("./index.js");
9
9
  var _assert = _interopRequireDefault(require("assert"));
10
+ var _aoconnect3 = require("@permaweb/aoconnect");
10
11
  var _aoconnectWao = require("aoconnect-wao");
11
12
  var _path = require("path");
12
13
  var _fs = require("fs");
package/esm/ao.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  dryrun,
15
15
  monitor,
16
16
  unmonitor,
17
- } from "aoconnect-wao"
17
+ } from "@permaweb/aoconnect"
18
18
 
19
19
  import {
20
20
  dissoc,
@@ -370,6 +370,7 @@ class AO {
370
370
  if (auth) tags.Authority = auth
371
371
  if (!tags.Authority && this.authority) tags.Authority = this.authority
372
372
  let _tags = buildTags(null, tags)
373
+ console.log("yo.....................", data, _tags)
373
374
  pid = await this.spawn({
374
375
  variant: this.variant,
375
376
  memory,
package/esm/bao.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import MAO from "./ao.js"
2
- import { createDataItemSigner } from "aoconnect-wao"
2
+ import { createDataItemSigner } from "@permaweb/aoconnect"
3
3
  import { srcs, buildTags } from "./utils.js"
4
4
  import { mergeLeft, is, map } from "ramda"
5
5
  import HB from "./hb.js"
package/esm/helpers.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AR, AO } from "./index.js"
2
2
  import assert from "assert"
3
-
4
- import { createDataItemSigner, connect } from "aoconnect-wao"
3
+ import { createDataItemSigner } 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.17.0",
3
+ "version": "0.18.1",
4
4
  "bin": {
5
5
  "wao": "./cjs/cli.js",
6
6
  "wao-esm": "./esm/cli.js"