@polkadot/types-create 7.1.2-3 → 7.1.2-7

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 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 { packageInfo } from "./packageInfo.js";
4
4
  export { TypeDefInfo } from "./types.js";
package/cjs/dirname.d.ts CHANGED
@@ -1,6 +1,8 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
+ // Do not edit, auto-generated by @polkadot/dev
5
+
4
6
  declare const __dirname: string | undefined;
5
7
 
6
8
  export default __dirname;
package/cjs/dirname.js CHANGED
@@ -1,6 +1,8 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
+ // Do not edit, auto-generated by @polkadot/dev
5
+
4
6
  module.exports = typeof __dirname === 'string'
5
7
  ? __dirname.replace('/cjs', '')
6
8
  : undefined;
package/cjs/package.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "type": "commonjs"
3
- }
2
+ "type":"commonjs"
3
+ }
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-2021 @polkadot/types-create authors & contributors
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-2021 @polkadot/types-create authors & contributors
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
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export * from "./class.js";
4
4
  export * from "./type.js";
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-2021 @polkadot/types-create authors & contributors
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-2021 @polkadot/types-create authors & contributors
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';
@@ -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;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ name: string;
3
+ version: string;
4
+ }[];
5
+ export default _default;
package/detectOther.js ADDED
@@ -0,0 +1,4 @@
1
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
4
+ export default [codecInfo];
package/detectPackage.cjs CHANGED
@@ -2,14 +2,15 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
- var _typesCodec = require("@polkadot/types-codec");
6
-
7
5
  var _util = require("@polkadot/util");
8
6
 
9
- var _dirname2 = _interopRequireDefault(require("./cjs/dirname"));
7
+ var _dirname = _interopRequireDefault(require("./cjs/dirname"));
8
+
9
+ var _detectOther = _interopRequireDefault(require("./detectOther.cjs"));
10
10
 
11
11
  var _packageInfo = require("./packageInfo.cjs");
12
12
 
13
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
13
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
14
14
  // SPDX-License-Identifier: Apache-2.0
15
- (0, _util.detectPackage)(_packageInfo.packageInfo, typeof _dirname2.default !== 'undefined' && _dirname2.default, [_typesCodec.packageInfo]);
15
+ // Do not edit, auto-generated by @polkadot/dev
16
+ (0, _util.detectPackage)(_packageInfo.packageInfo, _dirname.default, _detectOther.default);
package/detectPackage.js CHANGED
@@ -1,7 +1,8 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
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
+ // Do not edit, auto-generated by @polkadot/dev
4
4
  import { detectPackage } from '@polkadot/util';
5
- import __dirname from "./cjs/dirname.js";
5
+ import dirname from "./cjs/dirname.js";
6
+ import others from "./detectOther.js";
6
7
  import { packageInfo } from "./packageInfo.js";
7
- detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [codecInfo]);
8
+ detectPackage(packageInfo, dirname, others);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import "./detectPackage.js";
4
4
  export * from "./bundle.js";
package/package.json CHANGED
@@ -20,15 +20,15 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.1.2-3",
23
+ "version": "7.1.2-7",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.7",
27
- "@polkadot/types-codec": "7.1.2-3",
27
+ "@polkadot/types-codec": "7.1.2-7",
28
28
  "@polkadot/util": "^8.2.2"
29
29
  },
30
30
  "devDependencies": {
31
- "@polkadot/types": "7.1.2-3"
31
+ "@polkadot/types": "7.1.2-7"
32
32
  },
33
33
  "exports": {
34
34
  ".": {
@@ -61,6 +61,11 @@
61
61
  "require": "./create/type.cjs",
62
62
  "default": "./create/type.js"
63
63
  },
64
+ "./detectOther": {
65
+ "types": "./detectOther.d.ts",
66
+ "require": "./detectOther.cjs",
67
+ "default": "./detectOther.js"
68
+ },
64
69
  "./detectPackage": {
65
70
  "types": "./detectPackage.d.ts",
66
71
  "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-create authors & contributors
7
+ // Copyright 2017-2022 @polkadot/types-create 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-create',
12
- version: '7.1.2-3'
12
+ version: '7.1.2-7'
13
13
  };
14
14
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -1,7 +1,7 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-create 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-create',
6
- version: '7.1.2-3'
6
+ version: '7.1.2-7'
7
7
  };
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-2021 @polkadot/types-create authors & contributors
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
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export let TypeDefInfo;
4
4
 
@@ -11,7 +11,7 @@ var _util = require("@polkadot/util");
11
11
 
12
12
  var _types = require("../types.cjs");
13
13
 
14
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
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
 
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
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";
@@ -13,7 +13,7 @@ var _types = require("../types.cjs");
13
13
 
14
14
  var _typeSplit = require("./typeSplit.cjs");
15
15
 
16
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
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'];
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
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
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  export * from "./encodeTypes.js";
4
4
  export * from "./getTypeDef.js";
@@ -7,7 +7,7 @@ exports.typeSplit = typeSplit;
7
7
 
8
8
  var _util = require("@polkadot/util");
9
9
 
10
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
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
@@ -1,4 +1,4 @@
1
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
1
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { assert } from '@polkadot/util';
4
4
 
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-2021 @polkadot/types-create authors & contributors
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-2021 @polkadot/types-create authors & contributors
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'];