Skip to content

Commit

Permalink
v0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
abbr committed Nov 9, 2019
1 parent 3e48db1 commit c8fe502
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 50 deletions.
41 changes: 13 additions & 28 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,23 @@
"targets": [
{
"target_name": "NodeSSPI",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.7",
},
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions"],
"msvs_settings": {
"VCCLCompilerTool": { "ExceptionHandling": 1 },
"VCCLCompilerTool": { "ExceptionHandling": 1 }
},
"sources": [
"src/*.h",
"src/*.cpp",
],
'defines': [
'_UNICODE',
'UNICODE',
],
'configurations': {
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1,
"sources": ["src/*.h", "src/*.cpp"],
"defines": ["_UNICODE", "UNICODE"],
"configurations": {
"Release": {
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1
}
}
}
}
},
"include_dirs" : [
"<!@(node -p \"require('node-addon-api').include\")"
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
]
"include_dirs": ["<!@(node -p \"require('node-addon-api').include\")"]
}
]
}
}
4 changes: 0 additions & 4 deletions nbproject/project.properties

This file was deleted.

9 changes: 0 additions & 9 deletions nbproject/project.xml

This file was deleted.

7 changes: 1 addition & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-sspi",
"version": "0.2.5",
"version": "0.2.6",
"description": "Windows SSPI server-side authentication for Node",
"main": "index.js",
"author": "Fred Wen<[email protected]>",
Expand All @@ -9,7 +9,7 @@
"install": "node ./build.js"
},
"dependencies": {
"node-addon-api": "1.7.1",
"node-addon-api": "^1.7.1",
"bindings": "^1.1.1"
},
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion src/NodeSSPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@ void WrapUpAsyncAfterAuth(const Env env, Baton* pBaton) {
}
}
else {
if (lRes.Get(Napi::String::New(env, "statusCode")).As<Napi::Number>().Int32Value() == 401) {
Napi::Value v = lRes.Get(Napi::String::New(env, "statusCode"));
if (v.IsNumber() && v.ToNumber().Int32Value() == 401) {
napi_value argv[] = { Napi::String::New(env, "Login aborted.") };
if (lOpts.Get(Napi::String::New(env, "authoritative")).As<Napi::Boolean>().Value()) {
lRes.Get(Napi::String::New(env, "end")).As<Napi::Function>().Call(lRes, 1, argv);
Expand Down

0 comments on commit c8fe502

Please sign in to comment.