nestjs-fetch-module
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "nestjs-fetch-module", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Fetch API as a NestJS provider", | ||
@@ -5,0 +5,0 @@ "author": "Mike Hall, Jakub Leśniak", |
@@ -1,2 +0,2 @@ | ||
# nestjs-fetch | ||
# nestjs-fetch-module | ||
@@ -7,5 +7,5 @@ A lightweight NestJS wrapper around the native `fetch()` API. | ||
awesome, but until recently we have needed a library to use it with Node. As of | ||
Node 18, Fetch is available by default (based on the `undici` library). Hurrah! | ||
This library wraps a small API around native `fetch()` so it can be used in | ||
NestJS instead of `@nestjs/axios`. | ||
Node 18, Fetch is available by default (based on the `undici` library). This | ||
library wraps a small API around native `fetch()` so it can be used in NestJS | ||
instead of `@nestjs/axios`. | ||
@@ -18,3 +18,3 @@ Note: This is not a drop-in replacement for `@nestjs/axios` or the `HttpModule`. | ||
```bash | ||
npm install nestjs-fetch | ||
npm install nestjs-fetch-module | ||
``` | ||
@@ -30,3 +30,3 @@ | ||
import { AppService } from './app.service'; | ||
import { FetchModule } from 'nestjs-fetch'; | ||
import { FetchModule } from 'nestjs-fetch-module'; | ||
@@ -45,3 +45,3 @@ @Module({ | ||
import { Injectable } from '@nestjs/common'; | ||
import { FetchService } from 'nestjs-fetch'; | ||
import { FetchService } from 'nestjs-fetch-module'; | ||
@@ -94,3 +94,3 @@ @Injectable() | ||
import { AppService } from './app.service'; | ||
import { FetchModule } from 'nestjs-fetch'; | ||
import { FetchModule } from 'nestjs-fetch-module'; | ||
@@ -111,3 +111,3 @@ @Module({ | ||
import { AppService } from './app.service'; | ||
import { FetchModule } from 'nestjs-fetch'; | ||
import { FetchModule } from 'nestjs-fetch-module'; | ||
import { ConfigModule, ConfigService } from '@nestjs/config'; | ||
@@ -114,0 +114,0 @@ |
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
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
17008
1