@polkadot/extension-dapp 0.42.5-9 → 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.
@@ -1,5 +1,8 @@
1
- const polkadotExtensionDapp = (function (exports, util, utilCrypto) {
2
- 'use strict';
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@polkadot/util'), require('@polkadot/util-crypto')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@polkadot/util', '@polkadot/util-crypto'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.polkadotExtensionDapp = {}, global.polkadotUtil, global.polkadotUtilCrypto));
5
+ })(this, (function (exports, util, utilCrypto) { 'use strict';
3
6
 
4
7
  const global = window;
5
8
 
@@ -15,7 +18,9 @@ const polkadotExtensionDapp = (function (exports, util, utilCrypto) {
15
18
 
16
19
  const packageInfo = {
17
20
  name: '@polkadot/extension-dapp',
18
- version: '0.42.5-9'
21
+ path: new URL('.', (typeof document === 'undefined' && typeof location === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : typeof document === 'undefined' ? location.href : (document.currentScript && document.currentScript.src || new URL('bundle-polkadot-extension-dapp.js', document.baseURI).href))).pathname,
22
+ type: 'esm',
23
+ version: '0.42.5'
19
24
  };
20
25
 
21
26
  const unwrapBytes = util.u8aUnwrapBytes;
@@ -210,6 +215,4 @@ const polkadotExtensionDapp = (function (exports, util, utilCrypto) {
210
215
 
211
216
  Object.defineProperty(exports, '__esModule', { value: true });
212
217
 
213
- return exports;
214
-
215
- })({}, polkadotUtil, polkadotUtilCrypto);
218
+ }));
package/detectOther.cjs CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _packageInfo = require("@polkadot/extension-inject/packageInfo");
8
+ var _packageInfo = require("@polkadot/extension-inject/packageInfo.cjs");
9
9
 
10
10
  // Copyright 2017-2022 @polkadot/extension-dapp authors & contributors
11
11
  // SPDX-License-Identifier: Apache-2.0
package/detectOther.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  declare const _default: {
2
2
  name: string;
3
+ path: string;
4
+ type: string;
3
5
  version: string;
4
6
  }[];
5
7
  export default _default;
package/detectOther.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Copyright 2017-2022 @polkadot/extension-dapp authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- import { packageInfo as injectInfo } from '@polkadot/extension-inject/packageInfo';
3
+ import { packageInfo as injectInfo } from '@polkadot/extension-inject/packageInfo.js';
4
4
  export default [injectInfo];
package/detectPackage.cjs CHANGED
@@ -2,14 +2,13 @@
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
- var _packageInfo = require("@polkadot/extension-inject/packageInfo");
6
-
7
5
  var _util = require("@polkadot/util");
8
6
 
9
- var _dirname2 = _interopRequireDefault(require("./cjs/dirname"));
7
+ var _detectOther = _interopRequireDefault(require("./detectOther.cjs"));
10
8
 
11
- var _packageInfo2 = require("./packageInfo.cjs");
9
+ var _packageInfo = require("./packageInfo.cjs");
12
10
 
13
11
  // Copyright 2017-2022 @polkadot/extension-dapp authors & contributors
14
12
  // SPDX-License-Identifier: Apache-2.0
15
- (0, _util.detectPackage)(_packageInfo2.packageInfo, typeof _dirname2.default !== 'undefined' && _dirname2.default, [_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,7 +1,7 @@
1
1
  // Copyright 2017-2022 @polkadot/extension-dapp 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 __dirname from "./cjs/dirname.js";
5
+ import others from "./detectOther.js";
6
6
  import { packageInfo } from "./packageInfo.js";
7
- detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [injectInfo]);
7
+ detectPackage(packageInfo, null, others);
package/package.json CHANGED
@@ -17,19 +17,10 @@
17
17
  "./detectPackage.cjs"
18
18
  ],
19
19
  "type": "module",
20
- "version": "0.42.5-9",
21
- "main": "index.js",
22
- "dependencies": {
23
- "@babel/runtime": "^7.16.7",
24
- "@polkadot/extension-inject": "^0.42.5-9",
25
- "@polkadot/util": "^8.2.2",
26
- "@polkadot/util-crypto": "^8.2.2"
27
- },
28
- "peerDependencies": {
29
- "@polkadot/api": "*",
30
- "@polkadot/util": "*",
31
- "@polkadot/util-crypto": "*"
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,11 +32,6 @@
41
32
  "require": "./bundle.cjs",
42
33
  "default": "./bundle.js"
43
34
  },
44
- "./cjs/dirname": {
45
- "types": "./cjs/dirname.d.ts",
46
- "default": "./cjs/dirname.js"
47
- },
48
- "./cjs/package.json": "./cjs/package.json",
49
35
  "./detectOther": {
50
36
  "types": "./detectOther.d.ts",
51
37
  "require": "./detectOther.cjs",
@@ -57,6 +43,8 @@
57
43
  "default": "./detectPackage.js"
58
44
  },
59
45
  "./package.json": "./package.json",
46
+ "./packageInfo.cjs": "./packageInfo.cjs",
47
+ "./packageInfo.js": "./packageInfo.js",
60
48
  "./packageInfo": {
61
49
  "types": "./packageInfo.d.ts",
62
50
  "require": "./packageInfo.cjs",
@@ -72,5 +60,16 @@
72
60
  "require": "./wrapBytes.cjs",
73
61
  "default": "./wrapBytes.js"
74
62
  }
63
+ },
64
+ "dependencies": {
65
+ "@babel/runtime": "^7.16.7",
66
+ "@polkadot/extension-inject": "^0.42.5",
67
+ "@polkadot/util": "^8.3.1",
68
+ "@polkadot/util-crypto": "^8.3.1"
69
+ },
70
+ "peerDependencies": {
71
+ "@polkadot/api": "*",
72
+ "@polkadot/util": "*",
73
+ "@polkadot/util-crypto": "*"
75
74
  }
76
75
  }
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-dapp authors & contributors
7
+ // Copyright 2017-2022 @polkadot/extension-dapp 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-dapp',
12
- version: '0.42.5-9'
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-dapp authors & contributors
1
+ // Copyright 2017-2022 @polkadot/extension-dapp 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-dapp',
6
- version: '0.42.5-9'
6
+ path: new URL('.', import.meta.url).pathname,
7
+ type: 'esm',
8
+ version: '0.42.5'
7
9
  };
package/cjs/dirname.d.ts DELETED
@@ -1,6 +0,0 @@
1
- // Copyright 2017-2022 @polkadot/extension-dapp 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 DELETED
@@ -1,6 +0,0 @@
1
- // Copyright 2017-2022 @polkadot/extension-dapp authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- module.exports = typeof __dirname === 'string'
5
- ? __dirname.replace('/cjs', '')
6
- : undefined;
package/cjs/package.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }