pragma-core
Advanced tools
Comparing version 1.0.22 to 2021.2.0-1
@@ -5,2 +5,2 @@ | ||
export * from './lib/parsers/data-type-parser.js'; | ||
export * from './lib/utils.js'; | ||
export * from './lib/utils'; |
@@ -59,8 +59,11 @@ | ||
toDisplayString() { | ||
return this.messages?.reduce((a,m) => a + m.toDisplayString() + "\r\n", "").trimEnd(); | ||
} | ||
toString() { | ||
return this.messages?.reduce((a,m) => a + m.toString() + "\r\n", "").trimEnd(); | ||
let value = ""; | ||
if ((this.messages != null) && (this.messages.length > 0)) { | ||
this.messages.forEach(m => { | ||
value += m.toString() + "\r\n"; | ||
}) | ||
} | ||
return value; | ||
} | ||
@@ -89,32 +92,5 @@ } | ||
toDisplayString() { | ||
return `[${this.code}] ${this.message}`; | ||
} | ||
toString() { | ||
let message = ""; | ||
if (this.code != null) | ||
message+= `[${this.code}] `; | ||
if (this.message != null) | ||
message+= `${this.message} `; | ||
// All the reset of the info on a notification | ||
message+= "{"; | ||
if (this.severity != null) | ||
message+= `severity: "${this.severity}" `; | ||
if (this.properties != null) | ||
message+= `properties: "${this.properties}" `; | ||
if (this.objectId != null) | ||
message+= `objectId: "${this.objectId}" `; | ||
if (this.userObjectId != null) | ||
message+= `userObjectId: "${this.userObjectId}"`; | ||
message+= "}"; | ||
return message; | ||
return `severity: '${this.severity}' code: '${this.code}' message: '${this.message}' properties: '${this.properties}' objectId: '${this.objectId}' userObjectId: '${this.userObjectId}'`; | ||
} | ||
} |
{ | ||
"name": "pragma-core", | ||
"version": "1.0.22", | ||
"version": "2021.2.0-1", | ||
"description": "The purpose of this module is to provide classes and utility functions that can be reused by the various other pragma modules.", | ||
@@ -5,0 +5,0 @@ "main": "commonjs/src/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6487
120
2