Skip to content

Commit fc9a0aa

Browse files
committed
fix: Bump dependencies
1 parent 2a05cc1 commit fc9a0aa

16 files changed

Lines changed: 1128 additions & 1136 deletions

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: actions/setup-node@v6
2424
with:
25-
node-version: 24
25+
node-version: 26
2626

2727
- run: npm clean-install
2828

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macOS-latest, windows-latest]
16-
node-version: [20, 22]
16+
node-version: [24, 26]
1717
runs-on: ${{ matrix.os }}
1818

1919
steps:

lib/classes/eik-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default class EikConfig {
8080
if (configuredServer) {
8181
return configuredServer;
8282
}
83-
return this[_tokens].keys().next().value;
83+
return /** @type {string} */ (this[_tokens].keys().next().value);
8484
}
8585

8686
/** @type {[string, string][]} */
@@ -153,7 +153,7 @@ export default class EikConfig {
153153
? destination
154154
: ensurePosix(join(destination, localFile.relative));
155155
const packagePathname = ensurePosix(
156-
join(typeSlug(this.type), this.name, this.version),
156+
join(typeSlug(/** @type {string} */ (this.type)), /** @type {string} */ (this.name), /** @type {string} */ (this.version)),
157157
);
158158

159159
const remoteDestination = new RemoteFileLocation(

lib/helpers/config-store.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
* Load the configuration from an exact path and return an EikConfig object
3333
*
3434
* @param {string} configFilePathname
35-
* @param {function} loadJSONFromDisk
35+
* @param {(path: string) => any} loadJSONFromDisk
3636
*
3737
* @returns {EikConfig}
3838
*/
@@ -57,7 +57,7 @@ export default {
5757
* Tries to find the configuration for eik in the provided directory.
5858
*
5959
* @param {string} configRootDir The base directory for the eik project.
60-
* @param {function} [loadJSONFromDisk] The function to use to load the file from disk.
60+
* @param {(path: string) => any} [loadJSONFromDisk] The function to use to load the file from disk.
6161
*
6262
* @returns {EikConfig}
6363
*/

lib/helpers/fetch-import-maps.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function fetchImportMaps(urls = []) {
2121
}
2222

2323
let contentType = response.headers.get("content-type");
24-
if (!contentType.startsWith("application/json")) {
24+
if (!contentType || !contentType.startsWith("application/json")) {
2525
const content = await response.text();
2626
if (content.length === 0) {
2727
throw new Error(
@@ -38,8 +38,10 @@ export async function fetchImportMaps(urls = []) {
3838
});
3939
return await Promise.all(maps);
4040
} catch (err) {
41+
const message = err instanceof Error ? err.message : String(err);
4142
throw new Error(
42-
`Unable to load import map file from server: ${err.message}`,
43+
`Unable to load import map file from server: ${message}`,
44+
{ cause: err },
4345
);
4446
}
4547
}

0 commit comments

Comments
 (0)