Skip to content

Commit 52bc1f7

Browse files
committed
Fix for buffer and stream sources.
1 parent 3214f58 commit 52bc1f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function openShp(source) {
3939
} else {
4040
source = stream(source);
4141
}
42-
return source.then(shp);
42+
return Promise.resolve(source).then(shp);
4343
}
4444

4545
export function openDbf(source, options) {
@@ -54,7 +54,7 @@ export function openDbf(source, options) {
5454
} else {
5555
source = stream(source);
5656
}
57-
return source.then(function(source) {
57+
return Promise.resolve(source).then(function(source) {
5858
return dbf(source, encoding);
5959
});
6060
}

0 commit comments

Comments
 (0)