@azure/msal-node-extensions 1.0.0-alpha.9 → 1.0.0-beta.0

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 (117) hide show
  1. package/README.md +174 -8
  2. package/bin/arm64/dpapi.node +0 -0
  3. package/bin/ia32/dpapi.node +0 -0
  4. package/bin/x64/dpapi.node +0 -0
  5. package/dist/{dpapi-addon/Dpapi.d.ts → Dpapi.d.ts} +4 -4
  6. package/dist/Dpapi.esm.js +24 -0
  7. package/dist/Dpapi.esm.js.map +1 -0
  8. package/dist/Dpapi.js +24 -0
  9. package/dist/Dpapi.js.map +1 -0
  10. package/dist/broker/NativeBrokerPlugin.d.ts +20 -0
  11. package/dist/broker/NativeBrokerPlugin.esm.js +408 -0
  12. package/dist/broker/NativeBrokerPlugin.esm.js.map +1 -0
  13. package/dist/broker/NativeBrokerPlugin.js +410 -0
  14. package/dist/broker/NativeBrokerPlugin.js.map +1 -0
  15. package/dist/error/NativeAuthError.d.ts +6 -0
  16. package/dist/error/NativeAuthError.esm.js +20 -0
  17. package/dist/error/NativeAuthError.esm.js.map +1 -0
  18. package/dist/error/NativeAuthError.js +22 -0
  19. package/dist/error/NativeAuthError.js.map +1 -0
  20. package/dist/error/PersistenceError.esm.js +89 -0
  21. package/dist/error/PersistenceError.esm.js.map +1 -0
  22. package/{src/error/PersistenceError.ts → dist/error/PersistenceError.js} +23 -33
  23. package/dist/error/PersistenceError.js.map +1 -0
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.esm.js +12 -0
  26. package/dist/index.esm.js.map +1 -0
  27. package/dist/index.js +24 -6
  28. package/dist/index.js.map +1 -0
  29. package/dist/lock/CrossPlatformLock.esm.js +94 -0
  30. package/dist/lock/CrossPlatformLock.esm.js.map +1 -0
  31. package/dist/lock/CrossPlatformLock.js +96 -0
  32. package/dist/lock/CrossPlatformLock.js.map +1 -0
  33. package/dist/lock/CrossPlatformLockOptions.d.ts +1 -1
  34. package/dist/packageMetadata.d.ts +2 -0
  35. package/dist/packageMetadata.esm.js +8 -0
  36. package/dist/packageMetadata.esm.js.map +1 -0
  37. package/dist/packageMetadata.js +11 -0
  38. package/dist/packageMetadata.js.map +1 -0
  39. package/{src/persistence/BasePersistence.ts → dist/persistence/BasePersistence.esm.js} +18 -23
  40. package/dist/persistence/BasePersistence.esm.js.map +1 -0
  41. package/dist/persistence/BasePersistence.js +38 -0
  42. package/dist/persistence/BasePersistence.js.map +1 -0
  43. package/dist/persistence/DataProtectionScope.d.ts +5 -4
  44. package/{src/persistence/DataProtectionScope.ts → dist/persistence/DataProtectionScope.esm.js} +9 -5
  45. package/dist/persistence/DataProtectionScope.esm.js.map +1 -0
  46. package/dist/persistence/DataProtectionScope.js +26 -0
  47. package/dist/persistence/DataProtectionScope.js.map +1 -0
  48. package/dist/persistence/FilePersistence.d.ts +1 -0
  49. package/dist/persistence/FilePersistence.esm.js +173 -0
  50. package/dist/persistence/FilePersistence.esm.js.map +1 -0
  51. package/dist/persistence/FilePersistence.js +175 -0
  52. package/dist/persistence/FilePersistence.js.map +1 -0
  53. package/dist/persistence/FilePersistenceWithDataProtection.esm.js +84 -0
  54. package/dist/persistence/FilePersistenceWithDataProtection.esm.js.map +1 -0
  55. package/dist/persistence/FilePersistenceWithDataProtection.js +86 -0
  56. package/dist/persistence/FilePersistenceWithDataProtection.js.map +1 -0
  57. package/dist/persistence/IPersistenceConfiguration.d.ts +2 -0
  58. package/dist/persistence/KeychainPersistence.d.ts +2 -2
  59. package/dist/persistence/KeychainPersistence.esm.js +90 -0
  60. package/dist/persistence/KeychainPersistence.esm.js.map +1 -0
  61. package/dist/persistence/KeychainPersistence.js +92 -0
  62. package/dist/persistence/KeychainPersistence.js.map +1 -0
  63. package/dist/persistence/LibSecretPersistence.d.ts +2 -2
  64. package/dist/persistence/LibSecretPersistence.esm.js +91 -0
  65. package/dist/persistence/LibSecretPersistence.esm.js.map +1 -0
  66. package/dist/persistence/LibSecretPersistence.js +93 -0
  67. package/dist/persistence/LibSecretPersistence.js.map +1 -0
  68. package/dist/persistence/PersistenceCachePlugin.d.ts +1 -1
  69. package/{src/persistence/PersistenceCachePlugin.ts → dist/persistence/PersistenceCachePlugin.esm.js} +27 -34
  70. package/dist/persistence/PersistenceCachePlugin.esm.js.map +1 -0
  71. package/dist/persistence/PersistenceCachePlugin.js +101 -0
  72. package/dist/persistence/PersistenceCachePlugin.js.map +1 -0
  73. package/dist/persistence/PersistenceCreator.d.ts +1 -1
  74. package/dist/persistence/PersistenceCreator.esm.js +63 -0
  75. package/dist/persistence/PersistenceCreator.esm.js.map +1 -0
  76. package/dist/persistence/PersistenceCreator.js +65 -0
  77. package/dist/persistence/PersistenceCreator.js.map +1 -0
  78. package/dist/utils/Constants.d.ts +12 -5
  79. package/{src/utils/Constants.ts → dist/utils/Constants.esm.js} +17 -17
  80. package/dist/utils/Constants.esm.js.map +1 -0
  81. package/dist/utils/Constants.js +66 -0
  82. package/dist/utils/Constants.js.map +1 -0
  83. package/dist/utils/Environment.d.ts +1 -1
  84. package/{src/utils/Environment.ts → dist/utils/Environment.esm.js} +44 -49
  85. package/dist/utils/Environment.esm.js.map +1 -0
  86. package/dist/utils/Environment.js +96 -0
  87. package/dist/utils/Environment.js.map +1 -0
  88. package/dist/utils/TypeGuards.d.ts +5 -0
  89. package/dist/utils/TypeGuards.esm.js +16 -0
  90. package/dist/utils/TypeGuards.esm.js.map +1 -0
  91. package/dist/utils/TypeGuards.js +18 -0
  92. package/dist/utils/TypeGuards.js.map +1 -0
  93. package/package.json +70 -52
  94. package/CHANGELOG.json +0 -167
  95. package/binding.gyp +0 -29
  96. package/changelog.md +0 -77
  97. package/dist/msal-node-extensions.cjs.development.js +0 -902
  98. package/dist/msal-node-extensions.cjs.development.js.map +0 -1
  99. package/dist/msal-node-extensions.cjs.production.min.js +0 -2
  100. package/dist/msal-node-extensions.cjs.production.min.js.map +0 -1
  101. package/dist/msal-node-extensions.esm.js +0 -902
  102. package/dist/msal-node-extensions.esm.js.map +0 -1
  103. package/src/dpapi-addon/Dpapi.ts +0 -12
  104. package/src/dpapi-addon/dpapi_addon.h +0 -6
  105. package/src/dpapi-addon/dpapi_not_supported.cpp +0 -19
  106. package/src/dpapi-addon/dpapi_win.cpp +0 -114
  107. package/src/dpapi-addon/main.cpp +0 -32
  108. package/src/index.ts +0 -16
  109. package/src/lock/CrossPlatformLock.ts +0 -89
  110. package/src/lock/CrossPlatformLockOptions.ts +0 -15
  111. package/src/persistence/FilePersistence.ts +0 -140
  112. package/src/persistence/FilePersistenceWithDataProtection.ts +0 -92
  113. package/src/persistence/IPersistence.ts +0 -17
  114. package/src/persistence/IPersistenceConfiguration.ts +0 -14
  115. package/src/persistence/KeychainPersistence.ts +0 -86
  116. package/src/persistence/LibSecretPersistence.ts +0 -87
  117. package/src/persistence/PersistenceCreator.ts +0 -73
package/package.json CHANGED
@@ -1,52 +1,70 @@
1
- {
2
- "name": "@azure/msal-node-extensions",
3
- "version": "1.0.0-alpha.9",
4
- "license": "MIT",
5
- "main": "dist/index.js",
6
- "typings": "dist/index.d.ts",
7
- "keywords": [
8
- "js",
9
- "ts",
10
- "node",
11
- "AAD",
12
- "msal",
13
- "extensions"
14
- ],
15
- "files": [
16
- "dist",
17
- "src",
18
- "binding.gyp"
19
- ],
20
- "engines": {
21
- "node": ">=10"
22
- },
23
- "scripts": {
24
- "start": "tsdx watch",
25
- "build": "tsdx build",
26
- "build:common": "cd ../../lib/msal-common && npm i && npm run build && npm link",
27
- "link:common": "npm link @azure/msal-common",
28
- "test": "tsdx test",
29
- "lint": "cd ../../ && npm run lint:node:extensions",
30
- "lint:fix": "npm run lint -- -- --fix",
31
- "prepack": "npm run build"
32
- },
33
- "author": {
34
- "name": "Microsoft",
35
- "email": "nugetaad@microsoft.com",
36
- "url": "https://www.microsoft.com"
37
- },
38
- "module": "dist/test.esm.js",
39
- "dependencies": {
40
- "@azure/msal-common": "^4.5.0",
41
- "bindings": "^1.5.0",
42
- "keytar": "^7.6.0",
43
- "nan": "^2.13.2"
44
- },
45
- "devDependencies": {
46
- "husky": "^4.2.5",
47
- "node-gyp": "^7.0.0",
48
- "tsdx": "^0.14.1",
49
- "tslib": "^2.0.0",
50
- "typescript": "^3.9.3"
51
- }
52
- }
1
+ {
2
+ "name": "@azure/msal-node-extensions",
3
+ "version": "1.0.0-beta.0",
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
+ "keywords": [
12
+ "js",
13
+ "ts",
14
+ "node",
15
+ "AAD",
16
+ "msal",
17
+ "extensions"
18
+ ],
19
+ "files": [
20
+ "dist",
21
+ "bin"
22
+ ],
23
+ "engines": {
24
+ "node": "18 || 20"
25
+ },
26
+ "scripts": {
27
+ "compile": "node-gyp rebuild",
28
+ "clean": "shx rm -rf dist bin",
29
+ "build": "npm run clean && rollup -c --strictDeprecations --bundleConfigAsCjs && node ./scripts/buildBinaries.js",
30
+ "build:common": "cd ../../lib/msal-common && npm run build",
31
+ "build:all": "npm run build:common && npm run build",
32
+ "test": "jest",
33
+ "test:coverage": "jest --coverage",
34
+ "link:localDeps": "npx lerna@6 bootstrap --scope @azure/msal-common --scope @azure/msal-node-extensions",
35
+ "lint": "cd ../../ && npm run lint:node:extensions",
36
+ "lint:fix": "npm run lint -- -- --fix",
37
+ "prepack": "npm run build:all && node ./scripts/checkBinaries.js"
38
+ },
39
+ "author": {
40
+ "name": "Microsoft",
41
+ "email": "nugetaad@microsoft.com",
42
+ "url": "https://www.microsoft.com"
43
+ },
44
+ "module": "dist/msal-node-extensions.esm.js",
45
+ "beachball": {
46
+ "disallowedChangeTypes": [
47
+ "patch",
48
+ "minor",
49
+ "major"
50
+ ]
51
+ },
52
+ "dependencies": {
53
+ "@azure/msal-common": "14.0.0-beta.0",
54
+ "@azure/msal-node-runtime": "^0.13.6-alpha.0",
55
+ "keytar": "^7.8.0"
56
+ },
57
+ "devDependencies": {
58
+ "@rollup/plugin-node-resolve": "^15.0.2",
59
+ "@rollup/plugin-typescript": "^11.1.0",
60
+ "@types/jest": "^29.5.1",
61
+ "@types/node": "^18.8.3",
62
+ "jest": "^29.5.0",
63
+ "node-addon-api": "^6.1.0",
64
+ "rollup": "^3.20.2",
65
+ "shx": "^0.3.4",
66
+ "ts-jest": "^29.1.0",
67
+ "tslib": "^2.0.0",
68
+ "typescript": "^4.9.5"
69
+ }
70
+ }
package/CHANGELOG.json DELETED
@@ -1,167 +0,0 @@
1
- {
2
- "name": "@azure/msal-node-extensions",
3
- "entries": [
4
- {
5
- "date": "Thu, 22 Jul 2021 22:50:22 GMT",
6
- "tag": "@azure/msal-node-extensions_v1.0.0-alpha.9",
7
- "version": "1.0.0-alpha.9",
8
- "comments": {
9
- "prerelease": [
10
- {
11
- "comment": "feat: add the persistence creator (#3859)",
12
- "author": "samuelkamau@microsoft.com",
13
- "commit": "a916871108c93904a62e7729edb0e2287719a532",
14
- "package": "@azure/msal-node-extensions"
15
- },
16
- {
17
- "comment": "fix: bump up the msal-common version",
18
- "author": "samuelkamau@microsoft.com",
19
- "commit": "2bf61e9e1ed3697352269537f7e24ebbac4d926b",
20
- "package": "@azure/msal-node-extensions"
21
- }
22
- ]
23
- }
24
- },
25
- {
26
- "date": "Tue, 29 Jun 2021 00:28:30 GMT",
27
- "tag": "@azure/msal-node-extensions_v1.0.0-alpha.8",
28
- "version": "1.0.0-alpha.8",
29
- "comments": {
30
- "prerelease": [
31
- {
32
- "comment": "verifyPersistence returns the right value on failure(#3787)",
33
- "author": "sameera.gajjarapu@microsoft.com",
34
- "commit": "dc8086acc0ccc91e066e886adffd5895911d33f0",
35
- "package": "@azure/msal-node-extensions"
36
- }
37
- ]
38
- }
39
- },
40
- {
41
- "date": "Wed, 23 Jun 2021 00:01:49 GMT",
42
- "tag": "@azure/msal-node-extensions_v1.0.0-alpha.7",
43
- "version": "1.0.0-alpha.7",
44
- "comments": {
45
- "prerelease": [
46
- {
47
- "comment": "Add logs to test beachball",
48
- "author": "sameera.gajjarapu@microsoft.com",
49
- "commit": "cc28e43b3dcdb45f2469b14cf52a223f7d59b0d9",
50
- "package": "@azure/msal-node-extensions"
51
- }
52
- ]
53
- }
54
- },
55
- {
56
- "date": "Fri, 05 Mar 2021 21:26:46 GMT",
57
- "tag": "@azure/msal-node-extensions_v1.0.0-alpha.6",
58
- "version": "1.0.0-alpha.6",
59
- "comments": {
60
- "prerelease": [
61
- {
62
- "comment": "Fix lint in extensions to trigger version bump",
63
- "author": "janutter@microsoft.com",
64
- "commit": "4901e740f2687447f1eac537dac71ef243ce957a",
65
- "package": "@azure/msal-node-extensions"
66
- }
67
- ]
68
- }
69
- },
70
- {
71
- "date": "Wed, 03 Mar 2021 22:13:23 GMT",
72
- "tag": "@azure/msal-node-extensions_v1.0.0-alpha.5",
73
- "version": "1.0.0-alpha.5",
74
- "comments": {
75
- "prerelease": [
76
- {
77
- "comment": "Fix npm audit warnings",
78
- "author": "janutter@microsoft.com",
79
- "commit": "751026cdaa24dd370c50ad714bf0b1d54c71fbde",
80
- "package": "@azure/msal-node-extensions"
81
- }
82
- ]
83
- }
84
- },
85
- {
86
- "date": "Wed, 14 Oct 2020 23:45:07 GMT",
87
- "tag": "@azure/msal-node-extensions_v1.0.0-alpha.4",
88
- "version": "1.0.0-alpha.4",
89
- "comments": {
90
- "prerelease": [
91
- {
92
- "comment": "Update PersistenceCachePlugin (#2348)",
93
- "author": "sameera.gajjarapu@microsoft.com",
94
- "commit": "26723689e35918c59bd6ce58ba8cb886118676c6",
95
- "package": "@azure/msal-node-extensions"
96
- }
97
- ]
98
- }
99
- },
100
- {
101
- "date": "Wed, 30 Sep 2020 17:58:33 GMT",
102
- "tag": "@azure/msal-node-extensions_v1.0.0-alpha.3",
103
- "version": "1.0.0-alpha.3",
104
- "comments": {
105
- "none": [
106
- {
107
- "comment": "Updating the pre-release version(#2342)",
108
- "author": "sameera.gajjarapu@microsoft.com",
109
- "commit": "bc3f324edd6cf83937c31f73d3aefc6dbaf5f748",
110
- "package": "@azure/msal-node-extensions"
111
- },
112
- {
113
- "comment": "Update changelog versions for msal-node and extensions (#2336)",
114
- "author": "hemoral@microsoft.com",
115
- "commit": "323875a725e0d5049ff6742a9ca5160c2d4b7d0d",
116
- "package": "@azure/msal-node-extensions"
117
- }
118
- ]
119
- }
120
- },
121
- {
122
- "date": "Wed, 23 Sep 2020 21:13:48 GMT",
123
- "tag": "@azure/msal-node-extensions_v1.0.0-alpha.3",
124
- "version": "1.0.0-alpha.3",
125
- "comments": {
126
- "prerelease": [
127
- {
128
- "comment": "Update error message (#2265)",
129
- "author": "sagonzal@microsoft.com",
130
- "commit": "81d044a2a4640ebfa8b3bd80cb30cc2c602bbef1",
131
- "package": "@azure/msal-node-extensions"
132
- }
133
- ]
134
- }
135
- },
136
- {
137
- "date": "Thu, 17 Sep 2020 23:16:22 GMT",
138
- "tag": "@azure/msal-node-extensions_v1.0.0",
139
- "version": "1.0.0-alpha.2",
140
- "comments": {
141
- "none": [
142
- {
143
- "comment": "Update msal-node-extensionst to use central eslint configuration",
144
- "author": "janutter@microsoft.com",
145
- "commit": "fc49c6f16b3f7a62a67d249107fc484272133305",
146
- "package": "@azure/msal-node-extensions"
147
- }
148
- ]
149
- }
150
- },
151
- {
152
- "date": "Thu, 13 Aug 2020 02:20:48 GMT",
153
- "tag": "@azure/msal-node-extensions_v1.0.0-alpha.2",
154
- "version": "1.0.0-alpha.2",
155
- "comments": {
156
- "none": [
157
- {
158
- "comment": "updating files for automated release steps",
159
- "author": "prkanher@microsoft.com",
160
- "commit": "791409e7c9975218ae2b3a91e6a6a190b59474b1",
161
- "package": "@azure/msal-node-extensions"
162
- }
163
- ]
164
- }
165
- }
166
- ]
167
- }
package/binding.gyp DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "targets": [
3
- {
4
- 'target_name': 'dpapi',
5
- 'version': '0.1.0',
6
- 'sources': [
7
- 'src/dpapi-addon/main.cpp',
8
- 'src/dpapi-addon/dpapi_addon.h'
9
- ],
10
- 'include_dirs': [
11
- "<!(node -e \"require('nan')\")",
12
- "include"
13
- ],
14
- 'conditions': [
15
- ['OS=="win"', {
16
- 'sources': [
17
- 'src/dpapi-addon/dpapi_win.cpp',
18
- ],
19
- 'libraries': [
20
- '-lcrypt32.lib'
21
- ],
22
- }],
23
- ['OS not in ["win"]', {
24
- 'sources': [ 'src/dpapi-addon/dpapi_not_supported.ccp' ]
25
- }]
26
- ]
27
- }
28
- ]
29
- }
package/changelog.md DELETED
@@ -1,77 +0,0 @@
1
- # Change Log - @azure/msal-node-extensions
2
-
3
- This log was last generated on Thu, 22 Jul 2021 22:50:22 GMT and should not be manually modified.
4
-
5
- <!-- Start content -->
6
-
7
- ## 1.0.0-alpha.9
8
-
9
- Thu, 22 Jul 2021 22:50:22 GMT
10
-
11
- ### Changes
12
-
13
- - feat: add the persistence creator (#3859) (samuelkamau@microsoft.com)
14
- - fix: bump up the msal-common version (samuelkamau@microsoft.com)
15
-
16
- ## 1.0.0-alpha.8
17
-
18
- Tue, 29 Jun 2021 00:28:30 GMT
19
-
20
- ### Changes
21
-
22
- - verifyPersistence returns the right value on failure(#3787) (sameera.gajjarapu@microsoft.com)
23
-
24
- ## 1.0.0-alpha.7
25
-
26
- Wed, 23 Jun 2021 00:01:49 GMT
27
-
28
- ### Changes
29
-
30
- - Add logs to test beachball (sameera.gajjarapu@microsoft.com)
31
-
32
- ## 1.0.0-alpha.6
33
-
34
- Fri, 05 Mar 2021 21:26:46 GMT
35
-
36
- ### Changes
37
-
38
- - Fix lint in extensions to trigger version bump (janutter@microsoft.com)
39
-
40
- ## 1.0.0-alpha.5
41
-
42
- Wed, 03 Mar 2021 22:13:23 GMT
43
-
44
- ### Changes
45
-
46
- - Fix npm audit warnings (janutter@microsoft.com)
47
-
48
- ## 1.0.0-alpha.4
49
-
50
- Wed, 14 Oct 2020 23:45:07 GMT
51
-
52
- ### Changes
53
-
54
- - Update PersistenceCachePlugin (#2348) (sameera.gajjarapu@microsoft.com)
55
-
56
- ## 1.0.0-alpha.3
57
-
58
- Wed, 23 Sep 2020 21:13:48 GMT
59
-
60
- ### Changes
61
-
62
- - Update error message (#2265) (sagonzal@microsoft.com)
63
-
64
- # 1.0.0-alpha.2
65
- - Fix issue where binding.gyp was not being uploaded to npm
66
-
67
- # 1.0.0-alpha.1
68
- - Increment @azure/msal-common version to 1.1.0
69
-
70
- # 1.0.0-alpha.0
71
-
72
- - Extensions 1: Sets directory structure, adds Windows DPAPI Node addon (#1830)
73
- - Extensions 2: Add cross process lock (#1831)
74
- - Extensions 3: Add cache persistence plugin, persistence on Windows, Linux, and Mac (#1832)
75
- - Extensions 4: Add sample (#1834)
76
- - Extensions 5: Add documentation, add logger (#1835)
77
- - Extensions 6: Add tests (#1849)