Skip to content

Commit 39a41f6

Browse files
committed
Now binding to localhost only to prevent firewall popups.
inflateOptions is now optional.
1 parent c8af628 commit 39a41f6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "capture-template",
3-
"version": "1.1.10",
3+
"version": "1.1.12",
44
"description": "This library is responsible for expanding a template web page and then capturing it PNG or PDF.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface ICaptureOptions {
4040
/**
4141
* Options use when inflating the template.
4242
*/
43-
inflateOptions: IInflateOptions;
43+
inflateOptions?: IInflateOptions;
4444

4545
/**
4646
* Optionally override logging.

src/web-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class WebServer implements IWebServer {
142142
}
143143
});
144144

145-
this.server.listen(this.requestedPortNo, (err: any) => {
145+
this.server.listen(this.requestedPortNo, "127.0.0.1", (err: any) => {
146146
if (err) {
147147
reject(err);
148148
}

0 commit comments

Comments
 (0)