@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 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";
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ declare const __dirname: string | undefined;
5
+
6
+ export default __dirname;
package/cjs/dirname.js ADDED
@@ -0,0 +1,6 @@
1
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ module.exports = typeof __dirname === 'string'
5
+ ? __dirname.replace('/cjs', '')
6
+ : undefined;
@@ -0,0 +1,3 @@
1
+ {
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
@@ -1,11 +1,15 @@
1
1
  "use strict";
2
2
 
3
- var _typesCodec = require("@polkadot/types-codec");
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 _packageInfo = require("./packageInfo.cjs");
9
+ var _dirname2 = _interopRequireDefault(require("./cjs/dirname"));
10
+
11
+ var _packageInfo2 = require("./packageInfo.cjs");
8
12
 
9
- // Copyright 2017-2021 @polkadot/types-create authors & contributors
13
+ // Copyright 2017-2022 @polkadot/types-create authors & contributors
10
14
  // SPDX-License-Identifier: Apache-2.0
11
- (0, _util.detectPackage)(_packageInfo.packageInfo, typeof __dirname !== 'undefined' && __dirname, [_typesCodec.packageInfo]);
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-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
+ 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
@@ -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-1",
23
+ "version": "7.1.2-5",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.16.5",
27
- "@polkadot/types-codec": "7.1.2-1",
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-1"
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
@@ -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-create',
12
- version: '7.1.2-1'
12
+ version: '7.1.2-5'
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-create',
6
- version: '7.1.2-1'
6
+ version: '7.1.2-5'
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'];