Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
3ff6de201d | |||
f5c106b2ca |
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartfile",
|
"name": "@push.rocks/smartfile",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "11.0.3",
|
"version": "11.0.4",
|
||||||
"description": "offers smart ways to work with files in nodejs",
|
"description": "offers smart ways to work with files in nodejs",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
"typings": "dist_ts/index.d.ts",
|
"typings": "dist_ts/index.d.ts",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartfile',
|
name: '@push.rocks/smartfile',
|
||||||
version: '11.0.3',
|
version: '11.0.4',
|
||||||
description: 'offers smart ways to work with files in nodejs'
|
description: 'offers smart ways to work with files in nodejs'
|
||||||
}
|
}
|
||||||
|
@ -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 response = await plugins.smartrequest.getBinary(urlArg);
|
||||||
const smartfile = await SmartFile.fromBuffer(urlArg, response.body);
|
const smartfile = await SmartFile.fromBuffer(urlArg, response.body);
|
||||||
return smartfile;
|
return smartfile;
|
||||||
|
Reference in New Issue
Block a user