Skip to content

Commit 93aedca

Browse files
authored
Merge branch 'master' into master
2 parents ed4b8db + 5c0dad2 commit 93aedca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2745
-1055
lines changed

.eslintrc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended"
9+
],
10+
"parser": "@typescript-eslint/parser",
11+
"parserOptions": {
12+
"ecmaVersion": 12,
13+
"sourceType": "module"
14+
},
15+
"plugins": [
16+
"@typescript-eslint",
17+
"prettier"
18+
],
19+
"rules": {
20+
"prettier/prettier": "warn",
21+
// "lines-between-class-members": 1,
22+
"@typescript-eslint/no-explicit-any": 0,
23+
"@typescript-eslint/no-unused-vars": 0,
24+
"@typescript-eslint/no-var-requires": 0,
25+
"@typescript-eslint/ban-types": 0,
26+
"@typescript-eslint/no-namespace": 0,
27+
"@typescript-eslint/explicit-module-boundary-types": 0,
28+
"@typescript-eslint/no-empty-interface": 0
29+
}
30+
}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.4.0] - 2022-04-27
6+
7+
- Fix issue with self recursive WSDL types [#39](https://github.com/dderevjanik/wsdl-tsclient/pull/39) by @mtranter
8+
- Fix issue with `quiet` option not working properly
9+
- Project: Updated several npm packages
10+
- Project: Added eslint
11+
- Project: Added test for typechecking generated wsdl clients [#19](https://github.com/dderevjanik/wsdl-tsclient/pull/19)
12+
- Project: Add more jsdoc to `parseAndGenerate` and `parsedWsdl`
13+
- ParseAndGenerate: Support for `colors`, `verbose` and `queit` options (before it was only possible through CLI)
14+
- Docs: Mention `basicAuth` in `README.md`
15+
516
## [1.3.1] - 2021-07-01
617

718
- Project: Updated several npm packages

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Options:
5757
--maxRecursiveDefinitionName Maximum count of definition's with same name
5858
but increased suffix. Will throw an error if
5959
exceed [number]
60-
--quiet Suppress logs [boolean]
60+
--quiet Suppress all logs [boolean]
6161
--verbose Print verbose logs [boolean]
6262
--no-color Logs without colors [boolean]
6363
@@ -85,6 +85,20 @@ const client = await createClientAsync("./path/to/wsdl.wsdl");
8585
client.CallSoapMethodAsync();
8686
```
8787
88+
Setting basic auth
89+
90+
```typescript
91+
import soap from "soap";
92+
import { createClientAsync } from "./generated/MyWsdl";
93+
94+
const client = await createClientAsync("./path/to/wsdl.wsdl");
95+
96+
const basicAuth = new soap.BasicAuthSecurity(auth.username, auth.password);
97+
client.setSecurity(basicAuth);
98+
99+
client.CallSoapMethodAsync();
100+
```
101+
88102
for more information about the use of the client, read more about [soap](https://github.com/vpulim/node-soap)
89103
90104
## How it works

dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { parseWsdl } from "./src/parser";
22

33
(async function () {
4-
const d = await parseWsdl("XXX", "./ed.wsdl", "./generated");
4+
const d = await parseWsdl("./test/resources/strict/EVacSyncService_SPClient.wsdl", { modelNamePreffix: "", modelNameSuffix: "" });
55
})();

0 commit comments

Comments
 (0)