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

jsdoc-api

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsdoc-api - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

test/explain-sync.js

1

index.js

@@ -6,3 +6,4 @@ var detect = require('feature-detect-es6')

} else {
require('core-js/es6/promise')
module.exports = require('./es5/jsdoc-api')
}

3

package.json
{
"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

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