From 44d8b7a7469e9fc97a64f4501847978a2944c91c Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 15 Jan 2015 15:48:40 -0800 Subject: [PATCH] upgrade to nan@1.5.0 --- package.json | 2 +- src/database.cc | 4 ++-- src/statement.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f55fb7a62..004a0a926 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "url": "git://github.com/mapbox/node-sqlite3.git" }, "dependencies": { - "nan": "~1.4.1", + "nan": "~1.5.0", "node-pre-gyp": "~0.6.1" }, "bundledDependencies": [ diff --git a/src/database.cc b/src/database.cc index 27e4252e9..1b21c9c77 100644 --- a/src/database.cc +++ b/src/database.cc @@ -437,7 +437,7 @@ void Database::ProfileCallback(Database *db, ProfileInfo* info) { Local argv[] = { NanNew("profile"), NanNew(info->sql.c_str()), - NanNew((double)info->nsecs / 1000000.0) + NanNew((double)info->nsecs / 1000000.0) }; EMIT_EVENT(NanObjectWrapHandle(db), 3, argv); delete info; @@ -482,7 +482,7 @@ void Database::UpdateCallback(Database *db, UpdateInfo* info) { NanNew(sqlite_authorizer_string(info->type)), NanNew(info->database.c_str()), NanNew(info->table.c_str()), - NanNew(info->rowid), + NanNew(info->rowid), }; EMIT_EVENT(NanObjectWrapHandle(db), 4, argv); delete info; diff --git a/src/statement.cc b/src/statement.cc index 4f43048ad..b5f2499a9 100644 --- a/src/statement.cc +++ b/src/statement.cc @@ -477,7 +477,7 @@ void Statement::Work_AfterRun(uv_work_t* req) { // Fire callbacks. Local cb = NanNew(baton->callback); if (!cb.IsEmpty() && cb->IsFunction()) { - NanObjectWrapHandle(stmt)->Set(NanNew("lastID"), NanNew(baton->inserted_id)); + NanObjectWrapHandle(stmt)->Set(NanNew("lastID"), NanNew(baton->inserted_id)); NanObjectWrapHandle(stmt)->Set(NanNew("changes"), NanNew(baton->changes)); Local argv[] = { NanNew(NanNull()) };