We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3214f58 commit 52bc1f7Copy full SHA for 52bc1f7
index.js
@@ -39,7 +39,7 @@ export function openShp(source) {
39
} else {
40
source = stream(source);
41
}
42
- return source.then(shp);
+ return Promise.resolve(source).then(shp);
43
44
45
export function openDbf(source, options) {
@@ -54,7 +54,7 @@ export function openDbf(source, options) {
54
55
56
57
- return source.then(function(source) {
+ return Promise.resolve(source).then(function(source) {
58
return dbf(source, encoding);
59
});
60
0 commit comments