Skip to content

Commit

Permalink
chore: Update dependencies (#5590)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed May 9, 2024
1 parent 68195c1 commit 5b089b1
Show file tree
Hide file tree
Showing 16 changed files with 468 additions and 268 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"eslint": "^9.2.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-jest": "^28.5.0",
"eslint-plugin-n": "^17.4.0",
"eslint-plugin-n": "^17.5.1",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-unicorn": "^52.0.0",
"inject-markdown": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/cspell-eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@
"@typescript-eslint/parser": "^7.8.0",
"@typescript-eslint/types": "^7.8.0",
"eslint": "^9.2.0",
"eslint-plugin-n": "^17.4.0",
"eslint-plugin-n": "^17.5.1",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-simple-import-sort": "^12.1.0",
"globals": "^15.1.0",
"globals": "^15.2.0",
"mocha": "^10.4.0",
"ts-json-schema-generator": "^2.1.1",
"typescript": "^5.4.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const optionsSchema = JSON.parse(readFileSync(pathJoin(__dirname, '../../assets/

const schema = optionsSchema as unknown as Rule.RuleMetaData['schema'];

// eslint-disable-next-line n/no-missing-require
const spellCheck = createSyncFn<SpellCheckFn>(require.resolve('../worker/worker.mjs'), 30_000);

interface ExtendedSuggestion {
Expand Down
1 change: 1 addition & 0 deletions packages/cspell-io/src/node/file/_fetch.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/* eslint-disable n/no-unsupported-features/node-builtins */
/** alias of global.fetch, useful for mocking */
export const _fetch = global.fetch;
1 change: 1 addition & 0 deletions packages/cspell-io/src/node/file/fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe('fetch', () => {
'fetch url',
async () => {
const url = new URL('https://example.com/');
// eslint-disable-next-line n/no-unsupported-features/node-builtins
const response = await fetch(url);
expect(response.ok).toBe(true);
expect(await response.text()).toMatch('Example Domain');
Expand Down
1 change: 1 addition & 0 deletions packages/cspell-io/src/node/file/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { _fetch as fetch } from './_fetch.js';
import { FetchUrlError, toFetchUrlError } from './FetchError.js';

// eslint-disable-next-line n/no-unsupported-features/node-builtins
export async function fetchHead(request: string | URL): Promise<Headers> {
const url = toURL(request);
try {
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"cosmiconfig": "9.0.0",
"cspell-trie-lib": "workspace:*",
"gensequence": "^7.0.0",
"glob": "^10.3.12",
"glob": "^10.3.14",
"hunspell-reader": "workspace:*",
"yaml": "^2.4.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"fast-json-stable-stringify": "^2.1.0",
"file-entry-cache": "^8.0.0",
"get-stdin": "^9.0.0",
"semver": "^7.6.0",
"semver": "^7.6.1",
"strip-ansi": "^7.1.0",
"vscode-uri": "^3.0.8"
},
Expand Down
Loading

0 comments on commit 5b089b1

Please sign in to comment.