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

ngx-translate-multi-http-loader

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-translate-multi-http-loader - npm Package Compare versions

Comparing version 2.1.2 to 3.0.0

6

bundles/ngx-translate-multi-http-loader.umd.js

@@ -29,3 +29,7 @@ (function (global, factory) {

var /** @type {?} */ requests = this.resources.map(function (resource) {
return _this.http.get(resource.prefix + lang + resource.suffix);
var /** @type {?} */ path = resource.prefix + lang + resource.suffix;
return _this.http.get(path).pipe(operators.catchError(function (res) {
console.error("Could not find translation file:", path);
return rxjs.of({});
}));
});

@@ -32,0 +36,0 @@ return rxjs.forkJoin(requests).pipe(operators.map(function (response) { return merge.all(response); }));

2

bundles/ngx-translate-multi-http-loader.umd.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("rxjs"),require("rxjs/operators"),require("deepmerge")):"function"==typeof define&&define.amd?define("ngx-translate-multi-http-loader",["exports","rxjs","rxjs/operators","deepmerge"],t):t(e["ngx-translate-multi-http-loader"]={},null,e.Rx.Observable.prototype,null)}(this,function(e,n,o,i){"use strict";i=i&&i.hasOwnProperty("default")?i["default"]:i;var t=function(){function e(e,t){this.http=e,this.resources=t}return e.prototype.getTranslation=function(t){var r=this,e=this.resources.map(function(e){return r.http.get(e.prefix+t+e.suffix)});return n.forkJoin(e).pipe(o.map(function(e){return i.all(e)}))},e}();e.MultiTranslateHttpLoader=t,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("rxjs"),require("rxjs/operators"),require("deepmerge")):"function"==typeof define&&define.amd?define("ngx-translate-multi-http-loader",["exports","rxjs","rxjs/operators","deepmerge"],t):t(e["ngx-translate-multi-http-loader"]={},null,e.Rx.Observable.prototype,null)}(this,function(e,o,i,t){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;var r=function(){function e(e,t){this.http=e,this.resources=t}return e.prototype.getTranslation=function(r){var n=this,e=this.resources.map(function(e){var t=e.prefix+r+e.suffix;return n.http.get(t).pipe(i.catchError(function(e){return console.error("Could not find translation file:",t),o.of({})}))});return o.forkJoin(e).pipe(i.map(function(e){return t.all(e)}))},e}();e.MultiTranslateHttpLoader=r,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-translate-multi-http-loader.umd.min.js.map

@@ -5,4 +5,4 @@ /**

*/
import { forkJoin } from "rxjs";
import { map } from "rxjs/operators";
import { forkJoin, of } from "rxjs";
import { catchError, map } from "rxjs/operators";
import merge from 'deepmerge';

@@ -34,3 +34,7 @@ /**

const /** @type {?} */ requests = this.resources.map(resource => {
return this.http.get(resource.prefix + lang + resource.suffix);
const /** @type {?} */ path = resource.prefix + lang + resource.suffix;
return this.http.get(path).pipe(catchError(res => {
console.error("Could not find translation file:", path);
return of({});
}));
});

@@ -37,0 +41,0 @@ return forkJoin(requests).pipe(map(response => merge.all(response)));

@@ -5,4 +5,4 @@ /**

*/
import { forkJoin } from "rxjs";
import { map } from "rxjs/operators";
import { forkJoin, of } from "rxjs";
import { catchError, map } from "rxjs/operators";
import merge from 'deepmerge';

@@ -35,3 +35,7 @@ /**

var /** @type {?} */ requests = this.resources.map(function (resource) {
return _this.http.get(resource.prefix + lang + resource.suffix);
var /** @type {?} */ path = resource.prefix + lang + resource.suffix;
return _this.http.get(path).pipe(catchError(function (res) {
console.error("Could not find translation file:", path);
return of({});
}));
});

@@ -38,0 +42,0 @@ return forkJoin(requests).pipe(map(function (response) { return merge.all(response); }));

@@ -1,3 +0,3 @@

import { forkJoin } from 'rxjs';
import { map } from 'rxjs/operators';
import { forkJoin, of } from 'rxjs';
import { catchError, map } from 'rxjs/operators';
import merge from 'deepmerge';

@@ -24,3 +24,7 @@

const /** @type {?} */ requests = this.resources.map(resource => {
return this.http.get(resource.prefix + lang + resource.suffix);
const /** @type {?} */ path = resource.prefix + lang + resource.suffix;
return this.http.get(path).pipe(catchError(res => {
console.error("Could not find translation file:", path);
return of({});
}));
});

@@ -27,0 +31,0 @@ return forkJoin(requests).pipe(map(response => merge.all(response)));

@@ -1,3 +0,3 @@

import { forkJoin } from 'rxjs';
import { map } from 'rxjs/operators';
import { forkJoin, of } from 'rxjs';
import { catchError, map } from 'rxjs/operators';
import merge from 'deepmerge';

@@ -25,3 +25,7 @@

var /** @type {?} */ requests = this.resources.map(function (resource) {
return _this.http.get(resource.prefix + lang + resource.suffix);
var /** @type {?} */ path = resource.prefix + lang + resource.suffix;
return _this.http.get(path).pipe(catchError(function (res) {
console.error("Could not find translation file:", path);
return of({});
}));
});

@@ -28,0 +32,0 @@ return forkJoin(requests).pipe(map(function (response) { return merge.all(response); }));

@@ -1,1 +0,1 @@

{"name":"ngx-translate-multi-http-loader","description":"A loader for ngx-translate that loads translations from multiple files using http","author":"Dennis Keil","keywords":["angular","angular 2","i18n","translate","ngx-translate"],"license":"MIT","homepage":"https://github.com/denniske/ngx-translate-multi-http-loader","repository":{"type":"git","url":"git+https://github.com/denniske/ngx-translate-multi-http-loader.git"},"bugs":{"url":"https://github.com/denniske/ngx-translate-multi-http-loader/issues"},"dependencies":{"deepmerge":"^2.1.1","tslib":"^1.9.0"},"peerDependencies":{"@ngx-translate/core":">=10.0.0","@angular/common":">=6.0.0","rxjs":">=6.0.0"},"devDependencies":{"semantic-release":"8.2.3"},"scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"bundles/ngx-translate-multi-http-loader.umd.js","module":"fesm5/ngx-translate-multi-http-loader.js","es2015":"fesm2015/ngx-translate-multi-http-loader.js","esm5":"esm5/ngx-translate-multi-http-loader.js","esm2015":"esm2015/ngx-translate-multi-http-loader.js","fesm5":"fesm5/ngx-translate-multi-http-loader.js","fesm2015":"fesm2015/ngx-translate-multi-http-loader.js","typings":"ngx-translate-multi-http-loader.d.ts","metadata":"ngx-translate-multi-http-loader.metadata.json","sideEffects":false,"version":"2.1.2"}
{"name":"ngx-translate-multi-http-loader","description":"A loader for ngx-translate that loads translations from multiple files using http","author":"Dennis Keil","keywords":["angular","angular 2","i18n","translate","ngx-translate"],"license":"MIT","homepage":"https://github.com/denniske/ngx-translate-multi-http-loader","repository":{"type":"git","url":"git+https://github.com/denniske/ngx-translate-multi-http-loader.git"},"bugs":{"url":"https://github.com/denniske/ngx-translate-multi-http-loader/issues"},"dependencies":{"deepmerge":"2.1.1","tslib":"^1.9.0"},"peerDependencies":{"@ngx-translate/core":">=10.0.0","@angular/common":">=6.0.0","rxjs":">=6.0.0"},"devDependencies":{"semantic-release":"8.2.3"},"scripts":{"semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"bundles/ngx-translate-multi-http-loader.umd.js","module":"fesm5/ngx-translate-multi-http-loader.js","es2015":"fesm2015/ngx-translate-multi-http-loader.js","esm5":"esm5/ngx-translate-multi-http-loader.js","esm2015":"esm2015/ngx-translate-multi-http-loader.js","fesm5":"fesm5/ngx-translate-multi-http-loader.js","fesm2015":"fesm2015/ngx-translate-multi-http-loader.js","typings":"ngx-translate-multi-http-loader.d.ts","metadata":"ngx-translate-multi-http-loader.metadata.json","sideEffects":false,"version":"3.0.0"}

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

Sorry, the diff of this file is not supported yet

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