New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pragma-core

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pragma-core - npm Package Compare versions

Comparing version 1.0.22 to 2021.2.0-1

2

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc