Skip to content

Commit

Permalink
Fixed: Internal Cluster function was public
Browse files Browse the repository at this point in the history
Changed queueJob from public to private
  • Loading branch information
thomasdondorf committed Feb 26, 2019
1 parent 263bf2a commit 6e2f36e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.13.1] - 2019-02-26
### Fixed
- Internal helper function was accidentally set to public

## [0.13.0] - 2019-02-25
### Added
- Cluster.execute function added
Expand Down
14 changes: 11 additions & 3 deletions src/Cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,17 @@ export default class Cluster extends EventEmitter {
);
}

public queueJob(data: JobData, taskFunction?: TaskFunction, callbacks?: ExecuteCallbacks): void;
public queueJob(taskFunction: TaskFunction, _: undefined, callbacks?: ExecuteCallbacks): void;
public queueJob(
private queueJob(
data: JobData,
taskFunction?: TaskFunction,
callbacks?: ExecuteCallbacks,
): void;
private queueJob(
taskFunction: TaskFunction,
_: undefined,
callbacks?: ExecuteCallbacks,
): void;
private queueJob(
data: JobData | TaskFunction,
taskFunction?: TaskFunction,
callbacks?: ExecuteCallbacks,
Expand Down

0 comments on commit 6e2f36e

Please sign in to comment.