wao 0.36.4 → 0.36.6

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/bar.js CHANGED
@@ -171,30 +171,35 @@ var AR = /*#__PURE__*/function (_MAR) {
171
171
  _ref$target = _ref.target, target = _ref$target === void 0 ? "" : _ref$target, _ref$data = _ref.data, data = _ref$data === void 0 ? "1984" : _ref$data, _ref$tags = _ref.tags, tags = _ref$tags === void 0 ? {} : _ref$tags, signer = _ref.signer, item = _ref.item;
172
172
  di = item;
173
173
  if (di) {
174
- _context3.next = 9;
174
+ _context3.next = 10;
175
175
  break;
176
176
  }
177
- _context3.next = 5;
177
+ if (item !== null && item !== void 0 && item.signature) {
178
+ _context3.next = 8;
179
+ break;
180
+ }
181
+ _context3.next = 6;
178
182
  return signer({
179
183
  data: data,
180
184
  tags: (0, _utils.buildTags)(tags),
181
185
  target: target
182
186
  });
183
- case 5:
187
+ case 6:
184
188
  _item = _context3.sent;
185
189
  di = new DataItem(_item.raw);
186
- _context3.next = 10;
190
+ case 8:
191
+ _context3.next = 11;
187
192
  break;
188
- case 9:
189
- tags = (0, _utils.tags)(di.tags);
190
193
  case 10:
191
- _context3.next = 12;
194
+ tags = (0, _utils.tags)(di.tags);
195
+ case 11:
196
+ _context3.next = 13;
192
197
  return this.owner(di);
193
- case 12:
198
+ case 13:
194
199
  owner = _context3.sent;
195
- _context3.next = 15;
200
+ _context3.next = 16;
196
201
  return di.id;
197
- case 15:
202
+ case 16:
198
203
  _context3.t0 = _context3.sent;
199
204
  _context3.t1 = owner;
200
205
  _context3.t2 = di;
@@ -205,7 +210,7 @@ var AR = /*#__PURE__*/function (_MAR) {
205
210
  item: _context3.t2,
206
211
  tags: _context3.t3
207
212
  });
208
- case 20:
213
+ case 21:
209
214
  case "end":
210
215
  return _context3.stop();
211
216
  }