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

@ikerin/build-readme

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ikerin/build-readme - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

3

dist/index.js

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

const escapedSection = section.replace('-', '\\-');
const result = content.match(new RegExp(`\/\/ << ${escapedSection}\n+(.*)\n+([ ]*)\/\/ ${escapedSection}`, 'msi'));
const result = content.match(new RegExp(`(?:\/\/|#) << ${escapedSection}\n+(.*)\n+([ ]*)(?:\/\/|#) ${escapedSection}`, 'msi'));
if (!result) {

@@ -25,2 +25,3 @@ throw new Error(`Section ${section} does not exist.`);

.map((line) => line.substr(indent.length))
.filter((row) => !row.match(/\/\/ (<< )?[0-9a-zA-Z\-]+/))
.join('\n')

@@ -27,0 +28,0 @@ .trim(),

{
"name": "@ikerin/build-readme",
"version": "1.0.4",
"version": "1.1.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -35,2 +35,18 @@ # Build Readme

There is also support for `#` style comments
> [examples/oapi.yaml:(test-section)](examples/oapi.yaml)
```yaml
---
openapi: 3.0.0
info:
# << test-section
title: Simple API
version: 1.0.0
# test-section
servers:
- url: 'http: //localhost:3333'
```
## Running the tests

@@ -37,0 +53,0 @@

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