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

docs-and-graphs

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docs-and-graphs - npm Package Compare versions

Comparing version 0.1.18 to 0.1.19

2

package.json
{
"name": "docs-and-graphs",
"version": "0.1.18",
"version": "0.1.19",
"type": "module",

@@ -5,0 +5,0 @@ "description": "",

@@ -65,13 +65,13 @@ import yaml from 'js-yaml'

const { inlineAsArray } = options
const as = inlineAsArray ? (x) => x : arrayToObject
const newData = extractInlineFields(value).
map(({ chunks, raw }) => chunks.length > 1
? as(chunks.map(maybeNormalize))
: [])
const data = currentNode.data ?? []
const data = [...currentNode.inlineFields ?? [], ...newData]
for (const { chunks, raw } of extractInlineFields(value)) {
if (chunks.length > 1) {
data.push(as(maybeNormalize(chunks)))
}
}
if (data.flat().length) {
if (data.length) {
currentNode.data = data

@@ -78,0 +78,0 @@ }

@@ -26,3 +26,5 @@ import { expect } from 'expect'

'a::b::c\na::f::d',
'Several lines\na::b\na::f'
'before\na::b\na::f',
'a::b\nbetween\nc::d',
'a::b\nc::d\nafter'
]

@@ -29,0 +31,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