@prosopo/cli 0.2.4 → 0.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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=bundle.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.test.d.ts","sourceRoot":"","sources":["../../../src/tests/bundle/bundle.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { assert, describe, test } from 'vitest';
2
+ import { exec } from 'child_process';
3
+ import { getCurrentFileDirectory } from '@prosopo/util';
4
+ import { promisify } from 'util';
5
+ const execPromise = promisify(exec);
6
+ describe('provider bundle', () => {
7
+ test('bundle runs after bundling', async () => {
8
+ // get file location
9
+ const dir = getCurrentFileDirectory(import.meta.url);
10
+ // get root directory of this package
11
+ const rootDir = dir.split('/').slice(0, -3).join('/');
12
+ // build bundle
13
+ await execPromise(`cd ${rootDir} && npm run build:prod`);
14
+ // run bundle and get version
15
+ const { stdout: runOut, stderr: runErr } = await execPromise(`cd ${rootDir} && node dist/bundle/provider.cli.bundle.js version`);
16
+ assert(runOut.includes('Version:'));
17
+ }, 120000);
18
+ });
19
+ //# sourceMappingURL=bundle.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.test.js","sourceRoot":"","sources":["../../../src/tests/bundle/bundle.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAChC,MAAM,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC,CAAA;AAEnC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC7B,IAAI,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;QAC1C,oBAAoB;QACpB,MAAM,GAAG,GAAG,uBAAuB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAEpD,qCAAqC;QACrC,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAErD,eAAe;QACf,MAAM,WAAW,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAA;QAExD,6BAA6B;QAC7B,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,WAAW,CACxD,MAAM,OAAO,qDAAqD,CACrE,CAAA;QACD,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAA;IACvC,CAAC,EAAE,MAAM,CAAC,CAAA;AACd,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "CLI for Prosopo Provider",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -27,18 +27,18 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@polkadot/util-crypto": "12.3.2",
30
- "@prosopo/common": "0.2.4",
31
- "@prosopo/contract": "0.2.4",
32
- "@prosopo/env": "0.2.4",
33
- "@prosopo/provider": "0.2.4",
34
- "@prosopo/types": "0.2.4",
35
- "@prosopo/util": "0.2.4",
30
+ "@prosopo/common": "0.2.6",
31
+ "@prosopo/contract": "0.2.6",
32
+ "@prosopo/env": "0.2.6",
33
+ "@prosopo/provider": "0.2.6",
34
+ "@prosopo/types": "0.2.6",
35
+ "@prosopo/util": "0.2.6",
36
36
  "cors": "^2.8.5",
37
37
  "dotenv": "^16.0.1",
38
38
  "es-main": "^1.2.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@prosopo/config": "0.2.4",
41
+ "@prosopo/config": "0.2.6",
42
42
  "@types/cors": "^2.8.14",
43
43
  "tslib": "2.6.2",
44
44
  "typescript": "5.1.6"