From 09936fda5656058bf3a9b9619fd1af1615594665 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 2 Sep 2020 13:04:52 +0000 Subject: [PATCH] fix(core): update --- .gitlab-ci.yml | 26 ++++++++++++++++++-------- .vscode/settings.json | 2 +- package.json | 2 +- ts/taskbuffer.classes.taskdebounced.ts | 12 +++++++----- 4 files changed, 27 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ebc8b5..9a4467e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,23 +19,35 @@ mirror: stage: security script: - npmci git mirror + only: + - tags tags: - lossless - docker - notpriv -audit: +auditProductionDependencies: + image: registry.gitlab.com/hosttoday/ht-docker-node:npmci + stage: security + script: + - npmci npm prepare + - npmci command npm install --production --ignore-scripts + - npmci command npm config set registry https://registry.npmjs.org + - npmci command npm audit --audit-level=high --only=prod --production + tags: + - docker + +auditDevDependencies: image: registry.gitlab.com/hosttoday/ht-docker-node:npmci stage: security script: - npmci npm prepare - npmci command npm install --ignore-scripts - npmci command npm config set registry https://registry.npmjs.org - - npmci command npm audit --audit-level=high + - npmci command npm audit --audit-level=high --only=dev tags: - - lossless - docker - - notpriv + allow_failure: true # ==================== # test stage @@ -50,9 +62,7 @@ testStable: - npmci npm test coverage: /\d+.?\d+?\%\s*coverage/ tags: - - lossless - docker - - priv testBuild: stage: test @@ -63,9 +73,7 @@ testBuild: - npmci command npm run build coverage: /\d+.?\d+?\%\s*coverage/ tags: - - lossless - docker - - notpriv release: stage: release @@ -85,6 +93,8 @@ release: codequality: stage: metadata allow_failure: true + only: + - tags script: - npmci command npm install -g tslint typescript - npmci npm prepare diff --git a/.vscode/settings.json b/.vscode/settings.json index 01d2b8d..3648eaa 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,7 +15,7 @@ "properties": { "projectType": { "type": "string", - "enum": ["website", "element", "service", "npm"] + "enum": ["website", "element", "service", "npm", "wcc"] } } } diff --git a/package.json b/package.json index f767c38..ca13d60 100644 --- a/package.json +++ b/package.json @@ -59,4 +59,4 @@ "browserslist": [ "last 1 chrome versions" ] -} +} \ No newline at end of file diff --git a/ts/taskbuffer.classes.taskdebounced.ts b/ts/taskbuffer.classes.taskdebounced.ts index 7475995..52a987a 100644 --- a/ts/taskbuffer.classes.taskdebounced.ts +++ b/ts/taskbuffer.classes.taskdebounced.ts @@ -15,11 +15,13 @@ export class TaskDebounced extends Task { name: optionsArg.name, taskFunction: async (x: T) => { this._observableIntake.push(x); - } + }, }); this.taskFunction = optionsArg.taskFunction; - this._observableIntake.observable.pipe(plugins.smartrx.rxjs.ops.debounceTime(optionsArg.debounceTimeInMillis)).subscribe((x) => { - this.taskFunction(x); - }); + this._observableIntake.observable + .pipe(plugins.smartrx.rxjs.ops.debounceTime(optionsArg.debounceTimeInMillis)) + .subscribe((x) => { + this.taskFunction(x); + }); } -} \ No newline at end of file +}