@polkadot/types-codec 7.1.2-4 → 7.1.2-8

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.
Files changed (134) hide show
  1. package/abstract/AbstractArray.cjs +1 -1
  2. package/abstract/AbstractArray.js +1 -1
  3. package/abstract/AbstractInt.cjs +1 -1
  4. package/abstract/AbstractInt.js +1 -1
  5. package/abstract/index.js +1 -1
  6. package/base/Base.cjs +1 -1
  7. package/base/Base.js +1 -1
  8. package/base/Compact.cjs +1 -1
  9. package/base/Compact.js +1 -1
  10. package/base/DoNotConstruct.cjs +1 -1
  11. package/base/DoNotConstruct.js +1 -1
  12. package/base/Enum.cjs +1 -1
  13. package/base/Enum.js +1 -1
  14. package/base/Int.cjs +1 -1
  15. package/base/Int.js +1 -1
  16. package/base/Null.cjs +1 -1
  17. package/base/Null.js +1 -1
  18. package/base/Option.cjs +1 -1
  19. package/base/Option.js +1 -1
  20. package/base/Result.cjs +1 -1
  21. package/base/Result.js +1 -1
  22. package/base/Tuple.cjs +1 -1
  23. package/base/Tuple.js +1 -1
  24. package/base/UInt.cjs +1 -1
  25. package/base/UInt.js +1 -1
  26. package/base/Vec.cjs +1 -1
  27. package/base/Vec.js +1 -1
  28. package/base/VecAny.cjs +1 -1
  29. package/base/VecAny.js +1 -1
  30. package/base/VecFixed.cjs +1 -1
  31. package/base/VecFixed.js +1 -1
  32. package/base/index.js +1 -1
  33. package/bundle.js +1 -1
  34. package/cjs/dirname.d.ts +3 -1
  35. package/cjs/dirname.js +3 -1
  36. package/cjs/package.json +2 -2
  37. package/detectOther.cjs +11 -0
  38. package/detectOther.d.ts +2 -0
  39. package/detectOther.js +4 -0
  40. package/detectPackage.cjs +6 -3
  41. package/detectPackage.js +5 -3
  42. package/extended/BTreeMap.cjs +1 -1
  43. package/extended/BTreeMap.js +1 -1
  44. package/extended/BTreeSet.cjs +1 -1
  45. package/extended/BTreeSet.js +1 -1
  46. package/extended/BitVec.cjs +1 -1
  47. package/extended/BitVec.js +1 -1
  48. package/extended/Bytes.cjs +1 -1
  49. package/extended/Bytes.js +1 -1
  50. package/extended/HashMap.cjs +1 -1
  51. package/extended/HashMap.js +1 -1
  52. package/extended/Linkage.cjs +1 -1
  53. package/extended/Linkage.js +1 -1
  54. package/extended/Map.cjs +1 -1
  55. package/extended/Map.js +1 -1
  56. package/extended/Range.cjs +1 -1
  57. package/extended/Range.js +1 -1
  58. package/extended/Type.cjs +1 -1
  59. package/extended/Type.js +1 -1
  60. package/extended/U8aFixed.cjs +1 -1
  61. package/extended/U8aFixed.js +1 -1
  62. package/extended/WrapperOpaque.cjs +1 -1
  63. package/extended/WrapperOpaque.js +1 -1
  64. package/extended/index.js +1 -1
  65. package/index.js +1 -1
  66. package/native/Bool.cjs +1 -1
  67. package/native/Bool.js +1 -1
  68. package/native/Date.cjs +1 -1
  69. package/native/Date.js +1 -1
  70. package/native/Json.cjs +1 -1
  71. package/native/Json.js +1 -1
  72. package/native/Raw.cjs +1 -1
  73. package/native/Raw.js +1 -1
  74. package/native/Set.cjs +1 -1
  75. package/native/Set.js +1 -1
  76. package/native/Struct.cjs +1 -1
  77. package/native/Struct.data.cjs +1 -1
  78. package/native/Struct.data.js +1 -1
  79. package/native/Struct.js +1 -1
  80. package/native/Text.cjs +1 -1
  81. package/native/Text.js +1 -1
  82. package/native/index.js +1 -1
  83. package/package.json +9 -4
  84. package/packageInfo.cjs +3 -3
  85. package/packageInfo.js +3 -3
  86. package/primitive/I128.cjs +1 -1
  87. package/primitive/I128.js +1 -1
  88. package/primitive/I16.cjs +1 -1
  89. package/primitive/I16.js +1 -1
  90. package/primitive/I256.cjs +1 -1
  91. package/primitive/I256.js +1 -1
  92. package/primitive/I32.cjs +1 -1
  93. package/primitive/I32.js +1 -1
  94. package/primitive/I64.cjs +1 -1
  95. package/primitive/I64.js +1 -1
  96. package/primitive/I8.cjs +1 -1
  97. package/primitive/I8.js +1 -1
  98. package/primitive/U128.cjs +1 -1
  99. package/primitive/U128.js +1 -1
  100. package/primitive/U16.cjs +1 -1
  101. package/primitive/U16.js +1 -1
  102. package/primitive/U256.cjs +1 -1
  103. package/primitive/U256.js +1 -1
  104. package/primitive/U32.cjs +1 -1
  105. package/primitive/U32.js +1 -1
  106. package/primitive/U64.cjs +1 -1
  107. package/primitive/U64.js +1 -1
  108. package/primitive/U8.cjs +1 -1
  109. package/primitive/U8.js +1 -1
  110. package/primitive/USize.cjs +1 -1
  111. package/primitive/USize.js +1 -1
  112. package/primitive/index.js +1 -1
  113. package/types/index.js +1 -1
  114. package/utils/compareArray.cjs +1 -1
  115. package/utils/compareArray.js +1 -1
  116. package/utils/compareMap.cjs +1 -1
  117. package/utils/compareMap.js +1 -1
  118. package/utils/compareSet.cjs +1 -1
  119. package/utils/compareSet.js +1 -1
  120. package/utils/decodeU8a.cjs +1 -1
  121. package/utils/decodeU8a.js +1 -1
  122. package/utils/index.js +1 -1
  123. package/utils/mapToTypeMap.cjs +1 -1
  124. package/utils/mapToTypeMap.js +1 -1
  125. package/utils/sanitize.cjs +1 -1
  126. package/utils/sanitize.js +1 -1
  127. package/utils/sortValues.cjs +1 -1
  128. package/utils/sortValues.js +1 -1
  129. package/utils/typeToConstructor.cjs +1 -1
  130. package/utils/typeToConstructor.js +1 -1
  131. package/utils/typesToMap.cjs +1 -1
  132. package/utils/typesToMap.js +1 -1
  133. package/utils/util.cjs +1 -1
  134. package/utils/util.js +1 -1
package/native/Text.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
2
2
  import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
3
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
3
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
4
4
  // SPDX-License-Identifier: Apache-2.0
5
5
  import { assert, compactAddLength, compactFromU8a, hexToU8a, isHex, isString, isU8a, stringToU8a, u8aToHex, u8aToString } from '@polkadot/util';
6
6
  import { Raw } from "./Raw.js";
package/native/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export { bool, bool as Bool } from "./Bool.js";
4
4
  export { CodecDate, CodecDate as Date } from "./Date.js";
package/package.json CHANGED
@@ -20,16 +20,16 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.1.2-4",
23
+ "version": "7.1.2-8",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.7",
27
27
  "@polkadot/util": "^8.2.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@polkadot/types": "7.1.2-4",
31
- "@polkadot/types-augment": "7.1.2-4",
32
- "@polkadot/types-support": "7.1.2-4",
30
+ "@polkadot/types": "7.1.2-8",
31
+ "@polkadot/types-augment": "7.1.2-8",
32
+ "@polkadot/types-support": "7.1.2-8",
33
33
  "@polkadot/util-crypto": "^8.2.2"
34
34
  },
35
35
  "exports": {
@@ -133,6 +133,11 @@
133
133
  "default": "./cjs/dirname.js"
134
134
  },
135
135
  "./cjs/package.json": "./cjs/package.json",
136
+ "./detectOther": {
137
+ "types": "./detectOther.d.ts",
138
+ "require": "./detectOther.cjs",
139
+ "default": "./detectOther.js"
140
+ },
136
141
  "./detectPackage": {
137
142
  "types": "./detectPackage.d.ts",
138
143
  "require": "./detectPackage.cjs",
package/packageInfo.cjs CHANGED
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.packageInfo = void 0;
7
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
7
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
8
8
  // SPDX-License-Identifier: Apache-2.0
9
- // Auto-generated by @polkadot/dev, do not edit
9
+ // Do not edit, auto-generated by @polkadot/dev
10
10
  const packageInfo = {
11
11
  name: '@polkadot/types-codec',
12
- version: '7.1.2-4'
12
+ version: '7.1.2-8'
13
13
  };
14
14
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -1,7 +1,7 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- // Auto-generated by @polkadot/dev, do not edit
3
+ // Do not edit, auto-generated by @polkadot/dev
4
4
  export const packageInfo = {
5
5
  name: '@polkadot/types-codec',
6
- version: '7.1.2-4'
6
+ version: '7.1.2-8'
7
7
  };
@@ -7,7 +7,7 @@ exports.i128 = void 0;
7
7
 
8
8
  var _Int = require("../base/Int.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/I128.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { Int } from "../base/Int.js";
4
4
  /**
package/primitive/I16.cjs CHANGED
@@ -7,7 +7,7 @@ exports.i16 = void 0;
7
7
 
8
8
  var _Int = require("../base/Int.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/I16.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { Int } from "../base/Int.js";
4
4
  /**
@@ -7,7 +7,7 @@ exports.i256 = void 0;
7
7
 
8
8
  var _Int = require("../base/Int.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/I256.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { Int } from "../base/Int.js";
4
4
  /**
package/primitive/I32.cjs CHANGED
@@ -7,7 +7,7 @@ exports.i32 = void 0;
7
7
 
8
8
  var _Int = require("../base/Int.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/I32.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { Int } from "../base/Int.js";
4
4
  /**
package/primitive/I64.cjs CHANGED
@@ -7,7 +7,7 @@ exports.i64 = void 0;
7
7
 
8
8
  var _Int = require("../base/Int.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/I64.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { Int } from "../base/Int.js";
4
4
  /**
package/primitive/I8.cjs CHANGED
@@ -7,7 +7,7 @@ exports.i8 = void 0;
7
7
 
8
8
  var _Int = require("../base/Int.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/I8.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { Int } from "../base/Int.js";
4
4
  /**
@@ -7,7 +7,7 @@ exports.u128 = void 0;
7
7
 
8
8
  var _UInt = require("../base/UInt.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/U128.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { UInt } from "../base/UInt.js";
4
4
  /**
package/primitive/U16.cjs CHANGED
@@ -7,7 +7,7 @@ exports.u16 = void 0;
7
7
 
8
8
  var _UInt = require("../base/UInt.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/U16.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { UInt } from "../base/UInt.js";
4
4
  /**
@@ -7,7 +7,7 @@ exports.u256 = void 0;
7
7
 
8
8
  var _UInt = require("../base/UInt.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/U256.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { UInt } from "../base/UInt.js";
4
4
  /**
package/primitive/U32.cjs CHANGED
@@ -7,7 +7,7 @@ exports.u32 = void 0;
7
7
 
8
8
  var _UInt = require("../base/UInt.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/U32.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { UInt } from "../base/UInt.js";
4
4
  /**
package/primitive/U64.cjs CHANGED
@@ -7,7 +7,7 @@ exports.u64 = void 0;
7
7
 
8
8
  var _UInt = require("../base/UInt.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/U64.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { UInt } from "../base/UInt.js";
4
4
  /**
package/primitive/U8.cjs CHANGED
@@ -7,7 +7,7 @@ exports.u8 = void 0;
7
7
 
8
8
  var _UInt = require("../base/UInt.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
package/primitive/U8.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { UInt } from "../base/UInt.js";
4
4
  /**
@@ -7,7 +7,7 @@ exports.usize = void 0;
7
7
 
8
8
  var _U = require("./U32.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { u32 } from "./U32.js";
4
4
  /**
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export { i8, i8 as I8 } from "./I8.js";
4
4
  export { i16, i16 as I16 } from "./I16.js";
package/types/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export * from "./codec.js";
4
4
  export * from "./helpers.js";
@@ -9,7 +9,7 @@ var _util = require("@polkadot/util");
9
9
 
10
10
  var _util2 = require("./util.cjs");
11
11
 
12
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
12
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
13
13
  // SPDX-License-Identifier: Apache-2.0
14
14
  // NOTE These are used internally and when comparing objects, expects that
15
15
  // when the second is an Codec[] that the first has to be as well
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { isUndefined } from '@polkadot/util';
4
4
  import { hasEq } from "./util.js"; // NOTE These are used internally and when comparing objects, expects that
@@ -9,7 +9,7 @@ var _util = require("@polkadot/util");
9
9
 
10
10
  var _util2 = require("./util.cjs");
11
11
 
12
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
12
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
13
13
  // SPDX-License-Identifier: Apache-2.0
14
14
  function hasMismatch(a, b) {
15
15
  return (0, _util.isUndefined)(a) || ((0, _util2.hasEq)(a) ? !a.eq(b) : a !== b);
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { isObject, isUndefined } from '@polkadot/util';
4
4
  import { hasEq } from "./util.js";
@@ -7,7 +7,7 @@ exports.compareSet = compareSet;
7
7
 
8
8
  var _util = require("@polkadot/util");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
  function compareSetArray(a, b) {
13
13
  // equal number of entries and each entry in the array should match
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { isObject } from '@polkadot/util';
4
4
 
@@ -8,7 +8,7 @@ exports.decodeU8aVec = decodeU8aVec;
8
8
 
9
9
  var _util = require("@polkadot/util");
10
10
 
11
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
11
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
12
12
  // SPDX-License-Identifier: Apache-2.0
13
13
  function formatFailure(error, type, u8a, key) {
14
14
  return `decodeU8a: failed at ${(0, _util.u8aToHex)(u8a)}…${key ? ` on ${key}` : ''}${type ? `: ${type}` : ''}:: ${error.message}`;
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { u8aToHex } from '@polkadot/util';
4
4
 
package/utils/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export { compareArray } from "./compareArray.js";
4
4
  export { compareMap } from "./compareMap.js";
@@ -7,7 +7,7 @@ exports.mapToTypeMap = mapToTypeMap;
7
7
 
8
8
  var _typeToConstructor = require("./typeToConstructor.cjs");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
 
13
13
  /**
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { typeToConstructor } from "./typeToConstructor.js";
4
4
  /**
@@ -14,7 +14,7 @@ exports.removePairOf = removePairOf;
14
14
  exports.removeTraits = removeTraits;
15
15
  exports.removeWrap = removeWrap;
16
16
  exports.sanitize = sanitize;
17
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
17
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
18
18
  // SPDX-License-Identifier: Apache-2.0
19
19
  const BOUNDED = ['BTreeMap', 'BTreeSet', 'HashMap', 'Vec'];
20
20
  const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperOpaque']);
package/utils/sanitize.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  const BOUNDED = ['BTreeMap', 'BTreeSet', 'HashMap', 'Vec'];
4
4
  const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperOpaque']);
@@ -9,7 +9,7 @@ exports.sortSet = sortSet;
9
9
 
10
10
  var _util = require("@polkadot/util");
11
11
 
12
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
12
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
13
13
  // SPDX-License-Identifier: Apache-2.0
14
14
 
15
15
  /** @internal **/
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { bnToBn, isBigInt, isBn, isFunction, isNumber, stringify } from '@polkadot/util';
4
4
 
@@ -7,7 +7,7 @@ exports.typeToConstructor = typeToConstructor;
7
7
 
8
8
  var _util = require("@polkadot/util");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
  function typeToConstructor(registry, type) {
13
13
  return (0, _util.isString)(type) ? registry.createClassUnsafe(type) : type;
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { isString } from '@polkadot/util';
4
4
  export function typeToConstructor(registry, type) {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.typesToMap = typesToMap;
7
7
 
8
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
8
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
9
9
  // SPDX-License-Identifier: Apache-2.0
10
10
  function typesToMap(registry, Types) {
11
11
  const entries = Object.entries(Types);
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export function typesToMap(registry, Types) {
4
4
  const entries = Object.entries(Types);
package/utils/util.cjs CHANGED
@@ -7,7 +7,7 @@ exports.hasEq = hasEq;
7
7
 
8
8
  var _util = require("@polkadot/util");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
10
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
12
12
  function hasEq(o) {
13
13
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
package/utils/util.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-codec authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { isFunction } from '@polkadot/util';
4
4
  export function hasEq(o) {