@azure/msal-node-extensions 1.0.0-alpha.34 → 1.0.0-alpha.35

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.
Files changed (35) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +192 -192
  3. package/binding.gyp +39 -39
  4. package/dist/msal-node-extensions.cjs.development.js +2 -2
  5. package/dist/msal-node-extensions.cjs.development.js.map +1 -1
  6. package/dist/msal-node-extensions.cjs.production.min.js +1 -1
  7. package/dist/msal-node-extensions.cjs.production.min.js.map +1 -1
  8. package/dist/msal-node-extensions.esm.js +2 -2
  9. package/dist/msal-node-extensions.esm.js.map +1 -1
  10. package/dist/packageMetadata.d.ts +1 -1
  11. package/package.json +69 -69
  12. package/src/Dpapi.ts +12 -12
  13. package/src/broker/NativeBrokerPlugin.ts +418 -418
  14. package/src/dpapi-addon/dpapi_addon.h +7 -7
  15. package/src/dpapi-addon/dpapi_not_supported.cpp +13 -13
  16. package/src/dpapi-addon/dpapi_win.cpp +106 -106
  17. package/src/dpapi-addon/main.cpp +30 -30
  18. package/src/error/NativeAuthError.ts +19 -19
  19. package/src/error/PersistenceError.ts +101 -101
  20. package/src/index.ts +17 -17
  21. package/src/lock/CrossPlatformLock.ts +89 -89
  22. package/src/lock/CrossPlatformLockOptions.ts +15 -15
  23. package/src/packageMetadata.ts +3 -3
  24. package/src/persistence/BasePersistence.ts +43 -43
  25. package/src/persistence/DataProtectionScope.ts +20 -20
  26. package/src/persistence/FilePersistence.ts +140 -140
  27. package/src/persistence/FilePersistenceWithDataProtection.ts +92 -92
  28. package/src/persistence/IPersistence.ts +17 -17
  29. package/src/persistence/IPersistenceConfiguration.ts +17 -17
  30. package/src/persistence/KeychainPersistence.ts +89 -89
  31. package/src/persistence/LibSecretPersistence.ts +90 -90
  32. package/src/persistence/PersistenceCachePlugin.ts +106 -106
  33. package/src/persistence/PersistenceCreator.ts +78 -78
  34. package/src/utils/Constants.ts +67 -67
  35. package/src/utils/Environment.ts +101 -101
package/package.json CHANGED
@@ -1,69 +1,69 @@
1
- {
2
- "name": "@azure/msal-node-extensions",
3
- "version": "1.0.0-alpha.34",
4
- "repository": {
5
- "type": "git",
6
- "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
7
- },
8
- "license": "MIT",
9
- "main": "dist/index.js",
10
- "typings": "dist/index.d.ts",
11
- "gypfile": true,
12
- "keywords": [
13
- "js",
14
- "ts",
15
- "node",
16
- "AAD",
17
- "msal",
18
- "extensions"
19
- ],
20
- "files": [
21
- "dist",
22
- "src",
23
- "binding.gyp"
24
- ],
25
- "engines": {
26
- "node": ">=10"
27
- },
28
- "scripts": {
29
- "start": "tsdx watch --tsconfig ./tsconfig.build.json",
30
- "build": "node-gyp rebuild && tsdx build --tsconfig ./tsconfig.build.json",
31
- "build:common": "cd ../../lib/msal-common && npm run build",
32
- "build:all": "npm run build:common && npm run build",
33
- "test": "jest",
34
- "test:coverage": "jest --coverage",
35
- "lint": "cd ../../ && npm run lint:node:extensions",
36
- "lint:fix": "npm run lint -- -- --fix",
37
- "link:localDeps": "npx lerna bootstrap --scope @azure/msal-common --scope @azure/msal-node-extensions",
38
- "prepack": "npm run build:all"
39
- },
40
- "author": {
41
- "name": "Microsoft",
42
- "email": "nugetaad@microsoft.com",
43
- "url": "https://www.microsoft.com"
44
- },
45
- "module": "dist/msal-node-extensions.esm.js",
46
- "beachball": {
47
- "disallowedChangeTypes": [
48
- "patch",
49
- "minor",
50
- "major"
51
- ]
52
- },
53
- "dependencies": {
54
- "@azure/msal-common": "13.0.0",
55
- "@azure/msal-node-runtime": "^0.13.6-alpha.0",
56
- "keytar": "^7.8.0",
57
- "node-addon-api": "^6.0.0"
58
- },
59
- "devDependencies": {
60
- "@types/jest": "^29.5.0",
61
- "@types/node": "^18.8.3",
62
- "husky": "^4.2.5",
63
- "jest": "^29.5.0",
64
- "ts-jest": "^29.0.5",
65
- "tsdx": "^0.14.1",
66
- "tslib": "^2.0.0",
67
- "typescript": "~4.8.4"
68
- }
69
- }
1
+ {
2
+ "name": "@azure/msal-node-extensions",
3
+ "version": "1.0.0-alpha.35",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
7
+ },
8
+ "license": "MIT",
9
+ "main": "dist/index.js",
10
+ "typings": "dist/index.d.ts",
11
+ "gypfile": true,
12
+ "keywords": [
13
+ "js",
14
+ "ts",
15
+ "node",
16
+ "AAD",
17
+ "msal",
18
+ "extensions"
19
+ ],
20
+ "files": [
21
+ "dist",
22
+ "src",
23
+ "binding.gyp"
24
+ ],
25
+ "engines": {
26
+ "node": ">=10"
27
+ },
28
+ "scripts": {
29
+ "start": "tsdx watch --tsconfig ./tsconfig.build.json",
30
+ "build": "node-gyp rebuild && tsdx build --tsconfig ./tsconfig.build.json",
31
+ "build:common": "cd ../../lib/msal-common && npm run build",
32
+ "build:all": "npm run build:common && npm run build",
33
+ "test": "jest",
34
+ "test:coverage": "jest --coverage",
35
+ "lint": "cd ../../ && npm run lint:node:extensions",
36
+ "lint:fix": "npm run lint -- -- --fix",
37
+ "link:localDeps": "npx lerna bootstrap --scope @azure/msal-common --scope @azure/msal-node-extensions",
38
+ "prepack": "npm run build:all"
39
+ },
40
+ "author": {
41
+ "name": "Microsoft",
42
+ "email": "nugetaad@microsoft.com",
43
+ "url": "https://www.microsoft.com"
44
+ },
45
+ "module": "dist/msal-node-extensions.esm.js",
46
+ "beachball": {
47
+ "disallowedChangeTypes": [
48
+ "patch",
49
+ "minor",
50
+ "major"
51
+ ]
52
+ },
53
+ "dependencies": {
54
+ "@azure/msal-common": "13.1.0",
55
+ "@azure/msal-node-runtime": "^0.13.6-alpha.0",
56
+ "keytar": "^7.8.0",
57
+ "node-addon-api": "^6.0.0"
58
+ },
59
+ "devDependencies": {
60
+ "@types/jest": "^29.5.0",
61
+ "@types/node": "^18.8.3",
62
+ "husky": "^4.2.5",
63
+ "jest": "^29.5.0",
64
+ "ts-jest": "^29.0.5",
65
+ "tsdx": "^0.14.1",
66
+ "tslib": "^2.0.0",
67
+ "typescript": "~4.8.4"
68
+ }
69
+ }
package/src/Dpapi.ts CHANGED
@@ -1,12 +1,12 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
-
6
- export interface DpapiBindings{
7
- protectData(dataToEncrypt: Uint8Array, optionalEntropy: Uint8Array, scope: string): Uint8Array
8
- unprotectData(encryptData: Uint8Array, optionalEntropy: Uint8Array, scope: string): Uint8Array
9
- }
10
- /* eslint-disable-next-line @typescript-eslint/no-var-requires, no-var, import/no-commonjs */
11
- export var Dpapi: DpapiBindings = require("../build/Release/dpapi.node");
12
- export default Dpapi;
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ export interface DpapiBindings{
7
+ protectData(dataToEncrypt: Uint8Array, optionalEntropy: Uint8Array, scope: string): Uint8Array
8
+ unprotectData(encryptData: Uint8Array, optionalEntropy: Uint8Array, scope: string): Uint8Array
9
+ }
10
+ /* eslint-disable-next-line @typescript-eslint/no-var-requires, no-var, import/no-commonjs */
11
+ export var Dpapi: DpapiBindings = require("../build/Release/dpapi.node");
12
+ export default Dpapi;