@openmbee/opensysml 0.10.0 → 0.10.1
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/browser/wasm.js +4 -1
- package/dist/core/values.js +5 -3
- package/package.json +7 -7
- package/release-digests.json +13 -1
package/dist/browser/wasm.js
CHANGED
|
@@ -83,7 +83,10 @@ async function browserWasmSource(wasm) {
|
|
|
83
83
|
if (wasm instanceof Response && wasm.bodyUsed) {
|
|
84
84
|
throw new Error("the WebAssembly Response body has already been read");
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
if (wasm instanceof Response || wasm instanceof URL) {
|
|
87
|
+
return loadWasmSource(wasm);
|
|
88
|
+
}
|
|
89
|
+
return loadWasmSource(resourceUrl(wasm));
|
|
87
90
|
}
|
|
88
91
|
function resourceUrl(value) {
|
|
89
92
|
if (value instanceof URL) {
|
package/dist/core/values.js
CHANGED
|
@@ -521,8 +521,6 @@ export function rationalsAsReals(value) {
|
|
|
521
521
|
value.kind.value.components.forEach(rationalsAsReals);
|
|
522
522
|
return;
|
|
523
523
|
case "vectorQuantity":
|
|
524
|
-
value.kind.value.components.forEach(quantityRationalAsReal);
|
|
525
|
-
return;
|
|
526
524
|
case "tensorQuantity":
|
|
527
525
|
value.kind.value.components.forEach(quantityRationalAsReal);
|
|
528
526
|
return;
|
|
@@ -585,7 +583,11 @@ function gcd(a, b) {
|
|
|
585
583
|
return a;
|
|
586
584
|
}
|
|
587
585
|
function bitLength(n) {
|
|
588
|
-
|
|
586
|
+
if (n === 0n) {
|
|
587
|
+
return 0;
|
|
588
|
+
}
|
|
589
|
+
const magnitude = n < 0n ? -n : n;
|
|
590
|
+
return magnitude.toString(2).length;
|
|
589
591
|
}
|
|
590
592
|
/** The exact Rational a finite double holds. */
|
|
591
593
|
export function rationalOfDouble(x) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmbee/opensysml",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "OpenSysML client: parse, evaluate and instantiate SysML v2 models over the sysml-grpc Connect API",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
"@connectrpc/connect-web": "2.1.2"
|
|
60
60
|
},
|
|
61
61
|
"optionalDependencies": {
|
|
62
|
-
"@openmbee/opensysml-sysml-grpc-darwin-arm64": "0.10.
|
|
63
|
-
"@openmbee/opensysml-sysml-grpc-darwin-x64": "0.10.
|
|
64
|
-
"@openmbee/opensysml-sysml-grpc-linux-arm64": "0.10.
|
|
65
|
-
"@openmbee/opensysml-sysml-grpc-linux-x64": "0.10.
|
|
66
|
-
"@openmbee/opensysml-sysml-grpc-win32-x64": "0.10.
|
|
62
|
+
"@openmbee/opensysml-sysml-grpc-darwin-arm64": "0.10.1",
|
|
63
|
+
"@openmbee/opensysml-sysml-grpc-darwin-x64": "0.10.1",
|
|
64
|
+
"@openmbee/opensysml-sysml-grpc-linux-arm64": "0.10.1",
|
|
65
|
+
"@openmbee/opensysml-sysml-grpc-linux-x64": "0.10.1",
|
|
66
|
+
"@openmbee/opensysml-sysml-grpc-win32-x64": "0.10.1",
|
|
67
67
|
"@sigstore/bundle": "4.0.0",
|
|
68
68
|
"@sigstore/protobuf-specs": "0.5.1",
|
|
69
69
|
"@sigstore/tuf": "4.0.2",
|
|
70
70
|
"@sigstore/verify": "3.1.1"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@openmbee/opensysml-wasm": "0.10.
|
|
73
|
+
"@openmbee/opensysml-wasm": "0.10.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependenciesMeta": {
|
|
76
76
|
"@openmbee/opensysml-wasm": {
|
package/release-digests.json
CHANGED
|
@@ -40,7 +40,19 @@
|
|
|
40
40
|
"sysml-grpc-darwin-arm64": "eeadd204e007dd3fd9e8cc001bb37ef6cafa1f6736df36fa5c6a8268e005b334",
|
|
41
41
|
"sysml-grpc-linux-amd64": "bf78a702360435d0a8c31da5940741c4e10634715bc898459fa76e715fefe0ae",
|
|
42
42
|
"sysml-grpc-linux-arm64": "46ae0a1d6740d4c0ea6d8337c306f5361412931c773a2fbbaf9e9597204875d2",
|
|
43
|
-
"sysml-grpc-windows-amd64.exe": "87b2d29941d7b05fc5afebc4075a2847adcec2f7017a231451097b84f5e7a6ed"
|
|
43
|
+
"sysml-grpc-windows-amd64.exe": "87b2d29941d7b05fc5afebc4075a2847adcec2f7017a231451097b84f5e7a6ed",
|
|
44
|
+
"sysml-jupyter-kernel-darwin-amd64": "b963394de2dbe9016e9fc9d891066e9cac56b9111958f67bb97e09c5d0311b85",
|
|
45
|
+
"sysml-jupyter-kernel-darwin-arm64": "937b7d9594b70fd7f94f82293ae2f1c13a7bdccf8d6f4481879333ca81b69da5",
|
|
46
|
+
"sysml-jupyter-kernel-linux-amd64": "c679127b17e9918b70813ae76954af6d14f427f5ae4a0fb4ff8f87d3ced2e6f4",
|
|
47
|
+
"sysml-jupyter-kernel-linux-arm64": "b7a5550b4b3ffd1fdc0afcb1e81bc0cfd3493137d218101984a953aec9c19ef4",
|
|
48
|
+
"sysml-jupyter-kernel-windows-amd64.exe": "35205d31051b4736b63fa740361f49e62dcece87cd39fd2f79e759e365e301e4"
|
|
49
|
+
},
|
|
50
|
+
"v0.10.1": {
|
|
51
|
+
"sysml-grpc-darwin-amd64": "1dda8b2e340d95648c0bbb6df0f019c2e25c784ad73a5a9b3adce505d54d1be4",
|
|
52
|
+
"sysml-grpc-darwin-arm64": "1a0a03d46979be54273b1e3a76fee69412989b769809996a6fee51229c79122c",
|
|
53
|
+
"sysml-grpc-linux-amd64": "1469eb7516a439fc372bc99812bf8bb5b4d2fb1b7279af29b2f055d6edbd1134",
|
|
54
|
+
"sysml-grpc-linux-arm64": "0d8cb393e9bc3cfaf415d923d230b01a07feb455dd7a38c1fdd8306d3a20fcbb",
|
|
55
|
+
"sysml-grpc-windows-amd64.exe": "28fc5040cbfa4852200765c0d5f4a23bef2b4a7996babff89cbcda7492b1db73"
|
|
44
56
|
},
|
|
45
57
|
"v0.2.0": {
|
|
46
58
|
"sysml-grpc-darwin-amd64": "52c34a3048e5fa03f45189264b85fbd21523ac45d91a65b1dff8fbe0187b5541",
|