@polkadot/types-create 7.1.2-1 → 7.1.2-5
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/bundle.js +1 -1
- package/cjs/dirname.d.ts +6 -0
- package/cjs/dirname.js +6 -0
- package/cjs/package.json +3 -0
- package/create/class.cjs +1 -1
- package/create/class.js +1 -1
- package/create/index.js +1 -1
- package/create/type.cjs +1 -1
- package/create/type.js +1 -1
- package/detectOther.cjs +13 -0
- package/detectOther.d.ts +5 -0
- package/detectOther.js +4 -0
- package/detectPackage.cjs +8 -4
- package/detectPackage.js +3 -2
- package/index.js +1 -1
- package/package.json +14 -4
- package/packageInfo.cjs +1 -1
- package/packageInfo.js +1 -1
- package/types.cjs +1 -1
- package/types.js +1 -1
- package/util/encodeTypes.cjs +1 -1
- package/util/encodeTypes.js +1 -1
- package/util/getTypeDef.cjs +1 -1
- package/util/getTypeDef.js +1 -1
- package/util/index.js +1 -1
- package/util/typeSplit.cjs +1 -1
- package/util/typeSplit.js +1 -1
- package/util/xcm.cjs +1 -1
- package/util/xcm.js +1 -1
package/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
export { packageInfo } from "./packageInfo.js";
|
|
4
4
|
export { TypeDefInfo } from "./types.js";
|
package/cjs/dirname.d.ts
ADDED
package/cjs/dirname.js
ADDED
package/cjs/package.json
ADDED
package/create/class.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var _types = require("../types.cjs");
|
|
|
15
15
|
|
|
16
16
|
var _getTypeDef = require("../util/getTypeDef.cjs");
|
|
17
17
|
|
|
18
|
-
// Copyright 2017-
|
|
18
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
19
19
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
20
|
function getTypeDefType(_ref) {
|
|
21
21
|
let {
|
package/create/class.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { BTreeMap, BTreeSet, Bytes, CodecSet, Compact, DoNotConstruct, Enum, HashMap, Int, Null, Option, Range, RangeInclusive, Result, Struct, Tuple, U8aFixed, UInt, Vec, VecFixed, WrapperOpaque } from '@polkadot/types-codec';
|
|
4
4
|
import { assert, isNumber, stringify } from '@polkadot/util';
|
package/create/index.js
CHANGED
package/create/type.cjs
CHANGED
|
@@ -11,7 +11,7 @@ var _util = require("@polkadot/util");
|
|
|
11
11
|
|
|
12
12
|
var _class = require("./class.cjs");
|
|
13
13
|
|
|
14
|
-
// Copyright 2017-
|
|
14
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
15
15
|
// SPDX-License-Identifier: Apache-2.0
|
|
16
16
|
// With isPedantic, actually check that the encoding matches that supplied. This
|
|
17
17
|
// is much slower, but verifies that we have the correct types defined
|
package/create/type.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { Option } from '@polkadot/types-codec';
|
|
4
4
|
import { assert, isHex, isU8a, u8aEq, u8aToHex, u8aToU8a } from '@polkadot/util';
|
package/detectOther.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _packageInfo = require("@polkadot/types-codec/packageInfo");
|
|
9
|
+
|
|
10
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
11
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
var _default = [_packageInfo.packageInfo];
|
|
13
|
+
exports.default = _default;
|
package/detectOther.d.ts
ADDED
package/detectOther.js
ADDED
package/detectPackage.cjs
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _packageInfo = require("@polkadot/types-codec/packageInfo");
|
|
4
6
|
|
|
5
7
|
var _util = require("@polkadot/util");
|
|
6
8
|
|
|
7
|
-
var
|
|
9
|
+
var _dirname2 = _interopRequireDefault(require("./cjs/dirname"));
|
|
10
|
+
|
|
11
|
+
var _packageInfo2 = require("./packageInfo.cjs");
|
|
8
12
|
|
|
9
|
-
// Copyright 2017-
|
|
13
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
10
14
|
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
-
(0, _util.detectPackage)(
|
|
15
|
+
(0, _util.detectPackage)(_packageInfo2.packageInfo, typeof _dirname2.default !== 'undefined' && _dirname2.default, [_packageInfo.packageInfo]);
|
package/detectPackage.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import { packageInfo as codecInfo } from '@polkadot/types-codec';
|
|
3
|
+
import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
|
|
4
4
|
import { detectPackage } from '@polkadot/util';
|
|
5
|
+
import __dirname from "./cjs/dirname.js";
|
|
5
6
|
import { packageInfo } from "./packageInfo.js";
|
|
6
7
|
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [codecInfo]);
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"./detectPackage.cjs"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "7.1.2-
|
|
23
|
+
"version": "7.1.2-5",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "^7.16.
|
|
27
|
-
"@polkadot/types-codec": "7.1.2-
|
|
26
|
+
"@babel/runtime": "^7.16.7",
|
|
27
|
+
"@polkadot/types-codec": "7.1.2-5",
|
|
28
28
|
"@polkadot/util": "^8.2.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@polkadot/types": "7.1.2-
|
|
31
|
+
"@polkadot/types": "7.1.2-5"
|
|
32
32
|
},
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|
|
@@ -41,6 +41,11 @@
|
|
|
41
41
|
"require": "./bundle.cjs",
|
|
42
42
|
"default": "./bundle.js"
|
|
43
43
|
},
|
|
44
|
+
"./cjs/dirname": {
|
|
45
|
+
"types": "./cjs/dirname.d.ts",
|
|
46
|
+
"default": "./cjs/dirname.js"
|
|
47
|
+
},
|
|
48
|
+
"./cjs/package.json": "./cjs/package.json",
|
|
44
49
|
"./create": {
|
|
45
50
|
"types": "./create/index.d.ts",
|
|
46
51
|
"require": "./create/index.cjs",
|
|
@@ -56,6 +61,11 @@
|
|
|
56
61
|
"require": "./create/type.cjs",
|
|
57
62
|
"default": "./create/type.js"
|
|
58
63
|
},
|
|
64
|
+
"./detectOther": {
|
|
65
|
+
"types": "./detectOther.d.ts",
|
|
66
|
+
"require": "./detectOther.cjs",
|
|
67
|
+
"default": "./detectOther.js"
|
|
68
|
+
},
|
|
59
69
|
"./detectPackage": {
|
|
60
70
|
"types": "./detectPackage.d.ts",
|
|
61
71
|
"require": "./detectPackage.cjs",
|
package/packageInfo.cjs
CHANGED
package/packageInfo.js
CHANGED
package/types.cjs
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.TypeDefInfo = void 0;
|
|
7
|
-
// Copyright 2017-
|
|
7
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
9
|
let TypeDefInfo;
|
|
10
10
|
exports.TypeDefInfo = TypeDefInfo;
|
package/types.js
CHANGED
package/util/encodeTypes.cjs
CHANGED
|
@@ -11,7 +11,7 @@ var _util = require("@polkadot/util");
|
|
|
11
11
|
|
|
12
12
|
var _types = require("../types.cjs");
|
|
13
13
|
|
|
14
|
-
// Copyright 2017-
|
|
14
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
15
15
|
// SPDX-License-Identifier: Apache-2.0
|
|
16
16
|
const stringIdentity = value => value.toString();
|
|
17
17
|
|
package/util/encodeTypes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { assert, isNumber, isUndefined, objectSpread, stringify } from '@polkadot/util';
|
|
4
4
|
import { TypeDefInfo } from "../types.js";
|
package/util/getTypeDef.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _types = require("../types.cjs");
|
|
|
13
13
|
|
|
14
14
|
var _typeSplit = require("./typeSplit.cjs");
|
|
15
15
|
|
|
16
|
-
// Copyright 2017-
|
|
16
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
17
17
|
// SPDX-License-Identifier: Apache-2.0
|
|
18
18
|
const MAX_NESTED = 64;
|
|
19
19
|
const KNOWN_INTERNALS = ['_alias', '_fallback'];
|
package/util/getTypeDef.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { sanitize } from '@polkadot/types-codec';
|
|
4
4
|
import { assert, isNumber, isString, objectSpread } from '@polkadot/util';
|
package/util/index.js
CHANGED
package/util/typeSplit.cjs
CHANGED
|
@@ -7,7 +7,7 @@ exports.typeSplit = typeSplit;
|
|
|
7
7
|
|
|
8
8
|
var _util = require("@polkadot/util");
|
|
9
9
|
|
|
10
|
-
// Copyright 2017-
|
|
10
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
11
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
function isNotNested() {
|
|
13
13
|
for (var _len = arguments.length, counters = new Array(_len), _key = 0; _key < _len; _key++) {
|
package/util/typeSplit.js
CHANGED
package/util/xcm.cjs
CHANGED
|
@@ -8,7 +8,7 @@ exports.mapXcmTypes = mapXcmTypes;
|
|
|
8
8
|
|
|
9
9
|
var _util = require("@polkadot/util");
|
|
10
10
|
|
|
11
|
-
// Copyright 2017-
|
|
11
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
12
12
|
// SPDX-License-Identifier: Apache-2.0
|
|
13
13
|
const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError', 'XcmOrder'];
|
|
14
14
|
exports.XCM_MAPPINGS = XCM_MAPPINGS;
|
package/util/xcm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/types-create authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { objectSpread } from '@polkadot/util';
|
|
4
4
|
export const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError', 'XcmOrder'];
|