[Pkg-javascript-commits] [node-leveldown] 389/492: switch to nan as a dependency

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:14:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.

commit 76a6b07fe331ea3a4bcc206e51d1d62066008761
Author: Rod Vagg <rod at vagg.org>
Date:   Fri Aug 16 21:11:02 2013 +1000

    switch to nan as a dependency
---
 binding.gyp  | 25 ++++++++++++++-----------
 package.json | 11 ++++++-----
 2 files changed, 20 insertions(+), 16 deletions(-)

diff --git a/binding.gyp b/binding.gyp
index ddbd534..368cebe 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -1,17 +1,17 @@
 {
     "targets": [{
-        "target_name": "leveldown"
-    , 'conditions': [
-          ['OS == "win"', {
-              'defines': [
-                  '_HAS_EXCEPTIONS=0'
+      "target_name": "leveldown"
+    , "conditions": [
+          ["OS == 'win'", {
+              "defines": [
+                  "_HAS_EXCEPTIONS=0"
               ]
-            , 'msvs_settings': {
-                  'VCCLCompilerTool': {
-                      'RuntimeTypeInfo': 'false'
-                    , 'EnableFunctionLevelLinking': 'true'
-                    , 'ExceptionHandling': '2'
-                    , 'DisableSpecificWarnings': [ '4355', '4530' ,'4267', '4244', '4506' ]
+            , "msvs_settings": {
+                  "VCCLCompilerTool": {
+                      "RuntimeTypeInfo": "false"
+                    , "EnableFunctionLevelLinking": "true"
+                    , "ExceptionHandling": "2"
+                    , "DisableSpecificWarnings": [ "4355", "4530" ,"4267", "4244", "4506" ]
                   }
               }
            }]
@@ -19,6 +19,9 @@
       , "dependencies": [
             "<(module_root_dir)/deps/leveldb/leveldb.gyp:leveldb"
         ]
+      , "include_dirs"  : [
+            "<!(node -p -e \"require('path').dirname(require.resolve('nan'))\")"
+        ]
       , "sources": [
             "src/batch.cc"
           , "src/batch_async.cc"
diff --git a/package.json b/package.json
index 157ef83..2655468 100644
--- a/package.json
+++ b/package.json
@@ -16,12 +16,13 @@
       , "Pedro Teixeira <pedro.teixeira at gmail.com> (https://github.com/pgte)"
     ]
   , "keywords": [
-        "leveldb"
+        "leveldb", "level"
     ]
   , "version"         : "0.7.0"
   , "main"            : "index.js"
   , "dependencies"    : {
-        "bindings"        : "~1.1.1"
+        "bindings"            : "~1.1.1"
+      , "nan"                 : "~0.3.0"
     }
   , "devDependencies" : {
         "tap"                 : "~0.4.1"
@@ -33,11 +34,11 @@
       , "du"                  : "~0.0.1"
     }
   , "repository"      : {
-        "type"            : "git"
-      , "url"             : "https://github.com/rvagg/node-leveldown.git"
+        "type"                : "git"
+      , "url"                 : "https://github.com/rvagg/node-leveldown.git"
     }
   , "scripts"         : {
-        "test"            : "tap test/*-test.js --stderr"
+        "test"                : "tap test/*-test.js --stderr"
     }
   , "license"         : "MIT"
   , "gypfile"         : true

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git



More information about the Pkg-javascript-commits mailing list