filestack-js
Advanced tools
Comparing version 3.13.0 to 3.13.1
@@ -25,3 +25,3 @@ import { SecurityOptions, getSecurity, validateWebhookSignature, WebhookValidatePayload } from './lib/api/security'; | ||
*/ | ||
export declare const version = "3.13.0"; | ||
export declare const version = "3.13.1"; | ||
export * from './lib/api/transform'; | ||
@@ -28,0 +28,0 @@ export * from './lib/filelink'; |
@@ -50,4 +50,4 @@ "use strict"; | ||
*/ | ||
exports.version = '3.13.0'; | ||
loader_1.registerModule(loader_1.FILESTACK_MODULES.FILESTACK_SDK, exports.Filestack, { version: '3.13.0' }); | ||
exports.version = '3.13.1'; | ||
loader_1.registerModule(loader_1.FILESTACK_MODULES.FILESTACK_SDK, exports.Filestack, { version: '3.13.1' }); | ||
tslib_1.__exportStar(require("./lib/api/transform"), exports); | ||
@@ -54,0 +54,0 @@ tslib_1.__exportStar(require("./lib/filelink"), exports); |
@@ -5,3 +5,2 @@ import { Session, Client } from './../client'; | ||
inapp_browser?: boolean; | ||
customsource?: boolean; | ||
}; | ||
@@ -8,0 +7,0 @@ export declare type PrefetchPermissions = { |
@@ -62,2 +62,11 @@ "use strict"; | ||
} | ||
// we should always ask for this setting for picker | ||
if (!settings) { | ||
settings = ['inapp_browser']; | ||
} | ||
else { | ||
settings = settings.concat(['inapp_browser']); | ||
// make arrray unique | ||
settings = settings.filter(function (v, i, a) { return settings.indexOf(v) === i; }); | ||
} | ||
if (pickerOptions && Object.keys(pickerOptions).length) { | ||
@@ -114,2 +123,2 @@ pickerOptionsToSend = utils_1.cleanUpCallbacks(tslib_1.__assign({}, pickerOptions)); | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvYXBpL3ByZWZldGNoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7OztBQUVILDZCQUE2QjtBQUM3QiwyREFBeUQ7QUFD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GE7XG4gICAgfSk7XG4gIH1cblxuICAvKipcbiAgICogUmVhc3NpZ24gY2FsbGJhY2tzIGZyb20gb2xkIHBpY2tlciBjb25maWd1cmF0aW9uXG4gICAqXG4gICAqIEBwYXJhbSBvYmpPbGRcbiAgICogQHBhcmFtIG9ialRhcmdldFxuICAgKi9cbiAgcHJpdmF0ZSByZWFzc2lnbkNhbGxiYWNrcyhvYmpPbGQsIG9ialRhcmdldCkge1xuICAgIGlmICghb2JqT2xkIHx8IE9iamVjdC5rZXlzKG9iak9sZCkubGVuZ3RoID09PSAwKSB7XG4gICAgICByZXR1cm4gb2JqT2xkO1xuICAgIH1cblxuICAgIGZvciAoY29uc3QgayBpbiBvYmpPbGQpIHtcbiAgICAgIGlmICh0eXBlb2Ygb2JqT2xkW2tdID09PSAnZnVuY3Rpb24nKSB7XG4gICAgICAgIG9ialRhcmdldFtrXSA9IG9iak9sZFtrXTtcbiAgICAgIH1cblxuICAgICAgaWYgKG9iak9sZFtrXSA9PT0gT2JqZWN0KG9iak9sZFtrXSkpIHtcbiAgICAgICAgb2JqVGFyZ2V0W2tdID0gdGhpcy5yZWFzc2lnbkNhbGxiYWNrcyhvYmpPbGRba10sIG9ialRhcmdldFtrXSk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIG9ialRhcmdldDtcbiAgfVxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvYXBpL3ByZWZldGNoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7OztBQUVILDZCQUE2QjtBQUM3QiwyREFBeUQ7QUFDekQsc0NBQXdEO0FBRXhELHNDQUF1QztBQUN2QyxvQ0FBOEM7QUFnQjlDLElBQVksY0FHWDtBQUhELFdBQVksY0FBYztJQUN4QixtQ0FBaUIsQ0FBQTtJQUNqQiw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Z1bmN0aW9uJykge1xuICAgICAgICBvYmpUYXJnZXRba10gPSBvYmpPbGRba107XG4gICAgICB9XG5cbiAgICAgIGlmIChvYmpPbGRba10gPT09IE9iamVjdChvYmpPbGRba10pKSB7XG4gICAgICAgIG9ialRhcmdldFtrXSA9IHRoaXMucmVhc3NpZ25DYWxsYmFja3Mob2JqT2xkW2tdLCBvYmpUYXJnZXRba10pO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBvYmpUYXJnZXQ7XG4gIH1cbn1cbiJdfQ== |
@@ -167,2 +167,3 @@ "use strict"; | ||
apikey: testApiKey, | ||
settings: ['inapp_browser'], | ||
security: { | ||
@@ -178,2 +179,42 @@ signature: testSecurity.signature, | ||
}); }); | ||
it('should always add inapp browser setting to request', function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () { | ||
var mockPref, prefetch; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
mockPref = jest.fn().mockImplementation(function () { return ({}); }); | ||
scope.post('/prefetch').once().reply(200, function (_, data) { return mockPref(data); }); | ||
prefetch = new prefetch_1.Prefetch(tslib_1.__assign({}, testSession)); | ||
return [4 /*yield*/, prefetch.getConfig({})]; | ||
case 1: | ||
_a.sent(); | ||
expect(mockPref).toHaveBeenCalledWith({ | ||
apikey: testApiKey, | ||
settings: ['inapp_browser'], | ||
}); | ||
scope.done(); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); }); | ||
it('should always add inapp browser setting to request event if some settings are provided', function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () { | ||
var mockPref, prefetch; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
mockPref = jest.fn().mockImplementation(function () { return ({}); }); | ||
scope.post('/prefetch').once().reply(200, function (_, data) { return mockPref(data); }); | ||
prefetch = new prefetch_1.Prefetch(tslib_1.__assign({}, testSession)); | ||
return [4 /*yield*/, prefetch.getConfig({ settings: ['inapp_browser'] })]; | ||
case 1: | ||
_a.sent(); | ||
expect(mockPref).toHaveBeenCalledWith({ | ||
apikey: testApiKey, | ||
settings: ['inapp_browser'], | ||
}); | ||
scope.done(); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); }); | ||
it('should return old config when updated_config is missing in response', function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () { | ||
@@ -234,2 +275,3 @@ var sessionCopy, pickerOptions, prefetch, res; | ||
events: [prefetch_1.PrefetchEvents.PICKER], | ||
settings: ['inapp_browser'], | ||
picker_config: { | ||
@@ -250,2 +292,2 @@ uploadInBackground: true, | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvYXBpL3ByZWZldGNoLnNwZWMuYnJvd3Nlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7Ozs7OztHQWVHOzs7QUFFSCwyQ0FBMkM7QUFDM0MsMkJBQTZCO0FBQzdCLHVDQUFzRDtBQUV0RCxzQ0FBZ0Q7QUFFaEQsSUFBTSxVQUFVLEdBQUcsd0JBQXdCLENBQUM7QUFDNUMsSUFBTSxZQUFZLEdBQWE7SUFDN0IsTUFBTSxFQUFFLGVBQWU7SUFDdkIsU0FBUyxFQUFFLGtCQUFrQjtDQUM5QixDQUFDO0FBRUYsSUFBTSxPQUFPLEdBQUc7SUFDZCxVQUFVLEVBQUUsRUFBRTtJQUNkLFlBQVksRUFBRSw4QkFBOEI7SUFDNUMsV0FBVyxFQUFFLEVBQUU7SUFDZixNQUFNLEVBQUUsRUFBRTtJQUNWLFNBQVMsRUFBRSxFQUFFO0NBQ2QsQ0FBQztBQUVGLElBQU0sV0FBVyxHQUFZO0lBQzNCLE1BQU0sRUFBRSxVQUFVO0lBQ2xCLElBQUksRUFBRSxPQUFPO0NBQ2QsQ0FBQztBQUVGLElBQUksS0FBSyxHQUFHLElBQUksQ0FBQyxPQUFPL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WVuQ2FsbGVkV2l0aCh7XG4gICAgICBhcGlrZXk6IHRlc3RBcGlLZXksXG4gICAgICBldmVudHM6IFtQcmVmZXRjaEV2ZW50cy5QSUNLRVJdLFxuICAgICAgc2V0dGluZ3M6IFsnaW5hcHBfYnJvd3NlciddLFxuICAgICAgcGlja2VyX2NvbmZpZzoge1xuICAgICAgICB1cGxvYWRJbkJhY2tncm91bmQ6IHRydWUsXG4gICAgICB9LFxuICAgIH0pO1xuXG4gICAgZXhwZWN0KG1vY2tQcmVmKS50b0hhdmVCZWVuQ2FsbGVkV2l0aCh7XG4gICAgICBhcGlrZXk6IHRlc3RBcGlLZXksXG4gICAgICBldmVudHM6IFtQcmVmZXRjaEV2ZW50cy5QSUNLRVJdLFxuICAgIH0pO1xuXG4gICAgc2NvcGUuZG9uZSgpO1xuICB9KTtcbn0pO1xuIl19 |
@@ -143,3 +143,3 @@ import { Session } from '../client'; | ||
filename?: string; | ||
localion?: string; | ||
location?: string; | ||
path?: string; | ||
@@ -146,0 +146,0 @@ container?: string; |
@@ -233,2 +233,2 @@ "use strict"; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvYXBpL3RyYW5zZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7Ozs7OztHQWVHOztBQUdILDBDQUF5QztBQUV6Qzs7R0FFRztBQUNILElBQU0sV0FBVyxHQUFHLFVBQUMsUUFBa0M7SUFDckQsSUFBSSxVQUFVLEdBQTZCLEVBQUUsQ0FBQztJQUU5QyxJQUFNLElBQUksR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBRW5DLEtBQUssSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxJQUFJLENBQUMsTUFBTSxFQUFFLENBQUMsRUFBRSxFQUFFO1FBQ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NjQ6IGJvb2xlYW4gPSBmYWxzZSk6IHN0cmluZyA9PiB7XG4gIG9wdGlvbnMgPSB0b1NuYWtlQ2FzZShvcHRpb25zKTtcblxuICBpZiAoc2Vzc2lvbi5wb2xpY3kgJiYgc2Vzc2lvbi5zaWduYXR1cmUpIHtcbiAgICBvcHRpb25zLnNlY3VyaXR5ID0ge1xuICAgICAgcG9saWN5OiBzZXNzaW9uLnBvbGljeSxcbiAgICAgIHNpZ25hdHVyZTogc2Vzc2lvbi5zaWduYXR1cmUsXG4gICAgfTtcbiAgfVxuXG4gIGNvbnN0IGZpbGVsaW5rID0gbmV3IEZpbGVsaW5rKHVybCwgc2Vzc2lvbi5hcGlrZXkpO1xuICBmaWxlbGluay5zZXRDbmFtZShzZXNzaW9uLmNuYW1lKTtcbiAgZmlsZWxpbmsuc2V0QmFzZTY0KGI2NCk7XG5cbiAgT2JqZWN0LmtleXMob3B0aW9ucykuZm9yRWFjaCgoa2V5OiBrZXlvZiBUcmFuc2Zvcm1PcHRpb25zKSA9PiB7XG4gICAgaWYgKHR5cGVvZiBvcHRpb25zW2tleV0gPT09ICdib29sZWFuJyAmJiAhb3B0aW9uc1trZXldICYmIGtleSAhPT0gJ2NhY2hlJykge1xuICAgICAgcmV0dXJuO1xuICAgIH1cblxuICAgIGZpbGVsaW5rLmFkZFRhc2soa2V5LCBvcHRpb25zW2tleV0pO1xuICB9KTtcblxuICByZXR1cm4gZmlsZWxpbmsudG9TdHJpbmcoKTtcbn07XG4iXX0= |
@@ -48,3 +48,3 @@ "use strict"; | ||
exports.getVersion = function () { | ||
return 'JS-3.13.0'; | ||
return 'JS-3.13.1'; | ||
}; | ||
@@ -51,0 +51,0 @@ /** |
@@ -23,3 +23,3 @@ "use strict"; | ||
it('should return version string to replace', function () { | ||
expect(utils.getVersion()).toEqual("JS-3.13.0"); | ||
expect(utils.getVersion()).toEqual("JS-3.13.1"); | ||
}); | ||
@@ -26,0 +26,0 @@ }); |
@@ -25,3 +25,3 @@ import { SecurityOptions, getSecurity, validateWebhookSignature, WebhookValidatePayload } from './lib/api/security'; | ||
*/ | ||
export declare const version = "3.13.0"; | ||
export declare const version = "3.13.1"; | ||
export * from './lib/api/transform'; | ||
@@ -28,0 +28,0 @@ export * from './lib/filelink'; |
@@ -39,4 +39,4 @@ /* | ||
*/ | ||
export var version = '3.13.0'; | ||
registerModule(FILESTACK_MODULES.FILESTACK_SDK, Filestack, { version: '3.13.0' }); | ||
export var version = '3.13.1'; | ||
registerModule(FILESTACK_MODULES.FILESTACK_SDK, Filestack, { version: '3.13.1' }); | ||
export * from './lib/api/transform'; | ||
@@ -43,0 +43,0 @@ export * from './lib/filelink'; |
@@ -5,3 +5,2 @@ import { Session, Client } from './../client'; | ||
inapp_browser?: boolean; | ||
customsource?: boolean; | ||
}; | ||
@@ -8,0 +7,0 @@ export declare type PrefetchPermissions = { |
@@ -60,2 +60,11 @@ /* | ||
} | ||
// we should always ask for this setting for picker | ||
if (!settings) { | ||
settings = ['inapp_browser']; | ||
} | ||
else { | ||
settings = settings.concat(['inapp_browser']); | ||
// make arrray unique | ||
settings = settings.filter(function (v, i, a) { return settings.indexOf(v) === i; }); | ||
} | ||
if (pickerOptions && Object.keys(pickerOptions).length) { | ||
@@ -112,2 +121,2 @@ pickerOptionsToSend = cleanUpCallbacks(__assign({}, pickerOptions)); | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvYXBpL3ByZWZldGNoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7R0FlRzs7QUFFSCw2QkFBNkI7QUFDN0IsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBQ3pELE9BQU8sRUFBcUIsTUFBTSxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBRXhELE9BQU8sRUFBRSxTQUFTLEVBQUUsTU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ZW5ndGggPT09IDApIHtcbiAgICAgIHJldHVybiBvYmpPbGQ7XG4gICAgfVxuXG4gICAgZm9yIChjb25zdCBrIGluIG9iak9sZCkge1xuICAgICAgaWYgKHR5cGVvZiBvYmpPbGRba10gPT09ICdmdW5jdGlvbicpIHtcbiAgICAgICAgb2JqVGFyZ2V0W2tdID0gb2JqT2xkW2tdO1xuICAgICAgfVxuXG4gICAgICBpZiAob2JqT2xkW2tdID09PSBPYmplY3Qob2JqT2xkW2tdKSkge1xuICAgICAgICBvYmpUYXJnZXRba10gPSB0aGlzLnJlYXNzaWduQ2FsbGJhY2tzKG9iak9sZFtrXSwgb2JqVGFyZ2V0W2tdKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gb2JqVGFyZ2V0O1xuICB9XG59XG4iXX0= |
@@ -165,2 +165,3 @@ /* | ||
apikey: testApiKey, | ||
settings: ['inapp_browser'], | ||
security: { | ||
@@ -176,2 +177,42 @@ signature: testSecurity.signature, | ||
}); }); | ||
it('should always add inapp browser setting to request', function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var mockPref, prefetch; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
mockPref = jest.fn().mockImplementation(function () { return ({}); }); | ||
scope.post('/prefetch').once().reply(200, function (_, data) { return mockPref(data); }); | ||
prefetch = new Prefetch(__assign({}, testSession)); | ||
return [4 /*yield*/, prefetch.getConfig({})]; | ||
case 1: | ||
_a.sent(); | ||
expect(mockPref).toHaveBeenCalledWith({ | ||
apikey: testApiKey, | ||
settings: ['inapp_browser'], | ||
}); | ||
scope.done(); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); }); | ||
it('should always add inapp browser setting to request event if some settings are provided', function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var mockPref, prefetch; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
mockPref = jest.fn().mockImplementation(function () { return ({}); }); | ||
scope.post('/prefetch').once().reply(200, function (_, data) { return mockPref(data); }); | ||
prefetch = new Prefetch(__assign({}, testSession)); | ||
return [4 /*yield*/, prefetch.getConfig({ settings: ['inapp_browser'] })]; | ||
case 1: | ||
_a.sent(); | ||
expect(mockPref).toHaveBeenCalledWith({ | ||
apikey: testApiKey, | ||
settings: ['inapp_browser'], | ||
}); | ||
scope.done(); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); }); | ||
it('should return old config when updated_config is missing in response', function () { return __awaiter(void 0, void 0, void 0, function () { | ||
@@ -232,2 +273,3 @@ var sessionCopy, pickerOptions, prefetch, res; | ||
events: [PrefetchEvents.PICKER], | ||
settings: ['inapp_browser'], | ||
picker_config: { | ||
@@ -248,2 +290,2 @@ uploadInBackground: true, | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvYXBpL3ByZWZldGNoLnNwZWMuYnJvd3Nlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7O0FBRUgsMkNBQTJDO0FBQzNDLE9BQU8sS0FBSyxJQUFJLE1BQU0sTUFBTSxDQUFDO0FBQzdCLE9BQU8sRUFBRSxRQUFRLEVBQUUsY0FBYyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRXRELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUVoRCxJQUFNLFVBQVUsR0FBRyx3QkFBd0IsQ0FBQztBQUM1QyxJQUFNLFlBQVksR0FBYTtJQUM3QixNQUFNLEVBQUUsZUFBZTtJQUN2QixTQUFTLEVBQUUsa0JBQWtCO0NBQzlCLENBQUM7QUFFRixJQUFNLE9BQU8sR0FBRztJQUNkLFVBQVUsRUFBRSxFQUFFO0lBQ2QsWUFBWSxFQUFFLDhCQUE4QjtJQUM1QyxXQUFXLEVBQUUsRUFBRTtJQUNmLE1BQU0sRUFBRS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gICAgLy8gYWRkIG9uZSBtb3JlIG9wdGlvbnMgcmVxdWVzdCBmb3Igc2Vjb25kIHJlcXVlc3RcbiAgICBzY29wZVxuICAgIC5vcHRpb25zKC8uKi8pXG4gICAgLnJlcGx5KDIwNCk7XG5cbiAgICBhd2FpdCBwcmVmZXRjaC5nZXRDb25maWcodG9TZW5kKTtcblxuICAgIGV4cGVjdChtb2NrUHJlZikudG9IYXZlQmVlbkNhbGxlZFRpbWVzKDIpO1xuICAgIGV4cGVjdChtb2NrUHJlZikudG9IYXZlQmVlbkNhbGxlZFdpdGgoe1xuICAgICAgYXBpa2V5OiB0ZXN0QXBpS2V5LFxuICAgICAgZXZlbnRzOiBbUHJlZmV0Y2hFdmVudHMuUElDS0VSXSxcbiAgICAgIHNldHRpbmdzOiBbJ2luYXBwX2Jyb3dzZXInXSxcbiAgICAgIHBpY2tlcl9jb25maWc6IHtcbiAgICAgICAgdXBsb2FkSW5CYWNrZ3JvdW5kOiB0cnVlLFxuICAgICAgfSxcbiAgICB9KTtcblxuICAgIGV4cGVjdChtb2NrUHJlZikudG9IYXZlQmVlbkNhbGxlZFdpdGgoe1xuICAgICAgYXBpa2V5OiB0ZXN0QXBpS2V5LFxuICAgICAgZXZlbnRzOiBbUHJlZmV0Y2hFdmVudHMuUElDS0VSXSxcbiAgICB9KTtcblxuICAgIHNjb3BlLmRvbmUoKTtcbiAgfSk7XG59KTtcbiJdfQ== |
@@ -143,3 +143,3 @@ import { Session } from '../client'; | ||
filename?: string; | ||
localion?: string; | ||
location?: string; | ||
path?: string; | ||
@@ -146,0 +146,0 @@ container?: string; |
@@ -231,2 +231,2 @@ /* | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvYXBpL3RyYW5zZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7QUFHSCx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YXNrKGtleSwgb3B0aW9uc1trZXldKTtcbiAgfSk7XG5cbiAgcmV0dXJuIGZpbGVsaW5rLnRvU3RyaW5nKCk7XG59O1xuIl19 |
@@ -46,3 +46,3 @@ /* | ||
export var getVersion = function () { | ||
return 'JS-3.13.0'; | ||
return 'JS-3.13.1'; | ||
}; | ||
@@ -49,0 +49,0 @@ /** |
@@ -21,3 +21,3 @@ /* | ||
it('should return version string to replace', function () { | ||
expect(utils.getVersion()).toEqual("JS-3.13.0"); | ||
expect(utils.getVersion()).toEqual("JS-3.13.1"); | ||
}); | ||
@@ -24,0 +24,0 @@ }); |
@@ -5,2 +5,9 @@ # Changelog | ||
### [3.13.1](https://github.com/filestack/filestack-js/compare/v3.13.0...v3.13.1) (2020-04-07) | ||
### Bug Fixes | ||
* **prefetch:** always ask for inapp_browser setting ([61764f7](https://github.com/filestack/filestack-js/commit/61764f794c75a582dcd21c143f76581221ec76ac)) | ||
## [3.13.0](https://github.com/filestack/filestack-js/compare/v3.12.4...v3.13.0) (2020-04-01) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "filestack-js", | ||
"version": "3.13.0", | ||
"version": "3.13.1", | ||
"description": "Official JavaScript library for Filestack", | ||
@@ -26,3 +26,3 @@ "main": "build/main/index.js", | ||
"lint": "tslint -p tsconfig.tslint.json", | ||
"test": "npm run lint && npm run build && jest", | ||
"test": "npm run lint && npm run build && npx jest", | ||
"test:watch": "npm t -- --watch", | ||
@@ -29,0 +29,0 @@ "test:codecov": "npx codecov", |
@@ -161,2 +161,3 @@ /* | ||
apikey: testApiKey, | ||
settings: ['inapp_browser'], | ||
security: { | ||
@@ -171,2 +172,32 @@ signature: testSecurity.signature, | ||
it('should always add inapp browser setting to request', async () => { | ||
const mockPref = jest.fn() .mockImplementation(() => ({})); | ||
scope.post('/prefetch').once().reply(200, (_, data) => mockPref(data)); | ||
const prefetch = new Prefetch({ ...testSession }); | ||
await prefetch.getConfig({}); | ||
expect(mockPref).toHaveBeenCalledWith({ | ||
apikey: testApiKey, | ||
settings: ['inapp_browser'], | ||
}); | ||
scope.done(); | ||
}); | ||
it('should always add inapp browser setting to request event if some settings are provided', async () => { | ||
const mockPref = jest.fn() .mockImplementation(() => ({})); | ||
scope.post('/prefetch').once().reply(200, (_, data) => mockPref(data)); | ||
const prefetch = new Prefetch({ ...testSession }); | ||
await prefetch.getConfig({ settings: ['inapp_browser'] }); | ||
expect(mockPref).toHaveBeenCalledWith({ | ||
apikey: testApiKey, | ||
settings: ['inapp_browser'], | ||
}); | ||
scope.done(); | ||
}); | ||
it('should return old config when updated_config is missing in response', async () => { | ||
@@ -226,2 +257,3 @@ const sessionCopy = { | ||
events: [PrefetchEvents.PICKER], | ||
settings: ['inapp_browser'], | ||
picker_config: { | ||
@@ -228,0 +260,0 @@ uploadInBackground: true, |
@@ -29,3 +29,2 @@ /* | ||
inapp_browser?: boolean; | ||
customsource?: boolean; | ||
}; | ||
@@ -102,2 +101,11 @@ | ||
// we should always ask for this setting for picker | ||
if (!settings) { | ||
settings = ['inapp_browser']; | ||
} else { | ||
settings = settings.concat(['inapp_browser']); | ||
// make arrray unique | ||
settings = settings.filter((v, i, a) => settings.indexOf(v) === i); | ||
} | ||
let pickerOptionsToSend; | ||
@@ -104,0 +112,0 @@ if (pickerOptions && Object.keys(pickerOptions).length) { |
@@ -199,3 +199,3 @@ /* | ||
filename?: string, | ||
localion?: string, | ||
location?: string, | ||
path?: string, | ||
@@ -202,0 +202,0 @@ container?: string, |
@@ -44,2 +44,9 @@ /* | ||
it('should support workflows source', () => { | ||
const source = 'wf://975092d5-2eb3-460e-aca8-e7b00a0838d5/2ec47319-24c8-4ced-9ae3-10a6d450a736/1c04a766e53633f1256759f2d06a50a3'; | ||
expect(() => { | ||
const f = new Filelink(source); | ||
}).not.toThrow(); | ||
}); | ||
it('should throw an error when external handle and without apikey', () => { | ||
@@ -46,0 +53,0 @@ const source = 'src://test123/example.jpg'; |
@@ -24,3 +24,2 @@ /* | ||
import Debug from 'debug'; | ||
import { booleanLiteral } from '@babel/types'; | ||
@@ -475,3 +474,3 @@ const debug = Debug('fs:filelink'); | ||
const handleRegexp = /^[\w\-]{20}$/; | ||
const handleRegexp = /^[\w\-]{20}|wf:\/\/[\w\-\/]{106}$/; | ||
@@ -478,0 +477,0 @@ /** |
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 too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6185287
494
80160