breeze-bindgen 1.1.20 → 1.1.22
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.mjs +4 -1
- package/dist/core.cjs +4 -1
- package/dist/core.mjs +4 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -146,6 +146,9 @@ var CTypeParser = class {
|
|
|
146
146
|
return "ArrayBuffer";
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
+
if (node.type === "JSValue") {
|
|
150
|
+
return "any";
|
|
151
|
+
}
|
|
149
152
|
const ignoreTypes = ["std.variant", "std.shared_ptr", "std.function"];
|
|
150
153
|
if (ignoreTypes.includes(node.type)) {
|
|
151
154
|
tsBasicType = node.argsTemplate.map((a) => this.formatToTypeScript(a, namespace)).join(" | ");
|
|
@@ -584,7 +587,7 @@ export const enum ${tsEnumName} {`;
|
|
|
584
587
|
});
|
|
585
588
|
}
|
|
586
589
|
binding += `
|
|
587
|
-
inline void
|
|
590
|
+
inline void ${tsModuleName}_bindAll(qjs::Context::Module &mod) {
|
|
588
591
|
`;
|
|
589
592
|
for (const structName of structNames) {
|
|
590
593
|
binding += `
|
package/dist/core.cjs
CHANGED
|
@@ -356,6 +356,9 @@ var CTypeParser = class {
|
|
|
356
356
|
return "ArrayBuffer";
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
+
if (node.type === "JSValue") {
|
|
360
|
+
return "any";
|
|
361
|
+
}
|
|
359
362
|
const ignoreTypes = ["std.variant", "std.shared_ptr", "std.function"];
|
|
360
363
|
if (ignoreTypes.includes(node.type)) {
|
|
361
364
|
tsBasicType = node.argsTemplate.map((a) => this.formatToTypeScript(a, namespace)).join(" | ");
|
|
@@ -794,7 +797,7 @@ export const enum ${tsEnumName} {`;
|
|
|
794
797
|
});
|
|
795
798
|
}
|
|
796
799
|
binding += `
|
|
797
|
-
inline void
|
|
800
|
+
inline void ${tsModuleName}_bindAll(qjs::Context::Module &mod) {
|
|
798
801
|
`;
|
|
799
802
|
for (const structName of structNames) {
|
|
800
803
|
binding += `
|
package/dist/core.mjs
CHANGED
|
@@ -352,6 +352,9 @@ var CTypeParser = class {
|
|
|
352
352
|
return "ArrayBuffer";
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
+
if (node.type === "JSValue") {
|
|
356
|
+
return "any";
|
|
357
|
+
}
|
|
355
358
|
const ignoreTypes = ["std.variant", "std.shared_ptr", "std.function"];
|
|
356
359
|
if (ignoreTypes.includes(node.type)) {
|
|
357
360
|
tsBasicType = node.argsTemplate.map((a) => this.formatToTypeScript(a, namespace)).join(" | ");
|
|
@@ -790,7 +793,7 @@ export const enum ${tsEnumName} {`;
|
|
|
790
793
|
});
|
|
791
794
|
}
|
|
792
795
|
binding += `
|
|
793
|
-
inline void
|
|
796
|
+
inline void ${tsModuleName}_bindAll(qjs::Context::Module &mod) {
|
|
794
797
|
`;
|
|
795
798
|
for (const structName of structNames) {
|
|
796
799
|
binding += `
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
|
|
3
3
|
"name": "breeze-bindgen",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.22",
|
|
5
5
|
"main": "dist/core.cjs",
|
|
6
6
|
"module": "dist/core.mjs",
|
|
7
7
|
"types": "dist/core.d.ts",
|