fix(core): update

This commit is contained in:
2023-11-24 19:15:41 +01:00
parent 3b05aab39b
commit 9935fe2d3c
5 changed files with 489 additions and 325 deletions

View File

@@ -91,6 +91,12 @@ export class SmartFile extends plugins.smartjson.Smartjson {
});
}
public async fromUrl (urlArg: string) {
const response = await plugins.smartrequest.getBinary(urlArg);
const smartfile = await SmartFile.fromBuffer(urlArg, response.body);
return smartfile;
}
// ========
// INSTANCE
// ========