Skip to content

Commit

Permalink
released v1.29.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnstonCode committed Jun 5, 2018
1 parent fb14ea0 commit 81e0f84
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# **v1.29.1**

## Bug Fixes

* @edgardmessias Fixed error: ENOENT: no such file or directory
* @edgardmessias Fixed compatibility with SVN 1.6

# **v1.29.0**

## What's New
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "svn-scm",
"displayName": "SVN",
"description": "Integrated Subversion source control",
"version": "1.29.0",
"version": "1.29.1",
"publisher": "johnstoncode",
"engines": {
"vscode": "^1.18.0"
Expand Down
16 changes: 10 additions & 6 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export function done<T>(promise: Promise<T>): Promise<void> {
return promise.then<void>(() => void 0);
}
export function anyEvent<T>(...events: Event<T>[]): Event<T> {
return (listener, thisArgs = null, disposables?) => {
return (listener: any, thisArgs = null, disposables?: any) => {
const result = combinedDisposable(
events.map(event => event(i => listener.call(thisArgs, i)))
events.map(event => event((i: any) => listener.call(thisArgs, i)))
);

if (disposables) {
Expand All @@ -26,8 +26,12 @@ export function filterEvent<T>(
event: Event<T>,
filter: (e: T) => boolean
): Event<T> {
return (listener, thisArgs = null, disposables?) =>
event(e => filter(e) && listener.call(thisArgs, e), null, disposables);
return (listener: any, thisArgs = null, disposables?: any) =>
event(
(e: any) => filter(e) && listener.call(thisArgs, e),
null,
disposables
);
}

export function dispose(disposables: any[]): any[] {
Expand All @@ -45,9 +49,9 @@ export function toDisposable(dispose: () => void): IDisposable {
}

export function onceEvent<T>(event: Event<T>): Event<T> {
return (listener, thisArgs = null, disposables?) => {
return (listener: any, thisArgs = null, disposables?: any) => {
const result = event(
e => {
(e: any) => {
result.dispose();
return listener.call(thisArgs, e);
},
Expand Down

0 comments on commit 81e0f84

Please sign in to comment.