Skip to content

Commit 9c9a20c

Browse files
achim-kcursoragent
andauthored
Fix npm security vulnerabilities (#19)
Fix npm security vulnerabilities by updating dependencies and adjusting TypeScript configuration. --- [Slack Thread](https://foxglove.slack.com/archives/C036C8HGCGN/p1770753171261719?thread_ts=1770753171.261719&cid=C036C8HGCGN) <p><a href="https://cursor.com/background-agent?bcId=bc-83d5a3ed-40b1-502c-b111-53c87d17a8a0"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-83d5a3ed-40b1-502c-b111-53c87d17a8a0"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a></p> Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 2d6ae00 commit 9c9a20c

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
"karma-mocha": "2.0.1",
4545
"karma-safari-launcher": "1.0.0",
4646
"karma-safaritechpreview-launcher": "2.0.2",
47-
"mocha": "10.2.0",
47+
"mocha": "10.8.2",
4848
"prettier": "2.8.3",
49-
"rimraf": "4.1.2",
50-
"rollup": "3.10.1",
49+
"rimraf": "4.4.1",
50+
"rollup": "3.29.5",
5151
"tslib": "2.4.1",
52-
"typescript": "4.9.4"
52+
"typescript": "5.7.2"
5353
}
5454
}

src/comlink.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,11 @@ export function wrap<T>(ep: Endpoint, target?: any): Remote<T> {
422422
}
423423
});
424424

425-
return createProxy<T>({ endpoint: ep, pendingListeners, nextRequestId: 1 }, [], target) as any;
425+
return createProxy<T>(
426+
{ endpoint: ep, pendingListeners, nextRequestId: 1 },
427+
[],
428+
target
429+
) as any;
426430
}
427431

428432
function throwIfProxyReleased(isReleased: boolean) {
@@ -588,7 +592,7 @@ function myFlat<T>(arr: (T | T[])[]): T[] {
588592

589593
/** Get the first item of a tuple */
590594
function firstItem<T>(v: [T, unknown]): T {
591-
return v[0]
595+
return v[0];
592596
}
593597

594598
/** Get the second item of a tuple */
@@ -681,4 +685,4 @@ function toString<T extends { toString(): string }>(p: T): string {
681685

682686
function objProp<T extends object, K extends keyof T>(obj: T, prop: K): T[K] {
683687
return obj[prop];
684-
}
688+
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
/* Strict Type-Checking Options */
2727
"strict": true /* Enable all strict type-checking options. */,
28+
"skipLibCheck": true /* Skip type checking of declaration files. */,
2829
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
2930
// "strictNullChecks": true, /* Enable strict null checks. */
3031
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */

0 commit comments

Comments
 (0)