@upleveled/preflight 9.0.11 → 9.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upleveled/preflight",
3
- "version": "9.0.11",
3
+ "version": "9.0.13",
4
4
  "repository": "upleveled/preflight",
5
5
  "license": "MIT",
6
6
  "author": "UpLeveled (https://github.com/upleveled)",
@@ -18,34 +18,34 @@
18
18
  "src"
19
19
  ],
20
20
  "dependencies": {
21
- "algoliasearch": "5.46.3",
21
+ "algoliasearch": "5.50.2",
22
22
  "chalk": "5.6.2",
23
- "cheerio": "1.1.2",
23
+ "cheerio": "1.2.0",
24
24
  "depcheck": "1.4.7",
25
- "domhandler": "5.0.3",
25
+ "domhandler": "6.0.1",
26
26
  "execa": "9.6.1",
27
- "listr2": "9.0.5",
27
+ "listr2": "10.2.1",
28
28
  "node-fetch": "3.3.2",
29
29
  "p-reduce": "3.0.0",
30
30
  "readdirp": "5.0.0",
31
- "semver": "7.7.3",
32
- "top-user-agents": "2.1.90"
31
+ "semver": "7.7.4",
32
+ "top-user-agents": "2.1.108"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/node": "25.0.9",
35
+ "@types/node": "25.6.0",
36
36
  "@types/p-map": "2.0.0",
37
37
  "@types/semver": "7.7.1",
38
- "eslint": "9.39.2",
39
- "eslint-config-upleveled": "9.4.2",
38
+ "eslint": "10.2.1",
39
+ "eslint-config-upleveled": "10.0.0",
40
40
  "p-map": "7.0.4",
41
- "prettier": "3.8.0",
42
- "stylelint": "16.26.1",
43
- "typescript": "5.9.3",
44
- "typescript-eslint": "8.53.0",
45
- "vitest": "4.0.17"
41
+ "prettier": "3.8.3",
42
+ "stylelint": "17.8.0",
43
+ "typescript": "6.0.3",
44
+ "typescript-eslint": "8.59.0",
45
+ "vitest": "4.1.5"
46
46
  },
47
47
  "engines": {
48
- "node": ">=18"
48
+ "node": ">=22"
49
49
  },
50
50
  "scripts": {
51
51
  "docker-build": "docker build --tag preflight .",
@@ -1,5 +1,5 @@
1
1
  import { existsSync, promises as fs } from 'node:fs';
2
- import { algoliasearch } from 'algoliasearch';
2
+ import { algoliasearch, type Hit } from 'algoliasearch';
3
3
  import pReduce from 'p-reduce';
4
4
  import { commandExample } from '../../util/commandExample.ts';
5
5
  import { projectPackageJson } from '../../util/packageJson.ts';
@@ -12,12 +12,6 @@ const client = algoliasearch(
12
12
  'ec73550aa8b2936dab436d4e02144784', // API Key
13
13
  );
14
14
 
15
- interface AlgoliaObj {
16
- types?: {
17
- definitelyTyped?: string;
18
- };
19
- }
20
-
21
15
  export const title = 'No dependencies without types';
22
16
 
23
17
  // This is a naive check for matching @types/<pkg name> packages
@@ -60,14 +54,18 @@ export default async function noDependenciesWithoutTypes() {
60
54
  return filteredDependencies;
61
55
  }
62
56
 
63
- let results: AlgoliaObj;
57
+ let results: Hit<{
58
+ types?: {
59
+ definitelyTyped?: string;
60
+ };
61
+ }>;
64
62
 
65
63
  try {
66
- results = (await client.getObject({
64
+ results = await client.getObject({
67
65
  indexName: 'npm-search',
68
66
  objectID: dependency,
69
67
  attributesToRetrieve: ['types'],
70
- })) as AlgoliaObj;
68
+ });
71
69
  } catch (error) {
72
70
  // Show dependency name if Algolia's `client.getObject()` throws with an
73
71
  // error message (such as the error message "ObjectID does not exist"