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

generate-contentful-graph

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

generate-contentful-graph - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.env.example

13

index.js

@@ -6,8 +6,11 @@ #!/usr/bin/env node

import graphviz from "graphviz";
import * as dotenv from 'dotenv';
const { SPACE_ID = '', ENVIRONMENT_ID = '', ACCESS_TOKEN = '' } = process.env;
dotenv.config();
const { SPACE_ID = '', ENVIRONMENT = '', CONTENT_DELIVERY_ACCESS_TOKEN = '' } = process.env;
assert(SPACE_ID, "Contentful SPACE_ID is required");
assert(ENVIRONMENT_ID, "Contentful ENVIRONMENT_ID is required");
assert(ACCESS_TOKEN, "Contentful content delivery ACCESS_TOKEN is required");
assert(ENVIRONMENT, "Contentful ENVIRONMENT is required");
assert(CONTENT_DELIVERY_ACCESS_TOKEN, "Contentful CONTENT_DELIVERY_ACCESS_TOKEN is required");

@@ -67,4 +70,4 @@ function generateColor() {

space: SPACE_ID,
environment: ENVIRONMENT_ID,
accessToken: ACCESS_TOKEN,
environment: ENVIRONMENT,
accessToken: CONTENT_DELIVERY_ACCESS_TOKEN,
});

@@ -71,0 +74,0 @@

{
"name": "generate-contentful-graph",
"version": "1.0.0",
"version": "1.0.1",
"description": "Contentful Content Type Dependency Graph",

@@ -10,3 +10,3 @@ "main": "index.js",

"scripts": {
"start": "node index.js | dot -Tsvg -o diagram.svg ",
"start": "node index.js | dot -Tsvg -o diagram.svg",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -24,4 +24,5 @@ },

"contentful": "^9.3.5",
"graphviz": "^0.0.9"
"graphviz": "^0.0.9",
"dotenv": "^16.0.3"
}
}

@@ -8,3 +8,3 @@ # Contentful Content Type Dependency Graph

```bash
SPACE_ID={CONTENTFUL_SPACE_ID} ENVIRONMENT_ID={CONTENTFUL_ENVIRONMENT_ID} ACCESS_TOKEN={CONTENTFUL_CONTENT_DELIVERY_API_ACCESS_TOKEN} npx generate-contentful-graph
SPACE_ID={CONTENTFUL_SPACE_ID} ENVIRONMENT={CONTENTFUL_ENVIRONMENT_ID} CONTENT_DELIVERY_ACCESS_TOKEN={CONTENTFUL_CONTENT_DELIVERY_API_ACCESS_TOKEN} npx generate-contentful-graph
```

@@ -17,3 +17,3 @@

```bash
SPACE_ID={CONTENTFUL_SPACE_ID} ENVIRONMENT_ID={CONTENTFUL_ENVIRONMENT_ID} ACCESS_TOKEN={CONTENTFUL_CONTENT_DELIVERY_API_ACCESS_TOKEN} npx generate-contentful-graph > diagram.dot
SPACE_ID={CONTENTFUL_SPACE_ID} ENVIRONMENT={CONTENTFUL_ENVIRONMENT_ID} CONTENT_DELIVERY_ACCESS_TOKEN={CONTENTFUL_CONTENT_DELIVERY_API_ACCESS_TOKEN} npx generate-contentful-graph > diagram.dot
```

@@ -24,3 +24,3 @@

```bash
SPACE_ID={CONTENTFUL_SPACE_ID} ENVIRONMENT_ID={CONTENTFUL_ENVIRONMENT_ID} ACCESS_TOKEN={CONTENTFUL_CONTENT_DELIVERY_API_ACCESS_TOKEN} npx generate-contentful-graph | dot -Tsvg -o diagram.svg
SPACE_ID={CONTENTFUL_SPACE_ID} ENVIRONMENT={CONTENTFUL_ENVIRONMENT_ID} CONTENT_DELIVERY_ACCESS_TOKEN={CONTENTFUL_CONTENT_DELIVERY_API_ACCESS_TOKEN} npx generate-contentful-graph | dot -Tsvg -o diagram.svg
```
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