
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
localize-router-http-loader
Advanced tools
A loader for localize-router that loads config using Http
A loader for localize-router that loads config using Http
This package is built for angular version >=4.3. If you are still using old Angular please use
localize-router-http-loader
version <1.0.0
npm install --save localize-router-http-loader
In order to load localize-router
config via http, you must initialize LocalizeRouterModule with LocalizeRouterHttpLoader:
// Required for AoT
export function HttpLoaderFactory(translate: TranslateService, location: Location, settings: LocalizeRouterSettings, http: HttpClient) {
return new LocalizeRouterHttpLoader(translate, location, settings, http);
}
LocalizeRouterModule.forRoot(routes, {
parser: {
provide: LocalizeParser,
useFactory: HttpLoaderFactory,
deps: [TranslateService, Location, LocalizeRouterSettings, HttpClient]
}
})
LocalizeRouterHttpLoader
has one optional parameter path
which points to json config file. Default value is assets/locales.json
.
export function HttpLoaderFactory(translate: TranslateService, location: Location, settings: LocalizeRouterSettings, http: HttpClient) {
return new LocalizeRouterHttpLoader(translate, location, settings, http, 'my/custom/url/to/file.json');
}
JSON config file has following structure:
{
"locales": ["en", "de", ...],
"prefix": "MY_PREFIX"
}
interface ILocalizeRouterParserConfig {
locales: Array<string>;
prefix?: string;
}
Prefix field is not mandatory and default value is empty string.
Licensed under MIT
FAQs
A loader for localize-router that loads config using Http
The npm package localize-router-http-loader receives a total of 52 weekly downloads. As such, localize-router-http-loader popularity was classified as not popular.
We found that localize-router-http-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.