fix(core): update

This commit is contained in:
Philipp Kunz 2023-08-31 18:45:23 +02:00
parent 279db74568
commit ee97e1d88b
6 changed files with 1457 additions and 465 deletions

View File

@ -26,29 +26,29 @@
},
"homepage": "https://gitlab.com/pushrocks/smartfile",
"dependencies": {
"@push.rocks/lik": "^6.0.2",
"@push.rocks/smartdelay": "^3.0.1",
"@push.rocks/lik": "^6.0.5",
"@push.rocks/smartdelay": "^3.0.5",
"@push.rocks/smartfile-interfaces": "^1.0.7",
"@push.rocks/smarthash": "^3.0.2",
"@push.rocks/smartjson": "^5.0.6",
"@push.rocks/smartjson": "^5.0.10",
"@push.rocks/smartmime": "^1.0.5",
"@push.rocks/smartpath": "^5.0.5",
"@push.rocks/smartpath": "^5.0.11",
"@push.rocks/smartpromise": "^4.0.2",
"@push.rocks/smartrequest": "^2.0.15",
"@push.rocks/smartstream": "^2.0.3",
"@push.rocks/smartrequest": "^2.0.18",
"@push.rocks/smartstream": "^2.0.4",
"@types/fs-extra": "^11.0.1",
"@types/glob": "^8.1.0",
"@types/js-yaml": "^4.0.5",
"fs-extra": "^11.1.1",
"glob": "^10.3.3",
"glob": "^10.3.4",
"js-yaml": "^4.1.0"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.66",
"@gitzone/tsrun": "^1.2.42",
"@gitzone/tstest": "^1.0.74",
"@pushrocks/tapbundle": "^5.0.8",
"@types/node": "^20.4.1"
"@git.zone/tsbuild": "^2.1.70",
"@git.zone/tsrun": "^1.2.46",
"@git.zone/tstest": "^1.0.80",
"@push.rocks/tapbundle": "^5.0.15",
"@types/node": "^20.5.7"
},
"files": [
"ts/**/*",

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
import * as smartfile from '../ts/index.js';
import * as path from 'path';
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@push.rocks/tapbundle';
// ---------------------------
// smartfile.fs

View File

@ -1,4 +1,4 @@
import { tap, expect } from '@pushrocks/tapbundle';
import { tap, expect } from '@push.rocks/tapbundle';
import * as smartfile from '../ts/index.js';

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartfile',
version: '10.0.30',
version: '10.0.31',
description: 'offers smart ways to work with files in nodejs'
}

View File

@ -255,12 +255,12 @@ export const fileTreeToObject = async (dirPathArg: string, miniMatchFilter: stri
return filePath;
}
})();
const fileContentString = toStringSync(readPath);
const fileBuffer = plugins.fs.readFileSync(readPath);
// push a read file as Smartfile
smartfileArray.push(
new Smartfile({
contentBuffer: Buffer.from(fileContentString),
contentBuffer: fileBuffer,
base: dirPath,
path: filePath,
})