Skip to content

Commit

Permalink
refactor: downgrade ssestream to avoild "SSEStream is not a construct…
Browse files Browse the repository at this point in the history
  • Loading branch information
tyn1998 committed Jun 24, 2022
1 parent 5a6966a commit e7a4b33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"sass": "^1.52.1",
"sass-loader": "^12.4.0",
"source-map-loader": "^3.0.1",
"ssestream": "^1.1.0",
"ssestream": "1.0.1",
"style-loader": "^3.3.1",
"terser-webpack-plugin": "^5.3.1",
"ts-loader": "^9.2.6",
Expand Down
4 changes: 2 additions & 2 deletions utils/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const server = new WebpackDevServer(
customOptions.enableContentScriptsAutoReload;

if (shouldBackgroundReload) {
sseStream.writeMessage(
sseStream.write(
{
event: 'background-updated',
data: {}, // "data" key should be reserved though it is empty.
Expand All @@ -133,7 +133,7 @@ const server = new WebpackDevServer(
);
}
if (shouldContentScriptsReload) {
sseStream.writeMessage(
sseStream.write(
{
event: 'content-scripts-updated',
data: {},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5242,10 +5242,10 @@ spdy@^4.0.2:
select-hose "^2.0.0"
spdy-transport "^3.0.0"

ssestream@^1.1.0:
version "1.1.0"
resolved "https://registry.npmmirror.com/ssestream/-/ssestream-1.1.0.tgz#f46d046ede4797ca00e2e1b88964021cfbe7d678"
integrity sha512-UOS3JTuGqGEOH89mfHFwVOJNH2+JX9ebIWuw6WBQXpkVOxbdoY3RMliSHzshL4XVYJJrcul5NkuvDFCzgYu1Lw==
ssestream@1.0.1:
version "1.0.1"
resolved "https://registry.npmmirror.com/ssestream/-/ssestream-1.0.1.tgz#351551b12c00e91e7550f38d558323f3f47b54c2"
integrity sha512-VK2CDxNV+cYWN3MuyL+lBSIm5qX3gPXONKejuXCnkbRzf/d/+2Nxsf38DXNNOlNWvdIhWNeiqJy0AMN7zZHJHQ==

"statuses@>= 1.4.0 < 2", "statuses@>= 1.5.0 < 2", statuses@~1.5.0:
version "1.5.0"
Expand Down

0 comments on commit e7a4b33

Please sign in to comment.