@bigid/apps-infrastructure-node-js 1.183.1 → 1.189.0

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.
@@ -10,6 +10,7 @@ jobs:
10
10
  steps:
11
11
  - uses: actions/checkout@v2.1.1
12
12
  - run: npm i
13
+ - run: npm run test
13
14
  - run: tsc
14
15
  - run: npm publish --userconfig .github/workflows/bigid_config
15
16
  env:
@@ -12,6 +12,7 @@ jobs:
12
12
  - uses: actions/checkout@v2.1.1
13
13
  - run: npm i
14
14
  - run: tsc
15
+ - run: npm run test
15
16
  - run: npm publish --userconfig .github/workflows/npmjs_config
16
17
  env:
17
18
  TOKEN: ${{ secrets.NPMJS_TOKEN }}
@@ -0,0 +1,17 @@
1
+ name: Run tests for MR
2
+
3
+ on:
4
+ push:
5
+ branches: [ "**" ]
6
+
7
+ jobs:
8
+ Test:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2.1.1
12
+ - run: npm i
13
+ - run: tsc
14
+ - run: npm run test
15
+ env:
16
+ TOKEN: ${{ secrets.NPMJS_TOKEN }}
17
+
@@ -36,7 +36,7 @@ export declare const executeHttpPut: (executionContext: ExecutionContext, endpoi
36
36
  */
37
37
  export declare const executeHttpDelete: (executionContext: ExecutionContext, endpoint: string) => Promise<any>;
38
38
  export declare const executePost: (requestMethod: RequestMethod, baseUrl: string | undefined, bodyJson: Record<string, any>) => Promise<any>;
39
- export declare const uploadAttachment: (executionContext: ExecutionContext, filePathToUpload: string) => import("axios").AxiosPromise<any>;
39
+ export declare const uploadAttachment: (executionContext: ExecutionContext, filePathToUpload: string) => Promise<import("axios").AxiosResponse<any, any>>;
40
40
  export declare const getAppStorage: (executionContext: ExecutionContext) => Promise<any>;
41
41
  export declare const getValueFromAppStorage: (executionContext: ExecutionContext, key: string) => Promise<string>;
42
42
  export declare const deleteKeyFromAppStorage: (executionContext: ExecutionContext, key: string) => Promise<void>;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@bigid/apps-infrastructure-node-js",
3
- "version": "1.183.1",
3
+ "version": "1.189.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
7
- "docs": "npx tsc && ./node_modules/.bin/jsdoc -c jsdoc.json"
7
+ "docs": "npx tsc && ./node_modules/.bin/jsdoc -c jsdoc.json",
8
+ "test": "mocha 'test/**/*.ts'"
8
9
  },
9
10
  "types": "lib/index.d.ts",
10
11
  "repository": {
@@ -16,6 +17,7 @@
16
17
  "devDependencies": {
17
18
  "@types/express": "^4.17.13",
18
19
  "@types/http-errors": "^1.8.1",
20
+ "@types/mocha": "10.0.3",
19
21
  "@types/node": "^16.11.10",
20
22
  "@types/node-schedule": "^2.1.0",
21
23
  "@typescript-eslint/eslint-plugin": "4.6.1",
@@ -25,16 +27,18 @@
25
27
  "eslint-plugin-no-only-tests": "2.4.0",
26
28
  "eslint-plugin-prettier": "^3.1.4",
27
29
  "prettier": "^2.4.1",
30
+ "jsdoc": "4.0.2",
28
31
  "typescript": "^4.5.2"
29
32
  },
30
33
  "dependencies": {
31
- "axios": "0.24.0",
32
- "follow-redirects": "1.15.2",
34
+ "axios": "1.6.0",
33
35
  "express": "4.17.3",
36
+ "follow-redirects": "1.15.2",
34
37
  "form-data": "^4.0.0",
35
38
  "http-errors": "^1.8.1",
36
- "jsdoc": "4.0.2",
37
39
  "log4js": "^6.4.0",
38
- "node-schedule": "2.1.1"
40
+ "mocha": "10.2.0",
41
+ "node-schedule": "2.1.1",
42
+ "ts-node": "10.9.1"
39
43
  }
40
44
  }
@@ -0,0 +1,5 @@
1
+ describe('General commands unit test', () => {
2
+ it('Should test getCommand success', async () => {
3
+ return;
4
+ });
5
+ });