@airgap/serializer 0.13.9-beta.1 → 0.13.9-beta.2

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.
@@ -3851,6 +3851,8 @@ var INTRINSICS = {
3851
3851
  '%AsyncIteratorPrototype%': needsEval,
3852
3852
  '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
3853
3853
  '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
3854
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
3855
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
3854
3856
  '%Boolean%': Boolean,
3855
3857
  '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
3856
3858
  '%Date%': Date,
@@ -3906,6 +3908,14 @@ var INTRINSICS = {
3906
3908
  '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
3907
3909
  };
3908
3910
 
3911
+ try {
3912
+ null.error; // eslint-disable-line no-unused-expressions
3913
+ } catch (e) {
3914
+ // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
3915
+ var errorProto = getProto(getProto(e));
3916
+ INTRINSICS['%Error.prototype%'] = errorProto;
3917
+ }
3918
+
3909
3919
  var doEval = function doEval(name) {
3910
3920
  var value;
3911
3921
  if (name === '%AsyncFunction%') {
@@ -4852,6 +4862,73 @@ process.chdir = function (dir) {
4852
4862
  process.umask = function() { return 0; };
4853
4863
 
4854
4864
  },{}],29:[function(require,module,exports){
4865
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
4866
+ /* eslint-disable node/no-deprecated-api */
4867
+ var buffer = require('buffer')
4868
+ var Buffer = buffer.Buffer
4869
+
4870
+ // alternative to using Object.keys for old browsers
4871
+ function copyProps (src, dst) {
4872
+ for (var key in src) {
4873
+ dst[key] = src[key]
4874
+ }
4875
+ }
4876
+ if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
4877
+ module.exports = buffer
4878
+ } else {
4879
+ // Copy properties from require('buffer')
4880
+ copyProps(buffer, exports)
4881
+ exports.Buffer = SafeBuffer
4882
+ }
4883
+
4884
+ function SafeBuffer (arg, encodingOrOffset, length) {
4885
+ return Buffer(arg, encodingOrOffset, length)
4886
+ }
4887
+
4888
+ SafeBuffer.prototype = Object.create(Buffer.prototype)
4889
+
4890
+ // Copy static methods from Buffer
4891
+ copyProps(Buffer, SafeBuffer)
4892
+
4893
+ SafeBuffer.from = function (arg, encodingOrOffset, length) {
4894
+ if (typeof arg === 'number') {
4895
+ throw new TypeError('Argument must not be a number')
4896
+ }
4897
+ return Buffer(arg, encodingOrOffset, length)
4898
+ }
4899
+
4900
+ SafeBuffer.alloc = function (size, fill, encoding) {
4901
+ if (typeof size !== 'number') {
4902
+ throw new TypeError('Argument must be a number')
4903
+ }
4904
+ var buf = Buffer(size)
4905
+ if (fill !== undefined) {
4906
+ if (typeof encoding === 'string') {
4907
+ buf.fill(fill, encoding)
4908
+ } else {
4909
+ buf.fill(fill)
4910
+ }
4911
+ } else {
4912
+ buf.fill(0)
4913
+ }
4914
+ return buf
4915
+ }
4916
+
4917
+ SafeBuffer.allocUnsafe = function (size) {
4918
+ if (typeof size !== 'number') {
4919
+ throw new TypeError('Argument must be a number')
4920
+ }
4921
+ return Buffer(size)
4922
+ }
4923
+
4924
+ SafeBuffer.allocUnsafeSlow = function (size) {
4925
+ if (typeof size !== 'number') {
4926
+ throw new TypeError('Argument must be a number')
4927
+ }
4928
+ return buffer.SlowBuffer(size)
4929
+ }
4930
+
4931
+ },{"buffer":8}],30:[function(require,module,exports){
4855
4932
  // Copyright Joyent, Inc. and other Node contributors.
4856
4933
  //
4857
4934
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -4982,7 +5059,7 @@ Stream.prototype.pipe = function(dest, options) {
4982
5059
  return dest;
4983
5060
  };
4984
5061
 
4985
- },{"events":11,"inherits":22,"readable-stream/lib/_stream_duplex.js":31,"readable-stream/lib/_stream_passthrough.js":32,"readable-stream/lib/_stream_readable.js":33,"readable-stream/lib/_stream_transform.js":34,"readable-stream/lib/_stream_writable.js":35,"readable-stream/lib/internal/streams/end-of-stream.js":39,"readable-stream/lib/internal/streams/pipeline.js":41}],30:[function(require,module,exports){
5062
+ },{"events":11,"inherits":22,"readable-stream/lib/_stream_duplex.js":32,"readable-stream/lib/_stream_passthrough.js":33,"readable-stream/lib/_stream_readable.js":34,"readable-stream/lib/_stream_transform.js":35,"readable-stream/lib/_stream_writable.js":36,"readable-stream/lib/internal/streams/end-of-stream.js":40,"readable-stream/lib/internal/streams/pipeline.js":42}],31:[function(require,module,exports){
4986
5063
  'use strict';
4987
5064
 
4988
5065
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
@@ -5111,7 +5188,7 @@ createErrorType('ERR_UNKNOWN_ENCODING', function (arg) {
5111
5188
  createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
5112
5189
  module.exports.codes = codes;
5113
5190
 
5114
- },{}],31:[function(require,module,exports){
5191
+ },{}],32:[function(require,module,exports){
5115
5192
  (function (process){(function (){
5116
5193
  // Copyright Joyent, Inc. and other Node contributors.
5117
5194
  //
@@ -5253,7 +5330,7 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
5253
5330
  }
5254
5331
  });
5255
5332
  }).call(this)}).call(this,require('_process'))
5256
- },{"./_stream_readable":33,"./_stream_writable":35,"_process":28,"inherits":22}],32:[function(require,module,exports){
5333
+ },{"./_stream_readable":34,"./_stream_writable":36,"_process":28,"inherits":22}],33:[function(require,module,exports){
5257
5334
  // Copyright Joyent, Inc. and other Node contributors.
5258
5335
  //
5259
5336
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -5293,7 +5370,7 @@ function PassThrough(options) {
5293
5370
  PassThrough.prototype._transform = function (chunk, encoding, cb) {
5294
5371
  cb(null, chunk);
5295
5372
  };
5296
- },{"./_stream_transform":34,"inherits":22}],33:[function(require,module,exports){
5373
+ },{"./_stream_transform":35,"inherits":22}],34:[function(require,module,exports){
5297
5374
  (function (process,global){(function (){
5298
5375
  // Copyright Joyent, Inc. and other Node contributors.
5299
5376
  //
@@ -6420,7 +6497,7 @@ function indexOf(xs, x) {
6420
6497
  return -1;
6421
6498
  }
6422
6499
  }).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6423
- },{"../errors":30,"./_stream_duplex":31,"./internal/streams/async_iterator":36,"./internal/streams/buffer_list":37,"./internal/streams/destroy":38,"./internal/streams/from":40,"./internal/streams/state":42,"./internal/streams/stream":43,"_process":28,"buffer":8,"events":11,"inherits":22,"string_decoder/":44,"util":7}],34:[function(require,module,exports){
6500
+ },{"../errors":31,"./_stream_duplex":32,"./internal/streams/async_iterator":37,"./internal/streams/buffer_list":38,"./internal/streams/destroy":39,"./internal/streams/from":41,"./internal/streams/state":43,"./internal/streams/stream":44,"_process":28,"buffer":8,"events":11,"inherits":22,"string_decoder/":45,"util":7}],35:[function(require,module,exports){
6424
6501
  // Copyright Joyent, Inc. and other Node contributors.
6425
6502
  //
6426
6503
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -6622,7 +6699,7 @@ function done(stream, er, data) {
6622
6699
  if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
6623
6700
  return stream.push(null);
6624
6701
  }
6625
- },{"../errors":30,"./_stream_duplex":31,"inherits":22}],35:[function(require,module,exports){
6702
+ },{"../errors":31,"./_stream_duplex":32,"inherits":22}],36:[function(require,module,exports){
6626
6703
  (function (process,global){(function (){
6627
6704
  // Copyright Joyent, Inc. and other Node contributors.
6628
6705
  //
@@ -7322,7 +7399,7 @@ Writable.prototype._destroy = function (err, cb) {
7322
7399
  cb(err);
7323
7400
  };
7324
7401
  }).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
7325
- },{"../errors":30,"./_stream_duplex":31,"./internal/streams/destroy":38,"./internal/streams/state":42,"./internal/streams/stream":43,"_process":28,"buffer":8,"inherits":22,"util-deprecate":46}],36:[function(require,module,exports){
7402
+ },{"../errors":31,"./_stream_duplex":32,"./internal/streams/destroy":39,"./internal/streams/state":43,"./internal/streams/stream":44,"_process":28,"buffer":8,"inherits":22,"util-deprecate":46}],37:[function(require,module,exports){
7326
7403
  (function (process){(function (){
7327
7404
  'use strict';
7328
7405
 
@@ -7532,7 +7609,7 @@ var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterat
7532
7609
 
7533
7610
  module.exports = createReadableStreamAsyncIterator;
7534
7611
  }).call(this)}).call(this,require('_process'))
7535
- },{"./end-of-stream":39,"_process":28}],37:[function(require,module,exports){
7612
+ },{"./end-of-stream":40,"_process":28}],38:[function(require,module,exports){
7536
7613
  'use strict';
7537
7614
 
7538
7615
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
@@ -7743,7 +7820,7 @@ function () {
7743
7820
 
7744
7821
  return BufferList;
7745
7822
  }();
7746
- },{"buffer":8,"util":7}],38:[function(require,module,exports){
7823
+ },{"buffer":8,"util":7}],39:[function(require,module,exports){
7747
7824
  (function (process){(function (){
7748
7825
  'use strict'; // undocumented cb() API, needed for core, not for public API
7749
7826
 
@@ -7851,7 +7928,7 @@ module.exports = {
7851
7928
  errorOrDestroy: errorOrDestroy
7852
7929
  };
7853
7930
  }).call(this)}).call(this,require('_process'))
7854
- },{"_process":28}],39:[function(require,module,exports){
7931
+ },{"_process":28}],40:[function(require,module,exports){
7855
7932
  // Ported from https://github.com/mafintosh/end-of-stream with
7856
7933
  // permission from the author, Mathias Buus (@mafintosh).
7857
7934
  'use strict';
@@ -7956,12 +8033,12 @@ function eos(stream, opts, callback) {
7956
8033
  }
7957
8034
 
7958
8035
  module.exports = eos;
7959
- },{"../../../errors":30}],40:[function(require,module,exports){
8036
+ },{"../../../errors":31}],41:[function(require,module,exports){
7960
8037
  module.exports = function () {
7961
8038
  throw new Error('Readable.from is not available in the browser')
7962
8039
  };
7963
8040
 
7964
- },{}],41:[function(require,module,exports){
8041
+ },{}],42:[function(require,module,exports){
7965
8042
  // Ported from https://github.com/mafintosh/pump with
7966
8043
  // permission from the author, Mathias Buus (@mafintosh).
7967
8044
  'use strict';
@@ -8059,7 +8136,7 @@ function pipeline() {
8059
8136
  }
8060
8137
 
8061
8138
  module.exports = pipeline;
8062
- },{"../../../errors":30,"./end-of-stream":39}],42:[function(require,module,exports){
8139
+ },{"../../../errors":31,"./end-of-stream":40}],43:[function(require,module,exports){
8063
8140
  'use strict';
8064
8141
 
8065
8142
  var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;
@@ -8087,10 +8164,10 @@ function getHighWaterMark(state, options, duplexKey, isDuplex) {
8087
8164
  module.exports = {
8088
8165
  getHighWaterMark: getHighWaterMark
8089
8166
  };
8090
- },{"../../../errors":30}],43:[function(require,module,exports){
8167
+ },{"../../../errors":31}],44:[function(require,module,exports){
8091
8168
  module.exports = require('events').EventEmitter;
8092
8169
 
8093
- },{"events":11}],44:[function(require,module,exports){
8170
+ },{"events":11}],45:[function(require,module,exports){
8094
8171
  // Copyright Joyent, Inc. and other Node contributors.
8095
8172
  //
8096
8173
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -8387,71 +8464,7 @@ function simpleWrite(buf) {
8387
8464
  function simpleEnd(buf) {
8388
8465
  return buf && buf.length ? this.write(buf) : '';
8389
8466
  }
8390
- },{"safe-buffer":45}],45:[function(require,module,exports){
8391
- /* eslint-disable node/no-deprecated-api */
8392
- var buffer = require('buffer')
8393
- var Buffer = buffer.Buffer
8394
-
8395
- // alternative to using Object.keys for old browsers
8396
- function copyProps (src, dst) {
8397
- for (var key in src) {
8398
- dst[key] = src[key]
8399
- }
8400
- }
8401
- if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
8402
- module.exports = buffer
8403
- } else {
8404
- // Copy properties from require('buffer')
8405
- copyProps(buffer, exports)
8406
- exports.Buffer = SafeBuffer
8407
- }
8408
-
8409
- function SafeBuffer (arg, encodingOrOffset, length) {
8410
- return Buffer(arg, encodingOrOffset, length)
8411
- }
8412
-
8413
- // Copy static methods from Buffer
8414
- copyProps(Buffer, SafeBuffer)
8415
-
8416
- SafeBuffer.from = function (arg, encodingOrOffset, length) {
8417
- if (typeof arg === 'number') {
8418
- throw new TypeError('Argument must not be a number')
8419
- }
8420
- return Buffer(arg, encodingOrOffset, length)
8421
- }
8422
-
8423
- SafeBuffer.alloc = function (size, fill, encoding) {
8424
- if (typeof size !== 'number') {
8425
- throw new TypeError('Argument must be a number')
8426
- }
8427
- var buf = Buffer(size)
8428
- if (fill !== undefined) {
8429
- if (typeof encoding === 'string') {
8430
- buf.fill(fill, encoding)
8431
- } else {
8432
- buf.fill(fill)
8433
- }
8434
- } else {
8435
- buf.fill(0)
8436
- }
8437
- return buf
8438
- }
8439
-
8440
- SafeBuffer.allocUnsafe = function (size) {
8441
- if (typeof size !== 'number') {
8442
- throw new TypeError('Argument must be a number')
8443
- }
8444
- return Buffer(size)
8445
- }
8446
-
8447
- SafeBuffer.allocUnsafeSlow = function (size) {
8448
- if (typeof size !== 'number') {
8449
- throw new TypeError('Argument must be a number')
8450
- }
8451
- return buffer.SlowBuffer(size)
8452
- }
8453
-
8454
- },{"buffer":8}],46:[function(require,module,exports){
8467
+ },{"safe-buffer":29}],46:[function(require,module,exports){
8455
8468
  (function (global){(function (){
8456
8469
 
8457
8470
  /**
@@ -13473,7 +13486,7 @@ CipherBase.prototype._toString = function (value, enc, fin) {
13473
13486
 
13474
13487
  module.exports = CipherBase
13475
13488
 
13476
- },{"../inherits-2.0.4/inherits":60,"../safe-buffer-5.2.0/index":81,"stream":29,"string_decoder":44}],58:[function(require,module,exports){
13489
+ },{"../inherits-2.0.4/inherits":60,"../safe-buffer-5.2.0/index":81,"stream":30,"string_decoder":45}],58:[function(require,module,exports){
13477
13490
  'use strict'
13478
13491
  var inherits = require('../inherits-2.0.4/inherits')
13479
13492
  var MD5 = require('../md5.js-1.3.5/index')
@@ -13602,7 +13615,7 @@ HashBase.prototype._digest = function () {
13602
13615
 
13603
13616
  module.exports = HashBase
13604
13617
 
13605
- },{"../inherits-2.0.4/inherits":60,"../safe-buffer-5.2.0/index":81,"stream":29}],60:[function(require,module,exports){
13618
+ },{"../inherits-2.0.4/inherits":60,"../safe-buffer-5.2.0/index":81,"stream":30}],60:[function(require,module,exports){
13606
13619
  try {
13607
13620
  var util = require('util');
13608
13621
  /* istanbul ignore next */
@@ -23173,6 +23186,7 @@ var Domain;
23173
23186
  Domain["TEZOSFA"] = "TEZOSFA";
23174
23187
  Domain["UTILS"] = "UTILS";
23175
23188
  Domain["ACTIONS"] = "ACTIONS";
23189
+ Domain["ICP"] = "ICP";
23176
23190
  })(Domain = exports.Domain || (exports.Domain = {}));
23177
23191
  var CoinlibError = /** @class */ (function (_super) {
23178
23192
  __extends(CoinlibError, _super);
@@ -23503,6 +23517,7 @@ var MainProtocolSymbols;
23503
23517
  MainProtocolSymbols["MOONBEAM"] = "moonbeam";
23504
23518
  MainProtocolSymbols["ASTAR"] = "astar";
23505
23519
  MainProtocolSymbols["SHIDEN"] = "shiden";
23520
+ MainProtocolSymbols["ICP"] = "icp";
23506
23521
  })(MainProtocolSymbols = exports.MainProtocolSymbols || (exports.MainProtocolSymbols = {}));
23507
23522
  var SubProtocolSymbols;
23508
23523
  (function (SubProtocolSymbols) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airgap/serializer",
3
- "version": "0.13.9-beta.1",
3
+ "version": "0.13.9-beta.2",
4
4
  "description": "The @airgap/serializer provides serializers used in AirGap applications.",
5
5
  "keywords": [
6
6
  "airgap",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "author": "Papers GmbH <contact@papers.ch> (https://papers.ch)",
40
40
  "peerDependencies": {
41
- "@airgap/coinlib-core": "^0.13.9-beta.0"
41
+ "@airgap/coinlib-core": "^0.13.9-beta.2"
42
42
  },
43
43
  "localDependencies": {},
44
44
  "nyc": {