Compare commits

...

2 Commits

Author SHA1 Message Date
Rich Harris
8f3454c3b1 -> v0.13.3 2018-06-16 13:49:44 -04:00
Rich Harris
f0d7a1aaab change fatal events to be clonable, for IPC purposes 2018-06-16 13:49:19 -04:00
4 changed files with 8 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
# sapper changelog
## 0.13.3
* Make `fatal` events clonable for IPC purposes
## 0.13.2
* Emit a `basepath` event ([#284](https://github.com/sveltejs/sapper/pull/284))

View File

@@ -1,6 +1,6 @@
{
"name": "sapper",
"version": "0.13.2",
"version": "0.13.3",
"description": "Military-grade apps, engineered by Svelte",
"main": "dist/middleware.ts.js",
"bin": {

View File

@@ -90,7 +90,7 @@ class Watcher extends EventEmitter {
if (this.port) {
if (!await ports.check(this.port)) {
this.emit('fatal', <events.FatalEvent>{
error: new Error(`Port ${this.port} is unavailable`)
message: `Port ${this.port} is unavailable`
});
return;
}

View File

@@ -7,11 +7,11 @@ export type ReadyEvent = {
export type ErrorEvent = {
type: string;
error: Error;
message: string;
};
export type FatalEvent = {
error: Error;
message: string;
};
export type InvalidEvent = {