@solibo/solibo-sdk 1.1.37 → 1.1.38

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.
@@ -26,14 +26,14 @@ initMetadataForClass(PemContent, 'PemContent');
26
26
  initMetadataForCompanion(Companion);
27
27
  //endregion
28
28
  function Pem() {
29
- this.mp7_1 = '-----BEGIN ';
30
- this.np7_1 = '-----END ';
31
- this.op7_1 = '-----';
29
+ this.wpc_1 = '-----BEGIN ';
30
+ this.xpc_1 = '-----END ';
31
+ this.ypc_1 = '-----';
32
32
  }
33
- protoOf(Pem).pp7 = function (bytes) {
34
- return this.qp7(decodeToString(bytes));
33
+ protoOf(Pem).zpc = function (bytes) {
34
+ return this.apd(decodeToString(bytes));
35
35
  };
36
- protoOf(Pem).qp7 = function (string) {
36
+ protoOf(Pem).apd = function (string) {
37
37
  var lines = split(string, ['\n']);
38
38
  var tmp$ret$1;
39
39
  $l$block: {
@@ -108,13 +108,13 @@ function Pem_getInstance() {
108
108
  return Pem_instance;
109
109
  }
110
110
  function PemContent(label, bytes) {
111
- this.rp7_1 = label;
112
- this.sp7_1 = bytes;
111
+ this.bpd_1 = label;
112
+ this.cpd_1 = bytes;
113
113
  }
114
114
  function ensurePemLabel(_this__u8e3s4, label) {
115
115
  // Inline function 'kotlin.check' call
116
- if (!(_this__u8e3s4.rp7_1 === label)) {
117
- var message = 'Wrong PEM label, expected ' + PemLabel__toString_impl_auwpt1(label) + ', actual ' + PemLabel__toString_impl_auwpt1(_this__u8e3s4.rp7_1);
116
+ if (!(_this__u8e3s4.bpd_1 === label)) {
117
+ var message = 'Wrong PEM label, expected ' + PemLabel__toString_impl_auwpt1(label) + ', actual ' + PemLabel__toString_impl_auwpt1(_this__u8e3s4.bpd_1);
118
118
  throw IllegalStateException_init_$Create$(toString(message));
119
119
  }
120
120
  return _this__u8e3s4;
@@ -124,11 +124,11 @@ function _PemLabel___init__impl__xifhtx(representation) {
124
124
  }
125
125
  function Companion() {
126
126
  Companion_instance = this;
127
- this.tp7_1 = _PemLabel___init__impl__xifhtx('PUBLIC KEY');
128
- this.up7_1 = _PemLabel___init__impl__xifhtx('PRIVATE KEY');
129
- this.vp7_1 = _PemLabel___init__impl__xifhtx('RSA PUBLIC KEY');
130
- this.wp7_1 = _PemLabel___init__impl__xifhtx('RSA PRIVATE KEY');
131
- this.xp7_1 = _PemLabel___init__impl__xifhtx('EC PRIVATE KEY');
127
+ this.dpd_1 = _PemLabel___init__impl__xifhtx('PUBLIC KEY');
128
+ this.epd_1 = _PemLabel___init__impl__xifhtx('PRIVATE KEY');
129
+ this.fpd_1 = _PemLabel___init__impl__xifhtx('RSA PUBLIC KEY');
130
+ this.gpd_1 = _PemLabel___init__impl__xifhtx('RSA PRIVATE KEY');
131
+ this.hpd_1 = _PemLabel___init__impl__xifhtx('EC PRIVATE KEY');
132
132
  }
133
133
  var Companion_instance;
134
134
  function Companion_getInstance() {
@@ -37,17 +37,6 @@ if (typeof Array.prototype.fill === 'undefined') {
37
37
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
38
38
  }
39
39
  });
40
- if (typeof Math.clz32 === 'undefined') {
41
- Math.clz32 = function (log, LN2) {
42
- return function (x) {
43
- var asUint = x >>> 0;
44
- if (asUint === 0) {
45
- return 32;
46
- }
47
- return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
48
- };
49
- }(Math.log, Math.LN2);
50
- }
51
40
  if (typeof Math.trunc === 'undefined') {
52
41
  Math.trunc = function (x) {
53
42
  if (isNaN(x)) {
@@ -64,11 +53,16 @@ if (typeof Math.log10 === 'undefined') {
64
53
  return Math.log(x) * Math.LOG10E;
65
54
  };
66
55
  }
67
- if (typeof String.prototype.startsWith === 'undefined') {
68
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
69
- position = position || 0;
70
- return this.lastIndexOf(searchString, position) === position;
71
- }});
56
+ if (typeof Math.clz32 === 'undefined') {
57
+ Math.clz32 = function (log, LN2) {
58
+ return function (x) {
59
+ var asUint = x >>> 0;
60
+ if (asUint === 0) {
61
+ return 32;
62
+ }
63
+ return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
64
+ };
65
+ }(Math.log, Math.LN2);
72
66
  }
73
67
  if (typeof String.prototype.endsWith === 'undefined') {
74
68
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
@@ -81,6 +75,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
81
75
  return lastIndex !== -1 && lastIndex === position;
82
76
  }});
83
77
  }
78
+ if (typeof String.prototype.startsWith === 'undefined') {
79
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
80
+ position = position || 0;
81
+ return this.lastIndexOf(searchString, position) === position;
82
+ }});
83
+ }
84
84
  //endregion
85
85
  //region block: imports
86
86
  var imul_0 = Math.imul;