@polkadot/types-create 10.1.2 → 10.1.3

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
1
  export { packageInfo } from './packageInfo.js';
2
2
  export { TypeDefInfo } from './types/index.js';
3
3
  export * from './create/index.js';
4
- export * from './util/index.js';
4
+ export * from './util/index.js';
package/cjs/bundle.js CHANGED
@@ -7,4 +7,4 @@ Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function
7
7
  var index_js_1 = require("./types/index.js");
8
8
  Object.defineProperty(exports, "TypeDefInfo", { enumerable: true, get: function () { return index_js_1.TypeDefInfo; } });
9
9
  tslib_1.__exportStar(require("./create/index.js"), exports);
10
- tslib_1.__exportStar(require("./util/index.js"), exports);
10
+ tslib_1.__exportStar(require("./util/index.js"), exports);
@@ -154,4 +154,4 @@ function createClassUnsafe(registry, type) {
154
154
  ? registry.lookup.getTypeDef(type)
155
155
  : (0, getTypeDef_js_1.getTypeDef)(type)));
156
156
  }
157
- exports.createClassUnsafe = createClassUnsafe;
157
+ exports.createClassUnsafe = createClassUnsafe;
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./class.js"), exports);
5
- tslib_1.__exportStar(require("./type.js"), exports);
5
+ tslib_1.__exportStar(require("./type.js"), exports);
@@ -64,4 +64,4 @@ function createTypeUnsafe(registry, type, params = [], options = {}) {
64
64
  }
65
65
  throw firstError;
66
66
  }
67
- exports.createTypeUnsafe = createTypeUnsafe;
67
+ exports.createTypeUnsafe = createTypeUnsafe;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const packageInfo_1 = require("@polkadot/types-codec/cjs/packageInfo");
4
- exports.default = [packageInfo_1.packageInfo];
4
+ exports.default = [packageInfo_1.packageInfo];
@@ -4,4 +4,4 @@ const tslib_1 = require("tslib");
4
4
  const util_1 = require("@polkadot/util");
5
5
  const detectOther_js_1 = tslib_1.__importDefault(require("./detectOther.js"));
6
6
  const packageInfo_js_1 = require("./packageInfo.js");
7
- (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default);
7
+ (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default);
package/cjs/index.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  require("./detectPackage.js");
5
- tslib_1.__exportStar(require("./bundle.js"), exports);
5
+ tslib_1.__exportStar(require("./bundle.js"), exports);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/types-create', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.1.2' };
4
+ exports.packageInfo = { name: '@polkadot/types-create', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.1.3' };
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("@polkadot/types-codec/types/registry");
3
+ require("@polkadot/types-codec/types/registry");
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  require("./augmentRegistry.js");
5
5
  tslib_1.__exportStar(require("./lookup.js"), exports);
6
- tslib_1.__exportStar(require("./types.js"), exports);
6
+ tslib_1.__exportStar(require("./types.js"), exports);
@@ -1,2 +1,2 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,4 +26,4 @@ var TypeDefInfo;
26
26
  TypeDefInfo[TypeDefInfo["VecFixed"] = 20] = "VecFixed";
27
27
  TypeDefInfo[TypeDefInfo["WrapperKeepOpaque"] = 21] = "WrapperKeepOpaque";
28
28
  TypeDefInfo[TypeDefInfo["WrapperOpaque"] = 22] = "WrapperOpaque";
29
- })(TypeDefInfo = exports.TypeDefInfo || (exports.TypeDefInfo = {}));
29
+ })(TypeDefInfo = exports.TypeDefInfo || (exports.TypeDefInfo = {}));
@@ -127,4 +127,4 @@ function withTypeString(registry, typeDef) {
127
127
  type: encodeType(registry, typeDef, false)
128
128
  });
129
129
  }
130
- exports.withTypeString = withTypeString;
130
+ exports.withTypeString = withTypeString;
@@ -193,4 +193,4 @@ function getTypeDef(_type, { displayName, name } = {}, count = 0) {
193
193
  }
194
194
  return value;
195
195
  }
196
- exports.getTypeDef = getTypeDef;
196
+ exports.getTypeDef = getTypeDef;
package/cjs/util/index.js CHANGED
@@ -4,4 +4,4 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./encodeTypes.js"), exports);
5
5
  tslib_1.__exportStar(require("./getTypeDef.js"), exports);
6
6
  tslib_1.__exportStar(require("./typeSplit.js"), exports);
7
- tslib_1.__exportStar(require("./xcm.js"), exports);
7
+ tslib_1.__exportStar(require("./xcm.js"), exports);
@@ -58,4 +58,4 @@ function typeSplit(type) {
58
58
  result.push(type.substring(start, type.length).trim());
59
59
  return result;
60
60
  }
61
- exports.typeSplit = typeSplit;
61
+ exports.typeSplit = typeSplit;
package/cjs/util/xcm.js CHANGED
@@ -6,4 +6,4 @@ exports.XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions',
6
6
  function mapXcmTypes(version) {
7
7
  return exports.XCM_MAPPINGS.reduce((all, key) => (0, util_1.objectSpread)(all, { [key]: `${key}${version}` }), {});
8
8
  }
9
- exports.mapXcmTypes = mapXcmTypes;
9
+ exports.mapXcmTypes = mapXcmTypes;
package/create/class.js CHANGED
@@ -148,4 +148,4 @@ export function createClassUnsafe(registry, type) {
148
148
  getTypeClass(registry, registry.isLookupType(type)
149
149
  ? registry.lookup.getTypeDef(type)
150
150
  : getTypeDef(type)));
151
- }
151
+ }
package/create/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from './class.js';
2
- export * from './type.js';
2
+ export * from './type.js';
package/create/type.js CHANGED
@@ -60,4 +60,4 @@ export function createTypeUnsafe(registry, type, params = [], options = {}) {
60
60
  }
61
61
  }
62
62
  throw firstError;
63
- }
63
+ }
package/detectOther.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
2
- export default [codecInfo];
2
+ export default [codecInfo];
package/detectPackage.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { detectPackage } from '@polkadot/util';
2
2
  import others from './detectOther.js';
3
3
  import { packageInfo } from './packageInfo.js';
4
- detectPackage(packageInfo, null, others);
4
+ detectPackage(packageInfo, null, others);
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import './detectPackage.js';
2
- export * from './bundle.js';
2
+ export * from './bundle.js';
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "author": "Jaco Greeff <jacogr@gmail.com>",
3
3
  "bugs": "https://github.com/polkadot-js/api/issues",
4
- "contributors": [],
5
4
  "description": "Type creator helpers",
6
5
  "engines": {
7
- "node": ">=14.0.0"
6
+ "node": ">=14"
8
7
  },
9
8
  "homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-create#readme",
10
9
  "license": "Apache-2.0",
11
- "maintainers": [],
12
10
  "name": "@polkadot/types-create",
13
11
  "repository": {
14
12
  "directory": "packages/types-create",
@@ -20,7 +18,7 @@
20
18
  "./cjs/detectPackage.js"
21
19
  ],
22
20
  "type": "module",
23
- "version": "10.1.2",
21
+ "version": "10.1.3",
24
22
  "main": "./cjs/index.js",
25
23
  "module": "./index.js",
26
24
  "types": "./index.d.ts",
@@ -123,7 +121,7 @@
123
121
  }
124
122
  },
125
123
  "dependencies": {
126
- "@polkadot/types-codec": "10.1.2",
124
+ "@polkadot/types-codec": "10.1.3",
127
125
  "@polkadot/util": "^11.0.2",
128
126
  "tslib": "^2.5.0"
129
127
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/types-create', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.1.2' };
1
+ export const packageInfo = { name: '@polkadot/types-create', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.1.3' };
@@ -1 +1 @@
1
- import '@polkadot/types-codec/types/registry';
1
+ import '@polkadot/types-codec/types/registry';
package/types/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import './augmentRegistry.js';
2
2
  export * from './lookup.js';
3
- export * from './types.js';
3
+ export * from './types.js';
package/types/lookup.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/types/types.js CHANGED
@@ -23,4 +23,4 @@ export var TypeDefInfo;
23
23
  TypeDefInfo[TypeDefInfo["VecFixed"] = 20] = "VecFixed";
24
24
  TypeDefInfo[TypeDefInfo["WrapperKeepOpaque"] = 21] = "WrapperKeepOpaque";
25
25
  TypeDefInfo[TypeDefInfo["WrapperOpaque"] = 22] = "WrapperOpaque";
26
- })(TypeDefInfo || (TypeDefInfo = {}));
26
+ })(TypeDefInfo || (TypeDefInfo = {}));
@@ -121,4 +121,4 @@ export function withTypeString(registry, typeDef) {
121
121
  return objectSpread({}, typeDef, {
122
122
  type: encodeType(registry, typeDef, false)
123
123
  });
124
- }
124
+ }
@@ -189,4 +189,4 @@ export function getTypeDef(_type, { displayName, name } = {}, count = 0) {
189
189
  value.sub = getTypeDef(extractSubType(type, wrapped), {}, count);
190
190
  }
191
191
  return value;
192
- }
192
+ }
package/util/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './encodeTypes.js';
2
2
  export * from './getTypeDef.js';
3
3
  export * from './typeSplit.js';
4
- export * from './xcm.js';
4
+ export * from './xcm.js';
package/util/typeSplit.js CHANGED
@@ -54,4 +54,4 @@ export function typeSplit(type) {
54
54
  // the final leg of the journey
55
55
  result.push(type.substring(start, type.length).trim());
56
56
  return result;
57
- }
57
+ }
package/util/xcm.js CHANGED
@@ -2,4 +2,4 @@ import { objectSpread } from '@polkadot/util';
2
2
  export const XCM_MAPPINGS = ['AssetInstance', 'Fungibility', 'Junction', 'Junctions', 'MultiAsset', 'MultiAssetFilter', 'MultiLocation', 'Response', 'WildFungibility', 'WildMultiAsset', 'Xcm', 'XcmError', 'XcmOrder'];
3
3
  export function mapXcmTypes(version) {
4
4
  return XCM_MAPPINGS.reduce((all, key) => objectSpread(all, { [key]: `${key}${version}` }), {});
5
- }
5
+ }