Comparing version 1.2.3 to 1.2.4
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57195
973
1