@lsby/ts-fp-data 0.0.4 → 0.0.5
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/cjs/data/task.cjs +2 -2
- package/dist/cjs/data/task.d.cts +1 -1
- package/dist/cjs/func/seq.cjs +2 -2
- package/dist/cjs/index.cjs +2 -2
- package/dist/esm/{chunk-V3O5DWBY.js → chunk-2AQUF5MK.js} +2 -2
- package/dist/esm/{chunk-IGVGNMBF.js → chunk-VP7O7XD7.js} +1 -1
- package/dist/esm/data/task.d.ts +1 -1
- package/dist/esm/data/task.js +1 -1
- package/dist/esm/func/seq.js +2 -2
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
package/dist/cjs/data/task.cjs
CHANGED
|
@@ -120,9 +120,9 @@ var Task = class _Task {
|
|
|
120
120
|
run() {
|
|
121
121
|
return this.f();
|
|
122
122
|
}
|
|
123
|
-
tryRun() {
|
|
123
|
+
async tryRun() {
|
|
124
124
|
try {
|
|
125
|
-
return new Right(this.run());
|
|
125
|
+
return new Right(await this.run());
|
|
126
126
|
} catch (e) {
|
|
127
127
|
if (e instanceof Error)
|
|
128
128
|
return new Left(e);
|
package/dist/cjs/data/task.d.cts
CHANGED
package/dist/cjs/func/seq.cjs
CHANGED
|
@@ -120,9 +120,9 @@ var Task = class _Task {
|
|
|
120
120
|
run() {
|
|
121
121
|
return this.f();
|
|
122
122
|
}
|
|
123
|
-
tryRun() {
|
|
123
|
+
async tryRun() {
|
|
124
124
|
try {
|
|
125
|
-
return new Right(this.run());
|
|
125
|
+
return new Right(await this.run());
|
|
126
126
|
} catch (e) {
|
|
127
127
|
if (e instanceof Error)
|
|
128
128
|
return new Left(e);
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -127,9 +127,9 @@ var Task = class _Task {
|
|
|
127
127
|
run() {
|
|
128
128
|
return this.f();
|
|
129
129
|
}
|
|
130
|
-
tryRun() {
|
|
130
|
+
async tryRun() {
|
|
131
131
|
try {
|
|
132
|
-
return new Right(this.run());
|
|
132
|
+
return new Right(await this.run());
|
|
133
133
|
} catch (e) {
|
|
134
134
|
if (e instanceof Error)
|
|
135
135
|
return new Left(e);
|
package/dist/esm/data/task.d.ts
CHANGED
package/dist/esm/data/task.js
CHANGED
package/dist/esm/func/seq.js
CHANGED
package/dist/esm/index.js
CHANGED