@polkadot/types-codec 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/abstract/AbstractArray.cjs +1 -1
- package/abstract/AbstractArray.js +1 -1
- package/abstract/AbstractInt.cjs +1 -1
- package/abstract/AbstractInt.js +1 -1
- package/abstract/index.js +1 -1
- package/base/Base.cjs +1 -1
- package/base/Base.js +1 -1
- package/base/Compact.cjs +1 -1
- package/base/Compact.js +1 -1
- package/base/DoNotConstruct.cjs +1 -1
- package/base/DoNotConstruct.js +1 -1
- package/base/Enum.cjs +1 -1
- package/base/Enum.js +1 -1
- package/base/Int.cjs +1 -1
- package/base/Int.js +1 -1
- package/base/Null.cjs +1 -1
- package/base/Null.js +1 -1
- package/base/Option.cjs +1 -1
- package/base/Option.js +1 -1
- package/base/Result.cjs +1 -1
- package/base/Result.js +1 -1
- package/base/Tuple.cjs +1 -1
- package/base/Tuple.js +1 -1
- package/base/UInt.cjs +1 -1
- package/base/UInt.js +1 -1
- package/base/Vec.cjs +1 -1
- package/base/Vec.js +1 -1
- package/base/VecAny.cjs +1 -1
- package/base/VecAny.js +1 -1
- package/base/VecFixed.cjs +1 -1
- package/base/VecFixed.js +1 -1
- package/base/index.js +1 -1
- package/bundle.js +1 -1
- package/cjs/dirname.d.ts +3 -1
- package/cjs/dirname.js +3 -1
- package/cjs/package.json +2 -2
- package/detectOther.cjs +11 -0
- package/detectOther.d.ts +2 -0
- package/detectOther.js +4 -0
- package/detectPackage.cjs +6 -3
- package/detectPackage.js +5 -3
- package/extended/BTreeMap.cjs +1 -1
- package/extended/BTreeMap.js +1 -1
- package/extended/BTreeSet.cjs +1 -1
- package/extended/BTreeSet.js +1 -1
- package/extended/BitVec.cjs +1 -1
- package/extended/BitVec.js +1 -1
- package/extended/Bytes.cjs +1 -1
- package/extended/Bytes.js +1 -1
- package/extended/HashMap.cjs +1 -1
- package/extended/HashMap.js +1 -1
- package/extended/Linkage.cjs +1 -1
- package/extended/Linkage.js +1 -1
- package/extended/Map.cjs +1 -1
- package/extended/Map.js +1 -1
- package/extended/Range.cjs +1 -1
- package/extended/Range.js +1 -1
- package/extended/Type.cjs +1 -1
- package/extended/Type.js +1 -1
- package/extended/U8aFixed.cjs +1 -1
- package/extended/U8aFixed.js +1 -1
- package/extended/WrapperOpaque.cjs +1 -1
- package/extended/WrapperOpaque.js +1 -1
- package/extended/index.js +1 -1
- package/index.js +1 -1
- package/native/Bool.cjs +1 -1
- package/native/Bool.js +1 -1
- package/native/Date.cjs +1 -1
- package/native/Date.js +1 -1
- package/native/Json.cjs +1 -1
- package/native/Json.js +1 -1
- package/native/Raw.cjs +1 -1
- package/native/Raw.js +1 -1
- package/native/Set.cjs +1 -1
- package/native/Set.js +1 -1
- package/native/Struct.cjs +1 -1
- package/native/Struct.data.cjs +1 -1
- package/native/Struct.data.js +1 -1
- package/native/Struct.js +1 -1
- package/native/Text.cjs +1 -1
- package/native/Text.js +1 -1
- package/native/index.js +1 -1
- package/package.json +9 -4
- package/packageInfo.cjs +3 -3
- package/packageInfo.js +3 -3
- package/primitive/I128.cjs +1 -1
- package/primitive/I128.js +1 -1
- package/primitive/I16.cjs +1 -1
- package/primitive/I16.js +1 -1
- package/primitive/I256.cjs +1 -1
- package/primitive/I256.js +1 -1
- package/primitive/I32.cjs +1 -1
- package/primitive/I32.js +1 -1
- package/primitive/I64.cjs +1 -1
- package/primitive/I64.js +1 -1
- package/primitive/I8.cjs +1 -1
- package/primitive/I8.js +1 -1
- package/primitive/U128.cjs +1 -1
- package/primitive/U128.js +1 -1
- package/primitive/U16.cjs +1 -1
- package/primitive/U16.js +1 -1
- package/primitive/U256.cjs +1 -1
- package/primitive/U256.js +1 -1
- package/primitive/U32.cjs +1 -1
- package/primitive/U32.js +1 -1
- package/primitive/U64.cjs +1 -1
- package/primitive/U64.js +1 -1
- package/primitive/U8.cjs +1 -1
- package/primitive/U8.js +1 -1
- package/primitive/USize.cjs +1 -1
- package/primitive/USize.js +1 -1
- package/primitive/index.js +1 -1
- package/types/index.js +1 -1
- package/utils/compareArray.cjs +1 -1
- package/utils/compareArray.js +1 -1
- package/utils/compareMap.cjs +1 -1
- package/utils/compareMap.js +1 -1
- package/utils/compareSet.cjs +1 -1
- package/utils/compareSet.js +1 -1
- package/utils/decodeU8a.cjs +1 -1
- package/utils/decodeU8a.js +1 -1
- package/utils/index.js +1 -1
- package/utils/mapToTypeMap.cjs +1 -1
- package/utils/mapToTypeMap.js +1 -1
- package/utils/sanitize.cjs +1 -1
- package/utils/sanitize.js +1 -1
- package/utils/sortValues.cjs +1 -1
- package/utils/sortValues.js +1 -1
- package/utils/typeToConstructor.cjs +1 -1
- package/utils/typeToConstructor.js +1 -1
- package/utils/typesToMap.cjs +1 -1
- package/utils/typesToMap.js +1 -1
- package/utils/util.cjs +1 -1
- package/utils/util.js +1 -1
|
@@ -9,7 +9,7 @@ var _util = require("@polkadot/util");
|
|
|
9
9
|
|
|
10
10
|
var _compareArray = require("../utils/compareArray.cjs");
|
|
11
11
|
|
|
12
|
-
// Copyright 2017-
|
|
12
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
13
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -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
|
import { compactToU8a, u8aConcat, u8aToHex } from '@polkadot/util';
|
|
4
4
|
import { compareArray } from "../utils/compareArray.js";
|
package/abstract/AbstractInt.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _classPrivateFieldLooseKey2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
|
|
14
14
|
var _util = require("@polkadot/util");
|
|
15
15
|
|
|
16
|
-
// Copyright 2017-
|
|
16
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
17
17
|
// SPDX-License-Identifier: Apache-2.0
|
|
18
18
|
const DEFAULT_UINT_BITS = 64; // Maximum allowed integer for JS is 2^53 - 1, set limit at 52
|
|
19
19
|
// In this case however, we always print any >32 as hex
|
package/abstract/AbstractInt.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { assert, BN, BN_BILLION, BN_HUNDRED, BN_MILLION, BN_QUINTILL, BN_ZERO, bnToBn, bnToHex, bnToU8a, formatBalance, formatNumber, hexToBn, isBn, isHex, isU8a, u8aToBn } from '@polkadot/util';
|
|
6
6
|
export const DEFAULT_UINT_BITS = 64; // Maximum allowed integer for JS is 2^53 - 1, set limit at 52
|
package/abstract/index.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 { AbstractArray } from "./AbstractArray.js";
|
|
4
4
|
export { AbstractInt } from "./AbstractInt.js";
|
package/base/Base.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var _registry = /*#__PURE__*/(0, _classPrivateFieldLooseKey2.default)("registry"
|
|
|
15
15
|
|
|
16
16
|
var _raw = /*#__PURE__*/(0, _classPrivateFieldLooseKey2.default)("raw");
|
|
17
17
|
|
|
18
|
-
// Copyright 2017-
|
|
18
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
19
19
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
20
|
|
|
21
21
|
/**
|
package/base/Base.js
CHANGED
|
@@ -5,7 +5,7 @@ var _registry = /*#__PURE__*/_classPrivateFieldLooseKey("registry");
|
|
|
5
5
|
|
|
6
6
|
var _raw = /*#__PURE__*/_classPrivateFieldLooseKey("raw");
|
|
7
7
|
|
|
8
|
-
// Copyright 2017-
|
|
8
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
9
9
|
// SPDX-License-Identifier: Apache-2.0
|
|
10
10
|
|
|
11
11
|
/**
|
package/base/Compact.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var _util = require("@polkadot/util");
|
|
|
15
15
|
|
|
16
16
|
var _index = require("../utils/index.cjs");
|
|
17
17
|
|
|
18
|
-
// Copyright 2017-
|
|
18
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
19
19
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
20
|
var _Type = /*#__PURE__*/(0, _classPrivateFieldLooseKey2.default)("Type");
|
|
21
21
|
|
package/base/Compact.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { compactFromU8a, compactToU8a, isBigInt, isBn, isNumber, isString } from '@polkadot/util';
|
|
6
6
|
import { typeToConstructor } from "../utils/index.js";
|
package/base/DoNotConstruct.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _classPrivateFieldLooseKey2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
|
|
14
14
|
var _neverError = /*#__PURE__*/(0, _classPrivateFieldLooseKey2.default)("neverError");
|
|
15
15
|
|
|
16
|
-
// Copyright 2017-
|
|
16
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
17
17
|
// SPDX-License-Identifier: Apache-2.0
|
|
18
18
|
|
|
19
19
|
/**
|
package/base/DoNotConstruct.js
CHANGED
|
@@ -3,7 +3,7 @@ import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateF
|
|
|
3
3
|
|
|
4
4
|
var _neverError = /*#__PURE__*/_classPrivateFieldLooseKey("neverError");
|
|
5
5
|
|
|
6
|
-
// Copyright 2017-
|
|
6
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
7
7
|
// SPDX-License-Identifier: Apache-2.0
|
|
8
8
|
|
|
9
9
|
/**
|
package/base/Enum.cjs
CHANGED
|
@@ -17,7 +17,7 @@ var _index = require("../utils/index.cjs");
|
|
|
17
17
|
|
|
18
18
|
var _Null = require("./Null.cjs");
|
|
19
19
|
|
|
20
|
-
// Copyright 2017-
|
|
20
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
21
21
|
// SPDX-License-Identifier: Apache-2.0
|
|
22
22
|
function isRustEnum(def) {
|
|
23
23
|
const defValues = Object.values(def);
|
package/base/Enum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { assert, isHex, isNumber, isObject, isString, isU8a, isUndefined, objectProperties, stringCamelCase, stringify, stringPascalCase, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
|
6
6
|
import { mapToTypeMap, typesToMap } from "../utils/index.js";
|
package/base/Int.cjs
CHANGED
|
@@ -7,7 +7,7 @@ exports.Int = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _AbstractInt = require("../abstract/AbstractInt.cjs");
|
|
9
9
|
|
|
10
|
-
// Copyright 2017-
|
|
10
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
11
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
|
|
13
13
|
/**
|
package/base/Int.js
CHANGED
package/base/Null.cjs
CHANGED
package/base/Null.js
CHANGED
package/base/Option.cjs
CHANGED
|
@@ -17,7 +17,7 @@ var _index = require("../utils/index.cjs");
|
|
|
17
17
|
|
|
18
18
|
var _Null = require("./Null.cjs");
|
|
19
19
|
|
|
20
|
-
// Copyright 2017-
|
|
20
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
21
21
|
// SPDX-License-Identifier: Apache-2.0
|
|
22
22
|
|
|
23
23
|
/** @internal */
|
package/base/Option.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { assert, isCodec, isNull, isU8a, isUndefined, u8aToHex } from '@polkadot/util';
|
|
6
6
|
import { typeToConstructor } from "../utils/index.js";
|
package/base/Result.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _util = require("@polkadot/util");
|
|
|
9
9
|
|
|
10
10
|
var _Enum = require("./Enum.cjs");
|
|
11
11
|
|
|
12
|
-
// Copyright 2017-
|
|
12
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
13
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
|
|
15
15
|
/**
|
package/base/Result.js
CHANGED
package/base/Tuple.cjs
CHANGED
|
@@ -17,7 +17,7 @@ var _AbstractArray = require("../abstract/AbstractArray.cjs");
|
|
|
17
17
|
|
|
18
18
|
var _index = require("../utils/index.cjs");
|
|
19
19
|
|
|
20
|
-
// Copyright 2017-
|
|
20
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
21
21
|
// SPDX-License-Identifier: Apache-2.0
|
|
22
22
|
|
|
23
23
|
/** @internal */
|
package/base/Tuple.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { isFunction, isHex, isString, isU8a, stringify, u8aConcat, u8aToU8a } from '@polkadot/util';
|
|
6
6
|
import { AbstractArray } from "../abstract/AbstractArray.js";
|
package/base/UInt.cjs
CHANGED
|
@@ -7,7 +7,7 @@ exports.UInt = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _AbstractInt = require("../abstract/AbstractInt.cjs");
|
|
9
9
|
|
|
10
|
-
// Copyright 2017-
|
|
10
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
11
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
|
|
13
13
|
/**
|
package/base/UInt.js
CHANGED
package/base/Vec.cjs
CHANGED
|
@@ -18,7 +18,7 @@ var _AbstractArray = require("../abstract/AbstractArray.cjs");
|
|
|
18
18
|
|
|
19
19
|
var _index = require("../utils/index.cjs");
|
|
20
20
|
|
|
21
|
-
// Copyright 2017-
|
|
21
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
22
22
|
// SPDX-License-Identifier: Apache-2.0
|
|
23
23
|
const MAX_LENGTH = 64 * 1024;
|
|
24
24
|
const l = (0, _util.logger)('Vec');
|
package/base/Vec.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { assert, compactFromU8a, logger, u8aToU8a } from '@polkadot/util';
|
|
6
6
|
import { AbstractArray } from "../abstract/AbstractArray.js";
|
package/base/VecAny.cjs
CHANGED
|
@@ -7,7 +7,7 @@ exports.VecAny = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _AbstractArray = require("../abstract/AbstractArray.cjs");
|
|
9
9
|
|
|
10
|
-
// Copyright 2017-
|
|
10
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
11
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
|
|
13
13
|
/**
|
package/base/VecAny.js
CHANGED
package/base/VecFixed.cjs
CHANGED
|
@@ -19,7 +19,7 @@ var _index = require("../utils/index.cjs");
|
|
|
19
19
|
|
|
20
20
|
var _Vec = require("./Vec.cjs");
|
|
21
21
|
|
|
22
|
-
// Copyright 2017-
|
|
22
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
23
23
|
// SPDX-License-Identifier: Apache-2.0
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
package/base/VecFixed.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { assert, isU8a, u8aConcat } from '@polkadot/util';
|
|
6
6
|
import { AbstractArray } from "../abstract/AbstractArray.js";
|
package/base/index.js
CHANGED
package/bundle.js
CHANGED
package/cjs/dirname.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/types-codec 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-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/types-codec 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":
|
|
3
|
-
}
|
|
2
|
+
"type":"commonjs"
|
|
3
|
+
}
|
package/detectOther.cjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
8
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
9
|
+
// Empty template, auto-generated by @polkadot/dev
|
|
10
|
+
var _default = [];
|
|
11
|
+
exports.default = _default;
|
package/detectOther.d.ts
ADDED
package/detectOther.js
ADDED
package/detectPackage.cjs
CHANGED
|
@@ -4,10 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
|
|
5
5
|
var _util = require("@polkadot/util");
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _dirname = _interopRequireDefault(require("./cjs/dirname"));
|
|
8
|
+
|
|
9
|
+
var _detectOther = _interopRequireDefault(require("./detectOther.cjs"));
|
|
8
10
|
|
|
9
11
|
var _packageInfo = require("./packageInfo.cjs");
|
|
10
12
|
|
|
11
|
-
// Copyright 2017-
|
|
13
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
12
14
|
// SPDX-License-Identifier: Apache-2.0
|
|
13
|
-
|
|
15
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
16
|
+
(0, _util.detectPackage)(_packageInfo.packageInfo, _dirname.default, _detectOther.default);
|
package/detectPackage.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
// Do not edit, auto-generated by @polkadot/dev
|
|
3
4
|
import { detectPackage } from '@polkadot/util';
|
|
4
|
-
import
|
|
5
|
+
import dirname from "./cjs/dirname.js";
|
|
6
|
+
import others from "./detectOther.js";
|
|
5
7
|
import { packageInfo } from "./packageInfo.js";
|
|
6
|
-
detectPackage(packageInfo,
|
|
8
|
+
detectPackage(packageInfo, dirname, others);
|
package/extended/BTreeMap.cjs
CHANGED
|
@@ -7,7 +7,7 @@ exports.BTreeMap = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _Map = require("./Map.cjs");
|
|
9
9
|
|
|
10
|
-
// Copyright 2017-
|
|
10
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
11
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
class BTreeMap extends _Map.CodecMap {
|
|
13
13
|
static with(keyType, valType) {
|
package/extended/BTreeMap.js
CHANGED
package/extended/BTreeSet.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var _util = require("@polkadot/util");
|
|
|
15
15
|
|
|
16
16
|
var _index = require("../utils/index.cjs");
|
|
17
17
|
|
|
18
|
-
// Copyright 2017-
|
|
18
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
19
19
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
20
|
const l = (0, _util.logger)('BTreeSet');
|
|
21
21
|
/** @internal */
|
package/extended/BTreeSet.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { compactFromU8a, compactToU8a, isHex, isU8a, logger, stringify, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
|
6
6
|
import { compareSet, decodeU8aVec, sortSet, typeToConstructor } from "../utils/index.js";
|
package/extended/BitVec.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var _util = require("@polkadot/util");
|
|
|
15
15
|
|
|
16
16
|
var _Raw = require("../native/Raw.cjs");
|
|
17
17
|
|
|
18
|
-
// Copyright 2017-
|
|
18
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
19
19
|
// SPDX-License-Identifier: Apache-2.0
|
|
20
20
|
|
|
21
21
|
/** @internal */
|
package/extended/BitVec.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { assert, compactFromU8a, compactToU8a, isString, u8aConcat, u8aToU8a } from '@polkadot/util';
|
|
6
6
|
import { Raw } from "../native/Raw.js";
|
package/extended/Bytes.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _util = require("@polkadot/util");
|
|
|
9
9
|
|
|
10
10
|
var _Raw = require("../native/Raw.cjs");
|
|
11
11
|
|
|
12
|
-
// Copyright 2017-
|
|
12
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
13
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
// Bytes are used for things like on-chain code, so it has a healthy limit
|
|
15
15
|
const MAX_LENGTH = 10 * 1024 * 1024;
|
package/extended/Bytes.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
|
import { assert, compactAddLength, compactFromU8a, compactToU8a, isString, isU8a, u8aToU8a } from '@polkadot/util';
|
|
4
4
|
import { Raw } from "../native/Raw.js"; // Bytes are used for things like on-chain code, so it has a healthy limit
|
package/extended/HashMap.cjs
CHANGED
|
@@ -7,7 +7,7 @@ exports.HashMap = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _Map = require("./Map.cjs");
|
|
9
9
|
|
|
10
|
-
// Copyright 2017-
|
|
10
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
11
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
12
|
class HashMap extends _Map.CodecMap {
|
|
13
13
|
static with(keyType, valType) {
|
package/extended/HashMap.js
CHANGED
package/extended/Linkage.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _Vec = require("../base/Vec.cjs");
|
|
|
13
13
|
|
|
14
14
|
var _Struct = require("../native/Struct.cjs");
|
|
15
15
|
|
|
16
|
-
// Copyright 2017-
|
|
16
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
17
17
|
// SPDX-License-Identifier: Apache-2.0
|
|
18
18
|
const EMPTY = new Uint8Array();
|
|
19
19
|
/**
|
package/extended/Linkage.js
CHANGED
package/extended/Map.cjs
CHANGED
|
@@ -21,7 +21,7 @@ var _Struct = require("../native/Struct.cjs");
|
|
|
21
21
|
|
|
22
22
|
var _index = require("../utils/index.cjs");
|
|
23
23
|
|
|
24
|
-
// Copyright 2017-
|
|
24
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
25
25
|
// SPDX-License-Identifier: Apache-2.0
|
|
26
26
|
const l = (0, _util.logger)('Map');
|
|
27
27
|
/** @internal */
|
package/extended/Map.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { compactFromU8a, compactToU8a, isHex, isObject, isU8a, logger, stringify, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
|
6
6
|
import { AbstractArray } from "../abstract/AbstractArray.js";
|
package/extended/Range.cjs
CHANGED
|
@@ -13,7 +13,7 @@ var _classPrivateFieldLooseKey2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
|
|
14
14
|
var _Tuple = require("../base/Tuple.cjs");
|
|
15
15
|
|
|
16
|
-
// Copyright 2017-
|
|
16
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
17
17
|
// SPDX-License-Identifier: Apache-2.0
|
|
18
18
|
var _rangeName = /*#__PURE__*/(0, _classPrivateFieldLooseKey2.default)("rangeName");
|
|
19
19
|
|
package/extended/Range.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase";
|
|
2
2
|
import _classPrivateFieldLooseKey from "@babel/runtime/helpers/esm/classPrivateFieldLooseKey";
|
|
3
|
-
// Copyright 2017-
|
|
3
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
import { Tuple } from "../base/Tuple.js";
|
|
6
6
|
|
package/extended/Type.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _Text = require("../native/Text.cjs");
|
|
|
9
9
|
|
|
10
10
|
var _index = require("../utils/index.cjs");
|
|
11
11
|
|
|
12
|
-
// Copyright 2017-
|
|
12
|
+
// Copyright 2017-2022 @polkadot/types authors & contributors
|
|
13
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
|
|
15
15
|
/**
|
package/extended/Type.js
CHANGED
package/extended/U8aFixed.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var _util = require("@polkadot/util");
|
|
|
9
9
|
|
|
10
10
|
var _Raw = require("../native/Raw.cjs");
|
|
11
11
|
|
|
12
|
-
// Copyright 2017-
|
|
12
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
13
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
|
|
15
15
|
/** @internal */
|
package/extended/U8aFixed.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
|
import { assert, u8aToU8a } from '@polkadot/util';
|
|
4
4
|
import { Raw } from "../native/Raw.js";
|
|
@@ -11,7 +11,7 @@ var _Base = require("../base/Base.cjs");
|
|
|
11
11
|
|
|
12
12
|
var _index = require("../utils/index.cjs");
|
|
13
13
|
|
|
14
|
-
// Copyright 2017-
|
|
14
|
+
// Copyright 2017-2022 @polkadot/types-codec authors & contributors
|
|
15
15
|
// SPDX-License-Identifier: Apache-2.0
|
|
16
16
|
function decodeRaw(registry, Type, value) {
|
|
17
17
|
const Clazz = (0, _index.typeToConstructor)(registry, Type);
|
|
@@ -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
|
import { compactAddLength, compactStripLength, isU8a } from '@polkadot/util';
|
|
4
4
|
import { Base } from "../base/Base.js";
|
package/extended/index.js
CHANGED
package/index.js
CHANGED