win-sso 1.3.2 → 1.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/win-sso.js +2 -1
- package/native/prebuilds/win32-ia32/node.node +0 -0
- package/native/prebuilds/win32-x64/node.node +0 -0
- package/package.json +20 -25
- package/src/win-sso.ts +2 -1
- package/binding.gyp +0 -24
- package/install_env.js +0 -12
- package/prebuildify_env.js +0 -12
- package/prebuilds/win32-ia32/win-sso.node +0 -0
- package/prebuilds/win32-x64/win-sso.node +0 -0
package/dist/win-sso.js
CHANGED
|
@@ -8,8 +8,9 @@ const debug_logger_1 = require("./utils/debug.logger");
|
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
let winSsoAddon;
|
|
10
10
|
try {
|
|
11
|
+
const currentDir = __dirname; // eslint-disable-line
|
|
11
12
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
12
|
-
winSsoAddon = require("node-gyp-build")(path_1.default.join(
|
|
13
|
+
winSsoAddon = require("node-gyp-build")(path_1.default.join(currentDir, "..", "native"));
|
|
13
14
|
(0, debug_logger_1.debug)("Loaded win-sso native module");
|
|
14
15
|
}
|
|
15
16
|
catch (_a) {
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "win-sso",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0-beta.1",
|
|
4
4
|
"description": "NTLM single-sign-on for Node.js. Only Windows OS supported.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "shx rm -rf dist && tsc",
|
|
8
8
|
"lint": "eslint src",
|
|
9
9
|
"test": "mocha --require ./test/ts.hooks.js test/**/*.spec.ts",
|
|
10
|
-
"prebuildify": "node prebuildify_env.js",
|
|
11
|
-
"native_prebuildify": "prebuildify --napi --strip --target
|
|
12
|
-
"native_build": "node-gyp-build",
|
|
13
|
-
"install": "node install_env.js"
|
|
10
|
+
"prebuildify": "node native/prebuildify_env.js",
|
|
11
|
+
"native_prebuildify": "prebuildify --napi --strip --target 22.22.2 --cwd native"
|
|
14
12
|
},
|
|
15
13
|
"engines": {
|
|
16
|
-
"node": "
|
|
14
|
+
"node": ">=22.22.2 || >=24.15.0 || >=26.0.0"
|
|
17
15
|
},
|
|
18
16
|
"repository": {
|
|
19
17
|
"type": "git",
|
|
@@ -26,11 +24,8 @@
|
|
|
26
24
|
],
|
|
27
25
|
"files": [
|
|
28
26
|
"dist/",
|
|
29
|
-
"install_env.js",
|
|
30
|
-
"prebuildify_env.js",
|
|
31
|
-
"binding.gyp",
|
|
32
27
|
"src/",
|
|
33
|
-
"prebuilds/"
|
|
28
|
+
"native/prebuilds/"
|
|
34
29
|
],
|
|
35
30
|
"author": "Björn Weström",
|
|
36
31
|
"license": "MIT",
|
|
@@ -39,27 +34,27 @@
|
|
|
39
34
|
},
|
|
40
35
|
"homepage": "https://github.com/bjowes/node-win-sso#readme",
|
|
41
36
|
"dependencies": {
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"debug": "^4.3.1",
|
|
45
|
-
"node-gyp": "^11.0.0",
|
|
46
|
-
"node-gyp-build": "^4.4.0"
|
|
37
|
+
"debug": "^4.4.0",
|
|
38
|
+
"node-gyp-build": "^4.8.4"
|
|
47
39
|
},
|
|
48
40
|
"devDependencies": {
|
|
49
|
-
"@types/debug": "^4.1.
|
|
41
|
+
"@types/debug": "^4.1.12",
|
|
50
42
|
"@types/mocha": "^10.0.10",
|
|
51
|
-
"@types/node": "^22.
|
|
43
|
+
"@types/node": "^22.20.5",
|
|
52
44
|
"asn1-parser": "^1.1.8",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
45
|
+
"bindings": "^1.5.0",
|
|
46
|
+
"cross-spawn": "^7.0.6",
|
|
47
|
+
"eslint": "^9.26.0",
|
|
48
|
+
"eslint-plugin-jsdoc": "^50.6.11",
|
|
55
49
|
"eslint-plugin-node": "^11.1.0",
|
|
56
|
-
"mocha": "^11.
|
|
57
|
-
"node-addon-api": "^8.3.
|
|
50
|
+
"mocha": "^11.2.2",
|
|
51
|
+
"node-addon-api": "^8.3.1",
|
|
52
|
+
"node-gyp": "^13.1.0",
|
|
58
53
|
"prebuildify": "^6.0.1",
|
|
59
|
-
"shx": "^0.
|
|
60
|
-
"ts-node": "^10.
|
|
61
|
-
"typescript": "^5.
|
|
62
|
-
"typescript-eslint": "^8.
|
|
54
|
+
"shx": "^0.4.0",
|
|
55
|
+
"ts-node": "^10.9.2",
|
|
56
|
+
"typescript": "^5.8.3",
|
|
57
|
+
"typescript-eslint": "^8.32.0"
|
|
63
58
|
},
|
|
64
59
|
"gypfile": true
|
|
65
60
|
}
|
package/src/win-sso.ts
CHANGED
|
@@ -5,8 +5,9 @@ import { IWinSsoAddon } from "./utils/i.win-sso-addon";
|
|
|
5
5
|
|
|
6
6
|
let winSsoAddon: IWinSsoAddon;
|
|
7
7
|
try {
|
|
8
|
+
const currentDir = __dirname; // eslint-disable-line
|
|
8
9
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
9
|
-
winSsoAddon = require("node-gyp-build")(path.join(
|
|
10
|
+
winSsoAddon = require("node-gyp-build")(path.join(currentDir, "..", "native"));
|
|
10
11
|
debug("Loaded win-sso native module");
|
|
11
12
|
} catch {
|
|
12
13
|
debug("Could not load win-sso native module");
|
package/binding.gyp
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"targets": [
|
|
3
|
-
{
|
|
4
|
-
"target_name": "win-sso",
|
|
5
|
-
"cflags!": [ "-fno-exceptions" ],
|
|
6
|
-
"cflags_cc!": [ "-fno-exceptions" ],
|
|
7
|
-
"sources": [
|
|
8
|
-
"src/node-addon/auth-context.cc",
|
|
9
|
-
"src/node-addon/exception-handler.cc",
|
|
10
|
-
"src/node-addon/secur32-facade.cc"
|
|
11
|
-
],
|
|
12
|
-
"libraries": [
|
|
13
|
-
"-lsecur32"
|
|
14
|
-
],
|
|
15
|
-
"include_dirs": [
|
|
16
|
-
"<!@(node -p \"require('node-addon-api').include\")"
|
|
17
|
-
],
|
|
18
|
-
'dependencies': [
|
|
19
|
-
"<!(node -p \"require('node-addon-api').gyp\")"
|
|
20
|
-
],
|
|
21
|
-
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ],
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
package/install_env.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const os = require('os');
|
|
2
|
-
const spawn = require('cross-spawn');
|
|
3
|
-
|
|
4
|
-
if (os.platform() === 'win32') {
|
|
5
|
-
console.log('Windows OS detected. Building native module')
|
|
6
|
-
spawn.sync('npm', ['run', 'native_build'], {
|
|
7
|
-
input: 'Windows OS detected. Build native module.',
|
|
8
|
-
stdio: 'inherit'
|
|
9
|
-
});
|
|
10
|
-
} else {
|
|
11
|
-
console.log('Unsupported OS detected. Native module requires Windows OS. Aborting native module build.');
|
|
12
|
-
}
|
package/prebuildify_env.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const os = require('os');
|
|
2
|
-
const spawn = require('cross-spawn');
|
|
3
|
-
|
|
4
|
-
if (os.platform() === 'win32') {
|
|
5
|
-
console.log('Windows OS detected. Prebuilding native modules')
|
|
6
|
-
spawn.sync('npm', ['run', 'native_prebuildify'], {
|
|
7
|
-
input: 'Windows OS detected. Prebuilding native module.',
|
|
8
|
-
stdio: 'inherit'
|
|
9
|
-
});
|
|
10
|
-
} else {
|
|
11
|
-
console.log('Unsupported OS detected. Native module requires Windows OS. Aborting prebuildify.');
|
|
12
|
-
}
|
|
Binary file
|
|
Binary file
|