Skip to content

Commit

Permalink
chore(deps): update @oada/types and TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Jun 22, 2022
1 parent 9739692 commit 18290f6
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 157 deletions.
9 changes: 1 addition & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,7 @@
"**/.pnp.*": true
},
"typescript.enablePromptUseWorkspaceTsdk": true,
"cSpell.words": [
"esbuild",
"ksuid",
"lcov",
"sonarjs",
"unwatch",
"xksuid"
],
"cSpell.words": ["esbuild", "ksuid", "lcov", "sonarjs", "unwatch", "xksuid"],
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
Expand Down
6 changes: 3 additions & 3 deletions lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export class OADAClient {
},
path,
},
{ timeout, signal: restart.signal }
{ timeout, signal: restart.signal as AbortSignal }
);

if (response.status !== 200) {
Expand Down Expand Up @@ -877,7 +877,7 @@ export class OADAClient {
// (e.g., /bookmarks/abc/def -> ['bookmarks', 'abc', 'def'])
const pathArray = toArrayPath(request.path);

const { data, tree, path, timeout } = request;
const { data, tree, path, timeout, headers } = request;
if (tree) {
// We could go to all the trouble of re-implementing tree puts for posts,
// but it's much easier to just make a ksuid and do the tree put
Expand All @@ -893,7 +893,7 @@ export class OADAClient {
{
method: 'post',
headers: {
...request.headers,
...headers,
'authorization': `Bearer ${this.#token}`,
'content-type': contentType,
},
Expand Down
3 changes: 2 additions & 1 deletion lib/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import { createRequire } from 'node:module';

import { context as _context } from 'fetch-h2';

const nodeRequire = createRequire(import.meta.url); // construct the require method
const nodeRequire = createRequire(import.meta.url); // Construct the require method
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const { name, version } = nodeRequire('../package.json');

const ourAgent = `${name}/${version}`;
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oada/client",
"version": "4.1.1",
"version": "4.1.2",
"description": "A lightweight client tool to interact with an OADA-compliant server",
"repository": "https://github.com/OADA/client",
"main": "dist/index.js",
Expand Down Expand Up @@ -68,7 +68,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@oada/types": "^2.0.1",
"@oada/types": "^3.0.2",
"abort-controller": "^3.0.0",
"buffer": "^6.0.3",
"bufferutil": "^4.0.6",
Expand All @@ -79,7 +79,7 @@
"event-iterator": "^2.0.0",
"eventemitter3": "^4.0.7",
"fetch-h2": "^3.0.2",
"file-type": "^17.1.1",
"file-type": "^17.1.2",
"isomorphic-timers-promises": "^1.0.1",
"isomorphic-ws": "^4.0.1",
"media-type": "^0.3.1",
Expand All @@ -89,23 +89,23 @@
"supports-color": "^9.2.2",
"tslib": "^2.4.0",
"utf-8-validate": "^5.0.9",
"ws": "^8.7.0",
"ws": "^8.8.0",
"xksuid": "^0.0.3"
},
"devDependencies": {
"@ava/typescript": "^3.0.1",
"@tsconfig/node14": "^1.0.1",
"@tsconfig/node14": "^1.0.3",
"@types/debug": "^4.1.7",
"@types/node": "^16.11.36",
"@types/node": "^16.11.41",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"@yarnpkg/sdks": "3.0.0-rc.6",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0",
"@yarnpkg/sdks": "3.0.0-rc.9",
"ava": "4.0.0-rc.1",
"axios": "^0.27.2",
"c8": "^7.11.3",
"dotenv": "^16.0.1",
"eslint": "^8.16.0",
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-xo": "^0.41.0",
"eslint-config-xo-typescript": "^0.51.1",
Expand All @@ -130,8 +130,8 @@
"eslint-plugin-security": "^1.5.0",
"eslint-plugin-sonarjs": "^0.13.0",
"eslint-plugin-unicorn": "^42.0.0",
"prettier": "^2.6.2",
"typescript": "4.6.4"
"prettier": "^2.7.1",
"typescript": "4.7.4"
},
"packageManager": "yarn@3.2.1"
}
Loading

0 comments on commit 18290f6

Please sign in to comment.