fix(core): update

This commit is contained in:
Philipp Kunz 2023-11-03 02:31:57 +01:00
parent 853eccc780
commit b60fd15ec6
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -155,7 +155,7 @@ export class Smartfile extends plugins.smartjson.Smartjson {
* @param contentString
*/
public setContentsFromString(contentString: string, encodingArg: 'utf8' | 'binary' = 'utf8') {
this.contents = new Buffer(contentString, encodingArg);
this.contents = Buffer.from(contentString, encodingArg);
}
/**