@polkadot/types-codec 7.2.2-2 → 7.2.2-6

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/detectPackage.cjs CHANGED
@@ -4,8 +4,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
 
5
5
  var _util = require("@polkadot/util");
6
6
 
7
- var _dirname = _interopRequireDefault(require("./cjs/dirname"));
8
-
9
7
  var _detectOther = _interopRequireDefault(require("./detectOther.cjs"));
10
8
 
11
9
  var _packageInfo = require("./packageInfo.cjs");
@@ -13,4 +11,4 @@ var _packageInfo = require("./packageInfo.cjs");
13
11
  // Copyright 2017-2022 @polkadot/types-codec authors & contributors
14
12
  // SPDX-License-Identifier: Apache-2.0
15
13
  // Do not edit, auto-generated by @polkadot/dev
16
- (0, _util.detectPackage)(_packageInfo.packageInfo, _dirname.default, _detectOther.default);
14
+ (0, _util.detectPackage)(_packageInfo.packageInfo, _packageInfo.packageInfo.path, _detectOther.default);
package/detectPackage.js CHANGED
@@ -2,7 +2,6 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // Do not edit, auto-generated by @polkadot/dev
4
4
  import { detectPackage } from '@polkadot/util';
5
- import dirname from "./cjs/dirname.js";
6
5
  import others from "./detectOther.js";
7
6
  import { packageInfo } from "./packageInfo.js";
8
- detectPackage(packageInfo, dirname, others);
7
+ detectPackage(packageInfo, packageInfo.path, others);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Jaco Greeff <jacogr@gmail.com>",
3
3
  "bugs": "https://github.com/polkadot-js/api/issues",
4
4
  "contributors": [],
5
- "description": "Implementation of the Parity codec",
5
+ "description": "Implementation of the SCALE codec",
6
6
  "engines": {
7
7
  "node": ">=14.0.0"
8
8
  },
@@ -20,18 +20,20 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.2.2-2",
24
- "main": "index.js",
23
+ "version": "7.2.2-6",
24
+ "main": "index.cjs",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.7",
27
- "@polkadot/util": "^8.2.2"
27
+ "@polkadot/util": "^8.2.3-29"
28
28
  },
29
29
  "devDependencies": {
30
- "@polkadot/types": "7.2.2-2",
31
- "@polkadot/types-augment": "7.2.2-2",
32
- "@polkadot/types-support": "7.2.2-2",
33
- "@polkadot/util-crypto": "^8.2.2"
30
+ "@polkadot/types": "7.2.2-6",
31
+ "@polkadot/types-augment": "7.2.2-6",
32
+ "@polkadot/types-support": "7.2.2-6",
33
+ "@polkadot/util-crypto": "^8.2.3-29"
34
34
  },
35
+ "module": "index.js",
36
+ "types": "index.d.ts",
35
37
  "exports": {
36
38
  ".": {
37
39
  "types": "./index.d.ts",
@@ -128,11 +130,6 @@
128
130
  "require": "./bundle.cjs",
129
131
  "default": "./bundle.js"
130
132
  },
131
- "./cjs/dirname": {
132
- "types": "./cjs/dirname.d.ts",
133
- "default": "./cjs/dirname.js"
134
- },
135
- "./cjs/package.json": "./cjs/package.json",
136
133
  "./detectOther": {
137
134
  "types": "./detectOther.d.ts",
138
135
  "require": "./detectOther.cjs",
@@ -248,6 +245,8 @@
248
245
  "default": "./native/Text.js"
249
246
  },
250
247
  "./package.json": "./package.json",
248
+ "./packageInfo.cjs": "./packageInfo.cjs",
249
+ "./packageInfo.js": "./packageInfo.js",
251
250
  "./packageInfo": {
252
251
  "types": "./packageInfo.d.ts",
253
252
  "require": "./packageInfo.cjs",
package/packageInfo.cjs CHANGED
@@ -9,6 +9,8 @@ exports.packageInfo = void 0;
9
9
  // Do not edit, auto-generated by @polkadot/dev
10
10
  const packageInfo = {
11
11
  name: '@polkadot/types-codec',
12
- version: '7.2.2-2'
12
+ path: typeof __dirname === 'string' ? __dirname : 'auto',
13
+ type: 'cjs',
14
+ version: '7.2.2-6'
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
@@ -3,5 +3,7 @@
3
3
  // Do not edit, auto-generated by @polkadot/dev
4
4
  export const packageInfo = {
5
5
  name: '@polkadot/types-codec',
6
- version: '7.2.2-2'
6
+ path: new URL('.', import.meta.url).pathname,
7
+ type: 'esm',
8
+ version: '7.2.2-6'
7
9
  };
package/cjs/dirname.d.ts DELETED
@@ -1,8 +0,0 @@
1
- // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- // Do not edit, auto-generated by @polkadot/dev
5
-
6
- declare const __dirname: string | undefined;
7
-
8
- export default __dirname;
package/cjs/dirname.js DELETED
@@ -1,8 +0,0 @@
1
- // Copyright 2017-2022 @polkadot/types-codec authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
-
4
- // Do not edit, auto-generated by @polkadot/dev
5
-
6
- module.exports = typeof __dirname === 'string'
7
- ? __dirname.replace('/cjs', '')
8
- : undefined;
package/cjs/package.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "type":"commonjs"
3
- }