@node-novel/md-loader
Advanced tools
Comparing version 1.0.9 to 1.0.11
@@ -6,2 +6,24 @@ # Change Log | ||
## [1.0.11](https://github.com/bluelovers/ws-node-novel/compare/@node-novel/md-loader@1.0.10...@node-novel/md-loader@1.0.11) (2020-06-20) | ||
### 🔖 Miscellaneous | ||
* . ([5b4c70f](https://github.com/bluelovers/ws-node-novel/commit/5b4c70fc018e2f2622187143859a9783c5370849)) | ||
## [1.0.10](https://github.com/bluelovers/ws-node-novel/compare/@node-novel/md-loader@1.0.9...@node-novel/md-loader@1.0.10) (2020-06-20) | ||
### 📦 Code Refactoring | ||
* update typescript and avoid bug of typescript ([9473fd1](https://github.com/bluelovers/ws-node-novel/commit/9473fd159a3e0774e7646ab2dc60d73a4667f09b)) | ||
## [1.0.9](https://github.com/bluelovers/ws-node-novel/compare/@node-novel/md-loader@1.0.8...@node-novel/md-loader@1.0.9) (2020-06-08) | ||
@@ -8,0 +30,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
/// <reference types="node" /> | ||
import GrayMatter = require('gray-matter'); | ||
import GrayMatter from 'gray-matter'; | ||
import { IOptionsParse } from 'node-novel-info'; | ||
@@ -8,0 +8,0 @@ export interface IOptions<I extends IInput, OUT extends any, PO, GO> { |
@@ -5,5 +5,8 @@ "use strict"; | ||
*/ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fixContent = exports.stringify = exports.parse = void 0; | ||
const GrayMatter = require("gray-matter"); | ||
const gray_matter_1 = __importDefault(require("gray-matter")); | ||
const node_novel_info_1 = require("node-novel-info"); | ||
@@ -23,3 +26,3 @@ function parse(inputContent, options) { | ||
inputContent = fixContent(inputContent); | ||
let matter = GrayMatter(inputContent, matterOptions); | ||
let matter = gray_matter_1.default(inputContent, matterOptions); | ||
// @ts-ignore | ||
@@ -74,3 +77,3 @@ let mdconf = parser(inputContent, parseOptions); | ||
: inputData.mdconf ? stringify(inputData.mdconf) : null; | ||
return GrayMatter.stringify(fixContent(content), | ||
return gray_matter_1.default.stringify(fixContent(content), | ||
// @ts-ignore | ||
@@ -77,0 +80,0 @@ inputData.data, |
{ | ||
"name": "@node-novel/md-loader", | ||
"version": "1.0.9", | ||
"version": "1.0.11", | ||
"description": "支援 Front Matter 的 node-novel-info / mdconf", | ||
@@ -62,3 +62,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "983cc06e0bdc0905aa717901ddaef9b95fe725a3" | ||
"gitHead": "be46b5285f3d23db9ffc7fd79e549f1f3310faa0" | ||
} |
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
15973
199