Skip to content

Commit e135fe8

Browse files
committed
Modified the typings and updated the SslLabsService
1 parent fe45ad2 commit e135fe8

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

BuildTask/ssl-labs-test/SslLabsService.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ export class SslLabsService implements ISslLabsService {
2424
const promise = new Promise<any>((resolve, reject) => {
2525
try {
2626

27-
const options: Options = new Options();
28-
options.host = this._taskInput.Hostname;
29-
options.maxAge = 24;
30-
options.publish = this._taskInput.PublishScanResults;
31-
options.startNew = this._taskInput.FreshScan;
32-
options.all = 'done';
27+
const options: Options = {
28+
host: this._taskInput.Hostname,
29+
maxAge: 24,
30+
publish: this._taskInput.PublishScanResults,
31+
startNew: this._taskInput.FreshScan,
32+
all: 'done'
33+
};
3334

3435
SslLabs.scan(options, (err: any, res: any) => {
3536
if (err) {

BuildTask/ssl-labs-test/typings/node-ssllabs/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ declare module 'node-ssllabs' {
1111

1212
class Options {
1313
host: string;
14-
fromCache: boolean;
14+
fromCache?: boolean;
1515
maxAge: number;
1616
publish: boolean;
1717
startNew: boolean;
1818
all: string;
19-
ignoreMismatch: boolean;
20-
s: string;
19+
ignoreMismatch?: boolean;
20+
s?: string;
2121
}
2222

2323
// interface Info {

0 commit comments

Comments
 (0)