Comparing version 6.2.0 to 6.2.1
13
index.js
@@ -9,2 +9,3 @@ /** | ||
const dmdVersion = require('./package').version | ||
const fastGlob = require('fast-glob') | ||
@@ -56,4 +57,4 @@ /** | ||
function registerPartials (paths) { | ||
const fileSet = new FileSet(paths) | ||
fileSet.files.forEach(function (file) { | ||
const files = fastGlob.globSync(paths, { onlyFiles: true }) | ||
for (const file of files) { | ||
handlebars.registerPartial( | ||
@@ -63,10 +64,10 @@ path.basename(file, '.hbs'), | ||
) | ||
}) | ||
} | ||
} | ||
function registerHelpers (helpers) { | ||
const fileSet = new FileSet(helpers) | ||
fileSet.files.forEach(function (file) { | ||
const files = fastGlob.globSync(helpers, { onlyFiles: true }) | ||
for (const file of files) { | ||
handlebars.registerHelper(require(path.resolve(process.cwd(), file))) | ||
}) | ||
} | ||
} | ||
@@ -73,0 +74,0 @@ |
{ | ||
"name": "dmd", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "6.2.0", | ||
"version": "6.2.1", | ||
"description": "The default output template for jsdoc-to-markdown", | ||
"license": "MIT", | ||
"repository": "https://github.com/jsdoc2md/dmd", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/jsdoc2md/dmd.git" | ||
}, | ||
"keywords": [ | ||
@@ -17,4 +20,4 @@ "documentation", | ||
"index.js", | ||
"helpers/*.js", | ||
"lib/*.js", | ||
"helpers", | ||
"lib", | ||
"partials" | ||
@@ -29,5 +32,5 @@ ], | ||
"common-sequence": "^2.0.2", | ||
"file-set": "^4.0.2", | ||
"handlebars": "^4.7.7", | ||
"marked": "^4.2.3", | ||
"fast-glob": "^3.3.2", | ||
"handlebars": "^4.7.8", | ||
"marked": "^4.3.0", | ||
"object-get": "^2.1.1", | ||
@@ -34,0 +37,0 @@ "reduce-flatten": "^3.0.1", |
@@ -49,4 +49,4 @@ [![view on npm](https://badgen.net/npm/v/dmd)](https://www.npmjs.org/package/dmd) | ||
© 2014-23 Lloyd Brookes \<75pound@gmail.com\>. | ||
© 2014-24 Lloyd Brookes \<75pound@gmail.com\>. | ||
Tested by [test-runner](https://github.com/test-runner-js/test-runner). 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
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 repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
58476
1376
4
+ Addedfast-glob@^3.3.2
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
- Removedfile-set@^4.0.2
- Removedarray-back@5.0.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfile-set@4.0.2(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedhandlebars@^4.7.8
Updatedmarked@^4.3.0