breeze-bindgen 1.1.2 → 1.1.4
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 +5 -3
- package/dist/core.cjs +5 -3
- package/dist/core.mjs +5 -3
- package/package.json +3 -2
- package/dist/index.cjs +0 -733
- package/dist/index.mjs +0 -737
package/dist/cli.mjs
CHANGED
@@ -18,8 +18,10 @@ import { spawnSync } from "node:child_process";
|
|
18
18
|
|
19
19
|
// c-type-parser.ts
|
20
20
|
var CTypeParser = class {
|
21
|
-
|
22
|
-
|
21
|
+
constructor() {
|
22
|
+
this.tokens = [];
|
23
|
+
this.cursor = 0;
|
24
|
+
}
|
23
25
|
lex(str) {
|
24
26
|
this.tokens = [];
|
25
27
|
let current = "";
|
@@ -344,7 +346,7 @@ template<> struct js_bind<${fullName}> {
|
|
344
346
|
}
|
345
347
|
for (const field of fields) {
|
346
348
|
binding += `
|
347
|
-
.
|
349
|
+
.fun<&${fullName}::${field.name}>("${field.name}")`;
|
348
350
|
}
|
349
351
|
binding += `
|
350
352
|
;
|
package/dist/core.cjs
CHANGED
@@ -228,8 +228,10 @@ var import_node_child_process = require("node:child_process");
|
|
228
228
|
|
229
229
|
// c-type-parser.ts
|
230
230
|
var CTypeParser = class {
|
231
|
-
|
232
|
-
|
231
|
+
constructor() {
|
232
|
+
this.tokens = [];
|
233
|
+
this.cursor = 0;
|
234
|
+
}
|
233
235
|
lex(str) {
|
234
236
|
this.tokens = [];
|
235
237
|
let current = "";
|
@@ -555,7 +557,7 @@ template<> struct js_bind<${fullName}> {
|
|
555
557
|
}
|
556
558
|
for (const field of fields) {
|
557
559
|
binding += `
|
558
|
-
.
|
560
|
+
.fun<&${fullName}::${field.name}>("${field.name}")`;
|
559
561
|
}
|
560
562
|
binding += `
|
561
563
|
;
|
package/dist/core.mjs
CHANGED
@@ -224,8 +224,10 @@ import { spawnSync } from "node:child_process";
|
|
224
224
|
|
225
225
|
// c-type-parser.ts
|
226
226
|
var CTypeParser = class {
|
227
|
-
|
228
|
-
|
227
|
+
constructor() {
|
228
|
+
this.tokens = [];
|
229
|
+
this.cursor = 0;
|
230
|
+
}
|
229
231
|
lex(str) {
|
230
232
|
this.tokens = [];
|
231
233
|
let current = "";
|
@@ -550,7 +552,7 @@ template<> struct js_bind<${fullName}> {
|
|
550
552
|
}
|
551
553
|
for (const field of fields) {
|
552
554
|
binding += `
|
553
|
-
.
|
555
|
+
.fun<&${fullName}::${field.name}>("${field.name}")`;
|
554
556
|
}
|
555
557
|
binding += `
|
556
558
|
;
|
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.4",
|
5
5
|
"main": "dist/index.cjs",
|
6
6
|
"module": "dist/index.mjs",
|
7
7
|
"types": "dist/index.d.ts",
|
@@ -29,6 +29,7 @@
|
|
29
29
|
"build:cli": "esbuild cli.ts --bundle --outfile=cli.js --platform=node --format=esm --banner:js='#!/usr/bin/env node'",
|
30
30
|
"cli": "node -r esbuild-register cli.ts",
|
31
31
|
"typegen": "node -r esbuild-register typegen.ts",
|
32
|
-
"parser-test": "node -r esbuild-register c-type-parser.ts"
|
32
|
+
"parser-test": "node -r esbuild-register c-type-parser.ts",
|
33
|
+
"build-types": "tsc --emitDeclarationOnly core.ts --declaration --outdir dist"
|
33
34
|
}
|
34
35
|
}
|