Skip to content

Commit 550ec79

Browse files
committed
v1.2.0
1 parent dbff36e commit 550ec79

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rantalainen/ytj-api-client",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "",
55
"main": "dist/index.js",
66
"scripts": {

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export class YtjApiClient {
4343
/** Creates client for SOAP API endpoints */
4444
async createSoapClient(): Promise<HttpsApiTietopalveluYtjFiYritystiedotClient> {
4545
try {
46-
const soapClient = await createClientAsync(path.resolve('./resources/https_api_tietopalvelu_ytj_fi_yritystiedot.wsdl'));
46+
const soapClient = await createClientAsync(
47+
path.resolve(__dirname, '..', 'resources', `https_api_tietopalvelu_ytj_fi_yritystiedot.wsdl`)
48+
);
4749

4850
// Add authBody to all function calls - every function needs authBody as argument
4951
// https://javascript.plainenglish.io/javascript-how-to-intercept-function-and-method-calls-b9fd6507ff02

0 commit comments

Comments
 (0)