@polkadot/types-codec 10.7.1 → 10.7.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.
@@ -109,7 +109,7 @@ class BTreeSet extends Set {
109
109
  * @description Returns a breakdown of the hex encoding for this Codec
110
110
  */
111
111
  inspect() {
112
- const inner = new Array();
112
+ const inner = [];
113
113
  for (const v of this.values()) {
114
114
  inner.push(v.inspect());
115
115
  }
@@ -171,7 +171,7 @@ class BTreeSet extends Set {
171
171
  * @param isBare true when the value has none of the type-specific prefixes (internal)
172
172
  */
173
173
  toU8a(isBare) {
174
- const encoded = new Array();
174
+ const encoded = [];
175
175
  if (!isBare) {
176
176
  encoded.push((0, util_1.compactToU8a)(this.size));
177
177
  }
@@ -117,7 +117,7 @@ class CodecMap extends Map {
117
117
  * @description Returns a breakdown of the hex encoding for this Codec
118
118
  */
119
119
  inspect() {
120
- const inner = new Array();
120
+ const inner = [];
121
121
  for (const [k, v] of this.entries()) {
122
122
  inner.push(k.inspect());
123
123
  inner.push(v.inspect());
@@ -184,7 +184,7 @@ class CodecMap extends Map {
184
184
  * @param isBare true when the value has none of the type-specific prefixes (internal)
185
185
  */
186
186
  toU8a(isBare) {
187
- const encoded = new Array();
187
+ const encoded = [];
188
188
  if (!isBare) {
189
189
  encoded.push((0, util_1.compactToU8a)(this.size));
190
190
  }
@@ -177,7 +177,7 @@ class Struct extends Map {
177
177
  * @description Returns a breakdown of the hex encoding for this Codec
178
178
  */
179
179
  inspect(isBare) {
180
- const inner = new Array();
180
+ const inner = [];
181
181
  for (const [k, v] of this.entries()) {
182
182
  inner.push({
183
183
  ...v.inspect(!isBare || (0, util_1.isBoolean)(isBare)
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/types-codec', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.7.1' };
4
+ exports.packageInfo = { name: '@polkadot/types-codec', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.7.2' };
@@ -106,7 +106,7 @@ export class BTreeSet extends Set {
106
106
  * @description Returns a breakdown of the hex encoding for this Codec
107
107
  */
108
108
  inspect() {
109
- const inner = new Array();
109
+ const inner = [];
110
110
  for (const v of this.values()) {
111
111
  inner.push(v.inspect());
112
112
  }
@@ -168,7 +168,7 @@ export class BTreeSet extends Set {
168
168
  * @param isBare true when the value has none of the type-specific prefixes (internal)
169
169
  */
170
170
  toU8a(isBare) {
171
- const encoded = new Array();
171
+ const encoded = [];
172
172
  if (!isBare) {
173
173
  encoded.push(compactToU8a(this.size));
174
174
  }
package/extended/Map.js CHANGED
@@ -114,7 +114,7 @@ export class CodecMap extends Map {
114
114
  * @description Returns a breakdown of the hex encoding for this Codec
115
115
  */
116
116
  inspect() {
117
- const inner = new Array();
117
+ const inner = [];
118
118
  for (const [k, v] of this.entries()) {
119
119
  inner.push(k.inspect());
120
120
  inner.push(v.inspect());
@@ -181,7 +181,7 @@ export class CodecMap extends Map {
181
181
  * @param isBare true when the value has none of the type-specific prefixes (internal)
182
182
  */
183
183
  toU8a(isBare) {
184
- const encoded = new Array();
184
+ const encoded = [];
185
185
  if (!isBare) {
186
186
  encoded.push(compactToU8a(this.size));
187
187
  }
package/native/Struct.js CHANGED
@@ -174,7 +174,7 @@ export class Struct extends Map {
174
174
  * @description Returns a breakdown of the hex encoding for this Codec
175
175
  */
176
176
  inspect(isBare) {
177
- const inner = new Array();
177
+ const inner = [];
178
178
  for (const [k, v] of this.entries()) {
179
179
  inner.push({
180
180
  ...v.inspect(!isBare || isBoolean(isBare)
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/detectPackage.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "10.7.1",
21
+ "version": "10.7.2",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -518,6 +518,6 @@
518
518
  "dependencies": {
519
519
  "@polkadot/util": "^12.2.1",
520
520
  "@polkadot/x-bigint": "^12.2.1",
521
- "tslib": "^2.5.0"
521
+ "tslib": "^2.5.2"
522
522
  }
523
523
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/types-codec', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.7.1' };
1
+ export const packageInfo = { name: '@polkadot/types-codec', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.7.2' };