nestjs-soap
Advanced tools
Comparing version 1.0.0 to 1.1.0
export * from './soap.module'; | ||
export { SoapModuleOptions } from './soap-module-options.type'; | ||
export { Client } from 'soap'; | ||
export { Client, IOptions } from 'soap'; |
@@ -0,4 +1,6 @@ | ||
import { IOptions } from 'soap'; | ||
export declare type SoapModuleOptions = { | ||
uri: string; | ||
name: string; | ||
clientOptions?: IOptions; | ||
}; |
@@ -18,5 +18,5 @@ "use strict"; | ||
useFactory: () => __awaiter(void 0, void 0, void 0, function* () { | ||
return yield soap_1.createClientAsync(soapOption.uri); | ||
return yield soap_1.createClientAsync(soapOption.uri, soapOption.clientOptions); | ||
}), | ||
})); | ||
}; |
{ | ||
"name": "nestjs-soap", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Nestjs module wrapper for soap", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -44,4 +44,4 @@ # Nestjs Soap | ||
exampleFunction() { | ||
return this.mySoapClient.YourFunctionAsync(); | ||
async exampleFunction() { | ||
return await this.mySoapClient.YourFunctionAsync(); | ||
} | ||
@@ -56,4 +56,6 @@ } | ||
### SoapModuleOptions | ||
`name`: The unique client name for class injection | ||
`name`: The unique client name for class injection. | ||
`uri`: The SOAP service uri. | ||
`uri`: The SOAP service uri. | ||
`clientOptions`: The soap client options as in [soap repository](https://www.npmjs.com/package/soap#options) . |
8504
81
60