Socket
Socket
Sign inDemoInstall

vue-docgen-cli

Package Overview
Dependencies
Maintainers
3
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-docgen-cli - npm Package Compare versions

Comparing version 3.23.1 to 3.24.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [3.24.0](https://github.com/vue-styleguidist/vue-styleguidist/compare/v3.23.2...v3.24.0) (2019-09-25)
### Features
* vue-docgen-cli if getDestFile should not create md file ([55da63e](https://github.com/vue-styleguidist/vue-styleguidist/commit/55da63e))
## [3.23.1](https://github.com/vue-styleguidist/vue-styleguidist/compare/v3.23.0...v3.23.1) (2019-09-20)

@@ -8,0 +19,0 @@

10

lib/multiMd.js

@@ -82,3 +82,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var componentFile, _a;
var componentFile, file, _a;
return __generator(this, function (_b) {

@@ -88,8 +88,10 @@ switch (_b.label) {

componentFile = docMap[filePath] || filePath;
file = config.getDestFile(componentFile, config);
if (!file) return [3 /*break*/, 2];
_a = utils_1.writeDownMdFile;
return [4 /*yield*/, utils_1.compileMarkdown(config, componentFile)];
case 1:
_a.apply(void 0, [_b.sent(),
config.getDestFile(componentFile, config)]);
return [2 /*return*/];
_a.apply(void 0, [_b.sent(), file]);
_b.label = 2;
case 2: return [2 /*return*/];
}

@@ -96,0 +98,0 @@ });

4

package.json
{
"name": "vue-docgen-cli",
"version": "3.23.1",
"version": "3.24.0",
"scripts": {

@@ -25,3 +25,3 @@ "compile": "tsc -p ./tsconfig.build.json",

},
"gitHead": "61c55a4624d17b956b681c64c6f3490839bd26b4"
"gitHead": "16b3fdd6f517e58d4bcdd1b029d8443dab79f5bd"
}

@@ -53,6 +53,7 @@ import * as fs from 'fs'

const componentFile = docMap[filePath] || filePath
writeDownMdFile(
await compileMarkdown(config, componentFile),
config.getDestFile(componentFile, config)
)
const file = config.getDestFile(componentFile, config)
// if getDestFile is null,will not be create files
if (file) {
writeDownMdFile(await compileMarkdown(config, componentFile), file)
}
}
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