Comparing version 2.1.2 to 3.0.0-0
@@ -11,6 +11,2 @@ 'use strict' | ||
if (!Array.prototype.find) { | ||
require('core-js/modules/es6.array.find') | ||
} | ||
/** | ||
@@ -96,5 +92,5 @@ * ddata is a collection of handlebars helpers for working with the documentation data output by [jsdoc-parse](https://github.com/75lb/jsdoc-parse). | ||
/** | ||
omits externals without a description | ||
@static | ||
*/ | ||
* omits externals without a description | ||
* @static | ||
*/ | ||
function _globals (options) { | ||
@@ -101,0 +97,0 @@ options.hash.scope = 'global' |
@@ -20,6 +20,5 @@ 'use strict' | ||
/** | ||
render the supplied block for each identifier in the query | ||
@static | ||
@category Block helper: selector | ||
*/ | ||
* render the supplied block for each identifier in the query | ||
* @static | ||
*/ | ||
function identifiers (options) { | ||
@@ -30,6 +29,14 @@ return handlebars.helpers.each(ddata._identifiers(options), options) | ||
/** | ||
render the supplied block for each parent (global identifier, or module) | ||
@static | ||
@category Block helper: selector | ||
*/ | ||
* render the supplied block for the specified identifier | ||
* @static | ||
*/ | ||
function identifier (options) { | ||
var result = ddata._identifier(options) | ||
return result ? options.fn(result) : 'ERROR, Cannot find identifier.' | ||
} | ||
/** | ||
* render the supplied block for each parent (global identifier, or module) | ||
* @static | ||
*/ | ||
function orphans (options) { | ||
@@ -40,6 +47,5 @@ return handlebars.helpers.each(ddata._orphans(options), options) | ||
/** | ||
render the supplied block for each parent (global identifier, or module) | ||
@static | ||
@category Block helper: selector | ||
*/ | ||
* render the supplied block for each identifier in global scope | ||
* @static | ||
*/ | ||
function globals (options) { | ||
@@ -50,9 +56,7 @@ return handlebars.helpers.each(ddata._globals(options), options) | ||
/** | ||
render the supplied block for each module | ||
@static | ||
@category Block helper: selector | ||
*/ | ||
* render the supplied block for each module | ||
* @static | ||
*/ | ||
function modules (options) { | ||
options.hash.kind = 'module' | ||
// console.log(ddata._identifiers(options)) | ||
return handlebars.helpers.each(ddata._identifiers(options), options) | ||
@@ -62,6 +66,5 @@ } | ||
/** | ||
render the supplied block for the specified module | ||
@static | ||
@category Block helper: selector | ||
*/ | ||
* render the supplied block for the specified module | ||
* @static | ||
*/ | ||
function module (options) { | ||
@@ -74,26 +77,23 @@ options.hash.kind = 'module' | ||
/** | ||
render the supplied block for the specified identifier | ||
@static | ||
@category Block helper: selector | ||
*/ | ||
function identifier (options) { | ||
var result = ddata._identifier(options) | ||
return result ? options.fn(result) : 'ERROR, Cannot find identifier.' | ||
* render the block for each class | ||
* @static | ||
*/ | ||
function classes (options) { | ||
options.hash.kind = 'class' | ||
return handlebars.helpers.each(ddata._identifiers(options), options) | ||
} | ||
/** | ||
render the block for each class | ||
@static | ||
@category Block helper: selector | ||
*/ | ||
function classes (options) { | ||
* render the supplied block for the specified class | ||
*/ | ||
function class_ (options) { | ||
options.hash.kind = 'class' | ||
return handlebars.helpers.each(ddata._identifiers(options), options) | ||
var result = ddata._identifier(options) | ||
return result ? options.fn(result) : 'ERROR, Cannot find class.' | ||
} | ||
/** | ||
render the block for each function/method | ||
@static | ||
@category Block helper: selector | ||
*/ | ||
* render the block for each function/method | ||
* @static | ||
*/ | ||
function functions (options) { | ||
@@ -105,15 +105,4 @@ options.hash.kind = 'function' | ||
/** | ||
render the supplied block for the specified class | ||
@category Block helper: selector | ||
*/ | ||
function class_ (options) { | ||
options.hash.kind = 'class' | ||
var result = ddata._identifier(options) | ||
return result ? options.fn(result) : 'ERROR, Cannot find class.' | ||
} | ||
/** | ||
render the supplied block for the specified function | ||
@category Block helper: selector | ||
*/ | ||
* render the supplied block for the specified function | ||
*/ | ||
function function_ (options) { | ||
@@ -126,5 +115,4 @@ options.hash.kind = 'function' | ||
/** | ||
render the supplied block for the specified function | ||
@category Block helper: selector | ||
*/ | ||
* render the supplied block for the specified function | ||
*/ | ||
function namespace (options) { | ||
@@ -137,8 +125,6 @@ options.hash.kind = 'namespace' | ||
/** | ||
render the supplied block for the specified enum | ||
@category Block helper: selector | ||
*/ | ||
* render the supplied block for the specified enum | ||
*/ | ||
function enum_ (options) { | ||
options.hash.kind = 'member' | ||
options.hash.isEnum = true | ||
options.hash.kind = 'enum' | ||
var result = ddata._identifier(options) | ||
@@ -149,6 +135,5 @@ return result ? options.fn(result) : 'ERROR, Cannot find enum.' | ||
/** | ||
render the supplied block for each orphan with no scope set | ||
@static | ||
@category Block helper: selector | ||
*/ | ||
* render the supplied block for each orphan with no scope set | ||
* @static | ||
*/ | ||
function misc (options) { | ||
@@ -155,0 +140,0 @@ options.hash.scope = undefined |
@@ -48,4 +48,2 @@ 'use strict' | ||
function generate (templateData, options) { | ||
require('core-js/modules/es6.object.assign') | ||
require('core-js/modules/es6.string.repeat') | ||
var fs = require('fs') | ||
@@ -52,0 +50,0 @@ var path = require('path') |
{ | ||
"name": "dmd", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "2.1.2", | ||
"version": "3.0.0-0", | ||
"description": "dmd (document with markdown) is a collection of handlebars templates for generating markdown documentation from jsdoc-parse input data. It is the default template set used by jsdoc-to-markdown.", | ||
@@ -14,3 +14,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=0.12.0" | ||
"node": ">=4.0.0" | ||
}, | ||
@@ -27,6 +27,5 @@ "files": [ | ||
"dependencies": { | ||
"array-back": "^1.0.3", | ||
"cache-point": "^0.3.4", | ||
"array-back": "^1.0.4", | ||
"cache-point": "^0.4.0", | ||
"common-sequence": "^1.0.2", | ||
"core-js": "^2.4.1", | ||
"file-set": "^1.1.1", | ||
@@ -43,5 +42,4 @@ "handlebars": "3.0.3", | ||
"devDependencies": { | ||
"core-assert": "^0.2.1", | ||
"dmd-plugin-example": "^0.1.0", | ||
"test-runner": "^0.2.5" | ||
"test-runner": "^0.3.0" | ||
}, | ||
@@ -48,0 +46,0 @@ "standard": { |
@@ -44,2 +44,2 @@ [![view on npm](http://img.shields.io/npm/v/dmd.svg)](https://www.npmjs.org/package/dmd) | ||
© 2014-2016 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). | ||
© 2014-2017 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown). |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
12
2
58024
1363
2
+ Addedarray-back@2.0.0(transitive)
+ Addedcache-point@0.4.1(transitive)
+ Addedfs-then-native@2.0.0(transitive)
+ Addedmkdirp2@1.0.5(transitive)
- Removedcore-js@^2.4.1
- Removedcache-point@0.3.4(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedfeature-detect-es6@1.5.0(transitive)
- Removedfs-then-native@1.0.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
Updatedarray-back@^1.0.4
Updatedcache-point@^0.4.0