Compare commits

..

4 Commits

Author SHA1 Message Date
2e457f6011 8.0.3 2020-10-02 14:13:34 +00:00
e83c63fd2a fix(core): update 2020-10-02 14:13:34 +00:00
c01006e365 8.0.2 2020-10-02 13:29:40 +00:00
a7adec8275 fix(core): update 2020-10-02 13:29:40 +00:00
5 changed files with 19 additions and 6 deletions

View File

@ -26,16 +26,28 @@ mirror:
- docker - docker
- notpriv - 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 image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security stage: security
script: script:
- npmci npm prepare - npmci npm prepare
- npmci command npm install --ignore-scripts - npmci command npm install --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org - 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: tags:
- docker - docker
allow_failure: true
# ==================== # ====================
# test stage # test stage

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartfile", "name": "@pushrocks/smartfile",
"version": "8.0.1", "version": "8.0.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,7 +1,7 @@
{ {
"name": "@pushrocks/smartfile", "name": "@pushrocks/smartfile",
"private": false, "private": false,
"version": "8.0.1", "version": "8.0.3",
"description": "offers smart ways to work with files in nodejs", "description": "offers smart ways to work with files in nodejs",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",

View File

@ -5,6 +5,7 @@ import * as SmartfileMemory from './smartfile.memory';
import * as SmartfileRemote from './smartfile.remote'; import * as SmartfileRemote from './smartfile.remote';
export { Smartfile } from './smartfile.classes.smartfile'; export { Smartfile } from './smartfile.classes.smartfile';
export { VirtualDirectory } from './smartfile.classes.virtualdirectory';
export let fs = SmartfileFs; export let fs = SmartfileFs;
export let interpreter = SmartfileInterpreter; export let interpreter = SmartfileInterpreter;

View File

@ -10,7 +10,7 @@ export class VirtualDirectory {
public static async fromFsDirPath(pathArg: string) { public static async fromFsDirPath(pathArg: string) {
const newVirtualDir = new VirtualDirectory(); const newVirtualDir = new VirtualDirectory();
newVirtualDir.addSmartfiles(await fs.fileTreeToObject(pathArg, '**/*')); newVirtualDir.addSmartfiles(await fs.fileTreeToObject(pathArg, '**/*'));
}; }
constructor() {} constructor() {}
@ -28,4 +28,4 @@ export class VirtualDirectory {
// TODO implement root shifting to get subdirectories as new virtual directories // TODO implement root shifting to get subdirectories as new virtual directories
// TODO implement root shifting to combine VirtualDirecotries in a parent virtual directory // TODO implement root shifting to combine VirtualDirecotries in a parent virtual directory
} }