Comparing version 1.2.2 to 1.2.3
@@ -45,35 +45,37 @@ 'use strict'; | ||
this.files = []; | ||
options = options || {}; | ||
var arrayify = require('array-back'); | ||
this.source = undefined; | ||
this.files = arrayify(options.files); | ||
this.cache = false; | ||
this.source = options.source; | ||
this.access = undefined; | ||
this.cache = options.cache; | ||
this.configure = undefined; | ||
this.access = options.access; | ||
this.destination = undefined; | ||
this.configure = options.configure; | ||
this.encoding = undefined; | ||
this.destination = options.destination; | ||
this.private = undefined; | ||
this.encoding = options.encoding; | ||
this.package = undefined; | ||
this.private = options.private; | ||
this.pedantic = undefined; | ||
this.package = options.package; | ||
this.query = undefined; | ||
this.pedantic = options.pedantic; | ||
this.recurse = undefined; | ||
this.query = options.query; | ||
this.readme = undefined; | ||
this.recurse = options.recurse; | ||
this.template = undefined; | ||
this.readme = options.readme; | ||
this.tutorials = undefined; | ||
this.template = options.template; | ||
this.html = undefined; | ||
this.tutorials = options.tutorials; | ||
Object.assign(this, options); | ||
this.html = options.html; | ||
if (this.html) { | ||
@@ -80,0 +82,0 @@ var _path = require('path'); |
@@ -120,2 +120,5 @@ 'use strict' | ||
constructor (options) { | ||
options = options || {} | ||
const arrayify = require('array-back') | ||
/** | ||
@@ -125,3 +128,3 @@ * One or more filenames to process. Either this or `source` must be supplied. | ||
*/ | ||
this.files = [] | ||
this.files = arrayify(options.files) | ||
@@ -132,3 +135,3 @@ /** | ||
*/ | ||
this.source = undefined | ||
this.source = options.source | ||
@@ -140,3 +143,3 @@ /** | ||
*/ | ||
this.cache = false | ||
this.cache = options.cache | ||
@@ -147,3 +150,3 @@ /** | ||
*/ | ||
this.access = undefined | ||
this.access = options.access | ||
@@ -154,3 +157,3 @@ /** | ||
*/ | ||
this.configure = undefined | ||
this.configure = options.configure | ||
@@ -161,3 +164,3 @@ /** | ||
*/ | ||
this.destination = undefined | ||
this.destination = options.destination | ||
@@ -168,3 +171,3 @@ /** | ||
*/ | ||
this.encoding = undefined | ||
this.encoding = options.encoding | ||
@@ -175,3 +178,3 @@ /** | ||
*/ | ||
this.private = undefined | ||
this.private = options.private | ||
@@ -182,3 +185,3 @@ /** | ||
*/ | ||
this.package = undefined | ||
this.package = options.package | ||
@@ -189,3 +192,3 @@ /** | ||
*/ | ||
this.pedantic = undefined | ||
this.pedantic = options.pedantic | ||
@@ -196,3 +199,3 @@ /** | ||
*/ | ||
this.query = undefined | ||
this.query = options.query | ||
@@ -203,3 +206,3 @@ /** | ||
*/ | ||
this.recurse = undefined | ||
this.recurse = options.recurse | ||
@@ -210,3 +213,3 @@ /** | ||
*/ | ||
this.readme = undefined | ||
this.readme = options.readme | ||
@@ -217,3 +220,3 @@ /** | ||
*/ | ||
this.template = undefined | ||
this.template = options.template | ||
@@ -224,3 +227,3 @@ /** | ||
*/ | ||
this.tutorials = undefined | ||
this.tutorials = options.tutorials | ||
@@ -231,5 +234,4 @@ /** | ||
*/ | ||
this.html = undefined | ||
this.html = options.html | ||
Object.assign(this, options) | ||
if (this.html) { | ||
@@ -236,0 +238,0 @@ const path = require('path') |
{ | ||
"name": "jsdoc-api", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "A programmatic interface for jsdoc", | ||
@@ -33,3 +33,3 @@ "repository": "https://github.com/jsdoc2md/jsdoc-api.git", | ||
"rimraf": "^2.5.4", | ||
"test-runner": "~0.1.9" | ||
"test-runner": "~0.1.10" | ||
}, | ||
@@ -36,0 +36,0 @@ "dependencies": { |
@@ -178,3 +178,2 @@ [![view on npm](http://img.shields.io/npm/v/jsdoc-api.svg)](https://www.npmjs.org/package/jsdoc-api) | ||
**Kind**: instance property of <code>[JsdocOptions](#module_jsdoc-api..JsdocOptions)</code> | ||
**Default**: <code>false</code> | ||
<a name="module_jsdoc-api..JsdocOptions.JsdocOptions+access"></a> | ||
@@ -181,0 +180,0 @@ |
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
1116367
234080
2586
261