@polkadot/types-codec 7.2.2-7 → 7.2.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.
package/package.json CHANGED
@@ -20,16 +20,16 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.2.2-7",
23
+ "version": "7.2.2-8",
24
24
  "main": "index.cjs",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.7",
27
27
  "@polkadot/util": "^8.2.3-29"
28
28
  },
29
29
  "devDependencies": {
30
- "@polkadot/types": "7.2.2-7",
31
- "@polkadot/types-augment": "7.2.2-7",
32
- "@polkadot/types-support": "7.2.2-7",
30
+ "@polkadot/types": "7.2.2-8",
31
+ "@polkadot/types-augment": "7.2.2-8",
32
+ "@polkadot/types-support": "7.2.2-8",
33
33
  "@polkadot/util-crypto": "^8.2.3-29"
34
34
  },
35
35
  "module": "index.js",
package/packageInfo.cjs CHANGED
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/types-codec',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '7.2.2-7'
14
+ version: '7.2.2-8'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/types-codec',
6
6
  path: new URL('.', import.meta.url).pathname,
7
7
  type: 'esm',
8
- version: '7.2.2-7'
8
+ version: '7.2.2-8'
9
9
  };
@@ -17,7 +17,7 @@ exports.sanitize = sanitize;
17
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
- const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperOpaque']);
20
+ const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperKeepOpaque', 'WrapperOpaque']);
21
21
  const BOX_PRECEDING = ['<', '(', '[', '"', ',', ' ']; // start of vec, tuple, fixed array, part of struct def or in tuple
22
22
 
23
23
  const mappings = [// alias <T::InherentOfflineReport as InherentOfflineReport>::Inherent -> InherentOfflineReport
package/utils/sanitize.js CHANGED
@@ -1,7 +1,7 @@
1
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
- const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperOpaque']);
4
+ const ALLOWED_BOXES = BOUNDED.concat(['Compact', 'DoNotConstruct', 'Int', 'Linkage', 'Range', 'RangeInclusive', 'Result', 'Option', 'UInt', 'WrapperKeepOpaque', 'WrapperOpaque']);
5
5
  const BOX_PRECEDING = ['<', '(', '[', '"', ',', ' ']; // start of vec, tuple, fixed array, part of struct def or in tuple
6
6
 
7
7
  const mappings = [// alias <T::InherentOfflineReport as InherentOfflineReport>::Inherent -> InherentOfflineReport