why do i even try
This commit is contained in:
Родитель
f171970ca9
Коммит
fd31a19699
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче