@techspokes/typescript-wsdl-client 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"clientEmitter.d.ts","sourceRoot":"","sources":["../../src/emit/clientEmitter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAGnE,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,QA4VpE"}
1
+ {"version":3,"file":"clientEmitter.d.ts","sourceRoot":"","sources":["../../src/emit/clientEmitter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAGnE,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,QAgWpE"}
@@ -130,10 +130,14 @@ export class ${clientName} {
130
130
  attributesKeyOut?: string
131
131
  }) {
132
132
  this.source = options.source;
133
- this.options = options.options ?? undefined;
134
- this.security = options.security ?? undefined;
135
133
  this.attributesKeyIn = options.attributesKeyIn ?? "$attributes";
136
134
  this.attributesKeyOut = options.attributesKeyOut ?? "attributes";
135
+ if (options.options) {
136
+ this.options = options.options;
137
+ }
138
+ if (options.security) {
139
+ this.security = options.security;
140
+ }
137
141
  }
138
142
 
139
143
  /**
@@ -147,7 +151,7 @@ export class ${clientName} {
147
151
  // If client is not initialized or has no WSDL source, create a new one
148
152
  if (!this.client || !this.client.wsdl) {
149
153
  // Note: source can be a URL or a local WSDL file path
150
- if (!this.source || (typeof this.source !== "string")) {
154
+ if (!this.source) {
151
155
  throw new Error("WSDL source must be a non-empty string URL or file path.");
152
156
  }
153
157
  try {
@@ -20,7 +20,7 @@ export interface ${clientName}DataTypes {
20
20
  Attributes: Record<string, readonly string[]>;
21
21
  /** Maps type names to their child element types for recursive processing */
22
22
  ChildrenTypes: Record<string, Readonly<Record<string, string>>>;
23
- };
23
+ }
24
24
 
25
25
  export const ${clientConstant}_DATA_TYPES: ${clientName}DataTypes = ${metas} as const;\n`;
26
26
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techspokes/typescript-wsdl-client",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "TypeScript WSDL → SOAP client generator with full xs:attribute support, complex types, sequences, inheritance, and namespace-collision merging.",
5
5
  "keywords": [
6
6
  "wsdl",