push neon reactor

This commit is contained in:
2026-07-12 15:11:38 +02:00
parent 172e72dbcd
commit aeab5f7820
9597 changed files with 2407488 additions and 0 deletions
@@ -0,0 +1,54 @@
export declare const Constants: {
/**
* An existing file was the target of an operation that required that the target not exist
*/
EEXIST_ERROR: string;
/**
* No such file or directory: Commonly raised by fs operations to indicate that a component
* of the specified pathname does not exist. No entity (file or directory) could be found
* by the given path
*/
ENOENT_ERROR: string;
/**
* Operation not permitted. An attempt was made to perform an operation that requires
* elevated privileges.
*/
EPERM_ERROR: string;
/**
* Default service name for using MSAL Keytar
*/
DEFAULT_SERVICE_NAME: string;
/**
* Test data used to verify underlying persistence mechanism
*/
PERSISTENCE_TEST_DATA: string;
/**
* This is the value of a the guid if the process is being ran by the root user
*/
LINUX_ROOT_USER_GUID: number;
/**
* List of environment variables
*/
ENVIRONMENT: {
HOME: string;
LOGNAME: string;
USER: string;
LNAME: string;
USERNAME: string;
PLATFORM: string;
LOCAL_APPLICATION_DATA: string;
};
DEFAULT_CACHE_FILE_NAME: string;
};
export declare const Platform: {
readonly WINDOWS: "win32";
readonly LINUX: "linux";
readonly MACOS: "darwin";
};
export type Platform = (typeof Platform)[keyof typeof Platform];
export declare const ErrorCodes: {
readonly INTERATION_REQUIRED_ERROR_CODE: "interaction_required";
readonly SERVER_UNAVAILABLE: "server_unavailable";
readonly UNKNOWN: "unknown_error";
};
export type ErrorCodes = (typeof ErrorCodes)[keyof typeof ErrorCodes];
@@ -0,0 +1,62 @@
/*! @azure/msal-node-extensions v1.5.17 2025-07-08 */
'use strict';
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
const Constants = {
/**
* An existing file was the target of an operation that required that the target not exist
*/
EEXIST_ERROR: "EEXIST",
/**
* No such file or directory: Commonly raised by fs operations to indicate that a component
* of the specified pathname does not exist. No entity (file or directory) could be found
* by the given path
*/
ENOENT_ERROR: "ENOENT",
/**
* Operation not permitted. An attempt was made to perform an operation that requires
* elevated privileges.
*/
EPERM_ERROR: "EPERM",
/**
* Default service name for using MSAL Keytar
*/
DEFAULT_SERVICE_NAME: "msal-node-extensions",
/**
* Test data used to verify underlying persistence mechanism
*/
PERSISTENCE_TEST_DATA: "Dummy data to verify underlying persistence mechanism",
/**
* This is the value of a the guid if the process is being ran by the root user
*/
LINUX_ROOT_USER_GUID: 0,
/**
* List of environment variables
*/
ENVIRONMENT: {
HOME: "HOME",
LOGNAME: "LOGNAME",
USER: "USER",
LNAME: "LNAME",
USERNAME: "USERNAME",
PLATFORM: "platform",
LOCAL_APPLICATION_DATA: "LOCALAPPDATA",
},
// Name of the default cache file
DEFAULT_CACHE_FILE_NAME: "cache.json",
};
const Platform = {
WINDOWS: "win32",
LINUX: "linux",
MACOS: "darwin",
};
const ErrorCodes = {
INTERATION_REQUIRED_ERROR_CODE: "interaction_required",
SERVER_UNAVAILABLE: "server_unavailable",
UNKNOWN: "unknown_error",
};
export { Constants, ErrorCodes, Platform };
//# sourceMappingURL=Constants.mjs.map
@@ -0,0 +1 @@
{"version":3,"file":"Constants.mjs","sources":["../../src/utils/Constants.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEU,MAAA,SAAS,GAAG;AACrB;;AAEG;AACH,IAAA,YAAY,EAAE,QAAQ;AAEtB;;;;AAIG;AACH,IAAA,YAAY,EAAE,QAAQ;AAEtB;;;AAGG;AACH,IAAA,WAAW,EAAE,OAAO;AAEpB;;AAEG;AACH,IAAA,oBAAoB,EAAE,sBAAsB;AAE5C;;AAEG;AACH,IAAA,qBAAqB,EACjB,uDAAuD;AAE3D;;AAEG;AACH,IAAA,oBAAoB,EAAE,CAAC;AAEvB;;AAEG;AACH,IAAA,WAAW,EAAE;AACT,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,sBAAsB,EAAE,cAAc;AACzC,KAAA;;AAGD,IAAA,uBAAuB,EAAE,YAAY;EACvC;AAEW,MAAA,QAAQ,GAAG;AACpB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,QAAQ;EACR;AAGE,MAAA,UAAU,GAAG;AACtB,IAAA,8BAA8B,EAAE,sBAAsB;AACtD,IAAA,kBAAkB,EAAE,oBAAoB;AACxC,IAAA,OAAO,EAAE,eAAe;;;;;"}
@@ -0,0 +1,16 @@
export declare class Environment {
static get homeEnvVar(): string;
static get lognameEnvVar(): string;
static get userEnvVar(): string;
static get lnameEnvVar(): string;
static get usernameEnvVar(): string;
static getEnvironmentVariable(name: string): string;
static getEnvironmentPlatform(): string;
static isWindowsPlatform(): boolean;
static isLinuxPlatform(): boolean;
static isMacPlatform(): boolean;
static isLinuxRootUser(): boolean;
static getUserRootDirectory(): string | null;
static getUserHomeDirOnWindows(): string;
static getUserHomeDirOnUnix(): string | null;
}
@@ -0,0 +1,94 @@
/*! @azure/msal-node-extensions v1.5.17 2025-07-08 */
'use strict';
import path from 'path';
import { Constants, Platform } from './Constants.mjs';
import { PersistenceError } from '../error/PersistenceError.mjs';
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
class Environment {
static get homeEnvVar() {
return this.getEnvironmentVariable(Constants.ENVIRONMENT.HOME);
}
static get lognameEnvVar() {
return this.getEnvironmentVariable(Constants.ENVIRONMENT.LOGNAME);
}
static get userEnvVar() {
return this.getEnvironmentVariable(Constants.ENVIRONMENT.USER);
}
static get lnameEnvVar() {
return this.getEnvironmentVariable(Constants.ENVIRONMENT.LNAME);
}
static get usernameEnvVar() {
return this.getEnvironmentVariable(Constants.ENVIRONMENT.USERNAME);
}
static getEnvironmentVariable(name) {
return process.env[name] || "";
}
static getEnvironmentPlatform() {
return process.platform;
}
static isWindowsPlatform() {
return this.getEnvironmentPlatform() === Platform.WINDOWS;
}
static isLinuxPlatform() {
return this.getEnvironmentPlatform() === Platform.LINUX;
}
static isMacPlatform() {
return this.getEnvironmentPlatform() === Platform.MACOS;
}
static isLinuxRootUser() {
if (typeof process.getuid !== "function") {
return false;
}
return process.getuid() === Constants.LINUX_ROOT_USER_GUID;
}
static getUserRootDirectory() {
return !this.isWindowsPlatform()
? this.getUserHomeDirOnUnix()
: this.getUserHomeDirOnWindows();
}
static getUserHomeDirOnWindows() {
return this.getEnvironmentVariable(Constants.ENVIRONMENT.LOCAL_APPLICATION_DATA);
}
static getUserHomeDirOnUnix() {
if (this.isWindowsPlatform()) {
throw PersistenceError.createNotSupportedError("Getting the user home directory for unix is not supported in windows");
}
if (this.homeEnvVar) {
return this.homeEnvVar;
}
let username = null;
if (this.lognameEnvVar) {
username = this.lognameEnvVar;
}
else if (this.userEnvVar) {
username = this.userEnvVar;
}
else if (this.lnameEnvVar) {
username = this.lnameEnvVar;
}
else if (this.usernameEnvVar) {
username = this.usernameEnvVar;
}
if (this.isMacPlatform()) {
return username ? path.join("/Users", username) : null;
}
else if (this.isLinuxPlatform()) {
if (this.isLinuxRootUser()) {
return "/root";
}
else {
return username ? path.join("/home", username) : null;
}
}
else {
throw PersistenceError.createNotSupportedError("Getting the user home directory for unix is not supported in windows");
}
}
}
export { Environment };
//# sourceMappingURL=Environment.mjs.map
@@ -0,0 +1 @@
{"version":3,"file":"Environment.mjs","sources":["../../src/utils/Environment.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;MAMU,WAAW,CAAA;AACpB,IAAA,WAAW,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAClE;AAED,IAAA,WAAW,aAAa,GAAA;QACpB,OAAO,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;KACrE;AAED,IAAA,WAAW,UAAU,GAAA;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AM,gBAAgB,CAAC,uBAAuB,CAC1C,sEAAsE,CACzE,CAAC;AACL,SAAA;KACJ;AACJ;;;;"}
@@ -0,0 +1,5 @@
/// <reference types="node" resolution-mode="require"/>
/**
* Returns whether or not the given object is a Node.js error
*/
export declare const isNodeError: (error: unknown) => error is NodeJS.ErrnoException;
@@ -0,0 +1,15 @@
/*! @azure/msal-node-extensions v1.5.17 2025-07-08 */
'use strict';
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Returns whether or not the given object is a Node.js error
*/
const isNodeError = (error) => {
return !!error && typeof error === "object" && error.hasOwnProperty("code");
};
export { isNodeError };
//# sourceMappingURL=TypeGuards.mjs.map
@@ -0,0 +1 @@
{"version":3,"file":"TypeGuards.mjs","sources":["../../src/utils/TypeGuards.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;AAEG;AACU,MAAA,WAAW,GAAG,CAAC,KAAc,KAAoC;AAC1E,IAAA,OAAO,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AAChF;;;;"}