Comparing version 0.2.1 to 0.2.2
@@ -6,3 +6,4 @@ var detect = require('feature-detect-es6') | ||
} else { | ||
require('core-js/es6/promise') | ||
module.exports = require('./es5/jsdoc-api') | ||
} |
{ | ||
"name": "jsdoc-api", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A programmatic interface for jsdoc", | ||
@@ -39,2 +39,3 @@ "repository": "https://github.com/75lb/jsdoc-api.git", | ||
"command-line-args": "^2.1.3", | ||
"core-js": "^2.0.0", | ||
"feature-detect-es6": "^1.2.0", | ||
@@ -41,0 +42,0 @@ "jsdoc-75lb": "^3.5", |
@@ -44,3 +44,3 @@ var test = require('tape') | ||
function logError (err) { | ||
console.error(err.stack); | ||
console.error(err.stack) | ||
} |
var test = require('tape') | ||
var jsdoc = require('../') | ||
var Fixture = require('./lib/fixture') | ||
var collectJson = require('collect-json') | ||
test('.explainSync(files, options)', function (t) { | ||
var f = new Fixture('global/class-all') | ||
var output = jsdoc.explainSync(f.sourcePath) | ||
var expectedOutput = f.getExpectedOutput() | ||
Fixture.removeFileSpecificData(output, expectedOutput) | ||
t.ok(typeof output === 'object') | ||
t.deepEqual(output, expectedOutput) | ||
t.end() | ||
}) | ||
test('.explainSync.source(files, options)', function(t){ | ||
var f = new Fixture('global/class-all') | ||
var output = jsdoc.explainSync.source(f.getSource()) | ||
var expectedOutput = f.getExpectedOutput() | ||
Fixture.removeFileSpecificData(output, expectedOutput) | ||
t.ok(typeof output === 'object') | ||
t.deepEqual(output, expectedOutput) | ||
t.end() | ||
}) | ||
test('.explain(files, options)', function (t) { | ||
@@ -29,0 +6,0 @@ t.plan(1) |
@@ -23,3 +23,2 @@ var path = require('path') | ||
} | ||
} | ||
@@ -41,3 +40,3 @@ | ||
input.forEach(function (i) { | ||
delete i.meta; | ||
delete i.meta | ||
delete i.files | ||
@@ -44,0 +43,0 @@ }) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
1050878
42
1107
10
6
+ Addedcore-js@^2.0.0