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

@raycast/generate-docs

Package Overview
Dependencies
Maintainers
8
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@raycast/generate-docs - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

8

index.js

@@ -172,6 +172,10 @@ #!/usr/bin/env node

const imageRegex = /!\[.*?\]\((.+?)\)/gm;
const markdownImageRegex = /!\[.*?\]\((.+?)\)/gm;
const htmlImageRegex = /<img src="(.+?)".*?>/gm;
/** check that every images points to an image that's present in the assets */
function checkImages(filepath, content, assets) {
const images = [...content.matchAll(imageRegex)].map((x) => ({
const images = [
...content.matchAll(markdownImageRegex),
...content.matchAll(htmlImageRegex),
].map((x) => ({
file: filepath,

@@ -178,0 +182,0 @@ link: x[1],

{
"name": "@raycast/generate-docs",
"version": "0.8.2",
"version": "0.8.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -40,13 +40,8 @@ const { is } = require("./utils");

.filter((y) => !is.ReactComponentType(y))
.map(({ id }) => idsMap.get(id))
.forEach((y) => {
if (y.type === "reference") {
y = idsMap.get(y.id);
} else if (y.type === "reflection") {
y = y.declaration;
} else {
value.push(y);
if (!y) {
console.log(y, x);
}
value.push(y);
if (y.children) {

@@ -53,0 +48,0 @@ y.children.forEach((z) => iterate(z, `${key}.`));

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