fix(core): update
This commit is contained in:
		| @@ -12,6 +12,9 @@ stages: | |||||||
|   - release |   - release | ||||||
|   - metadata |   - metadata | ||||||
|  |  | ||||||
|  | before_script: | ||||||
|  |   - npm install -g @shipzone/npmci | ||||||
|  |  | ||||||
| # ==================== | # ==================== | ||||||
| # security stage | # security stage | ||||||
| # ==================== | # ==================== | ||||||
| @@ -36,6 +39,7 @@ auditProductionDependencies: | |||||||
|     - npmci command npm audit --audit-level=high --only=prod --production |     - npmci command npm audit --audit-level=high --only=prod --production | ||||||
|   tags: |   tags: | ||||||
|     - docker |     - docker | ||||||
|  |   allow_failure: true | ||||||
|  |  | ||||||
| auditDevDependencies: | auditDevDependencies: | ||||||
|   image: registry.gitlab.com/hosttoday/ht-docker-node:npmci |   image: registry.gitlab.com/hosttoday/ht-docker-node:npmci | ||||||
|   | |||||||
							
								
								
									
										24
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							| @@ -2,28 +2,10 @@ | |||||||
|   "version": "0.2.0", |   "version": "0.2.0", | ||||||
|   "configurations": [ |   "configurations": [ | ||||||
|     { |     { | ||||||
|       "name": "current file", |       "command": "npm test", | ||||||
|       "type": "node", |       "name": "Run npm test", | ||||||
|       "request": "launch", |       "request": "launch", | ||||||
|       "args": [ |       "type": "node-terminal" | ||||||
|         "${relativeFile}" |  | ||||||
|       ], |  | ||||||
|       "runtimeArgs": ["-r", "@gitzone/tsrun"], |  | ||||||
|       "cwd": "${workspaceRoot}", |  | ||||||
|       "protocol": "inspector", |  | ||||||
|       "internalConsoleOptions": "openOnSessionStart" |  | ||||||
|     }, |  | ||||||
|     { |  | ||||||
|       "name": "test.ts", |  | ||||||
|       "type": "node", |  | ||||||
|       "request": "launch", |  | ||||||
|       "args": [ |  | ||||||
|         "test/test.ts" |  | ||||||
|       ], |  | ||||||
|       "runtimeArgs": ["-r", "@gitzone/tsrun"], |  | ||||||
|       "cwd": "${workspaceRoot}", |  | ||||||
|       "protocol": "inspector", |  | ||||||
|       "internalConsoleOptions": "openOnSessionStart" |  | ||||||
|     } |     } | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ | |||||||
|       "githost": "gitlab.com", |       "githost": "gitlab.com", | ||||||
|       "gitscope": "pushrocks", |       "gitscope": "pushrocks", | ||||||
|       "gitrepo": "webrequest", |       "gitrepo": "webrequest", | ||||||
|       "shortDescription": "securely request from browsers", |       "description": "securely request from browsers", | ||||||
|       "npmPackagename": "@pushrocks/webrequest", |       "npmPackagename": "@pushrocks/webrequest", | ||||||
|       "license": "MIT" |       "license": "MIT" | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -43,4 +43,4 @@ | |||||||
|   "browserslist": [ |   "browserslist": [ | ||||||
|     "last 1 chrome versions" |     "last 1 chrome versions" | ||||||
|   ] |   ] | ||||||
| } | } | ||||||
| @@ -55,8 +55,8 @@ tap.test('first test', async (tools) => { | |||||||
|   console.log('response 1: ' + JSON.stringify(response)); |   console.log('response 1: ' + JSON.stringify(response)); | ||||||
|   console.log('response 2: ' + JSON.stringify(response2)); |   console.log('response 2: ' + JSON.stringify(response2)); | ||||||
|  |  | ||||||
|   expect(response).toHaveProperty('hithere') //.to.equal('hi'); |   expect(response).toHaveProperty('hithere'); //.to.equal('hi'); | ||||||
|   expect(response2).toHaveProperty('hithere') //.to.equal('hi'); |   expect(response2).toHaveProperty('hithere'); //.to.equal('hi'); | ||||||
| }); | }); | ||||||
|  |  | ||||||
| tap.test('tear down server', async () => { | tap.test('tear down server', async () => { | ||||||
|   | |||||||
| @@ -116,7 +116,7 @@ export class WebRequest { | |||||||
|         method: optionsArg.method, |         method: optionsArg.method, | ||||||
|         headers: { |         headers: { | ||||||
|           'Content-Type': 'application/json', |           'Content-Type': 'application/json', | ||||||
|           ...(optionsArg.headers || {}) |           ...(optionsArg.headers || {}), | ||||||
|         }, |         }, | ||||||
|         body: optionsArg.body, |         body: optionsArg.body, | ||||||
|       }); |       }); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user