New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@space-runners/ablo-ts-sdk

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@space-runners/ablo-ts-sdk - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

6

lib/services/background-removal/index.d.ts

@@ -12,8 +12,2 @@ import { AxiosInstance } from 'axios';

byUrl: (imageUrl: string) => Promise<IBackgroundRemovalResponse>;
/**
* Removes the background from an image file.
* @param imageFile - The image file to remove the background from.
* @returns
*/
byFile: (imageFile: string) => Promise<IBackgroundRemovalResponse>;
}

@@ -27,19 +27,4 @@ "use strict";

});
/**
* Removes the background from an image file.
* @param imageFile - The image file to remove the background from.
* @returns
*/
this.byFile = (imageFile) => __awaiter(this, void 0, void 0, function* () {
const { data } = yield this.axios.post('/background-removal/remove-background-by-image', {
imageFile,
}, {
headers: {
'Content-Type': 'multipart/form-data',
},
});
return { imageUrl: data.image, creditsRemaining: data.creditsRemaining };
});
}
}
exports.BackgroundRemoverService = BackgroundRemoverService;

6

lib/services/font-maker/index.js

@@ -31,7 +31,3 @@ "use strict";

}
const { data } = yield this.axios.post('/fontmaker', params, {
headers: {
'Content-Type': 'multipart/form-data',
},
});
const { data } = yield this.axios.post('/fontmaker', params);
return data;

@@ -38,0 +34,0 @@ });

@@ -31,7 +31,3 @@ "use strict";

}
const { data } = yield this.axios.post('/image-maker', params, {
headers: {
'Content-Type': 'multipart/form-data',
},
});
const { data } = yield this.axios.post('/image-maker', params);
return data;

@@ -38,0 +34,0 @@ });

@@ -14,11 +14,2 @@ import { AxiosInstance } from 'axios';

}>;
/**
* Upscales an image file to a specified scale.
* @param imageFile - The image file to be upscaled.
* @param scale - The scale factor for upscaling the image.
* @returns
*/
fromFile: (imageFile: File, scale: number) => Promise<{
imageUrl: string;
}>;
}

@@ -29,21 +29,4 @@ "use strict";

});
/**
* Upscales an image file to a specified scale.
* @param imageFile - The image file to be upscaled.
* @param scale - The scale factor for upscaling the image.
* @returns
*/
this.fromFile = (imageFile, scale) => __awaiter(this, void 0, void 0, function* () {
const { data } = yield this.axios.post('/upscale/file', {
image: imageFile,
scale,
}, {
headers: {
'Content-Type': 'multipart/form-data',
},
});
return { imageUrl: data.image };
});
}
}
exports.UpscaleService = UpscaleService;

2

package.json

@@ -6,3 +6,3 @@ {

},
"version": "1.0.7",
"version": "1.0.8",
"description": "A TypeScript SDK for Ablo Services",

@@ -9,0 +9,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc