diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 1dd09df..d7a4a4b 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartfile', - version: '11.0.3', + version: '11.0.4', description: 'offers smart ways to work with files in nodejs' } diff --git a/ts/classes.smartfile.ts b/ts/classes.smartfile.ts index b53ffba..abdf3a7 100644 --- a/ts/classes.smartfile.ts +++ b/ts/classes.smartfile.ts @@ -91,7 +91,7 @@ export class SmartFile extends plugins.smartjson.Smartjson { }); } - public async fromUrl (urlArg: string) { + public static async fromUrl (urlArg: string) { const response = await plugins.smartrequest.getBinary(urlArg); const smartfile = await SmartFile.fromBuffer(urlArg, response.body); return smartfile;