From 92410569093e46a5f8c4299c38c335eb5c59806c Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 16 Mar 2020 15:13:58 +0000 Subject: [PATCH] fix(core): update --- .gitignore | 4 +--- .gitlab-ci.yml | 7 ++++--- package-lock.json | 6 +++--- package.json | 5 +++-- readme.md | 1 - test/test.ts | 11 ++++++++--- 6 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 91c0db0..ef13c79 100644 --- a/.gitignore +++ b/.gitignore @@ -15,8 +15,6 @@ node_modules/ # builds dist/ -dist_web/ -dist_serve/ -dist_ts_web/ +dist_*/ # custom \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a95dfb6..d0c0adc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,13 +24,14 @@ mirror: - docker - notpriv -snyk: - image: registry.gitlab.com/hosttoday/ht-docker-node:snyk +audit: + image: registry.gitlab.com/hosttoday/ht-docker-node:npmci stage: security script: - npmci npm prepare - npmci command npm install --ignore-scripts - - npmci command snyk test + - npmci command npm config set registry https://registry.npmjs.org + - npmci command npm audit --audit-level=moderate tags: - lossless - docker diff --git a/package-lock.json b/package-lock.json index 0f15091..fb3ac05 100644 --- a/package-lock.json +++ b/package-lock.json @@ -160,9 +160,9 @@ } }, "@pushrocks/smartfile": { - "version": "7.0.10", - "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfile/-/smartfile-7.0.10.tgz", - "integrity": "sha512-Gsm9PXFsmA50KsLDA9zdwFKZ84ZalEPDZ8Q1/fX/7PR8hIntp6qafoo3Unvl3/LFHEHxYB1VYWX1PviLND3xNw==", + "version": "7.0.11", + "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartfile/-/smartfile-7.0.11.tgz", + "integrity": "sha512-vY5V+6rEfXa481icwGlWh6iPxk6a9VNtrEPF7aELVOfJYEHJS2GoZat3pLayy2Ab3UP6QV9eImx9UtI1ksfYhw==", "requires": { "@pushrocks/smarthash": "^2.1.6", "@pushrocks/smartmime": "^1.0.3", diff --git a/package.json b/package.json index 77b6108..1c083a2 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "homepage": "https://github.com/pushrocks/smartarchive#readme", "dependencies": { - "@pushrocks/smartfile": "^7.0.10", + "@pushrocks/smartfile": "^7.0.11", "@pushrocks/smartpath": "^4.0.1", "@pushrocks/smartrequest": "^1.1.47", "@pushrocks/smartunique": "^3.0.3", @@ -38,7 +38,8 @@ "ts/**/*", "ts_web/**/*", "dist/**/*", - "dist_web/**/*", + "dist_*/**/*", + "dist_ts/**/*", "dist_ts_web/**/*", "assets/**/*", "cli.js", diff --git a/readme.md b/readme.md index b9eed8e..e7886da 100644 --- a/readme.md +++ b/readme.md @@ -37,7 +37,6 @@ For further information read the linked docs at the top of this README. [![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://push.rocks) - ## Contribution We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :) diff --git a/test/test.ts b/test/test.ts index b5eed49..4d6e193 100644 --- a/test/test.ts +++ b/test/test.ts @@ -12,7 +12,7 @@ const testPlugins = { const testPaths = { nogitDir: testPlugins.path.join(process.cwd(), '.nogit/') -} +}; import * as smartarchive from '../ts/index'; @@ -22,9 +22,14 @@ tap.preTask('should prepare .nogit dir', async () => { tap.preTask('should prepare downloads', async tools => { const downloadedFile: Buffer = ( - await testPlugins.smartrequest.getBinary('https://verdaccio.lossless.one/@pushrocks%2fwebsetup/-/websetup-2.0.14.tgz') + await testPlugins.smartrequest.getBinary( + 'https://verdaccio.lossless.one/@pushrocks%2fwebsetup/-/websetup-2.0.14.tgz' + ) ).body; - await testPlugins.smartfile.memory.toFs(downloadedFile, testPlugins.path.join(testPaths.nogitDir, 'test.tgz')); + await testPlugins.smartfile.memory.toFs( + downloadedFile, + testPlugins.path.join(testPaths.nogitDir, 'test.tgz') + ); }); tap.test('should extract files on disk', async () => {