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.6.0 to 1.6.1

25

build/lib/rules/example.js

@@ -10,11 +10,30 @@ "use strict";

var _wrote = require("wrote");
var _path = require("path");
var _fs = require("fs");
var _catchment = _interopRequireDefault(require("catchment"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const LOG = (0, _util.debuglog)('doc');
const read = async source => {
const rs = (0, _fs.createReadStream)(source);
const data = await new Promise(async (r, j) => {
const {
promise
} = new _catchment.default({
rs
});
rs.on('error', j);
const res = await promise;
r(res);
});
return data;
};
const replacer = async (match, source, from, to, type) => {
try {
let f = await (0, _wrote.read)(source);
let f = await read(source);
f = f.trim();

@@ -21,0 +40,0 @@

## 22 June 2018
### 1.6.1
- [dep] Remove `wrote`, implement simple file read.
- [fix] `skipLevelOne=true` in documentation.
### 1.6.0

@@ -4,0 +9,0 @@

5

package.json
{
"name": "documentary",
"version": "1.6.0",
"version": "1.6.1",
"description": "A library to manage documentation, such as README, usage, man pages and changelog.",

@@ -60,5 +60,4 @@ "main": "build",

"restream": "2.1.0",
"spawncommand": "2.0.1",
"wrote": "1.4.0"
"spawncommand": "2.0.1"
}
}

@@ -35,3 +35,3 @@ # documentary

* [`Toc` Type](#toc-type)
* [`constructor(config?: object): Toc`](#constructorconfig-skiplevelone-boolean--false-toc)
* [`constructor(config?: object): Toc`](#constructorconfig-skiplevelone-boolean--true-toc)

@@ -272,3 +272,3 @@ ## Installation & Usage

### `constructor(`<br/>&nbsp;&nbsp;`config?: {`<br/>&nbsp;&nbsp;&nbsp;&nbsp;`skipLevelOne?: boolean = false,`<br/>&nbsp;&nbsp;`},`<br/>`): Toc`
### `constructor(`<br/>&nbsp;&nbsp;`config?: {`<br/>&nbsp;&nbsp;&nbsp;&nbsp;`skipLevelOne?: boolean = true,`<br/>&nbsp;&nbsp;`},`<br/>`): Toc`

@@ -275,0 +275,0 @@ Create a new instance of a `Toc` stream.

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