@nestlab/google-recaptcha
Advanced tools
Comparing version 3.1.9 to 3.2.0
@@ -12,2 +12,3 @@ import { DynamicModule } from '@nestjs/common'; | ||
private static isGoogleRecaptchaFactory; | ||
private static createAxiosInstance; | ||
} |
@@ -45,3 +45,3 @@ "use strict"; | ||
provide: provider_declarations_1.RECAPTCHA_AXIOS_INSTANCE, | ||
useFactory: () => axios.default.create(this.transformAxiosConfig(Object.assign(Object.assign(Object.assign({}, this.axiosDefaultConfig), options.axiosConfig), { headers: null }))), | ||
useFactory: () => this.createAxiosInstance(this.transformAxiosConfig(Object.assign(Object.assign(Object.assign({}, this.axiosDefaultConfig), options.axiosConfig), { headers: null }))), | ||
}, | ||
@@ -83,3 +83,3 @@ ]; | ||
const transformedAxiosConfig = this.transformAxiosConfig(Object.assign(Object.assign(Object.assign({}, this.axiosDefaultConfig), options.axiosConfig), { headers: null })); | ||
return axios.default.create(transformedAxiosConfig); | ||
return this.createAxiosInstance(transformedAxiosConfig); | ||
}, | ||
@@ -149,2 +149,5 @@ inject: [provider_declarations_1.RECAPTCHA_OPTIONS], | ||
} | ||
static createAxiosInstance(axiosConfig) { | ||
return axios['create'](axiosConfig); // TODO: Updated when axios ts declaration will be fixed | ||
} | ||
} | ||
@@ -151,0 +154,0 @@ exports.GoogleRecaptchaModule = GoogleRecaptchaModule; |
{ | ||
"name": "@nestlab/google-recaptcha", | ||
"version": "3.1.9", | ||
"version": "3.2.0", | ||
"description": "Google recaptcha module for NestJS.", | ||
@@ -34,7 +34,7 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@nestjs/axios": ">=0.0.1 <1.0.0", | ||
"@nestjs/axios": ">=1.0.0 <2.0.0", | ||
"@nestjs/common": ">=8.0.0 <10.0.0", | ||
"@nestjs/core": ">=8.0.0 <10.0.0", | ||
"rxjs": ">=7.0.0 <8.0.0", | ||
"axios": ">=0.21.0 <0.28.0" | ||
"axios": ">=1.0.0 <2.0.0" | ||
}, | ||
@@ -48,3 +48,3 @@ "peerDependenciesMeta": { | ||
"@nestjs/apollo": "^10.0.22", | ||
"@nestjs/axios": "^0.1.0", | ||
"@nestjs/axios": "^1.0.0", | ||
"@nestjs/common": "^9.0.11", | ||
@@ -51,0 +51,0 @@ "@nestjs/core": "^9.0.11", |
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
106618
1194