From a7adec82759068699ea0d8469e64d63668f92bae Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 2 Oct 2020 13:29:40 +0000 Subject: [PATCH] fix(core): update --- .gitlab-ci.yml | 16 ++++++++++++++-- package.json | 2 +- ts/smartfile.classes.virtualdirectory.ts | 4 ++-- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d931318..9a4467e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,16 +26,28 @@ mirror: - 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: - docker + allow_failure: true # ==================== # test stage diff --git a/package.json b/package.json index f69ae13..b71e333 100644 --- a/package.json +++ b/package.json @@ -61,4 +61,4 @@ "browserslist": [ "last 1 chrome versions" ] -} +} \ No newline at end of file diff --git a/ts/smartfile.classes.virtualdirectory.ts b/ts/smartfile.classes.virtualdirectory.ts index bbdc463..fe43cc5 100644 --- a/ts/smartfile.classes.virtualdirectory.ts +++ b/ts/smartfile.classes.virtualdirectory.ts @@ -10,7 +10,7 @@ export class VirtualDirectory { public static async fromFsDirPath(pathArg: string) { const newVirtualDir = new VirtualDirectory(); newVirtualDir.addSmartfiles(await fs.fileTreeToObject(pathArg, '**/*')); - }; + } constructor() {} @@ -28,4 +28,4 @@ export class VirtualDirectory { // TODO implement root shifting to get subdirectories as new virtual directories // TODO implement root shifting to combine VirtualDirecotries in a parent virtual directory -} \ No newline at end of file +}