@azure/msal-node-extensions 1.5.23 → 5.0.0-alpha.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 (75) hide show
  1. package/bin/arm64/dpapi.node +0 -0
  2. package/bin/ia32/dpapi.node +0 -0
  3. package/bin/x64/dpapi.node +0 -0
  4. package/dist/Dpapi.mjs +1 -1
  5. package/dist/Dpapi.mjs.map +1 -1
  6. package/dist/broker/NativeBrokerPlugin.mjs +30 -42
  7. package/dist/broker/NativeBrokerPlugin.mjs.map +1 -1
  8. package/dist/error/NativeAuthError.d.ts +1 -1
  9. package/dist/error/NativeAuthError.mjs +2 -3
  10. package/dist/error/NativeAuthError.mjs.map +1 -1
  11. package/dist/error/PersistenceError.mjs +1 -1
  12. package/dist/error/PersistenceError.mjs.map +1 -1
  13. package/dist/index.d.ts +0 -1
  14. package/dist/index.mjs +1 -2
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/lib/msal-common/dist/constants/AADServerParamKeys.mjs +2 -2
  17. package/dist/lib/msal-common/dist/constants/AADServerParamKeys.mjs.map +1 -1
  18. package/dist/lib/msal-common/dist/error/AuthError.mjs +16 -11
  19. package/dist/lib/msal-common/dist/error/AuthError.mjs.map +1 -1
  20. package/dist/lib/msal-common/dist/error/ClientAuthError.mjs +4 -56
  21. package/dist/lib/msal-common/dist/error/ClientAuthError.mjs.map +1 -1
  22. package/dist/lib/msal-common/dist/error/ClientAuthErrorCodes.mjs +4 -49
  23. package/dist/lib/msal-common/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
  24. package/dist/lib/msal-common/dist/error/ClientConfigurationError.mjs +4 -30
  25. package/dist/lib/msal-common/dist/error/ClientConfigurationError.mjs.map +1 -1
  26. package/dist/lib/msal-common/dist/error/ClientConfigurationErrorCodes.mjs +4 -30
  27. package/dist/lib/msal-common/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
  28. package/dist/lib/msal-common/dist/error/InteractionRequiredAuthError.mjs +6 -7
  29. package/dist/lib/msal-common/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
  30. package/dist/lib/msal-common/dist/error/ServerError.mjs +2 -2
  31. package/dist/lib/msal-common/dist/error/ServerError.mjs.map +1 -1
  32. package/dist/lib/msal-common/dist/logger/Logger.mjs +17 -23
  33. package/dist/lib/msal-common/dist/logger/Logger.mjs.map +1 -1
  34. package/dist/lib/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs +29 -31
  35. package/dist/lib/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
  36. package/dist/lib/msal-common/dist/utils/Constants.mjs +15 -79
  37. package/dist/lib/msal-common/dist/utils/Constants.mjs.map +1 -1
  38. package/dist/lib/msal-common/dist/utils/TimeUtils.mjs +2 -2
  39. package/dist/lib/msal-common/dist/utils/TimeUtils.mjs.map +1 -1
  40. package/dist/lock/CrossPlatformLock.mjs +10 -10
  41. package/dist/lock/CrossPlatformLock.mjs.map +1 -1
  42. package/dist/packageMetadata.d.ts +1 -1
  43. package/dist/packageMetadata.mjs +2 -2
  44. package/dist/persistence/BasePersistence.mjs +1 -1
  45. package/dist/persistence/BasePersistence.mjs.map +1 -1
  46. package/dist/persistence/DataProtectionScope.mjs +1 -1
  47. package/dist/persistence/DataProtectionScope.mjs.map +1 -1
  48. package/dist/persistence/FilePersistence.mjs +5 -5
  49. package/dist/persistence/FilePersistence.mjs.map +1 -1
  50. package/dist/persistence/FilePersistenceWithDataProtection.mjs +2 -2
  51. package/dist/persistence/FilePersistenceWithDataProtection.mjs.map +1 -1
  52. package/dist/persistence/KeychainPersistence.mjs +1 -1
  53. package/dist/persistence/KeychainPersistence.mjs.map +1 -1
  54. package/dist/persistence/LibSecretPersistence.mjs +1 -1
  55. package/dist/persistence/LibSecretPersistence.mjs.map +1 -1
  56. package/dist/persistence/PersistenceCachePlugin.mjs +12 -12
  57. package/dist/persistence/PersistenceCachePlugin.mjs.map +1 -1
  58. package/dist/persistence/PersistenceCreator.mjs +1 -1
  59. package/dist/persistence/PersistenceCreator.mjs.map +1 -1
  60. package/dist/utils/Constants.mjs +1 -1
  61. package/dist/utils/Constants.mjs.map +1 -1
  62. package/dist/utils/Environment.mjs +1 -1
  63. package/dist/utils/Environment.mjs.map +1 -1
  64. package/dist/utils/TypeGuards.mjs +1 -1
  65. package/dist/utils/TypeGuards.mjs.map +1 -1
  66. package/lib/msal-node-extensions.cjs +180 -430
  67. package/lib/msal-node-extensions.cjs.map +1 -1
  68. package/lib/types/error/NativeAuthError.d.ts +1 -1
  69. package/lib/types/index.d.ts +0 -1
  70. package/lib/types/packageMetadata.d.ts +1 -1
  71. package/package.json +86 -88
  72. package/dist/utils/StringUtils.d.ts +0 -8
  73. package/dist/utils/StringUtils.mjs +0 -32
  74. package/dist/utils/StringUtils.mjs.map +0 -1
  75. package/lib/types/utils/StringUtils.d.ts +0 -8
@@ -1,6 +1,6 @@
1
1
  import { AuthError } from "@azure/msal-common/node";
2
2
  export declare class NativeAuthError extends AuthError {
3
3
  statusCode: number;
4
- tag: string;
4
+ tag: number;
5
5
  constructor(errorStatus: string, errorContext: string, errorCode: number, errorTag: number);
6
6
  }
@@ -9,5 +9,4 @@ export { CrossPlatformLockOptions } from "./lock/CrossPlatformLockOptions.js";
9
9
  export { PersistenceCreator } from "./persistence/PersistenceCreator.js";
10
10
  export { IPersistenceConfiguration } from "./persistence/IPersistenceConfiguration.js";
11
11
  export { Environment } from "./utils/Environment.js";
12
- export { StringUtils } from "./utils/StringUtils.js";
13
12
  export { NativeBrokerPlugin } from "./broker/NativeBrokerPlugin.js";
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@azure/msal-node-extensions";
2
- export declare const version = "1.5.23";
2
+ export declare const version = "5.0.0-alpha.0";
package/package.json CHANGED
@@ -1,91 +1,89 @@
1
1
  {
2
- "name": "@azure/msal-node-extensions",
3
- "version": "1.5.23",
4
- "repository": {
5
- "type": "git",
6
- "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
7
- },
8
- "license": "MIT",
9
- "type": "module",
10
- "module": "dist/index.mjs",
11
- "types": "dist/index.d.ts",
12
- "main": "lib/msal-node-extensions.cjs",
13
- "exports": {
14
- ".": {
15
- "import": {
16
- "types": "./dist/index.d.ts",
17
- "default": "./dist/index.mjs"
18
- },
19
- "require": {
20
- "types": "./lib/types/index.d.ts",
21
- "default": "./lib/msal-node-extensions.cjs"
22
- }
2
+ "name": "@azure/msal-node-extensions",
3
+ "version": "5.0.0-alpha.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
23
7
  },
24
- "./package.json": "./package.json"
25
- },
26
- "keywords": [
27
- "js",
28
- "ts",
29
- "node",
30
- "AAD",
31
- "msal",
32
- "extensions"
33
- ],
34
- "files": [
35
- "dist",
36
- "bin",
37
- "lib"
38
- ],
39
- "engines": {
40
- "node": ">=16"
41
- },
42
- "scripts": {
43
- "compile": "node-gyp rebuild",
44
- "install": "exit 0",
45
- "clean": "shx rm -rf dist bin lib",
46
- "build": "npm run clean && npm run build:js && npm run build:binaries",
47
- "build:js": "rollup -c --strictDeprecations --bundleConfigAsCjs",
48
- "build:binaries": "node ./scripts/buildBinaries.cjs",
49
- "build:all": "cd ../.. && npm run build --workspace=@azure/msal-common --workspace=@azure/msal-node-extensions",
50
- "test": "jest",
51
- "test:coverage": "jest --coverage",
52
- "lint": "eslint src --ext .ts",
53
- "lint:fix": "npm run lint -- --fix",
54
- "format:check": "prettier --ignore-path .gitignore --check src test",
55
- "format:fix": "prettier --ignore-path .gitignore --write src test",
56
- "prepack": "npm run build:all && node ./scripts/checkBinaries.cjs"
57
- },
58
- "author": {
59
- "name": "Microsoft",
60
- "email": "nugetaad@microsoft.com",
61
- "url": "https://www.microsoft.com"
62
- },
63
- "beachball": {
64
- "disallowedChangeTypes": [
65
- "major"
66
- ]
67
- },
68
- "dependencies": {
69
- "@azure/msal-common": "15.13.0",
70
- "@azure/msal-node-runtime": "^0.19.0",
71
- "keytar": "^7.8.0"
72
- },
73
- "devDependencies": {
74
- "@rollup/plugin-node-resolve": "^15.0.2",
75
- "@rollup/plugin-typescript": "^11.1.0",
76
- "@types/jest": "^29.5.1",
77
- "@types/node": "^20.3.1",
78
- "eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
79
- "jest": "^29.5.0",
80
- "jest-junit": "^16.0.0",
81
- "msal-test-utils": "file:../../shared-test-utils",
82
- "node-addon-api": "^6.1.0",
83
- "rollup": "^4.22.4",
84
- "rollup-msal": "file:../../shared-configs/rollup-msal",
85
- "shx": "^0.3.4",
86
- "ts-jest": "^29.1.0",
87
- "ts-jest-mock-import-meta": "^1.1.0",
88
- "tslib": "^2.0.0",
89
- "typescript": "^4.9.5"
90
- }
8
+ "license": "MIT",
9
+ "type": "module",
10
+ "module": "dist/index.mjs",
11
+ "types": "dist/index.d.ts",
12
+ "main": "lib/msal-node-extensions.cjs",
13
+ "exports": {
14
+ ".": {
15
+ "import": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.mjs"
18
+ },
19
+ "require": {
20
+ "types": "./lib/types/index.d.ts",
21
+ "default": "./lib/msal-node-extensions.cjs"
22
+ }
23
+ },
24
+ "./package.json": "./package.json"
25
+ },
26
+ "keywords": [
27
+ "js",
28
+ "ts",
29
+ "node",
30
+ "AAD",
31
+ "msal",
32
+ "extensions"
33
+ ],
34
+ "files": [
35
+ "dist",
36
+ "bin",
37
+ "lib"
38
+ ],
39
+ "engines": {
40
+ "node": ">=20"
41
+ },
42
+ "scripts": {
43
+ "compile": "node-gyp rebuild",
44
+ "install": "exit 0",
45
+ "clean": "shx rm -rf dist bin lib",
46
+ "build": "npm run clean && npm run build:js && npm run build:binaries",
47
+ "build:js": "rollup -c --strictDeprecations --bundleConfigAsCjs",
48
+ "build:binaries": "node ./scripts/buildBinaries.cjs",
49
+ "build:all": "cd ../.. && npm run build --workspace=@azure/msal-common --workspace=@azure/msal-node-extensions",
50
+ "test": "jest",
51
+ "test:coverage": "jest --coverage",
52
+ "lint": "eslint src --ext .ts",
53
+ "lint:fix": "npm run lint -- --fix",
54
+ "format:check": "prettier --ignore-path .gitignore --check src test",
55
+ "format:fix": "prettier --ignore-path .gitignore --write src test",
56
+ "prepack": "npm run build:all && node ./scripts/checkBinaries.cjs"
57
+ },
58
+ "author": {
59
+ "name": "Microsoft",
60
+ "email": "nugetaad@microsoft.com",
61
+ "url": "https://www.microsoft.com"
62
+ },
63
+ "beachball": {
64
+ "disallowedChangeTypes": []
65
+ },
66
+ "dependencies": {
67
+ "@azure/msal-common": "16.0.0-alpha.0",
68
+ "@azure/msal-node-runtime": "^0.18.1",
69
+ "keytar": "^7.8.0"
70
+ },
71
+ "devDependencies": {
72
+ "@rollup/plugin-node-resolve": "^15.0.2",
73
+ "@rollup/plugin-typescript": "^11.1.0",
74
+ "@types/jest": "^29.5.1",
75
+ "@types/node": "^20.3.1",
76
+ "eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
77
+ "jest": "^29.5.0",
78
+ "jest-junit": "^16.0.0",
79
+ "msal-test-utils": "file:../../shared-test-utils",
80
+ "node-addon-api": "^6.1.0",
81
+ "rollup": "^4.22.4",
82
+ "rollup-msal": "file:../../shared-configs/rollup-msal",
83
+ "shx": "^0.3.4",
84
+ "ts-jest": "^29.1.0",
85
+ "ts-jest-mock-import-meta": "^1.1.0",
86
+ "tslib": "^2.0.0",
87
+ "typescript": "^4.9.5"
88
+ }
91
89
  }
@@ -1,8 +0,0 @@
1
- export declare class StringUtils {
2
- /**
3
- * Converts a numeric tag to a string representation
4
- * @param tag - The numeric tag to convert
5
- * @returns The string representation of the tag
6
- */
7
- static tagToString(tag: number): string;
8
- }
@@ -1,32 +0,0 @@
1
- /*! @azure/msal-node-extensions v1.5.23 2025-09-24 */
2
- 'use strict';
3
- /*
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Licensed under the MIT License.
6
- */
7
- class StringUtils {
8
- /**
9
- * Converts a numeric tag to a string representation
10
- * @param tag - The numeric tag to convert
11
- * @returns The string representation of the tag
12
- */
13
- static tagToString(tag) {
14
- if (tag === 0) {
15
- return "UNTAG";
16
- }
17
- const tagSymbolSpace = "abcdefghijklmnopqrstuvwxyz0123456789****************************";
18
- let tagBuffer = "*****";
19
- const chars = [
20
- tagSymbolSpace[(tag >> 24) & 0x3f],
21
- tagSymbolSpace[(tag >> 18) & 0x3f],
22
- tagSymbolSpace[(tag >> 12) & 0x3f],
23
- tagSymbolSpace[(tag >> 6) & 0x3f],
24
- tagSymbolSpace[(tag >> 0) & 0x3f],
25
- ];
26
- tagBuffer = chars.join("");
27
- return tagBuffer;
28
- }
29
- }
30
-
31
- export { StringUtils };
32
- //# sourceMappingURL=StringUtils.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StringUtils.mjs","sources":["../../src/utils/StringUtils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;MAEU,WAAW,CAAA;AACpB;;;;AAIG;IACH,OAAO,WAAW,CAAC,GAAW,EAAA;QAC1B,IAAI,GAAG,KAAK,CAAC,EAAE;AACX,YAAA,OAAO,OAAO,CAAC;AAClB,SAAA;QAED,MAAM,cAAc,GAChB,kEAAkE,CAAC;QACvE,IAAI,SAAS,GAAG,OAAO,CAAC;AAExB,QAAA,MAAM,KAAK,GAAG;YACV,cAAc,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC;YAClC,cAAc,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC;YAClC,cAAc,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,IAAI,CAAC;YAClC,cAAc,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC;YACjC,cAAc,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC;SACpC,CAAC;AAEF,QAAA,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAE3B,QAAA,OAAO,SAAS,CAAC;KACpB;AACJ;;;;"}
@@ -1,8 +0,0 @@
1
- export declare class StringUtils {
2
- /**
3
- * Converts a numeric tag to a string representation
4
- * @param tag - The numeric tag to convert
5
- * @returns The string representation of the tag
6
- */
7
- static tagToString(tag: number): string;
8
- }