@lucid-evolution/provider 0.1.66 → 0.1.67
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.cjs +9 -3
- package/dist/index.js +9 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ var import_utils = require("@lucid-evolution/utils");
|
|
|
52
52
|
// package.json
|
|
53
53
|
var package_default = {
|
|
54
54
|
name: "@lucid-evolution/provider",
|
|
55
|
-
version: "0.1.
|
|
55
|
+
version: "0.1.67",
|
|
56
56
|
description: "",
|
|
57
57
|
main: "./dist/index.js",
|
|
58
58
|
types: "./dist/index.d.ts",
|
|
@@ -868,7 +868,10 @@ var getDatumEffect = (kupoUrl, datum_type, datum_hash) => import_effect2.Effect.
|
|
|
868
868
|
return yield* fetchKupoParse(pattern, schema).pipe(
|
|
869
869
|
import_effect2.Effect.flatMap(import_effect2.Effect.fromNullable),
|
|
870
870
|
import_effect2.Effect.map((result) => result.datum),
|
|
871
|
-
import_effect2.Effect.
|
|
871
|
+
import_effect2.Effect.retry(
|
|
872
|
+
import_effect2.Schedule.compose(import_effect2.Schedule.exponential(50), import_effect2.Schedule.recurs(5))
|
|
873
|
+
),
|
|
874
|
+
import_effect2.Effect.timeout(5e3)
|
|
872
875
|
);
|
|
873
876
|
} else return void 0;
|
|
874
877
|
});
|
|
@@ -879,7 +882,10 @@ var getScriptEffect = (kupoUrl, script_hash) => import_effect2.Effect.gen(functi
|
|
|
879
882
|
return yield* (0, import_effect2.pipe)(
|
|
880
883
|
fetchKupoParse(pattern, schema),
|
|
881
884
|
import_effect2.Effect.flatMap(import_effect2.Effect.fromNullable),
|
|
882
|
-
import_effect2.Effect.
|
|
885
|
+
import_effect2.Effect.retry(
|
|
886
|
+
import_effect2.Schedule.compose(import_effect2.Schedule.exponential(50), import_effect2.Schedule.recurs(5))
|
|
887
|
+
),
|
|
888
|
+
import_effect2.Effect.timeout(5e3),
|
|
883
889
|
import_effect2.Effect.map(({ language, script }) => {
|
|
884
890
|
switch (language) {
|
|
885
891
|
case "native":
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
// package.json
|
|
12
12
|
var package_default = {
|
|
13
13
|
name: "@lucid-evolution/provider",
|
|
14
|
-
version: "0.1.
|
|
14
|
+
version: "0.1.67",
|
|
15
15
|
description: "",
|
|
16
16
|
main: "./dist/index.js",
|
|
17
17
|
types: "./dist/index.d.ts",
|
|
@@ -831,7 +831,10 @@ var getDatumEffect = (kupoUrl, datum_type, datum_hash) => Effect.gen(function* (
|
|
|
831
831
|
return yield* fetchKupoParse(pattern, schema).pipe(
|
|
832
832
|
Effect.flatMap(Effect.fromNullable),
|
|
833
833
|
Effect.map((result) => result.datum),
|
|
834
|
-
Effect.
|
|
834
|
+
Effect.retry(
|
|
835
|
+
Schedule.compose(Schedule.exponential(50), Schedule.recurs(5))
|
|
836
|
+
),
|
|
837
|
+
Effect.timeout(5e3)
|
|
835
838
|
);
|
|
836
839
|
} else return void 0;
|
|
837
840
|
});
|
|
@@ -842,7 +845,10 @@ var getScriptEffect = (kupoUrl, script_hash) => Effect.gen(function* () {
|
|
|
842
845
|
return yield* pipe2(
|
|
843
846
|
fetchKupoParse(pattern, schema),
|
|
844
847
|
Effect.flatMap(Effect.fromNullable),
|
|
845
|
-
Effect.
|
|
848
|
+
Effect.retry(
|
|
849
|
+
Schedule.compose(Schedule.exponential(50), Schedule.recurs(5))
|
|
850
|
+
),
|
|
851
|
+
Effect.timeout(5e3),
|
|
846
852
|
Effect.map(({ language, script }) => {
|
|
847
853
|
switch (language) {
|
|
848
854
|
case "native":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucid-evolution/provider",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.67",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@effect/platform": "^0.59.2",
|
|
31
31
|
"@effect/schema": "^0.68.26",
|
|
32
32
|
"effect": "^3.5.6",
|
|
33
|
+
"@lucid-evolution/core-utils": "0.1.16",
|
|
33
34
|
"@lucid-evolution/core-types": "0.1.21",
|
|
34
35
|
"@lucid-evolution/utils": "0.1.51",
|
|
35
|
-
"@lucid-evolution/wallet": "0.1.57"
|
|
36
|
-
"@lucid-evolution/core-utils": "0.1.16"
|
|
36
|
+
"@lucid-evolution/wallet": "0.1.57"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/node": "^20.12.8",
|