Skip to content

Commit

Permalink
fix: broken imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mgordel committed Feb 7, 2024
1 parent 85ad875 commit 8be52a8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/external-request/request.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TaskExecutor, ResultState } from "@golem-sdk/task-executor";
import { TaskExecutor } from "@golem-sdk/task-executor";
import { readFile } from "fs/promises";
import { fileURLToPath } from "url";
const DIR_NAME = fileURLToPath(new URL(".", import.meta.url));
Expand Down Expand Up @@ -28,7 +28,7 @@ const DIR_NAME = fileURLToPath(new URL(".", import.meta.url));
.downloadFile("/golem/work/example.jpg", `${DIR_NAME}/example.jpg`)
.end(),
);
if (results[1].result === ResultState.Ok) {
if (results[1].result === "Ok") {
console.log("Downloaded file to", `${DIR_NAME}/example.jpg`);
} else {
console.error("Something went wrong", results[1].message);
Expand Down
3 changes: 2 additions & 1 deletion examples/simple-usage/logger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { TaskExecutor, jsonLogger, nullLogger, pinoLogger } from "@golem-sdk/task-executor";
import { TaskExecutor } from "@golem-sdk/task-executor";
import { pinoLogger, jsonLogger, nullLogger } from "@golem-sdk/golem-js";
import { program, Option } from "commander";

// Create command-line configuration.
Expand Down
5 changes: 3 additions & 2 deletions src/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { ExecutorConfig } from "./config";
import { RequireAtLeastOne } from "./types";
import { TaskExecutorEventsDict } from "./events";
import { EventEmitter } from "eventemitter3";
import { TaskService } from "./service";
import { TaskService, TaskServiceOptions } from "./service";
import { TaskQueue } from "./queue";
import { isBrowser, isNode, sleep } from "./utils";
import { Task, TaskOptions } from "./task";
Expand Down Expand Up @@ -87,7 +87,8 @@ export type ExecutorOptions = {
PaymentOptions &
NetworkServiceOptions &
AgreementServiceOptions &
WorkOptions;
WorkOptions &
TaskServiceOptions;

/**
* Contains information needed to start executor, if string the imageHash is required, otherwise it should be a type of {@link ExecutorOptions}
Expand Down
8 changes: 7 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
export { TaskExecutor, YagnaOptions, ExecutorOptions, ExecutorOptionsMixin } from "./executor";
export { ProposalFilterFactory } from "@golem-sdk/golem-js";
export {
ProposalFilterFactory,
PaymentFilters,
AgreementSelectors,
AgreementCandidate,
ProposalFilter,
} from "@golem-sdk/golem-js";

0 comments on commit 8be52a8

Please sign in to comment.