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

@ngx-translate/http-loader

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngx-translate/http-loader - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

package.json

@@ -34,4 +34,4 @@ {

"@ngx-translate/core": ">=6.0.0",
"@angular/core": ">=4.3.1",
"@angular/http": ">=4.3.1"
"@angular/core": ">=4.3.0",
"@angular/common": ">=4.3.0"
},

@@ -44,3 +44,2 @@ "devDependencies": {

"@angular/core": "4.3.1",
"@angular/http": "4.3.1",
"@ngx-translate/core": "7.0.0",

@@ -87,3 +86,3 @@ "@angular/platform-browser": "4.3.1",

},
"version": "1.0.0"
"version": "1.0.1"
}

@@ -28,3 +28,3 @@ # @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://img.shields.io/npm/v/@ngx-translate/http-loader.svg)](https://www.npmjs.com/package/@ngx-translate/http-loader)

import {BrowserModule} from '@angular/platform-browser';
import {HttpModule, Http} from '@angular/http';
import {HttpClientModule, HttpClient} from '@angular/common/http';
import {TranslateModule, TranslateLoader} from '@ngx-translate/core';

@@ -35,3 +35,3 @@ import {TranslateHttpLoader} from '@ngx-translate/http-loader';

// AoT requires an exported function for factories
export function HttpLoaderFactory(http: Http) {
export function HttpLoaderFactory(http: HttpClient) {
return new TranslateHttpLoader(http);

@@ -43,3 +43,3 @@ }

BrowserModule,
HttpModule,
HttpClientModule,
TranslateModule.forRoot({

@@ -49,3 +49,3 @@ loader: {

useFactory: HttpLoaderFactory,
deps: [Http]
deps: [HttpClient]
}

@@ -52,0 +52,0 @@ })

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