Skip to content

Commit b8e6cf6

Browse files
authored
Merge pull request #306 from ml054/v5.2
V5.2
2 parents c4dd961 + e23bb2a commit b8e6cf6

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"change-case": "^3.1.0",
9393
"deprecate": "^1.1.1",
9494
"md5": "^2.3.0",
95-
"moment": "^2.29.1",
95+
"moment": "^2.29.2",
9696
"node-fetch": "^2.6.7",
9797
"object.entries": "^1.1.5",
9898
"object.values": "^1.1.5",
@@ -105,7 +105,7 @@
105105
"util.promisify": "^1.0.1",
106106
"uuid": "^8.3.1",
107107
"verror": "^1.10.1",
108-
"ws": "^7.5.5",
108+
"ws": "^7.5.7",
109109
"xregexp": "^4.4.0"
110110
}
111111
}

src/Auth/Certificate.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@ export abstract class Certificate implements ICertificate {
2727

2828
let certificate: ICertificate = null;
2929

30+
if (!options.certificate) {
31+
throwError("InvalidArgumentException", "Certificate cannot be null");
32+
}
33+
3034
switch (options.type) {
3135
case Certificate.PEM:
3236
certificate = this.createPem(options.certificate, options.password, options.ca);
3337
break;
3438
case Certificate.PFX:
39+
3540
certificate = this.createPfx(options.certificate, options.password, options.ca);
3641
break;
3742
default:

0 commit comments

Comments
 (0)