@acala-network/chopsticks-testing 0.9.1-3 → 0.9.1-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/dist/cjs/index.js CHANGED
@@ -50,8 +50,8 @@ const _api = require("@polkadot/api");
50
50
  const _chopsticks = require("@acala-network/chopsticks");
51
51
  const _keyring = require("@polkadot/keyring");
52
52
  const _vitest = require("vitest");
53
- _export_star(require("./check"), exports);
54
- _export_star(require("./signFake"), exports);
53
+ _export_star(require("./check.js"), exports);
54
+ _export_star(require("./signFake.js"), exports);
55
55
  function _export_star(from, to) {
56
56
  Object.keys(from).forEach(function(k) {
57
57
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
package/dist/esm/index.js CHANGED
@@ -2,8 +2,8 @@ import { ApiPromise, WsProvider } from '@polkadot/api';
2
2
  import { BuildBlockMode, connectParachains, connectVertical, fetchConfig, setupWithServer } from '@acala-network/chopsticks';
3
3
  import { Keyring, createTestKeyring } from '@polkadot/keyring';
4
4
  import { expect } from 'vitest';
5
- export * from './check';
6
- export * from './signFake';
5
+ export * from './check.js';
6
+ export * from './signFake.js';
7
7
  export const createConfig = ({ endpoint, blockNumber, blockHash, wasmOverride, db, timeout, port, maxMemoryBlockCount, resume })=>{
8
8
  // random port if not specified
9
9
  port = port ?? Math.floor(Math.random() * 10000) + 10000;
@@ -1,12 +1,12 @@
1
1
  import { ApiPromise, WsProvider } from '@polkadot/api';
2
2
  import { StorageValues } from '@acala-network/chopsticks';
3
3
  import { Codec } from '@polkadot/types/types';
4
- import { Config } from '@acala-network/chopsticks/schema';
4
+ import { Config } from '@acala-network/chopsticks/schema/index.js';
5
5
  import { HexString } from '@polkadot/util/types';
6
6
  import { Keyring } from '@polkadot/keyring';
7
7
  import { SubmittableExtrinsic } from '@polkadot/api-base/types';
8
- export * from './check';
9
- export * from './signFake';
8
+ export * from './check.js';
9
+ export * from './signFake.js';
10
10
  export type SetupOption = {
11
11
  endpoint: string;
12
12
  blockNumber?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks-testing",
3
- "version": "0.9.1-3",
3
+ "version": "0.9.1-4",
4
4
  "author": "Acala Developers <hello@acala.network>",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  "build:types": "tsc -p tsconfig.json --emitDeclarationOnly --outDir dist/types"
13
13
  },
14
14
  "dependencies": {
15
- "@acala-network/chopsticks": "0.9.1-3"
15
+ "@acala-network/chopsticks": "0.9.1-4"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "vitest": "^0.34.0"
@@ -39,10 +39,10 @@
39
39
  "default": "./dist/esm/index.js"
40
40
  },
41
41
  "./*": {
42
- "types": "./dist/types/index.d.ts",
43
- "require": "./dist/cjs/index.js",
44
- "import": "./dist/esm/index.js",
45
- "default": "./dist/esm/index.js"
42
+ "types": "./dist/types/*.d.ts",
43
+ "require": "./dist/cjs/*.js",
44
+ "import": "./dist/esm/*.js",
45
+ "default": "./dist/esm/*.js"
46
46
  },
47
47
  "./package.json": "./package.json",
48
48
  "./package.cjs.json": "./dist/cjs/package.json"