fix(core): update

This commit is contained in:
Philipp Kunz 2021-11-11 20:48:31 +01:00
parent 613d46bb38
commit 65c1dd8fdc
4 changed files with 14 additions and 28 deletions

View File

@ -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
View File

@ -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"
} }
] ]
} }

View File

@ -59,4 +59,4 @@
"browserslist": [ "browserslist": [
"last 1 chrome versions" "last 1 chrome versions"
] ]
} }

View File

@ -18,7 +18,7 @@ tap.test('should run buffered', async (tools) => {
bufferMax: 1, bufferMax: 1,
afterTask: () => { afterTask: () => {
return task2; return task2;
} },
}); });
const task2 = new taskbuffer.Task({ const task2 = new taskbuffer.Task({
name: 'a buffered task', name: 'a buffered task',
@ -31,7 +31,7 @@ tap.test('should run buffered', async (tools) => {
bufferMax: 1, bufferMax: 1,
afterTask: () => { afterTask: () => {
return task3; return task3;
} },
}); });
const task3 = new taskbuffer.Task({ const task3 = new taskbuffer.Task({
name: 'a buffered task', name: 'a buffered task',
@ -41,12 +41,12 @@ tap.test('should run buffered', async (tools) => {
console.log(`task3 ran ${counter3} times`); console.log(`task3 ran ${counter3} times`);
}, },
buffered: true, buffered: true,
bufferMax: 1 bufferMax: 1,
}); });
while(counter1 < 10) { while (counter1 < 10) {
await tools.delayFor(5000); await tools.delayFor(5000);
task.trigger(); task.trigger();
} }
}) });
tap.start(); tap.start();