Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,366 changes: 1,458 additions & 908 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
],
"prettier": "@readme/eslint-config/prettier",
"devDependencies": {
"@commitlint/cli": "^17.4.1",
"@commitlint/config-conventional": "^17.4.0",
"@readme/eslint-config": "^10.3.2",
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@readme/eslint-config": "^10.4.5",
"alex": "^11.0.0",
"eslint": "^8.31.0",
"eslint": "^8.32.0",
"husky": "^8.0.3",
"prettier": "^2.8.0"
},
Expand Down
72 changes: 36 additions & 36 deletions packages/api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
"@readme/openapi-parser": "^2.4.0",
"caseless": "^0.12.0",
"chalk": "^4.1.2",
"commander": "^9.5.0",
"commander": "^10.0.0",
"datauri": "^4.1.0",
"execa": "^5.1.1",
"fetch-har": "^8.1.4",
"fetch-har": "^8.1.5",
"figures": "^3.2.0",
"find-cache-dir": "^3.3.1",
"form-data-encoder": "^1.7.2",
Expand All @@ -61,9 +61,9 @@
"lodash.startcase": "^4.4.0",
"make-dir": "^3.1.0",
"node-abort-controller": "^3.0.1",
"oas": "^20.3.0",
"oas": "^20.4.0",
"ora": "^5.4.1",
"prettier": "^2.8.2",
"prettier": "^2.8.3",
"prompts": "^2.4.2",
"remove-undefined-objects": "^2.0.2",
"semver": "^7.3.8",
Expand Down Expand Up @@ -97,7 +97,7 @@
"oas-normalize": "^8.3.1",
"sinon": "^15.0.0",
"sinon-chai": "^3.7.0",
"type-fest": "^3.5.1",
"type-fest": "^3.5.3",
"typescript": "^4.9.4",
"unique-temp-dir": "^1.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ class Sdk {
// returning a Promise. When that happens, chaining `sdk.auth().operationId()` will fail.
if (['auth', 'config'].includes(method)) {
// @todo split this up so we have better types for `auth` and `config`
return function (...args: any) {
return function authAndConfigHandler(...args: any) {
return target[method].apply(this, args);
};
}

return async function (...args: unknown[]) {
return async function accessorHandler(...args: unknown[]) {
if (!(method in target)) {
// If this method doesn't exist on the proxy, have we loaded the SDK? If we have, then
// this method isn't valid.
Expand Down
1 change: 1 addition & 0 deletions packages/api/test/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@readme/eslint-config/testing-mocha",
"rules": {
"func-names": "off",
"global-require": "off"
}
}
Loading