@polkadot/extension-chains 0.42.5-6 → 0.42.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.cjs CHANGED
@@ -20,7 +20,7 @@ var _utilCrypto = require("@polkadot/util-crypto");
20
20
 
21
21
  var _packageInfo = require("./packageInfo.cjs");
22
22
 
23
- // Copyright 2019-2021 @polkadot/extension-chains authors & contributors
23
+ // Copyright 2019-2022 @polkadot/extension-chains authors & contributors
24
24
  // SPDX-License-Identifier: Apache-2.0
25
25
  // imports chain details, generally metadata. For the generation of these,
26
26
  // inside the api, run `yarn chain:info --ws <url>`
package/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2019-2021 @polkadot/extension-chains authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension-chains authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { Metadata, TypeRegistry } from '@polkadot/types';
4
4
  import { base64Decode } from '@polkadot/util-crypto';
@@ -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/extension-inject/packageInfo.cjs");
9
+
10
+ // Copyright 2017-2022 @polkadot/extension-chains authors & contributors
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ var _default = [_packageInfo.packageInfo];
13
+ exports.default = _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ name: string;
3
+ path: string;
4
+ type: string;
5
+ version: string;
6
+ }[];
7
+ export default _default;
package/detectOther.js ADDED
@@ -0,0 +1,4 @@
1
+ // Copyright 2017-2022 @polkadot/extension-chains authors & contributors
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ import { packageInfo as injectInfo } from '@polkadot/extension-inject/packageInfo.js';
4
+ export default [injectInfo];
package/detectPackage.cjs CHANGED
@@ -1,11 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _packageInfo = require("@polkadot/extension-inject/packageInfo");
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
5
  var _util = require("@polkadot/util");
6
6
 
7
- var _packageInfo2 = require("./packageInfo.cjs");
7
+ var _detectOther = _interopRequireDefault(require("./detectOther.cjs"));
8
8
 
9
- // Copyright 2017-2021 @polkadot/extension-chains authors & contributors
9
+ var _packageInfo = require("./packageInfo.cjs");
10
+
11
+ // Copyright 2017-2022 @polkadot/extension-chains authors & contributors
10
12
  // SPDX-License-Identifier: Apache-2.0
11
- (0, _util.detectPackage)(_packageInfo2.packageInfo, typeof __dirname !== 'undefined' && __dirname, [_packageInfo.packageInfo]);
13
+ // Do not edit, auto-generated by @polkadot/dev
14
+ (0, _util.detectPackage)(_packageInfo.packageInfo, null, _detectOther.default);
package/detectPackage.js CHANGED
@@ -1,6 +1,7 @@
1
- // Copyright 2017-2021 @polkadot/extension-chains authors & contributors
1
+ // Copyright 2017-2022 @polkadot/extension-chains authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- import { packageInfo as injectInfo } from '@polkadot/extension-inject/packageInfo';
3
+ // Do not edit, auto-generated by @polkadot/dev
4
4
  import { detectPackage } from '@polkadot/util';
5
+ import others from "./detectOther.js";
5
6
  import { packageInfo } from "./packageInfo.js";
6
- detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [injectInfo]);
7
+ detectPackage(packageInfo, null, others);
package/index.cjs CHANGED
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- require("./detectPackage.cjs");
8
-
9
7
  var _bundle = require("./bundle.cjs");
10
8
 
11
9
  Object.keys(_bundle).forEach(function (key) {
package/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- import './detectPackage';
2
1
  export * from './bundle';
package/index.js CHANGED
@@ -1,4 +1,5 @@
1
- // Copyright 2019-2021 @polkadot/extension-chains authors & contributors
1
+ // Copyright 2019-2022 @polkadot/extension-chains authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- import "./detectPackage.js";
3
+ // Since we inject into pages, we skip this
4
+ // import './detectPackage';
4
5
  export * from "./bundle.js";
package/package.json CHANGED
@@ -17,19 +17,10 @@
17
17
  "./detectPackage.cjs"
18
18
  ],
19
19
  "type": "module",
20
- "version": "0.42.5-6",
21
- "main": "index.js",
22
- "dependencies": {
23
- "@babel/runtime": "^7.16.7",
24
- "@polkadot/extension-inject": "^0.42.5-6",
25
- "@polkadot/networks": "^8.2.2",
26
- "@polkadot/util": "^8.2.2",
27
- "@polkadot/util-crypto": "^8.2.2"
28
- },
29
- "peerDependencies": {
30
- "@polkadot/api": "*",
31
- "@polkadot/types": "*"
32
- },
20
+ "version": "0.42.5",
21
+ "main": "index.cjs",
22
+ "module": "index.js",
23
+ "types": "index.d.ts",
33
24
  "exports": {
34
25
  ".": {
35
26
  "types": "./index.d.ts",
@@ -41,12 +32,19 @@
41
32
  "require": "./bundle.cjs",
42
33
  "default": "./bundle.js"
43
34
  },
35
+ "./detectOther": {
36
+ "types": "./detectOther.d.ts",
37
+ "require": "./detectOther.cjs",
38
+ "default": "./detectOther.js"
39
+ },
44
40
  "./detectPackage": {
45
41
  "types": "./detectPackage.d.ts",
46
42
  "require": "./detectPackage.cjs",
47
43
  "default": "./detectPackage.js"
48
44
  },
49
45
  "./package.json": "./package.json",
46
+ "./packageInfo.cjs": "./packageInfo.cjs",
47
+ "./packageInfo.js": "./packageInfo.js",
50
48
  "./packageInfo": {
51
49
  "types": "./packageInfo.d.ts",
52
50
  "require": "./packageInfo.cjs",
@@ -57,5 +55,16 @@
57
55
  "require": "./types.cjs",
58
56
  "default": "./types.js"
59
57
  }
58
+ },
59
+ "dependencies": {
60
+ "@babel/runtime": "^7.16.7",
61
+ "@polkadot/extension-inject": "^0.42.5",
62
+ "@polkadot/networks": "^8.3.1",
63
+ "@polkadot/util": "^8.3.1",
64
+ "@polkadot/util-crypto": "^8.3.1"
65
+ },
66
+ "peerDependencies": {
67
+ "@polkadot/api": "*",
68
+ "@polkadot/types": "*"
60
69
  }
61
70
  }
package/packageInfo.cjs CHANGED
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.packageInfo = void 0;
7
- // Copyright 2017-2021 @polkadot/extension-chains authors & contributors
7
+ // Copyright 2017-2022 @polkadot/extension-chains 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/extension-chains',
12
- version: '0.42.5-6'
12
+ path: typeof __dirname === 'string' ? __dirname : 'auto',
13
+ type: 'cjs',
14
+ version: '0.42.5'
13
15
  };
14
16
  exports.packageInfo = packageInfo;
package/packageInfo.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export declare const packageInfo: {
2
2
  name: string;
3
+ path: string;
4
+ type: string;
3
5
  version: string;
4
6
  };
package/packageInfo.js CHANGED
@@ -1,7 +1,9 @@
1
- // Copyright 2017-2021 @polkadot/extension-chains authors & contributors
1
+ // Copyright 2017-2022 @polkadot/extension-chains 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/extension-chains',
6
- version: '0.42.5-6'
6
+ path: new URL('.', import.meta.url).pathname,
7
+ type: 'esm',
8
+ version: '0.42.5'
7
9
  };