Compare commits

...

4 Commits

Author SHA1 Message Date
c3fd8750b2 2.0.21 2019-01-13 00:50:44 +01:00
2b3c28c7a1 fix(core): update 2019-01-13 00:50:43 +01:00
d6b1f942b3 2.0.20 2019-01-13 00:24:40 +01:00
7eff6ea36a fix(core): update 2019-01-13 00:24:39 +01:00
3 changed files with 7 additions and 7 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartacme", "name": "@pushrocks/smartacme",
"version": "2.0.19", "version": "2.0.21",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartacme", "name": "@pushrocks/smartacme",
"version": "2.0.19", "version": "2.0.21",
"private": false, "private": false,
"description": "acme implementation in TypeScript", "description": "acme implementation in TypeScript",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -31,10 +31,10 @@ export class Cert extends plugins.smartdata.SmartDataDbDoc<Cert> implements inte
constructor(optionsArg: ICert) { constructor(optionsArg: ICert) {
super(); super();
this.created = optionsArg.created; if (optionsArg) {
this.domainName = optionsArg.domainName; Object.keys(optionsArg).forEach(key => {
this.privateKey = optionsArg.privateKey; this[key] = optionsArg[key];
this.publicKey = optionsArg.publicKey; });
this.csr = optionsArg.csr; }
} }
} }