Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ramllint

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ramllint - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

2

package.json
{
"name": "ramllint",
"version": "1.2.3",
"version": "1.2.4",
"description": "RAML Lint",

@@ -5,0 +5,0 @@ "author": "Tyler Smith <TylerSmith@quickenloans.com",

@@ -67,2 +67,4 @@ 'use strict';

* myLogger.info('resource', 'resource_desc', 'need a description', 'GET http://example.com/resource');
* @example
* myLogger.success('resource', 'resource_desc', 'need a description', 'GET http://example.com/resource');
*/

@@ -114,2 +116,12 @@ function addEntry(level, section, rule, message, locale) {

*/
/**
* @function success
* @memberOf Log
* @instance
* @description
* Instance method for logging `success` level entries; calls {@link Log~addEntry}
* with first argument satisfied, and passing along addition arguments.
* @see {@link Log~addEntry}
*/
// add methods to public-facing api for each of these

@@ -162,7 +174,7 @@ this.getLevels()

* // this is the constructor (function); not an instance of it
* Log.getLevels(); // returns ['error', 'warning', 'info']
* Log.getLevels(); // returns ['error', 'warning', 'info', 'success']
*/
Log.getLevels = function getLevels() {
return ['error', 'warning', 'info'];
return ['error', 'warning', 'info', 'success'];
};

@@ -173,3 +185,3 @@

* @example
* myLoggerInstance.getLevels(); // returns ['error', 'warning', 'info']
* myLoggerInstance.getLevels(); // returns ['error', 'warning', 'info', 'success']
*/

@@ -176,0 +188,0 @@ Log.prototype.getLevels = Log.getLevels;

@@ -193,2 +193,4 @@ 'use strict';

logger.error(section, rule, format(section, rule), context.lintContext);
} else {
logger.success(section, rule, format(section, rule), context.lintContext);
}

@@ -195,0 +197,0 @@ }

@@ -127,3 +127,3 @@ var assert = require('assert'),

it('should provide a list of levels', function () {
assert.deepEqual(['error', 'warning', 'info'], log.getLevels());
assert.deepEqual(['error', 'warning', 'info', 'success'], log.getLevels());
});

@@ -130,0 +130,0 @@

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