@karibulab/wsdl2tsx 0.24.0 → 0.25.0
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.
- package/dist/cli.js +7 -7
- package/dist/templates/component.hbs +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -24094,8 +24094,8 @@ function generateXmlPropertyCode(namespacesTypeMapping, baseNamespacePrefix, key
|
|
|
24094
24094
|
const tagLocalName = extractLocalName(key);
|
|
24095
24095
|
const tagCamelCase = toCamelCase2(tagLocalName);
|
|
24096
24096
|
const isQualified = shouldHavePrefix(elementObject);
|
|
24097
|
-
const openTag = isQualified ? `<${namespacePrefix}.${tagLocalName}>` :
|
|
24098
|
-
const closeTag = isQualified ? `</${namespacePrefix}.${tagLocalName}>` :
|
|
24097
|
+
const openTag = isQualified ? `<${namespacePrefix}.${tagLocalName}>` : `<xml.${tagLocalName}>`;
|
|
24098
|
+
const closeTag = isQualified ? `</${namespacePrefix}.${tagLocalName}>` : `</xml.${tagLocalName}>`;
|
|
24099
24099
|
if (tagUsageCollector && isQualified) {
|
|
24100
24100
|
tagUsageCollector.tagToPrefix.set(tagLocalName, namespacePrefix);
|
|
24101
24101
|
if (prefixesMapping && prefixesMapping[namespacePrefix]) {
|
|
@@ -24157,8 +24157,8 @@ function generateXmlPropertyCode(namespacesTypeMapping, baseNamespacePrefix, key
|
|
|
24157
24157
|
}
|
|
24158
24158
|
}
|
|
24159
24159
|
const wrapperIsQualified = referencedElement.$qualified !== false;
|
|
24160
|
-
const wrapperOpenTag = wrapperIsQualified ? `<${wrapperNamespacePrefix}.${tagLocalName}>` :
|
|
24161
|
-
const wrapperCloseTag = wrapperIsQualified ? `</${wrapperNamespacePrefix}.${tagLocalName}>` :
|
|
24160
|
+
const wrapperOpenTag = wrapperIsQualified ? `<${wrapperNamespacePrefix}.${tagLocalName}>` : `<xml.${tagLocalName}>`;
|
|
24161
|
+
const wrapperCloseTag = wrapperIsQualified ? `</${wrapperNamespacePrefix}.${tagLocalName}>` : `</xml.${tagLocalName}>`;
|
|
24162
24162
|
if (tagUsageCollector && wrapperIsQualified) {
|
|
24163
24163
|
tagUsageCollector.tagToPrefix.set(tagLocalName, wrapperNamespacePrefix);
|
|
24164
24164
|
if (prefixesMapping && prefixesMapping[wrapperNamespacePrefix]) {
|
|
@@ -24291,7 +24291,7 @@ function generateXmlPropertyCode(namespacesTypeMapping, baseNamespacePrefix, key
|
|
|
24291
24291
|
);
|
|
24292
24292
|
return `<${nestedNamespacePrefix}.${nestedTagLocalName}>{item.${nestedTagCamelCase}}</${nestedNamespacePrefix}.${nestedTagLocalName}>`;
|
|
24293
24293
|
} else {
|
|
24294
|
-
return
|
|
24294
|
+
return `<xml.${nestedTagLocalName}>{item.${nestedTagCamelCase}}</xml.${nestedTagLocalName}>`;
|
|
24295
24295
|
}
|
|
24296
24296
|
}
|
|
24297
24297
|
}
|
|
@@ -24420,8 +24420,8 @@ function generateXmlBodyCode(baseNamespacePrefix, namespacesTypeMapping, baseTyp
|
|
|
24420
24420
|
prefixesMapping
|
|
24421
24421
|
);
|
|
24422
24422
|
const isQualified = shouldHavePrefix(referencedElement);
|
|
24423
|
-
const wrapperOpenTag = isQualified ? `<${namespacePrefix2}.${keyLocalName3}>` :
|
|
24424
|
-
const wrapperCloseTag = isQualified ? `</${namespacePrefix2}.${keyLocalName3}>` :
|
|
24423
|
+
const wrapperOpenTag = isQualified ? `<${namespacePrefix2}.${keyLocalName3}>` : `<xml.${keyLocalName3}>`;
|
|
24424
|
+
const wrapperCloseTag = isQualified ? `</${namespacePrefix2}.${keyLocalName3}>` : `</xml.${keyLocalName3}>`;
|
|
24425
24425
|
return `${wrapperOpenTag}
|
|
24426
24426
|
${nestedProperties}
|
|
24427
24427
|
${wrapperCloseTag}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karibulab/wsdl2tsx",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Generador de código TSX desde archivos WSDL",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": "./dist/cli.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"start": "node dist/cli.js"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@karibulab/wsdl2tsx-runtime": "0.
|
|
16
|
+
"@karibulab/wsdl2tsx-runtime": "0.25.0",
|
|
17
17
|
"axios": "^1.7.9",
|
|
18
18
|
"fast-xml-parser": "5.3.3",
|
|
19
19
|
"handlebars": "4.7.8"
|