New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

comlinkjs

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comlinkjs - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

4

messagechanneladapter.d.ts

@@ -13,5 +13,7 @@ /**

*/
export interface StringMessageChannel extends EventTarget {
export interface StringMessageChannel {
send(data: string): void;
addEventListener(typ: string, listener: (ev: MessageEvent) => void | Promise<void>): void;
removeEventListener(typ: string, listener: (ev: MessageEvent) => void | Promise<void>): void;
}
export declare function wrap(smc: StringMessageChannel, id?: string | null): MessagePort;

@@ -40,3 +40,5 @@ /**

}
if (id && id !== data.id)
if (!id)
id = data.id;
if (id !== data.id)
return;

@@ -43,0 +45,0 @@ const mcs = data.messageChannels.map(messageChannel => {

{
"name": "comlinkjs",
"version": "3.0.2",
"version": "3.0.3",
"description": "",

@@ -9,12 +9,18 @@ "main": "comlink.js",

"scripts": {
"test": "npm run linter && npm run unittest && npm run build",
"test": "npm run fmt_test && npm run unittest && npm run build",
"unittest": "karma start",
"linter": "prettier --write ./*.js ./docs/**/*.js ./tests/**/*.js ./**/*.ts ./**/*.md ./**/*.json",
"fmt_test": "test $(prettier -l ./{.,docs,test}/*.{js,ts,json,md} | wc -l) -eq 0",
"fmt": "prettier --write ./{.,docs,test}/*.{js,ts,json,md}",
"watchtest": "karma start --no-single-run --browsers ChromeHeadless",
"watchtestharmony": "karma start --no-single-run --browsers ChromeCanaryHeadlessHarmony",
"version": "sed -i.bak -e 's!comlinkjs@[0-9.]*!comlinkjs@'${npm_package_version}'!' README.md && git add README.md",
"mypublish": "npm run build && npm run test && cp README.md package.json dist && npm publish dist",
"mypublish": "npm run build && npm run test && cp README.md package.json dist && npm publish dist && sed -i.bak -e 's!comlinkjs\"!comlink\"!' dist/package.json && npm publish dist",
"build": "rm -rf dist && mkdir dist && npm run compile",
"compile": "tsc --outDir dist && tsc -m umd --outDir dist/umd && node ./mangle_umd.js"
},
"husky": {
"hooks": {
"pre-commit": "npm test"
}
},
"keywords": [],

@@ -42,2 +48,3 @@ "author": {

"chai": "4.1.2",
"husky": "^0.14.3",
"karma": "2.0.2",

@@ -44,0 +51,0 @@ "karma-chai": "0.1.0",

@@ -59,3 +59,3 @@ # Comlink

```
https://cdn.jsdelivr.net/npm/comlinkjs@3.0.2/umd/comlink.js
https://cdn.jsdelivr.net/npm/comlinkjs@3.0.3/umd/comlink.js
```

@@ -62,0 +62,0 @@

@@ -13,5 +13,7 @@ /**

*/
export interface StringMessageChannel extends EventTarget {
export interface StringMessageChannel {
send(data: string): void;
addEventListener(typ: string, listener: (ev: MessageEvent) => void | Promise<void>): void;
removeEventListener(typ: string, listener: (ev: MessageEvent) => void | Promise<void>): void;
}
export declare function wrap(smc: StringMessageChannel, id?: string | null): MessagePort;

@@ -53,3 +53,5 @@ /**

}
if (id && id !== data.id)
if (!id)
id = data.id;
if (id !== data.id)
return;

@@ -56,0 +58,0 @@ const mcs = data.messageChannels.map(messageChannel => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc