Socket
Socket
Sign inDemoInstall

graph-docs-cli

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graph-docs-cli - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

6

bin/dotfile.js

@@ -31,4 +31,6 @@ var __create = Object.create;

var import_getContentGraph = require("./getContentGraph");
var import_chokidarGlob = require("./chokidarGlob");
const getDotfile = async (glob, cachePath) => {
const db = await (0, import_getContentGraph.getContentGraph)(glob);
const allFiles = await (0, import_chokidarGlob.chokidarGlob)(glob);
const config = await (0, import_getConfig.getConfig)();

@@ -43,3 +45,5 @@ const getColor = (name) => {

cwd: process.cwd()
}).toString().split("\n").map((item) => item.trim()).filter(Boolean).map((item) => path.parse(item).name);
}).toString().split("\n").map((item) => item.trim()).filter((item) => {
return allFiles.includes(path.resolve(process.cwd(), item));
}).map((item) => path.parse(item).name);
const dotfileText = `

@@ -46,0 +50,0 @@ digraph kmap {

# graph-docs-cli
## 0.0.5
### Patch Changes
- [`6203fd1`](https://github.com/mattpocock/graph-docs-cli/commit/6203fd1cc3b3ed90ceea198c2b5ed309b140a101) Thanks [@mattpocock](https://github.com/mattpocock)! - Fixed a bug where modules that weren't in the glob would end up in changed files
## 0.0.4

@@ -4,0 +10,0 @@

2

package.json
{
"name": "graph-docs-cli",
"version": "0.0.4",
"version": "0.0.5",
"main": "dist/graph-docs-cli.cjs.js",

@@ -5,0 +5,0 @@ "bin": {

@@ -6,5 +6,7 @@ import { execSync } from 'child_process';

import { getContentGraph } from './getContentGraph';
import { chokidarGlob } from './chokidarGlob';
export const getDotfile = async (glob: string, cachePath: string) => {
const db = await getContentGraph(glob);
const allFiles = await chokidarGlob(glob);

@@ -25,3 +27,5 @@ const config = await getConfig();

.map((item) => item.trim())
.filter(Boolean)
.filter((item) => {
return allFiles.includes(path.resolve(process.cwd(), item));
})
.map((item) => path.parse(item).name);

@@ -28,0 +32,0 @@

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