@karibulab/wsdl2tsx-runtime 0.3.3
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/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/jsx-runtime.d.ts +3 -0
- package/dist/jsx-runtime.d.ts.map +1 -0
- package/dist/jsx-runtime.js +19 -0
- package/dist/ns.d.ts +2 -0
- package/dist/ns.d.ts.map +1 -0
- package/dist/ns.js +7 -0
- package/dist/soap.d.ts +4 -0
- package/dist/soap.d.ts.map +1 -0
- package/dist/soap.js +3 -0
- package/dist/tags.d.ts +5 -0
- package/dist/tags.d.ts.map +1 -0
- package/dist/tags.js +5 -0
- package/package.json +51 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
namespace JSX {
|
|
3
|
+
interface IntrinsicElements {
|
|
4
|
+
[elemName: string]: any;
|
|
5
|
+
}
|
|
6
|
+
interface Element extends String {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export { jsx, jsxs } from './jsx-runtime.js';
|
|
11
|
+
export { ns } from './ns.js';
|
|
12
|
+
export { soap, SOAP_TAGS, type SoapTag } from './soap.js';
|
|
13
|
+
export { xml, type TagFactory } from './tags.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;SACzB;QACD,UAAU,OAAQ,SAAQ,MAAM;SAAG;KACpC;CACF;AAED,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-runtime.d.ts","sourceRoot":"","sources":["../src/jsx-runtime.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CAEhD;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,CAEjD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function jsx(tag, props) {
|
|
2
|
+
return buildXml(tag, props);
|
|
3
|
+
}
|
|
4
|
+
export function jsxs(tag, props) {
|
|
5
|
+
return buildXml(tag, props);
|
|
6
|
+
}
|
|
7
|
+
function buildXml(tag, props) {
|
|
8
|
+
const { children = [], ...attrs } = props || {};
|
|
9
|
+
const tagName = typeof tag === "function" ? tag() : tag;
|
|
10
|
+
const attrString = Object.entries(attrs)
|
|
11
|
+
.map(([k, v]) => ` ${k}="${v}"`)
|
|
12
|
+
.join("");
|
|
13
|
+
const inner = Array.isArray(children)
|
|
14
|
+
? children.join("")
|
|
15
|
+
: children ?? "";
|
|
16
|
+
if (!inner)
|
|
17
|
+
return `<${tagName}${attrString}/>`;
|
|
18
|
+
return `<${tagName}${attrString}>${inner}</${tagName}>`;
|
|
19
|
+
}
|
package/dist/ns.d.ts
ADDED
package/dist/ns.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ns.d.ts","sourceRoot":"","sources":["../src/ns.ts"],"names":[],"mappings":"AAAA,wBAAgB,EAAE,CAAC,OAAO,SAAS,MAAM,EAAE,KAAK,SAAS,MAAM,EAC7D,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,SAAS,KAAK,EAAE,uBAEqB,GAAG,OAAO,IAAI,KAAK,EAAE,EAKjE"}
|
package/dist/ns.js
ADDED
package/dist/soap.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const SOAP_TAGS: readonly ["Envelope", "Header", "Body"];
|
|
2
|
+
export type SoapTag = typeof SOAP_TAGS[number];
|
|
3
|
+
export declare const soap: Record<"Envelope" | "Header" | "Body", () => "soap:Envelope" | "soap:Header" | "soap:Body">;
|
|
4
|
+
//# sourceMappingURL=soap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"soap.d.ts","sourceRoot":"","sources":["../src/soap.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,yCAA0C,CAAC;AAEjE,MAAM,MAAM,OAAO,GAAG,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;AAE/C,eAAO,MAAM,IAAI,6FAAwB,CAAC"}
|
package/dist/soap.js
ADDED
package/dist/tags.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../src/tags.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,MAAM,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,UAIhB,CAAC"}
|
package/dist/tags.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@karibulab/wsdl2tsx-runtime",
|
|
3
|
+
"version": "0.3.3",
|
|
4
|
+
"description": "Runtime XML para código TSX generado desde WSDL",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./jsx-runtime": {
|
|
14
|
+
"import": "./dist/jsx-runtime.js",
|
|
15
|
+
"types": "./dist/jsx-runtime.d.ts",
|
|
16
|
+
"default": "./dist/jsx-runtime.js"
|
|
17
|
+
},
|
|
18
|
+
"./jsx-runtime.js": {
|
|
19
|
+
"import": "./dist/jsx-runtime.js",
|
|
20
|
+
"types": "./dist/jsx-runtime.d.ts",
|
|
21
|
+
"default": "./dist/jsx-runtime.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"typesVersions": {
|
|
25
|
+
"*": {
|
|
26
|
+
"jsx-runtime": [
|
|
27
|
+
"./dist/jsx-runtime.d.ts"
|
|
28
|
+
],
|
|
29
|
+
"jsx-runtime.js": [
|
|
30
|
+
"./dist/jsx-runtime.d.ts"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc",
|
|
39
|
+
"dev": "tsc --watch"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"xml",
|
|
43
|
+
"soap",
|
|
44
|
+
"wsdl",
|
|
45
|
+
"runtime"
|
|
46
|
+
],
|
|
47
|
+
"license": "ISC",
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
}
|
|
51
|
+
}
|