Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cloudflare/util-markdown

Package Overview
Dependencies
Maintainers
25
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/util-markdown - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

8

CHANGELOG.md

@@ -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)

12

es/index.js

@@ -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;

23

es/markdown.js

@@ -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",

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