breeze-bindgen 1.1.15 → 1.1.17
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 -5
- package/dist/core.cjs +3 -4
- package/dist/core.mjs +3 -4
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -410,9 +410,10 @@ template<> struct js_bind<${fullName}> {
|
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
for (const method of methods) {
|
|
413
|
-
if (method.isSetter && !properties.
|
|
413
|
+
if (method.isSetter && !properties.get(method.propertyName).getter) {
|
|
414
414
|
method.isSetter = false;
|
|
415
415
|
properties.delete(method.propertyName);
|
|
416
|
+
log.warn(`Found setter ${method.name} without getter for property ${method.propertyName}, treating as normal method`);
|
|
416
417
|
}
|
|
417
418
|
}
|
|
418
419
|
for (const [propName, { getter, setter }] of properties) {
|
|
@@ -425,10 +426,8 @@ template<> struct js_bind<${fullName}> {
|
|
|
425
426
|
}
|
|
426
427
|
}
|
|
427
428
|
for (const method of methods) {
|
|
428
|
-
|
|
429
|
-
binding += `
|
|
429
|
+
binding += `
|
|
430
430
|
.${method.static ? "static_" : ""}fun<&${fullName}::${method.name}>("${method.name}")`;
|
|
431
|
-
}
|
|
432
431
|
}
|
|
433
432
|
for (const field of fields) {
|
|
434
433
|
binding += `
|
|
@@ -5347,7 +5346,7 @@ async function main() {
|
|
|
5347
5346
|
log2("Binding generation finished successfully.");
|
|
5348
5347
|
} catch (error) {
|
|
5349
5348
|
log2.error("Error during binding generation:", error.message);
|
|
5350
|
-
if (error.stack
|
|
5349
|
+
if (error.stack) {
|
|
5351
5350
|
log2.error(error.stack);
|
|
5352
5351
|
}
|
|
5353
5352
|
process.exit(1);
|
package/dist/core.cjs
CHANGED
|
@@ -620,9 +620,10 @@ template<> struct js_bind<${fullName}> {
|
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
for (const method of methods) {
|
|
623
|
-
if (method.isSetter && !properties.
|
|
623
|
+
if (method.isSetter && !properties.get(method.propertyName).getter) {
|
|
624
624
|
method.isSetter = false;
|
|
625
625
|
properties.delete(method.propertyName);
|
|
626
|
+
import_fancy_log.default.warn(`Found setter ${method.name} without getter for property ${method.propertyName}, treating as normal method`);
|
|
626
627
|
}
|
|
627
628
|
}
|
|
628
629
|
for (const [propName, { getter, setter }] of properties) {
|
|
@@ -635,10 +636,8 @@ template<> struct js_bind<${fullName}> {
|
|
|
635
636
|
}
|
|
636
637
|
}
|
|
637
638
|
for (const method of methods) {
|
|
638
|
-
|
|
639
|
-
binding += `
|
|
639
|
+
binding += `
|
|
640
640
|
.${method.static ? "static_" : ""}fun<&${fullName}::${method.name}>("${method.name}")`;
|
|
641
|
-
}
|
|
642
641
|
}
|
|
643
642
|
for (const field of fields) {
|
|
644
643
|
binding += `
|
package/dist/core.mjs
CHANGED
|
@@ -616,9 +616,10 @@ template<> struct js_bind<${fullName}> {
|
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
for (const method of methods) {
|
|
619
|
-
if (method.isSetter && !properties.
|
|
619
|
+
if (method.isSetter && !properties.get(method.propertyName).getter) {
|
|
620
620
|
method.isSetter = false;
|
|
621
621
|
properties.delete(method.propertyName);
|
|
622
|
+
import_fancy_log.default.warn(`Found setter ${method.name} without getter for property ${method.propertyName}, treating as normal method`);
|
|
622
623
|
}
|
|
623
624
|
}
|
|
624
625
|
for (const [propName, { getter, setter }] of properties) {
|
|
@@ -631,10 +632,8 @@ template<> struct js_bind<${fullName}> {
|
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
634
|
for (const method of methods) {
|
|
634
|
-
|
|
635
|
-
binding += `
|
|
635
|
+
binding += `
|
|
636
636
|
.${method.static ? "static_" : ""}fun<&${fullName}::${method.name}>("${method.name}")`;
|
|
637
|
-
}
|
|
638
637
|
}
|
|
639
638
|
for (const field of fields) {
|
|
640
639
|
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.17",
|
|
5
5
|
"main": "dist/core.cjs",
|
|
6
6
|
"module": "dist/core.mjs",
|
|
7
7
|
"types": "dist/core.d.ts",
|