@cloudflare/util-markdown
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="1.0.3"></a> | ||
## [1.0.3](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/util-markdown@1.0.2...@cloudflare/util-markdown@1.0.3) (2018-06-05) | ||
**Note:** Version bump only for package @cloudflare/util-markdown | ||
<a name="1.0.2"></a> | ||
@@ -8,0 +16,0 @@ ## [1.0.2](http://stash.cfops.it:7999/www/cf-ux/compare/@cloudflare/util-markdown@1.0.1...@cloudflare/util-markdown@1.0.2) (2018-05-24) |
@@ -1,3 +0,11 @@ | ||
import markdown from './markdown'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
export default markdown; | ||
var _markdown = require('./markdown'); | ||
var _markdown2 = _interopRequireDefault(_markdown); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = _markdown2.default; |
@@ -1,6 +0,17 @@ | ||
import marked from 'marked'; | ||
import memoize from 'lodash.memoize'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _marked = require('marked'); | ||
var _marked2 = _interopRequireDefault(_marked); | ||
var _lodash = require('lodash.memoize'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// Setup default options. | ||
marked.setOptions({ | ||
_marked2.default.setOptions({ | ||
tables: false, | ||
@@ -14,3 +25,3 @@ breaks: true, | ||
var memoizedMarked = memoize(marked); | ||
var memoizedMarked = (0, _lodash2.default)(_marked2.default); | ||
@@ -32,5 +43,5 @@ /** | ||
return opts ? marked(str, markedOpts) : memoizedMarked(str); | ||
return opts ? (0, _marked2.default)(str, markedOpts) : memoizedMarked(str); | ||
} | ||
export default markdown; | ||
exports.default = markdown; |
@@ -27,3 +27,3 @@ 'use strict'; | ||
const memoizedMarked = (0, _lodash2.default)(_marked2.default); | ||
var memoizedMarked = (0, _lodash2.default)(_marked2.default); | ||
@@ -38,3 +38,3 @@ /** | ||
function markdown(str, opts) { | ||
const markedOpts = {}; | ||
var markedOpts = {}; | ||
@@ -41,0 +41,0 @@ if (opts) { |
{ | ||
"name": "@cloudflare/util-markdown", | ||
"description": "Cloudflare Markdown Util", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "module": "es/index.js", |
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
6427
107