From b35a671fe9311c20887a51ad113c8d79fec9cf10 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 9 Jan 2023 15:34:05 +0100 Subject: [PATCH] fix(core): update --- .gitlab-ci.yml | 5 +++-- package.json | 2 +- readme.md | 6 ++---- ts/00_commitinfo_data.ts | 2 +- ts/smartfile.classes.smartfile.ts | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c4d17c..c96d0c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,7 +14,7 @@ stages: before_script: - pnpm install -g pnpm - - pnpm install -g @shipzone/pnpm + - pnpm install -g @shipzone/npmci - npmci npm prepare # ==================== @@ -32,6 +32,7 @@ auditProductionDependencies: tags: - lossless - docker + allow_failure: true auditDevDependencies: image: registry.gitlab.com/hosttoday/ht-docker-node:npmci @@ -63,7 +64,7 @@ testBuild: script: - npmci node install stable - npmci npm install - - npmci command npm run build + - npmci npm build coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker diff --git a/package.json b/package.json index d36fc25..92d550c 100644 --- a/package.json +++ b/package.json @@ -66,4 +66,4 @@ "browserslist": [ "last 1 chrome versions" ] -} +} \ No newline at end of file diff --git a/readme.md b/readme.md index 7884ae7..cdfae9a 100644 --- a/readme.md +++ b/readme.md @@ -21,7 +21,6 @@ Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](htt PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@pushrocks/smartfile)](https://lossless.cloud) PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@pushrocks/smartfile)](https://lossless.cloud) BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@pushrocks/smartfile)](https://lossless.cloud) -Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20Windows%2010/yes/green?icon=windows)](https://lossless.cloud) [![Supports Mac OS X](https://badgen.net/badge/supports%20Mac%20OS%20X/yes/green?icon=apple)](https://lossless.cloud) ## Usage @@ -45,7 +44,6 @@ We are always happy for code contributions. If you are not the code contributing For further information read the linked docs at the top of this readme. -> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) +## Legal +> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc) | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) - -[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index cd9cbd7..43be563 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartfile', - version: '10.0.6', + version: '10.0.7', description: 'offers smart ways to work with files in nodejs' } diff --git a/ts/smartfile.classes.smartfile.ts b/ts/smartfile.classes.smartfile.ts index 5353105..5334e4d 100644 --- a/ts/smartfile.classes.smartfile.ts +++ b/ts/smartfile.classes.smartfile.ts @@ -241,7 +241,7 @@ export class Smartfile extends plugins.smartjson.Smartjson { const pathHash = await plugins.smarthash.sha256FromString(this.path); const contentHash = await plugins.smarthash.sha256FromBuffer(this.contentBuffer); const combinedHash = await plugins.smarthash.sha256FromString(pathHash + contentHash); - switch(typeArg) { + switch (typeArg) { case 'path': return pathHash; case 'content':