@crossbind/port-expat-standalone-napi 2.0.0-beta.76 → 2.0.0-beta.79
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/LICENSE +2 -2
- package/dist/expat-standalone-napi.native.cjs +9 -3
- package/package.json +14 -14
- package/sbom.cdx.json +5 -5
package/LICENSE
CHANGED
|
@@ -14,7 +14,7 @@ advice; the compliance assessment is yours.
|
|
|
14
14
|
|
|
15
15
|
## crossbind — MIT
|
|
16
16
|
|
|
17
|
-
- package: crossbind@2.0.0-beta.
|
|
17
|
+
- package: crossbind@2.0.0-beta.79
|
|
18
18
|
- source: https://github.com/crossbind/crossbind
|
|
19
19
|
- note: the embind-jsi and embind-napi runtime and the bindings crossbind generates
|
|
20
20
|
|
|
@@ -44,7 +44,7 @@ SOFTWARE.
|
|
|
44
44
|
|
|
45
45
|
## emscripten-embind — MIT OR NCSA
|
|
46
46
|
|
|
47
|
-
- package: @crossbind/core-embind-jsi@2.0.0-beta.
|
|
47
|
+
- package: @crossbind/core-embind-jsi@2.0.0-beta.79
|
|
48
48
|
- source: https://github.com/emscripten-core/emscripten
|
|
49
49
|
- no license election recorded; the declared expression applies and all texts are included
|
|
50
50
|
- note: Emscripten's embind, adapted by @crossbind/core-embind-jsi
|
|
@@ -599,7 +599,6 @@ function extendError(baseErrorType, errorName) {
|
|
|
599
599
|
}
|
|
600
600
|
var BindingError = undefined;
|
|
601
601
|
function throwBindingError(message) {
|
|
602
|
-
console.log(message);
|
|
603
602
|
throw new BindingError(message);
|
|
604
603
|
}
|
|
605
604
|
|
|
@@ -781,6 +780,8 @@ function __embind_register_optional(rawOptionalType, rawInnerType) {
|
|
|
781
780
|
var inner = innerTypes[0];
|
|
782
781
|
return [{
|
|
783
782
|
name: `std::optional<${inner.name}>`,
|
|
783
|
+
// As in emscripten's embind, a last argument of this type may be left out.
|
|
784
|
+
optional: true,
|
|
784
785
|
// No value crosses as null (a wire of undefined reads the same); a present value
|
|
785
786
|
// rides the inner type's own converters unchanged.
|
|
786
787
|
'fromWireType': function (wt) {
|
|
@@ -1325,10 +1326,15 @@ function craftInvokerFunction(humanName, argTypes, classType, cppInvokerFunc, cp
|
|
|
1325
1326
|
argsListWired += (i !== 0 ? ", " : "") + "arg" + i + "Wired";
|
|
1326
1327
|
}
|
|
1327
1328
|
|
|
1329
|
+
// Trailing optional arguments may be left out, and cross as empty.
|
|
1330
|
+
var minArgs = argCount - 2;
|
|
1331
|
+
while (minArgs > 0 && argTypes[minArgs + 1].optional) --minArgs;
|
|
1332
|
+
var expectedArgs = minArgs === argCount - 2 ? minArgs : minArgs + " to " + (argCount - 2);
|
|
1333
|
+
|
|
1328
1334
|
var invokerFnBody =
|
|
1329
1335
|
"return function " + makeLegalFunctionName(humanName) + "(" + argsList + ") {\n" +
|
|
1330
|
-
"if (arguments.length
|
|
1331
|
-
"throwBindingError('function " + humanName + " called with ' + arguments.length + ' arguments, expected " +
|
|
1336
|
+
"if (arguments.length < " + minArgs + " || arguments.length > " + (argCount - 2) + ") {\n" +
|
|
1337
|
+
"throwBindingError('function " + humanName + " called with ' + arguments.length + ' arguments, expected " + expectedArgs + " args!');\n" +
|
|
1332
1338
|
"}\n";
|
|
1333
1339
|
|
|
1334
1340
|
if (needsDestructorStack) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossbind/port-expat-standalone-napi",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.79",
|
|
4
4
|
"nativeVersion": "2.10.0",
|
|
5
5
|
"homepage": "https://crossbind.dev/ports/expat/",
|
|
6
6
|
"repository": {
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
"sbom.cdx.json"
|
|
28
28
|
],
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@crossbind/port-expat-standalone-napi-darwin-arm64": "2.0.0-beta.
|
|
31
|
-
"@crossbind/port-expat-standalone-napi-darwin-x64": "2.0.0-beta.
|
|
32
|
-
"@crossbind/port-expat-standalone-napi-linux-arm64": "2.0.0-beta.
|
|
33
|
-
"@crossbind/port-expat-standalone-napi-linux-x64": "2.0.0-beta.
|
|
34
|
-
"@crossbind/port-expat-standalone-napi-linuxmusl-arm64": "2.0.0-beta.
|
|
35
|
-
"@crossbind/port-expat-standalone-napi-linuxmusl-x64": "2.0.0-beta.
|
|
36
|
-
"@crossbind/port-expat-standalone-napi-win32-arm64": "2.0.0-beta.
|
|
37
|
-
"@crossbind/port-expat-standalone-napi-win32-x64": "2.0.0-beta.
|
|
30
|
+
"@crossbind/port-expat-standalone-napi-darwin-arm64": "2.0.0-beta.79",
|
|
31
|
+
"@crossbind/port-expat-standalone-napi-darwin-x64": "2.0.0-beta.79",
|
|
32
|
+
"@crossbind/port-expat-standalone-napi-linux-arm64": "2.0.0-beta.79",
|
|
33
|
+
"@crossbind/port-expat-standalone-napi-linux-x64": "2.0.0-beta.79",
|
|
34
|
+
"@crossbind/port-expat-standalone-napi-linuxmusl-arm64": "2.0.0-beta.79",
|
|
35
|
+
"@crossbind/port-expat-standalone-napi-linuxmusl-x64": "2.0.0-beta.79",
|
|
36
|
+
"@crossbind/port-expat-standalone-napi-win32-arm64": "2.0.0-beta.79",
|
|
37
|
+
"@crossbind/port-expat-standalone-napi-win32-x64": "2.0.0-beta.79"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"crossbind": "^2.0.0-beta.
|
|
41
|
-
"@crossbind/port-expat-darwin": "^2.0.0-beta.
|
|
42
|
-
"@crossbind/port-expat-linux": "^2.0.0-beta.
|
|
43
|
-
"@crossbind/port-expat-linuxmusl": "^2.0.0-beta.
|
|
44
|
-
"@crossbind/port-expat-win32": "^2.0.0-beta.
|
|
40
|
+
"crossbind": "^2.0.0-beta.79",
|
|
41
|
+
"@crossbind/port-expat-darwin": "^2.0.0-beta.79",
|
|
42
|
+
"@crossbind/port-expat-linux": "^2.0.0-beta.79",
|
|
43
|
+
"@crossbind/port-expat-linuxmusl": "^2.0.0-beta.79",
|
|
44
|
+
"@crossbind/port-expat-win32": "^2.0.0-beta.79"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"expat",
|
package/sbom.cdx.json
CHANGED
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
"component": {
|
|
7
7
|
"type": "library",
|
|
8
8
|
"name": "@crossbind/port-expat-standalone-napi",
|
|
9
|
-
"version": "2.0.0-beta.
|
|
9
|
+
"version": "2.0.0-beta.79"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"components": [
|
|
13
13
|
{
|
|
14
14
|
"type": "library",
|
|
15
15
|
"name": "crossbind",
|
|
16
|
-
"version": "2.0.0-beta.
|
|
17
|
-
"purl": "pkg:generic/crossbind@2.0.0-beta.
|
|
16
|
+
"version": "2.0.0-beta.79",
|
|
17
|
+
"purl": "pkg:generic/crossbind@2.0.0-beta.79",
|
|
18
18
|
"licenses": [
|
|
19
19
|
{
|
|
20
20
|
"expression": "MIT"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
{
|
|
31
31
|
"type": "library",
|
|
32
32
|
"name": "emscripten-embind",
|
|
33
|
-
"version": "2.0.0-beta.
|
|
34
|
-
"purl": "pkg:generic/emscripten-embind@2.0.0-beta.
|
|
33
|
+
"version": "2.0.0-beta.79",
|
|
34
|
+
"purl": "pkg:generic/emscripten-embind@2.0.0-beta.79",
|
|
35
35
|
"licenses": [
|
|
36
36
|
{
|
|
37
37
|
"expression": "MIT OR NCSA"
|