summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-06-29 21:35:24 +0300
committerMike Morris <mikemorris@users.noreply.github.com>2016-09-06 18:14:22 -0400
commitedec56e6c55bdf992fb2d3f92d770db57c737e3e (patch)
tree51fd82feb9e7bffda6a653e15ecd331ee6095593 /package.json
parentd6f667a5e762ce1faec80bee774b805fe7ef5e11 (diff)
downloadqtlocation-mapboxgl-edec56e6c55bdf992fb2d3f92d770db57c737e3e.tar.gz
[node] switch to NodeRequest member fn callback
For (hopefully) better performance than creating a new v8::Context to wrap each callback while still avoiding leaking memory with v8::FunctionTemplate. Adds a JavaScript shim in front of module.exports.Map to wrap the req.respond API internally and preserve the public callback-passing API, while still exporting the correct prototype.
Diffstat (limited to 'package.json')
-rw-r--r--package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json
index 1dd72807d7..e3982cbb3c 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
"mapbox",
"gl"
],
- "main": "lib/mapbox-gl-native.node",
+ "main": "platform/node/index.js",
"repository": {
"type": "git",
"url": "git://github.com/mapbox/mapbox-gl-native.git"