@polkadot/types-codec 7.2.2-0 → 7.2.2-4

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,16 +20,16 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.2.2-0",
23
+ "version": "7.2.2-4",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.7",
27
27
  "@polkadot/util": "^8.2.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@polkadot/types": "7.2.2-0",
31
- "@polkadot/types-augment": "7.2.2-0",
32
- "@polkadot/types-support": "7.2.2-0",
30
+ "@polkadot/types": "7.2.2-4",
31
+ "@polkadot/types-augment": "7.2.2-4",
32
+ "@polkadot/types-support": "7.2.2-4",
33
33
  "@polkadot/util-crypto": "^8.2.2"
34
34
  },
35
35
  "exports": {
@@ -128,11 +128,6 @@
128
128
  "require": "./bundle.cjs",
129
129
  "default": "./bundle.js"
130
130
  },
131
- "./cjs/dirname": {
132
- "types": "./cjs/dirname.d.ts",
133
- "default": "./cjs/dirname.js"
134
- },
135
- "./cjs/package.json": "./cjs/package.json",
136
131
  "./detectOther": {
137
132
  "types": "./detectOther.d.ts",
138
133
  "require": "./detectOther.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-0'
12
+ path: typeof __dirname === 'string' ? __dirname : 'auto',
13
+ type: 'cjs',
14
+ version: '7.2.2-4'
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-0'
6
+ path: typeof __dirname === 'string' ? __dirname : 'auto',
7
+ type: 'esm',
8
+ version: '7.2.2-4'
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
- }