This commit is contained in:
asafmahlev 2024-03-04 15:14:45 +02:00
Родитель f171970ca9
Коммит fd31a19699
5 изменённых файлов: 39 добавлений и 25 удалений

Просмотреть файл

@ -4,3 +4,4 @@ node_modules
coverage
.nyc_output
jest.config.ts
packages/quick_start_browser

Просмотреть файл

@ -22,3 +22,5 @@ tsconfig.json
.idea
.mocharc.json
**/test/data/**/*
/.nx/cache

Просмотреть файл

@ -33,13 +33,14 @@ export class ClientDetails {
static defaultUser(): string {
if (isNode) {
let info = userInfo || require("os").userInfo();
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/no-unsafe-call,@typescript-eslint/no-var-requires
userInfo = userInfo || require("os").userInfo();
if (!userInfo) {
return None;
}
let username: string | undefined;
try {
username = info.username;
username = userInfo.username;
} catch (err: any) {
/* Ignore possible errors like "uv_os_get_passwd returned ENOMEM" that may occur in some environments. */

Просмотреть файл

@ -1,17 +1,24 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist/node/types",
"rootDir": "./src",
"paths": {
"azure-kusto-data": ["../azure-kusto-data/src"]
}
},
"include": ["src/**/*.ts", "src/**/*.json"],
"exclude": ["src/**/*.browser.ts"],
"references": [
{
"path": "../azure-kusto-data/tsconfig.json"
}
]
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist/node/types",
"rootDir": "./src",
"paths": {
"azure-kusto-data": [
"../azure-kusto-data/src"
]
}
},
"include": [
"src/**/*.ts",
"src/**/*.json"
],
"exclude": [
"src/**/*.browser.ts"
],
"references": [
{
"path": "../azure-kusto-data/tsconfig.json"
}
]
}

Просмотреть файл

@ -2,27 +2,30 @@
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"include": [
"src"
],
"references": [
{ "path": "./tsconfig.node.json" }
{
"path": "./tsconfig.node.json"
}
]
}