New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

documentary

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

documentary - npm Package Compare versions

Comparing version 1.8.1 to 1.8.2

build/lib/rules/badge.js

4

build/lib/replace-stream.js

@@ -30,2 +30,4 @@ "use strict";

var _badge = _interopRequireDefault(require("./rules/badge"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -58,3 +60,3 @@

});
const s = new _restream.Replaceable([cutInnerCode, cutTable, cutMethodTitle, cutCode, _rules.commentRule, _rules.badgeRule, _tree.default, _example.default, _fork.default, tocRule, _gif.default, _type.default, insertTable, _table.default, {
const s = new _restream.Replaceable([cutInnerCode, cutTable, cutMethodTitle, cutCode, _rules.commentRule, _badge.default, _tree.default, _example.default, _fork.default, tocRule, _gif.default, _type.default, insertTable, _table.default, {
re: _rules.linkTitleRe,

@@ -61,0 +63,0 @@

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

});
exports.linkTitleRe = exports.commentRule = exports.innerCodeRe = exports.codeRe = exports.commentRe = exports.createTocRule = exports.badgeRule = void 0;
exports.linkTitleRe = exports.commentRule = exports.innerCodeRe = exports.codeRe = exports.commentRe = exports.createTocRule = void 0;

@@ -12,12 +12,3 @@ var _util = require("util");

const LOG = (0, _util.debuglog)('doc');
const badgeRule = {
re: /^%NPM: ([\w\d-_]+)%$/gm,
replacement(match, name) {
return `[![npm version](https://badge.fury.io/js/${name}.svg)](https://npmjs.org/package/${name})`;
}
};
exports.badgeRule = badgeRule;
const createTocRule = toc => {

@@ -24,0 +15,0 @@ return {

@@ -0,1 +1,8 @@

## 3 July 2018
### 1.8.2
- [fix] Enable `npm` badge for the scoped packages.
- [tests] Assertions in context for regular expression matching.
## 30 June 2018

@@ -2,0 +9,0 @@

{
"name": "documentary",
"version": "1.8.1",
"version": "1.8.2",
"description": "A library to manage documentation, such as README, usage, man pages and changelog.",

@@ -5,0 +5,0 @@ "main": "build",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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