New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@larscom/ngx-translate-module-loader

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@larscom/ngx-translate-module-loader - npm Package Compare versions

Comparing version 3.3.1 to 4.0.0

18

package.json
{
"name": "@larscom/ngx-translate-module-loader",
"version": "3.3.1",
"version": "4.0.0",
"description": "Highly configurable and flexible translations loader for ngx-translate. Fetch multiple translations, each translation file gets it's own namespace by default",

@@ -25,11 +25,6 @@ "repository": {

"peerDependencies": {
"@angular/core": ">=6.0.0",
"@angular/common": ">=6.0.0",
"@ngx-translate/core": ">=10.0.0",
"rxjs": ">=7.0.0"
"@angular/core": ">=16.0.0",
"@angular/common": ">=16.0.0",
"@ngx-translate/core": ">=16.0.0"
},
"dependencies": {
"ramda": "^0.30.1",
"tslib": "^2.3.0"
},
"publishConfig": {

@@ -49,3 +44,6 @@ "access": "public"

},
"sideEffects": false
"sideEffects": false,
"dependencies": {
"tslib": "^2.3.0"
}
}

@@ -19,12 +19,5 @@ # @larscom/ngx-translate-module-loader

```bash
npm install @larscom/ngx-translate-module-loader
npm i @larscom/ngx-translate-module-loader
```
Choose the version corresponding to your Angular version
| @angular/core | @larscom/ngx-translate-module-loader |
| ------------- | ------------------------------------ |
| >= 12 | >= 3.0.0 |
| < 12 | <= 2.2.0 |
## Usage

@@ -250,11 +243,11 @@

const options: IModuleTranslationOptions = {
// global headers, applied to every request, unless you specify headers at 'module' level
headers: new HttpHeaders().set('Header-Name', 'Header value')
modules: [
{ baseTranslateUrl },
// headers only applied to this module
{ baseTranslateUrl, moduleName: 'feature1', headers: new HttpHeaders().set('Header-Name', 'Header value') },
{ baseTranslateUrl, moduleName: 'feature2' }
]
};
// global headers, applied to every request, unless you specify headers at 'module' level
headers: new HttpHeaders().set('Header-Name', 'Header value')
modules: [
{ baseTranslateUrl },
// headers only applied to this module
{ baseTranslateUrl, moduleName: 'feature1', headers: new HttpHeaders().set('Header-Name', 'Header value') },
{ baseTranslateUrl, moduleName: 'feature2' }
]
};
```

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