node package improvements (#15748)
* node package improvements * npm run test-suite does not do anything anymore
This commit is contained in:
@@ -9,7 +9,7 @@ Requires a modern C++ runtime that supports C++14.
|
||||
By default, installs binaries. On these platforms no additional dependencies are needed.
|
||||
|
||||
- 64 bit macOS or 64 bit Linux
|
||||
- Node.js v4.x _(note: v5+ is known to have issues)_
|
||||
- Node.js v10.x
|
||||
|
||||
Run:
|
||||
|
||||
@@ -168,9 +168,9 @@ var map = new mbgl.Map({
|
||||
if (res.headers.modified) { response.modified = new Date(res.headers.modified); }
|
||||
if (res.headers.expires) { response.expires = new Date(res.headers.expires); }
|
||||
if (res.headers.etag) { response.etag = res.headers.etag; }
|
||||
|
||||
|
||||
response.data = body;
|
||||
|
||||
|
||||
callback(null, response);
|
||||
} else {
|
||||
callback(new Error(JSON.parse(body).message));
|
||||
|
||||
Reference in New Issue
Block a user