nestjs-hot-shots
Advanced tools
Comparing version 2.0.1 to 2.0.2-dev.1639061766.09e3d57
@@ -0,0 +0,0 @@ import { ModuleMetadata, Type } from '@nestjs/common'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
export declare const HOT_SHOTS_MODULE_OPTIONS = "hot-shots:module-options"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { DynamicModule } from '@nestjs/common'; |
@@ -26,6 +26,7 @@ "use strict"; | ||
const StatsDProvider = { | ||
provide: hot_shots_1.StatsD, | ||
useValue: new hot_shots_1.StatsD(options) | ||
provide: hot_shots_1.default, | ||
useValue: new hot_shots_1.default(options) | ||
}; | ||
return { | ||
global: true, | ||
module: HotShotsModule_1, | ||
@@ -44,7 +45,8 @@ providers: [ | ||
const StatsDFactoryProvider = { | ||
provide: hot_shots_1.StatsD, | ||
useFactory: (options) => new hot_shots_1.StatsD(options), | ||
provide: hot_shots_1.default, | ||
useFactory: (options) => new hot_shots_1.default(options), | ||
inject: [hot_shots_constants_1.HOT_SHOTS_MODULE_OPTIONS] | ||
}; | ||
return { | ||
global: true, | ||
module: HotShotsModule_1, | ||
@@ -51,0 +53,0 @@ imports: options.imports, |
export * from './hot-shots.module'; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "nestjs-hot-shots", | ||
"description": "Hot-shots Module for Nest.js Framework", | ||
"version": "2.0.1", | ||
"version": "2.0.2-dev.1639061766.09e3d57", | ||
"scripts": { | ||
@@ -47,3 +47,3 @@ "build": "rimraf -rf dist && tsc -p tsconfig.json", | ||
"@nestjs/core": "8.2.3", | ||
"@types/node": "16.11.11", | ||
"@types/node": "16.11.12", | ||
"@typescript-eslint/eslint-plugin": "4.33.0", | ||
@@ -50,0 +50,0 @@ "@typescript-eslint/parser": "4.33.0", |
@@ -8,3 +8,3 @@ # NestJS Hot-shots ![npm](https://img.shields.io/npm/v/nestjs-hot-shots) ![LICENSE](https://img.shields.io/npm/l/nestjs-hot-shots) ![Downloads](https://img.shields.io/npm/dm/nestjs-hot-shots) ![Last Commit](https://img.shields.io/github/last-commit/SocketSomeone/nestjs-hot-shots) | ||
**Feature** | ||
**Features** | ||
@@ -11,0 +11,0 @@ - TypeScript types |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
11394
12
135
1
2