@chipi-stack/core 0.4.0 → 0.4.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/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1071,7 +1071,7 @@ function buildUnshieldCalls(params) {
|
|
|
1071
1071
|
function resolveFetch(f) {
|
|
1072
1072
|
const impl = f ?? globalThis.fetch;
|
|
1073
1073
|
if (!impl) throw new Error("No fetch implementation available \u2014 pass one explicitly");
|
|
1074
|
-
return impl;
|
|
1074
|
+
return (url, init) => impl(url, init);
|
|
1075
1075
|
}
|
|
1076
1076
|
var DelegatedProver = class {
|
|
1077
1077
|
constructor(opts) {
|
|
@@ -10546,9 +10546,7 @@ var ChipiProofProvider = class extends ProvingServiceProofProvider {
|
|
|
10546
10546
|
this.chipiGetBearer = opts.getBearerToken;
|
|
10547
10547
|
this.chipiProvePath = opts.provePath ?? "/privacy/prove";
|
|
10548
10548
|
this.chipiBlockId = opts.blockId ?? "latest";
|
|
10549
|
-
|
|
10550
|
-
if (!impl) throw new Error("No fetch implementation available \u2014 pass one explicitly");
|
|
10551
|
-
this.chipiFetch = impl;
|
|
10549
|
+
this.chipiFetch = resolveFetch(opts.fetchImpl);
|
|
10552
10550
|
}
|
|
10553
10551
|
async prove(invocation, blockIdentifier) {
|
|
10554
10552
|
const post = async () => {
|