Compare commits

...

2 Commits

Author SHA1 Message Date
dec635f57f 2.0.15 2022-02-10 18:45:22 +01:00
7d28f15f23 fix(core): update 2022-02-10 18:45:22 +01:00
7 changed files with 14 additions and 28 deletions

View File

@ -12,6 +12,9 @@ stages:
- release
- metadata
before_script:
- npm install -g @shipzone/npmci
# ====================
# security stage
# ====================
@ -36,6 +39,7 @@ auditProductionDependencies:
- npmci command npm audit --audit-level=high --only=prod --production
tags:
- docker
allow_failure: true
auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci

24
.vscode/launch.json vendored
View File

@ -2,28 +2,10 @@
"version": "0.2.0",
"configurations": [
{
"name": "current file",
"type": "node",
"command": "npm test",
"name": "Run npm test",
"request": "launch",
"args": [
"${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"
"type": "node-terminal"
}
]
}

View File

@ -9,7 +9,7 @@
"githost": "gitlab.com",
"gitscope": "pushrocks",
"gitrepo": "webrequest",
"shortDescription": "securely request from browsers",
"description": "securely request from browsers",
"npmPackagename": "@pushrocks/webrequest",
"license": "MIT"
}

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@pushrocks/webrequest",
"version": "2.0.14",
"version": "2.0.15",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@pushrocks/webrequest",
"version": "2.0.14",
"version": "2.0.15",
"license": "MIT",
"dependencies": {
"@pushrocks/smartdelay": "^2.0.13",

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/webrequest",
"version": "2.0.14",
"version": "2.0.15",
"private": false,
"description": "securely request from browsers",
"main": "dist_ts/index.js",

View File

@ -55,8 +55,8 @@ tap.test('first test', async (tools) => {
console.log('response 1: ' + JSON.stringify(response));
console.log('response 2: ' + JSON.stringify(response2));
expect(response).toHaveProperty('hithere') //.to.equal('hi');
expect(response2).toHaveProperty('hithere') //.to.equal('hi');
expect(response).toHaveProperty('hithere'); //.to.equal('hi');
expect(response2).toHaveProperty('hithere'); //.to.equal('hi');
});
tap.test('tear down server', async () => {

View File

@ -116,7 +116,7 @@ export class WebRequest {
method: optionsArg.method,
headers: {
'Content-Type': 'application/json',
...(optionsArg.headers || {})
...(optionsArg.headers || {}),
},
body: optionsArg.body,
});