@polkadot/types-codec 6.12.2-15 → 6.12.2-16

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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ require("@polkadot/types-augment");
4
+
5
+ var _types = require("@polkadot/types");
6
+
7
+ var _index = require("./index.cjs");
8
+
9
+ // Copyright 2017-2021 @polkadot/types authors & contributors
10
+ // SPDX-License-Identifier: Apache-2.0
11
+ const registry = new _types.TypeRegistry();
12
+ console.log(new _index.U32(registry).divn(1));
@@ -0,0 +1,7 @@
1
+ // Copyright 2017-2021 @polkadot/types authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import '@polkadot/types-augment';
4
+ import { TypeRegistry } from '@polkadot/types';
5
+ import { U32 } from "./index.js";
6
+ const registry = new TypeRegistry();
7
+ console.log(new U32(registry).divn(1));
package/package.json CHANGED
@@ -20,14 +20,14 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "6.12.2-15",
23
+ "version": "6.12.2-16",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.5",
27
27
  "@polkadot/util": "^8.1.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@polkadot/types": "^6.12.2-15"
30
+ "@polkadot/types": "^6.12.2-16"
31
31
  },
32
32
  "exports": {
33
33
  ".": {
@@ -124,6 +124,10 @@
124
124
  "default": "./bundle.js"
125
125
  },
126
126
  "./bundle.d.ts": "./bundle.d.ts",
127
+ "./checkTypes.manual": {
128
+ "require": "./checkTypes.manual.cjs",
129
+ "default": "./checkTypes.manual.js"
130
+ },
127
131
  "./detectPackage": {
128
132
  "require": "./detectPackage.cjs",
129
133
  "default": "./detectPackage.js"
package/packageInfo.cjs CHANGED
@@ -9,6 +9,6 @@ exports.packageInfo = void 0;
9
9
  // Auto-generated by @polkadot/dev, do not edit
10
10
  const packageInfo = {
11
11
  name: '@polkadot/types-codec',
12
- version: '6.12.2-15'
12
+ version: '6.12.2-16'
13
13
  };
14
14
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -3,5 +3,5 @@
3
3
  // Auto-generated by @polkadot/dev, do not edit
4
4
  export const packageInfo = {
5
5
  name: '@polkadot/types-codec',
6
- version: '6.12.2-15'
6
+ version: '6.12.2-16'
7
7
  };