Skip to content

Commit

Permalink
fixed type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
natelindev committed Sep 14, 2021
1 parent 1b5b76b commit 07695d8
Show file tree
Hide file tree
Showing 4 changed files with 465 additions and 402 deletions.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,36 +42,36 @@
"watch": "tsc --watch --outDir ./dist"
},
"dependencies": {
"base-64": "^1.0.0",
"cross-fetch": "^3.1.4",
"debug": "^4.3.2",
"xml-js": "^1.6.11"
"base-64": "1.0.0",
"cross-fetch": "3.1.4",
"debug": "4.3.2",
"xml-js": "1.6.11"
},
"devDependencies": {
"@types/base-64": "1.0.0",
"@types/debug": "4.1.7",
"@types/jest": "27.0.1",
"@types/node": "16.7.1",
"@typescript-eslint/eslint-plugin": "4.29.2",
"@typescript-eslint/parser": "4.29.2",
"@types/node": "16.9.1",
"@typescript-eslint/eslint-plugin": "4.31.1",
"@typescript-eslint/parser": "4.31.1",
"concurrently": "6.2.1",
"copyfiles": "2.4.1",
"cross-env": "7.0.3",
"dotenv": "10.0.0",
"eslint": "7.32.0",
"eslint-config-airbnb": "18.2.1",
"eslint-config-airbnb-typescript": "13.0.0",
"eslint-config-airbnb-typescript": "14.0.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.24.1",
"eslint-plugin-prettier": "3.4.1",
"jest": "27.0.6",
"prettier": "2.3.2",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-prettier": "4.0.0",
"jest": "27.2.0",
"prettier": "2.4.0",
"rimraf": "3.0.2",
"sort-package-json": "1.50.0",
"sort-package-json": "1.51.0",
"ts-jest": "27.0.5",
"typescript": "4.3.5"
"typescript": "4.4.3"
},
"engines": {
"node": ">=10"
}
}
}
2 changes: 1 addition & 1 deletion src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const serviceDiscovery = async (params: {
}
}
} catch (err) {
debug(`Service discovery failed: ${err.stack}`);
debug(`Service discovery failed: ${(err as Error).stack}`);
}

return endpoint.href;
Expand Down
2 changes: 1 addition & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const davRequest = async (params: {
parentOfParent[keyName] = nativeType(value);
}
} catch (e) {
debug(e.stack);
debug((e as Error).stack);
}
},
// remove namespace & camelCase
Expand Down
Loading

0 comments on commit 07695d8

Please sign in to comment.