fix(core): update

This commit is contained in:
2023-01-09 15:34:05 +01:00
parent 0ca38c109e
commit b35a671fe9
5 changed files with 8 additions and 9 deletions

View File

@ -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'
}

View File

@ -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':