@mdbase-dev/sdk 0.2.76 → 0.2.77
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/application/asset-pins.json +4 -4
- package/dist/application/worker.js +7 -8
- package/dist/browser/mdbase-sdk.js +7 -8
- package/dist/browser/mdbase-sdk.min.js +29 -29
- package/dist/cbor.js +3 -4
- package/dist/cbor.js.map +1 -1
- package/dist/native/provenance.json +5 -5
- package/dist/native/runtime.wasm +0 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"runtime": {
|
|
3
|
-
"sha256": "
|
|
4
|
-
"bytes":
|
|
5
|
-
"maxBytes":
|
|
3
|
+
"sha256": "b7307cff2e6d318cba1e9396248f110a327cd0aef6f7e759d25468273ec3346b",
|
|
4
|
+
"bytes": 4186215,
|
|
5
|
+
"maxBytes": 4186215,
|
|
6
6
|
"source": {
|
|
7
7
|
"repository": "mdbase-dev/mdbase-connect",
|
|
8
|
-
"commit": "
|
|
8
|
+
"commit": "31732b22a4d16d66da93164a4737c15e901a5193"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"sqlite": {
|
|
@@ -15698,12 +15698,12 @@ function appReleaseTrust() {
|
|
|
15698
15698
|
// src/application/asset-pins.json
|
|
15699
15699
|
var asset_pins_default = {
|
|
15700
15700
|
runtime: {
|
|
15701
|
-
sha256: "
|
|
15702
|
-
bytes:
|
|
15703
|
-
maxBytes:
|
|
15701
|
+
sha256: "b7307cff2e6d318cba1e9396248f110a327cd0aef6f7e759d25468273ec3346b",
|
|
15702
|
+
bytes: 4186215,
|
|
15703
|
+
maxBytes: 4186215,
|
|
15704
15704
|
source: {
|
|
15705
15705
|
repository: "mdbase-dev/mdbase-connect",
|
|
15706
|
-
commit: "
|
|
15706
|
+
commit: "31732b22a4d16d66da93164a4737c15e901a5193"
|
|
15707
15707
|
}
|
|
15708
15708
|
},
|
|
15709
15709
|
sqlite: {
|
|
@@ -15875,11 +15875,10 @@ function isWellFormed(s) {
|
|
|
15875
15875
|
}
|
|
15876
15876
|
return true;
|
|
15877
15877
|
}
|
|
15878
|
-
function encodeInt(w,
|
|
15879
|
-
const big = typeof v === "bigint" ? v : BigInt(v);
|
|
15878
|
+
function encodeInt(w, big) {
|
|
15880
15879
|
if (big >= 0n) {
|
|
15881
15880
|
if (big > U64_MAX) throw new CborError("unencodable", "integer above 2^64-1");
|
|
15882
|
-
w.head(0,
|
|
15881
|
+
w.head(0, big);
|
|
15883
15882
|
} else {
|
|
15884
15883
|
if (big < I64_MIN) throw new CborError("unencodable", "integer below -2^63");
|
|
15885
15884
|
const n = -1n - big;
|
|
@@ -15937,7 +15936,7 @@ function encodeInto(w, v, depth) {
|
|
|
15937
15936
|
case "boolean":
|
|
15938
15937
|
return w.byte(v ? 245 : 244);
|
|
15939
15938
|
case "number":
|
|
15940
|
-
if (Number.isSafeInteger(v) && !Object.is(v, -0)) return
|
|
15939
|
+
if (Number.isSafeInteger(v) && !Object.is(v, -0)) return v >= 0 ? w.head(0, v) : w.head(1, -1 - v);
|
|
15941
15940
|
return w.float(v);
|
|
15942
15941
|
case "bigint":
|
|
15943
15942
|
return encodeInt(w, v);
|
|
@@ -118,11 +118,10 @@ var MdbaseSDK = (() => {
|
|
|
118
118
|
}
|
|
119
119
|
return true;
|
|
120
120
|
}
|
|
121
|
-
function encodeInt(w,
|
|
122
|
-
const big = typeof v === "bigint" ? v : BigInt(v);
|
|
121
|
+
function encodeInt(w, big) {
|
|
123
122
|
if (big >= 0n) {
|
|
124
123
|
if (big > U64_MAX) throw new CborError("unencodable", "integer above 2^64-1");
|
|
125
|
-
w.head(0,
|
|
124
|
+
w.head(0, big);
|
|
126
125
|
} else {
|
|
127
126
|
if (big < I64_MIN) throw new CborError("unencodable", "integer below -2^63");
|
|
128
127
|
const n = -1n - big;
|
|
@@ -180,7 +179,7 @@ var MdbaseSDK = (() => {
|
|
|
180
179
|
case "boolean":
|
|
181
180
|
return w.byte(v ? 245 : 244);
|
|
182
181
|
case "number":
|
|
183
|
-
if (Number.isSafeInteger(v) && !Object.is(v, -0)) return
|
|
182
|
+
if (Number.isSafeInteger(v) && !Object.is(v, -0)) return v >= 0 ? w.head(0, v) : w.head(1, -1 - v);
|
|
184
183
|
return w.float(v);
|
|
185
184
|
case "bigint":
|
|
186
185
|
return encodeInt(w, v);
|
|
@@ -51372,12 +51371,12 @@ ${end.comment}` : end.comment;
|
|
|
51372
51371
|
// src/application/asset-pins.json
|
|
51373
51372
|
var asset_pins_default = {
|
|
51374
51373
|
runtime: {
|
|
51375
|
-
sha256: "
|
|
51376
|
-
bytes:
|
|
51377
|
-
maxBytes:
|
|
51374
|
+
sha256: "b7307cff2e6d318cba1e9396248f110a327cd0aef6f7e759d25468273ec3346b",
|
|
51375
|
+
bytes: 4186215,
|
|
51376
|
+
maxBytes: 4186215,
|
|
51378
51377
|
source: {
|
|
51379
51378
|
repository: "mdbase-dev/mdbase-connect",
|
|
51380
|
-
commit: "
|
|
51379
|
+
commit: "31732b22a4d16d66da93164a4737c15e901a5193"
|
|
51381
51380
|
}
|
|
51382
51381
|
},
|
|
51383
51382
|
sqlite: {
|