Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filestack-js

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filestack-js - npm Package Compare versions

Comparing version 3.30.0 to 3.30.1

4

build/browser/manifest.json
{
"main.js": {
"src": "filestack.min.js",
"integrity": "sha256-uM7Yg2JlCDnMjX6dUhjKvlFLVk1YGo03ASfcnKYq25I= sha384-F2dkpIW0Nrs3/OSV8LbJqNs5QguBqpPqC6/nVR8HWSN1lXBO2MtP/15c8+WWwFV6 sha512-oT/9DzXroMzPxC0MrWsfZv8RrWeyRb7alFKrsW7KiksOPdDo4+arEh1HfJ6GZ5D9R4RJIJevTXvX8PnWB7o9lw=="
"integrity": "sha256-rK3NTpFzkjxAa+0jv96GuZr5jErOEzIoB2CSNKlcKc0= sha384-bng6R2xTRSdv5F+WLgPyo5saJFgfiYYhZHrHTsDE4koAaKuL0WVAzgwLr3K/eper sha512-QVyMDwRu3rSGZsJrmZy8+gpqoI/wWNfNKqQaO9i7e/kEGAg6DvPRwdFgSvc6qqc2mTddsOTzMoXEBxdxmMu9+A=="
},
"main.js.map": {
"src": "filestack.min.js.map",
"integrity": "sha256-ygdY+x1G3NAPHGhlJ0sei3U3p43Q+KN02HhrNnsg+3Q= sha384-lNycAgfWKnibIpcTU1g3ZTRIUeojsZ4oKCdIZqO7pUi83lHsKiXE/B8YMilKd6Af sha512-ZaOfmX1i03xh25EjXogT36z+OEWSfE/hcmClw5vxTN23qtDtj6G1oKUEc/hcV4ofwQOBxaBXxRuPSD+BIcQI6w=="
"integrity": "sha256-RBwHLRUABTlpf6ICnl4CC8WUw+laaoVxV7mKHaB4Qbg= sha384-9IPF8kVj9vRAIhAPHA2URyFdTV1uH5Y1uOVJhgpVaZD8hGPKaurqM3dgFeARkHqq sha512-qqAOd9C7TnIRpP7U3M4RDVRPGT47x/o4BDddXxNLiePIgwKpxQrlggCsDJzyiM7SwhWh/aDKgmpoHoQ9pzUr+Q=="
}
}

@@ -23,3 +23,3 @@ "use strict";

*/
var PICKER_VERSION = '1.26.0';
var PICKER_VERSION = '1.26.1';
exports.config = {

@@ -36,2 +36,2 @@ urls: {

//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7R0FlRzs7O0FBRUg7O0dBRUc7QUFDSCxJQUFNLGNBQWMsR0FBRyxRQUFRLENBQUM7QUFzQm5CLFFBQUEsTUFBTSxHQUFHO0lBQ3BCLElBQUksRUFBRTtRQUNKLFVBQVUsRUFBRSxrQ0FBa0M7UUFDOUMsVUFBVSxFQUFFLHVDQUF1QztRQUNuRCxZQUFZLEVBQUUsaUNBQWlDO1FBQy9DLFdBQVcsRUFBRSxnQ0FBZ0M7UUFDN0MsTUFBTSxFQUFFLGtDQUFrQztRQUMxQyxTQUFTLEVBQUUsaURBQTBDLGNBQWMsZUFBWTtLQUNoRjtDQUNGLENBQUMiLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIENvcHlyaWdodCAoYykgMjAxOCBieSBGaWxlc3RhY2suXG4gKiBTb21lIHJpZ2h0cyByZXNlcnZlZC5cbiAqXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgQXBhY2hlIExpY2Vuc2UsIFZlcnNpb24gMi4wICh0aGUgXCJMaWNlbnNlXCIpO1xuICogeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLlxuICogWW91IG1heSBvYnRhaW4gYSBjb3B5IG9mIHRoZSBMaWNlbnNlIGF0XG4gKlxuICogICAgIGh0dHA6Ly93d3cuYXBhY2hlLm9yZy9saWNl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ybDogc3RyaW5nO1xufVxuXG4vKipcbiAqIEBwcml2YXRlXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgQ29uZmlnIHtcbiAgdXJsczogSG9zdHM7XG59XG5cbmV4cG9ydCBjb25zdCBjb25maWcgPSB7XG4gIHVybHM6IHtcbiAgICBwcm9jZXNzVXJsOiAnaHR0cHM6Ly9wcm9jZXNzLmZpbGVzdGFja2FwaS5jb20nLFxuICAgIGZpbGVBcGlVcmw6ICdodHRwczovL3d3dy5maWxlc3RhY2thcGkuY29tL2FwaS9maWxlJyxcbiAgICB1cGxvYWRBcGlVcmw6ICdodHRwczovL3VwbG9hZC5maWxlc3RhY2thcGkuY29tJyxcbiAgICBjbG91ZEFwaVVybDogJ2h0dHBzOi8vY2xvdWQuZmlsZXN0YWNrYXBpLmNvbScsXG4gICAgY2RuVXJsOiAnaHR0cHM6Ly9jZG4uZmlsZXN0YWNrY29udGVudC5jb20nLFxuICAgIHBpY2tlclVybDogYGh0dHBzOi8vc3RhdGljLmZpbGVzdGFja2FwaS5jb20vcGlja2VyLyR7UElDS0VSX1ZFUlNJT059L3BpY2tlci5qc2AsXG4gIH0sXG59O1xuIl19

@@ -26,3 +26,3 @@ import { SecurityOptions, getSecurity, validateWebhookSignature, WebhookValidatePayload } from './lib/api/security';

*/
export declare const version = "3.30.0";
export declare const version = "3.30.1";
export * from './lib/api/transform';

@@ -29,0 +29,0 @@ export * from './lib/filelink';

@@ -52,4 +52,4 @@ "use strict";

*/
exports.version = '3.30.0';
(0, loader_1.registerModule)(loader_1.FILESTACK_MODULES.FILESTACK_SDK, exports.Filestack, { version: '3.30.0' });
exports.version = '3.30.1';
(0, loader_1.registerModule)(loader_1.FILESTACK_MODULES.FILESTACK_SDK, exports.Filestack, { version: '3.30.1' });
tslib_1.__exportStar(require("./lib/api/transform"), exports);

@@ -56,0 +56,0 @@ tslib_1.__exportStar(require("./lib/filelink"), exports);

@@ -52,3 +52,3 @@ "use strict";

var getVersion = function () {
return 'JS-3.30.0';
return 'JS-3.30.1';
};

@@ -55,0 +55,0 @@ exports.getVersion = getVersion;

@@ -100,3 +100,3 @@ "use strict";

var getMimetype = function (file, name) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
var type, e_1, excludedMimetypes, mime_1;
var type, e_1, mime_1, excludedMimetypes;
return tslib_1.__generator(this, function (_a) {

@@ -115,6 +115,2 @@ switch (_a.label) {

case 3:
excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];
if (type && excludedMimetypes.indexOf(type.mime) === -1) {
return [2 /*return*/, type.mime];
}
if (name && name.indexOf('.') > -1) {

@@ -126,2 +122,6 @@ mime_1 = (0, exports.extensionToMime)(name);

}
excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];
if (type && excludedMimetypes.indexOf(type.mime) === -1) {
return [2 /*return*/, type.mime];
}
try {

@@ -247,2 +247,2 @@ if ((0, isutf8_1.default)(file)) {

//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7R0FlRzs7OztBQUlILDJDQUE2QztBQUM3Qyx1Q0FBdUM7QUFDdkMsMERBQTRCO0FBRTVCOzs7Ozs7R0FNRztBQUNJLElBQU0sYUFBYSxHQUFHLFVBQUMsT0FBZ0IsRUFBRSxNQUFjO0lBQzVELElBQU0sTUFBTSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDO0lBRW5DLElBQUksTUFBTSxJQUFJLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLElBQUksTUFBTSxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUMsRUF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AgIHJldHVybiB0b0ZpbHRlcjtcbiAgfVxuXG4gIGlmIChPYmplY3Qua2V5cyh0b0ZpbHRlcikubGVuZ3RoID09PSAwKSB7XG4gICAgcmV0dXJuIHRvRmlsdGVyO1xuICB9XG5cbiAgcmV0dXJuIE9iamVjdC5rZXlzKHRvRmlsdGVyKVxuICAgIC5maWx0ZXIoZiA9PiByZXF1aXJlZEZpZWxkcy5pbmRleE9mKGYpID4gLTEpXG4gICAgLnJlZHVjZSgob2JqLCBrZXkpID0+ICh7IC4uLm9iaiwgW2tleV06IHRvRmlsdGVyW2tleV0gfSksIHt9KTtcbn07XG5cbi8qKlxuICogRGVlcCBjbGVhbnVwIG9iamVjdCBmcm9tIGZ1bmN0aW9uc1xuICpcbiAqIEBwYXJhbSBvYmpcbiAqL1xuZXhwb3J0IGNvbnN0IGNsZWFuVXBDYWxsYmFja3MgPSAob2JqOiBhbnkpID0+IHtcbiAgaWYgKCFvYmogfHwgT2JqZWN0LmtleXMob2JqKS5sZW5ndGggPT09IDApIHtcbiAgICByZXR1cm4gb2JqO1xuICB9XG5cbiAgT2JqZWN0LmtleXMob2JqKS5mb3JFYWNoKGsgPT4ge1xuICAgIGlmICh0eXBlb2Ygb2JqW2tdID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICBvYmpba10gPSB1bmRlZmluZWQ7XG4gICAgfVxuXG4gICAgaWYgKG9ialtrXSA9PT0gT2JqZWN0KG9ialtrXSkpIHtcbiAgICAgIG9ialtrXSA9IGNsZWFuVXBDYWxsYmFja3Mob2JqW2tdKTtcbiAgICB9XG4gIH0pO1xuXG4gIHJldHVybiBvYmo7XG59O1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4Lm5vZGUnO1xuIl19

@@ -50,3 +50,3 @@ "use strict";

var getVersion = function () {
return 'JS-3.30.0';
return 'JS-3.30.1';
};

@@ -53,0 +53,0 @@ exports.getVersion = getVersion;

@@ -24,3 +24,3 @@ "use strict";

it('should return version string to replace', function () {
expect(utils.getVersion()).toEqual("JS-3.30.0");
expect(utils.getVersion()).toEqual("JS-3.30.1");
});

@@ -27,0 +27,0 @@ });

@@ -20,3 +20,3 @@ /*

*/
var PICKER_VERSION = '1.26.0';
var PICKER_VERSION = '1.26.1';
export var config = {

@@ -33,2 +33,2 @@ urls: {

//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7OztHQWVHO0FBRUg7O0dBRUc7QUFDSCxJQUFNLGNBQWMsR0FBRyxRQUFRLENBQUM7QUFzQmhDLE1BQU0sQ0FBQyxJQUFNLE1BQU0sR0FBRztJQUNwQixJQUFJLEVBQUU7UUFDSixVQUFVLEVBQUUsa0NBQWtDO1FBQzlDLFVBQVUsRUFBRSx1Q0FBdUM7UUFDbkQsWUFBWSxFQUFFLGlDQUFpQztRQUMvQyxXQUFXLEVBQUUsZ0NBQWdDO1FBQzdDLE1BQU0sRUFBRSxrQ0FBa0M7UUFDMUMsU0FBUyxFQUFFLGlEQUEwQyxjQUFjLGVBQVk7S0FDaEY7Q0FDRixDQUFDIiwiZmlsZSI6ImNvbmZpZy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBDb3B5cmlnaHQgKGMpIDIwMTggYnkgRmlsZXN0YWNrLlxuICogU29tZSByaWdodHMgcmVzZXJ2ZWQuXG4gKlxuICogTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTtcbiAqIHlvdSBtYXkgbm90IHVzZSB0aGlzIGZpbGUgZXhjZXB0IGluIGNvbXBsaWFuY2Ugd2l0aCB0aGUgTGljZW5zZS5cbiAqIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdFxuICpcbiAqICAgICBod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gcGlja2VyVXJsOiBzdHJpbmc7XG4gIHByb2Nlc3NVcmw6IHN0cmluZztcbn1cblxuLyoqXG4gKiBAcHJpdmF0ZVxuICovXG5leHBvcnQgaW50ZXJmYWNlIENvbmZpZyB7XG4gIHVybHM6IEhvc3RzO1xufVxuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICB1cmxzOiB7XG4gICAgcHJvY2Vzc1VybDogJ2h0dHBzOi8vcHJvY2Vzcy5maWxlc3RhY2thcGkuY29tJyxcbiAgICBmaWxlQXBpVXJsOiAnaHR0cHM6Ly93d3cuZmlsZXN0YWNrYXBpLmNvbS9hcGkvZmlsZScsXG4gICAgdXBsb2FkQXBpVXJsOiAnaHR0cHM6Ly91cGxvYWQuZmlsZXN0YWNrYXBpLmNvbScsXG4gICAgY2xvdWRBcGlVcmw6ICdodHRwczovL2Nsb3VkLmZpbGVzdGFja2FwaS5jb20nLFxuICAgIGNkblVybDogJ2h0dHBzOi8vY2RuLmZpbGVzdGFja2NvbnRlbnQuY29tJyxcbiAgICBwaWNrZXJVcmw6IGBodHRwczovL3N0YXRpYy5maWxlc3RhY2thcGkuY29tL3BpY2tlci8ke1BJQ0tFUl9WRVJTSU9OfS9waWNrZXIuanNgLFxuICB9LFxufTtcbiJdfQ==

@@ -26,3 +26,3 @@ import { SecurityOptions, getSecurity, validateWebhookSignature, WebhookValidatePayload } from './lib/api/security';

*/
export declare const version = "3.30.0";
export declare const version = "3.30.1";
export * from './lib/api/transform';

@@ -29,0 +29,0 @@ export * from './lib/filelink';

@@ -39,4 +39,4 @@ /*

*/
export var version = '3.30.0';
registerModule(FILESTACK_MODULES.FILESTACK_SDK, Filestack, { version: '3.30.0' });
export var version = '3.30.1';
registerModule(FILESTACK_MODULES.FILESTACK_SDK, Filestack, { version: '3.30.1' });
export * from './lib/api/transform';

@@ -43,0 +43,0 @@ export * from './lib/filelink';

@@ -46,3 +46,3 @@ /*

export var getVersion = function () {
return 'JS-3.30.0';
return 'JS-3.30.1';
};

@@ -49,0 +49,0 @@ /**

@@ -92,3 +92,3 @@ /*

export var getMimetype = function (file, name) { return __awaiter(void 0, void 0, void 0, function () {
var type, e_1, excludedMimetypes, mime_1;
var type, e_1, mime_1, excludedMimetypes;
return __generator(this, function (_a) {

@@ -107,6 +107,2 @@ switch (_a.label) {

case 3:
excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];
if (type && excludedMimetypes.indexOf(type.mime) === -1) {
return [2 /*return*/, type.mime];
}
if (name && name.indexOf('.') > -1) {

@@ -118,2 +114,6 @@ mime_1 = extensionToMime(name);

}
excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];
if (type && excludedMimetypes.indexOf(type.mime) === -1) {
return [2 /*return*/, type.mime];
}
try {

@@ -234,2 +234,2 @@ if (isutf8(file)) {

//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvdXRpbHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7OztHQWVHOztBQUlILE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxjQUFjLENBQUM7QUFDN0MsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUN2QyxPQUFPLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFFNUI7Ozs7OztHQU1HO0FBQ0gsTUFBTSxDQUFDLElBQU0sYUFBYSxHQUFHLFVBQUMsT0FBZ0IsRUFBRSxNQUFjO0lBQzVELElBQU0sTUFBTSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDO0lBRW5DLElBQUksTUFBTSxJQUFJLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLElBQUksTUFBTSxDQUFDLE9B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PiAoeyAuLi5vYmosIFtrZXldOiB0b0ZpbHRlcltrZXldIH0pLCB7fSk7XG59O1xuXG4vKipcbiAqIERlZXAgY2xlYW51cCBvYmplY3QgZnJvbSBmdW5jdGlvbnNcbiAqXG4gKiBAcGFyYW0gb2JqXG4gKi9cbmV4cG9ydCBjb25zdCBjbGVhblVwQ2FsbGJhY2tzID0gKG9iajogYW55KSA9PiB7XG4gIGlmICghb2JqIHx8IE9iamVjdC5rZXlzKG9iaikubGVuZ3RoID09PSAwKSB7XG4gICAgcmV0dXJuIG9iajtcbiAgfVxuXG4gIE9iamVjdC5rZXlzKG9iaikuZm9yRWFjaChrID0+IHtcbiAgICBpZiAodHlwZW9mIG9ialtrXSA9PT0gJ2Z1bmN0aW9uJykge1xuICAgICAgb2JqW2tdID0gdW5kZWZpbmVkO1xuICAgIH1cblxuICAgIGlmIChvYmpba10gPT09IE9iamVjdChvYmpba10pKSB7XG4gICAgICBvYmpba10gPSBjbGVhblVwQ2FsbGJhY2tzKG9ialtrXSk7XG4gICAgfVxuICB9KTtcblxuICByZXR1cm4gb2JqO1xufTtcblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleC5ub2RlJztcbiJdfQ==

@@ -45,3 +45,3 @@ /*

export var getVersion = function () {
return 'JS-3.30.0';
return 'JS-3.30.1';
};

@@ -48,0 +48,0 @@ /**

@@ -21,3 +21,3 @@ /*

it('should return version string to replace', function () {
expect(utils.getVersion()).toEqual("JS-3.30.0");
expect(utils.getVersion()).toEqual("JS-3.30.1");
});

@@ -24,0 +24,0 @@ });

@@ -5,2 +5,7 @@ # Changelog

## [3.30.1](https://github.com/filestack/filestack-js/compare/v3.30.0...v3.30.1) (2024-02-07)
### Updgrade
* **picker:** Upgraded picker to v1.26.1.
## [3.30.0](https://github.com/filestack/filestack-js/compare/v3.29.0...v3.30.0) (2024-01-18)

@@ -7,0 +12,0 @@

{
"name": "filestack-js",
"version": "3.30.0",
"version": "3.30.1",
"description": "Official JavaScript library for Filestack",

@@ -5,0 +5,0 @@ "main": "build/main/index.js",

@@ -21,3 +21,3 @@ /*

*/
const PICKER_VERSION = '1.26.0';
const PICKER_VERSION = '1.26.1';

@@ -24,0 +24,0 @@ /**

@@ -111,8 +111,2 @@ /*

}
const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];
if (type && excludedMimetypes.indexOf(type.mime) === -1) {
return type.mime;
}
if (name && name.indexOf('.') > -1) {

@@ -125,3 +119,8 @@ const mime = extensionToMime(name);

}
const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];
if (type && excludedMimetypes.indexOf(type.mime) === -1) {
return type.mime;
}
try {

@@ -128,0 +127,0 @@ if (isutf8(file)) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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