@ngx-translate/http-loader
Advanced tools
Comparing version 4.0.0 to 5.0.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define('@ngx-translate/http-loader', ['exports'], factory) : | ||
(factory((global['ngx-translate'] = global['ngx-translate'] || {}, global['ngx-translate']['http-loader'] = {}))); | ||
(global = global || self, factory((global['ngx-translate'] = global['ngx-translate'] || {}, global['ngx-translate']['http-loader'] = {}))); | ||
}(this, (function (exports) { 'use strict'; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
var TranslateHttpLoader = /** @class */ (function () { | ||
function TranslateHttpLoader(http, prefix, suffix) { | ||
if (prefix === void 0) { | ||
prefix = "/assets/i18n/"; | ||
} | ||
if (suffix === void 0) { | ||
suffix = ".json"; | ||
} | ||
if (prefix === void 0) { prefix = "/assets/i18n/"; } | ||
if (suffix === void 0) { suffix = ".json"; } | ||
this.http = http; | ||
@@ -26,28 +18,8 @@ this.prefix = prefix; | ||
*/ | ||
/** | ||
* Gets the translations from the server | ||
* @param {?} lang | ||
* @return {?} | ||
*/ | ||
TranslateHttpLoader.prototype.getTranslation = /** | ||
* Gets the translations from the server | ||
* @param {?} lang | ||
* @return {?} | ||
*/ | ||
function (lang) { | ||
return this.http.get("" + this.prefix + lang + this.suffix); | ||
}; | ||
TranslateHttpLoader.prototype.getTranslation = function (lang) { | ||
return this.http.get("" + this.prefix + lang + this.suffix); | ||
}; | ||
return TranslateHttpLoader; | ||
}()); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
exports.TranslateHttpLoader = TranslateHttpLoader; | ||
@@ -58,3 +30,2 @@ | ||
}))); | ||
//# sourceMappingUR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FBd0I7O1lBQTFGLFNBQUksR0FBSixJQUFJLENBQVk7WUFBUyxXQUFNLEdBQU4sTUFBTSxDQUEwQjtZQUFTLFdBQU0sR0FBTixNQUFNLENBQWtCO1NBQUk7Ozs7Ozs7OztRQUszRyw0Q0FBYzs7Ozs7WUFBckIsVUFBc0IsSUFBWTtnQkFDaEMsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxLQUFHLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxHQUFHLElBQUksQ0FBQyxNQUFRLENBQUMsQ0FBQzthQUM3RDtRQUNILDBCQUFDO0lBQUQsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ== | ||
//# sourceMappingURL=ngx-translate-http-loader.umd.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define("@ngx-translate/http-loader",["exports"],e):e((t["ngx-translate"]=t["ngx-translate"]||{},t["ngx-translate"]["http-loader"]={}))}(this,function(t){"use strict";var e=function(){function t(t,e,n){void 0===e&&(e="/assets/i18n/"),void 0===n&&(n=".json"),this.http=t,this.prefix=e,this.suffix=n}return t.prototype.getTranslation=function(t){return this.http.get(""+this.prefix+t+this.suffix)},t}();t.TranslateHttpLoader=e,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define("@ngx-translate/http-loader",["exports"],e):e(((t=t||self)["ngx-translate"]=t["ngx-translate"]||{},t["ngx-translate"]["http-loader"]={}))}(this,(function(t){"use strict";var e=function(){function t(t,e,n){void 0===e&&(e="/assets/i18n/"),void 0===n&&(n=".json"),this.http=t,this.prefix=e,this.suffix=n}return t.prototype.getTranslation=function(t){return this.http.get(""+this.prefix+t+this.suffix)},t}();t.TranslateHttpLoader=e,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-translate-http-loader.umd.min.js.map |
@@ -1,11 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
export class TranslateHttpLoader { | ||
/** | ||
* @param {?} http | ||
* @param {?=} prefix | ||
* @param {?=} suffix | ||
*/ | ||
constructor(http, prefix = "/assets/i18n/", suffix = ".json") { | ||
@@ -18,4 +9,2 @@ this.http = http; | ||
* Gets the translations from the server | ||
* @param {?} lang | ||
* @return {?} | ||
*/ | ||
@@ -26,10 +15,2 @@ getTranslation(lang) { | ||
} | ||
if (false) { | ||
/** @type {?} */ | ||
TranslateHttpLoader.prototype.http; | ||
/** @type {?} */ | ||
TranslateHttpLoader.prototype.prefix; | ||
/** @type {?} */ | ||
TranslateHttpLoader.prototype.suffix; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cC1sb2FkZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LXRyYW5zbGF0ZS9odHRwLWxvYWRlci8iLCJzb3VyY2VzIjpbImxpYi9odHRwLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBSUEsTUFBTSxPQUFPLG1CQUFtQjs7Ozs7O0lBQzlCLFlBQW9CLElBQWdCLEVBQVMsU0FBaUIsZUFBZSxFQUFTLFNBQWlCLE9BQU87UUFBMUYsU0FBSSxHQUFKLElBQUksQ0FBWTtRQUFTLFdBQU0sR0FBTixNQUFNLENBQTBCO1FBQVMsV0FBTSxHQUFOLE1BQU0sQ0FBa0I7SUFBRyxDQUFDOzs7Ozs7SUFLM0csY0FBYyxDQUFDLElBQVk7UUFDaEMsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxHQUFHLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxHQUFHLElBQUksQ0FBQyxNQUFNLEVBQU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bmd9JHt0aGlzLnN1ZmZpeH1gKTtcbiAgfVxufVxuIl19 |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export { TranslateHttpLoader } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXRyYW5zbGF0ZS1odHRwLWxvYWRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtdHJhbnNsYXRlL2h0dHAtbG9hZGVyLyIsInNvdXJjZXMiOlsibmd4LXRyYW5zbGF0ZS1odHRwLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsb0NBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 | ||
export * from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXRyYW5zbGF0ZS1odHRwLWxvYWRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtdHJhbnNsYXRlL2h0dHAtbG9hZGVyLyIsInNvdXJjZXMiOlsibmd4LXRyYW5zbGF0ZS1odHRwLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 |
@@ -1,6 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
export { TranslateHttpLoader } from "./lib/http-loader"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtdHJhbnNsYXRlL2h0dHAtbG9hZGVyLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsb0NBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9saWIvaHR0cC1sb2FkZXJcIjtcbiJdfQ== | ||
export * from "./lib/http-loader"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtdHJhbnNsYXRlL2h0dHAtbG9hZGVyLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vbGliL2h0dHAtbG9hZGVyXCI7XG4iXX0= |
@@ -1,5 +0,1 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
var TranslateHttpLoader = /** @class */ (function () { | ||
@@ -16,13 +12,3 @@ function TranslateHttpLoader(http, prefix, suffix) { | ||
*/ | ||
/** | ||
* Gets the translations from the server | ||
* @param {?} lang | ||
* @return {?} | ||
*/ | ||
TranslateHttpLoader.prototype.getTranslation = /** | ||
* Gets the translations from the server | ||
* @param {?} lang | ||
* @return {?} | ||
*/ | ||
function (lang) { | ||
TranslateHttpLoader.prototype.getTranslation = function (lang) { | ||
return this.http.get("" + this.prefix + lang + this.suffix); | ||
@@ -33,10 +19,2 @@ }; | ||
export { TranslateHttpLoader }; | ||
if (false) { | ||
/** @type {?} */ | ||
TranslateHttpLoader.prototype.http; | ||
/** @type {?} */ | ||
TranslateHttpLoader.prototype.prefix; | ||
/** @type {?} */ | ||
TranslateHttpLoader.prototype.suffix; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cC1sb2FkZXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LXRyYW5zbGF0ZS9odHRwLWxvYWRlci8iLCJzb3VyY2VzIjpbImxpYi9odHRwLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBSUE7SUFDRSw2QkFBb0IsSUFBZ0IsRUFBUyxNQUFnQyxFQUFTLE1BQXdCO1FBQWpFLHVCQUFBLEVBQUEsd0JBQWdDO1FBQVMsdUJBQUEsRUFBQSxnQkFBd0I7UUFBMUYsU0FBSSxHQUFKLElBQUksQ0FBWTtRQUFTLFdBQU0sR0FBTixNQUFNLENBQTBCO1FBQVMsV0FBTSxHQUFOLE1BQU0sQ0FBa0I7SUFBRyxDQUFDO0lBRWxIOztPQUVHOzs7Ozs7SUFDSSw0Q0FBYzs7Ozs7SUFBckIsVUFBc0IsSUFBWTtRQUNoQyxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLEtBQUcsSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLEdBQUcsSUFBSSxDQUFDLE1BQVEsQ0FBQyxDQUFDO0lBQzlELENBQUM7SUFDSCwwQkFBQztBQUFELENBQUMsQUFURCxJQVNDOzs7O0lBUmEsbUNBQXdCOztJQUFFLHFDQUF1Qzs7SUFBRSxxQ0FBK0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0h0dHBDbGllbnR9IGZyb20gXC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UFBUyxXQUFNLEdBQU4sTUFBTSxDQUFrQjtJQUFHLENBQUM7SUFFbEg7O09BRUc7SUFDSSw0Q0FBYyxHQUFyQixVQUFzQixJQUFZO1FBQ2hDLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsS0FBRyxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksR0FBRyxJQUFJLENBQUMsTUFBUSxDQUFDLENBQUM7SUFDOUQsQ0FBQztJQUNILDBCQUFDO0FBQUQsQ0FBQyxBQVRELElBU0MiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0h0dHBDbGllbnR9IGZyb20gXCJAYW5ndWxhci9jb21tb24vaHR0cFwiO1xuaW1wb3J0IHtUcmFuc2xhdGVMb2FkZXJ9IGZyb20gXCJAbmd4LXRyYW5zbGF0ZS9jb3JlXCI7XG5pbXBvcnQge09ic2VydmFibGV9IGZyb20gJ3J4anMnO1xuXG5leHBvcnQgY2xhc3MgVHJhbnNsYXRlSHR0cExvYWRlciBpbXBsZW1lbnRzIFRyYW5zbGF0ZUxvYWRlciB7XG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgaHR0cDogSHR0cENsaWVudCwgcHVibGljIHByZWZpeDogc3RyaW5nID0gXCIvYXNzZXRzL2kxOG4vXCIsIHB1YmxpYyBzdWZmaXg6IHN0cmluZyA9IFwiLmpzb25cIikge31cblxuICAvKipcbiAgICogR2V0cyB0aGUgdHJhbnNsYXRpb25zIGZyb20gdGhlIHNlcnZlclxuICAgKi9cbiAgcHVibGljIGdldFRyYW5zbGF0aW9uKGxhbmc6IHN0cmluZyk6IE9ic2VydmFibGU8T2JqZWN0PiB7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQoYCR7dGhpcy5wcmVmaXh9JHtsYW5nfSR7dGhpcy5zdWZmaXh9YCk7XG4gIH1cbn1cbiJdfQ== |
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
export { TranslateHttpLoader } from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXRyYW5zbGF0ZS1odHRwLWxvYWRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtdHJhbnNsYXRlL2h0dHAtbG9hZGVyLyIsInNvdXJjZXMiOlsibmd4LXRyYW5zbGF0ZS1odHRwLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsb0NBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 | ||
export * from './public_api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXRyYW5zbGF0ZS1odHRwLWxvYWRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtdHJhbnNsYXRlL2h0dHAtbG9hZGVyLyIsInNvdXJjZXMiOlsibmd4LXRyYW5zbGF0ZS1odHRwLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpY19hcGknO1xuIl19 |
@@ -1,6 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
export { TranslateHttpLoader } from "./lib/http-loader"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtdHJhbnNsYXRlL2h0dHAtbG9hZGVyLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsb0NBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9saWIvaHR0cC1sb2FkZXJcIjtcbiJdfQ== | ||
export * from "./lib/http-loader"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZ3gtdHJhbnNsYXRlL2h0dHAtbG9hZGVyLyIsInNvdXJjZXMiOlsicHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vbGliL2h0dHAtbG9hZGVyXCI7XG4iXX0= |
@@ -1,11 +0,2 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
class TranslateHttpLoader { | ||
/** | ||
* @param {?} http | ||
* @param {?=} prefix | ||
* @param {?=} suffix | ||
*/ | ||
constructor(http, prefix = "/assets/i18n/", suffix = ".json") { | ||
@@ -18,4 +9,2 @@ this.http = http; | ||
* Gets the translations from the server | ||
* @param {?} lang | ||
* @return {?} | ||
*/ | ||
@@ -28,13 +17,6 @@ getTranslation(lang) { | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
export { TranslateHttpLoader }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXRyYW5zbGF0ZS1odHRwLWxvYWRlci5qcy5tYXAiLCJzb3VyY2VzIjpbIm5nOi8vQG5neC10cmFuc2xhdGUvaHR0cC1sb2FkZXIvbGliL2h0dHAtbG9hZGVyLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7SHR0cENsaWVudH0gZnJvbSBcIkBhbmd1bGFyL2NvbW1vbi9odHRwXCI7XG5pbXBvcnQge1RyYW5zbGF0ZUxvYWRlcn0gZnJvbSBcIkBuZ3gtdHJhbnNsYXRlL2NvcmVcIjtcbmltcG9ydCB7T2JzZXJ2YWJsZX0gZnJvbSAncnhqcyc7XG5cbmV4cG9ydCBjbGFzcyBUcmFuc2xhdGVIdHRwTG9hZGVyIGltcGxlbWVudHMgVHJhbnNsYXRlTG9hZGVyIHtcbiAgY29uc3RydWN0b3IocHJpdmF0ZSBodHRwOiBIdHRwQ2xpZW50LCBwdWJsaWMgcHJlZml4OiBzdHJpbmcgPSBcIi9hc3NldHMvaTE4bi9cIiwgcHVibGljIHN1ZmZpeDogc3RyaW5nID0gXCIuanNvblwiKSB7fVxuXG4gIC8qKlxuICAgKiBHZXRzIHRoZSB0cmFuc2xhdGlvbnMgZnJvbSB0aGUgc2VydmVyXG4gICAqL1xuICBwdWJsaWMgZ2V0VHJhbnNsYXRpb24obGFuZzogc3RyaW5nKTogT2JzZXJ2YWJsZTxPYmplY3Q+IHtcbiAgICByZXR1cm4gdGhpcy5odHRwLmdldChgJHt0aGlzLnByZWZpeH0ke2xhbmd9JHt0aGlzLnN1ZmZpeH1gKTtcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFJQSxNQUFhLG1CQUFtQjs7Ozs7O0lBQzlCLFlBQW9CLElBQWdCLEVBQVMsU0FBaUIsZUFBZSxFQUFTLFNBQWlCLE9BQU87UUFBMUYsU0FBSSxHQUFKLElBQUksQ0FBWTtRQUFTLFdBQU0sR0FBTixNQUFNLENBQTBCO1FBQVMsV0FBTSxHQUFOLE1BQU0sQ0FBa0I7S0FBSTs7Ozs7O0lBSzNHLGNBQWMsQ0FBQyxJQUFZO1FBQ2hDLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsR0FBRyxJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksR0FBRyxJQUFJLENBQUMsTUFBTSxFQUFFLENBQUMsQ0FBQztLQUM3RDtDQUNGOzs7Ozs7Ozs7Ozs7OzsifQ== | ||
//# sourceMappingURL=ngx-translate-http-loader.js.map |
@@ -1,5 +0,1 @@ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
var TranslateHttpLoader = /** @class */ (function () { | ||
@@ -16,13 +12,3 @@ function TranslateHttpLoader(http, prefix, suffix) { | ||
*/ | ||
/** | ||
* Gets the translations from the server | ||
* @param {?} lang | ||
* @return {?} | ||
*/ | ||
TranslateHttpLoader.prototype.getTranslation = /** | ||
* Gets the translations from the server | ||
* @param {?} lang | ||
* @return {?} | ||
*/ | ||
function (lang) { | ||
TranslateHttpLoader.prototype.getTranslation = function (lang) { | ||
return this.http.get("" + this.prefix + lang + this.suffix); | ||
@@ -34,13 +20,6 @@ }; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc | ||
*/ | ||
export { TranslateHttpLoader }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXRy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E1BQU0sQ0FBMEI7UUFBUyxXQUFNLEdBQU4sTUFBTSxDQUFrQjtLQUFJOzs7Ozs7Ozs7SUFLM0csNENBQWM7Ozs7O0lBQXJCLFVBQXNCLElBQVk7UUFDaEMsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxLQUFHLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxHQUFHLElBQUksQ0FBQyxNQUFRLENBQUMsQ0FBQztLQUM3RDtJQUNILDBCQUFDO0NBQUE7Ozs7Ozs7Ozs7Ozs7OyJ9 | ||
//# sourceMappingURL=ngx-translate-http-loader.js.map |
@@ -1,1 +0,1 @@ | ||
{"name":"@ngx-translate/http-loader","description":"A loader for ngx-translate that loads translations using http","author":"Olivier Combe","keywords":["angular","angular 2","i18n","translate","ngx-translate"],"license":"MIT","homepage":"https://github.com/ngx-translate/http-loader","repository":{"type":"git","url":"git+https://github.com/ngx-translate/http-loader.git"},"bugs":{"url":"https://github.com/ngx-translate/http-loader/issues"},"peerDependencies":{"@ngx-translate/core":">=11.0.0","@angular/common":">=7.0.0","rxjs":">=6.3.0"},"devDependencies":{"semantic-release":"8.2.3"},"scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"bundles/ngx-translate-http-loader.umd.js","module":"fesm5/ngx-translate-http-loader.js","es2015":"fesm2015/ngx-translate-http-loader.js","esm5":"esm5/ngx-translate-http-loader.js","esm2015":"esm2015/ngx-translate-http-loader.js","fesm5":"fesm5/ngx-translate-http-loader.js","fesm2015":"fesm2015/ngx-translate-http-loader.js","typings":"ngx-translate-http-loader.d.ts","metadata":"ngx-translate-http-loader.metadata.json","sideEffects":false,"dependencies":{"tslib":"^1.9.0"},"version":"4.0.0"} | ||
{"name":"@ngx-translate/http-loader","description":"A loader for ngx-translate that loads translations using http","author":"Olivier Combe","keywords":["angular","angular 2","i18n","translate","ngx-translate"],"license":"MIT","homepage":"https://github.com/ngx-translate/http-loader","repository":{"type":"git","url":"git+https://github.com/ngx-translate/http-loader.git"},"bugs":{"url":"https://github.com/ngx-translate/http-loader/issues"},"peerDependencies":{"@ngx-translate/core":">=11.0.0","@angular/common":">=7.0.0","rxjs":">=6.3.0","tslib":"^1.10.0"},"scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"bundles/ngx-translate-http-loader.umd.js","module":"fesm5/ngx-translate-http-loader.js","es2015":"fesm2015/ngx-translate-http-loader.js","esm5":"esm5/ngx-translate-http-loader.js","esm2015":"esm2015/ngx-translate-http-loader.js","fesm5":"fesm5/ngx-translate-http-loader.js","fesm2015":"fesm2015/ngx-translate-http-loader.js","typings":"ngx-translate-http-loader.d.ts","metadata":"ngx-translate-http-loader.metadata.json","sideEffects":false,"version":"5.0.0"} |
@@ -26,2 +26,4 @@ # @ngx-translate/http-loader [![Build Status](https://travis-ci.org/ngx-translate/http-loader.svg?branch=master)](https://travis-ci.org/ngx-translate/http-loader) [![npm version](https://badge.fury.io/js/%40ngx-translate%2Fhttp-loader.svg)](https://badge.fury.io/js/%40ngx-translate%2Fhttp-loader) | ||
----------- | ------------------- | -------------------------- | ||
9 | 12.x+ | 5.x+ | ||
8 | 12.x+ | 4.x+ | ||
7 | 11.x+ | 4.x+ | ||
@@ -28,0 +30,0 @@ 6 | 10.x | 3.x |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
125
19511
125
- Removedtslib@^1.9.0