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

trifid-plugin-graph-explorer

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trifid-plugin-graph-explorer - npm Package Compare versions

Comparing version

to
0.4.0

2

index.js

@@ -13,2 +13,3 @@ const absoluteUrl = require('absolute-url')

options.template = options.template || path.join(__dirname, 'views/index.html')
options.acceptBlankNodes = !!options.acceptBlankNodes

@@ -28,2 +29,3 @@ // render index page

res.locals.endpointUrl = new URL(options.endpointUrl, req.absoluteUrl()).href
res.locals.acceptBlankNodes = options.acceptBlankNodes

@@ -30,0 +32,0 @@ res.render(options.template)

2

package.json
{
"name": "trifid-plugin-graph-explorer",
"description": "Trifid Graph Explorer plugin",
"version": "0.3.3",
"version": "0.4.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/zazuko/trifid-plugin-graph-explorer",

# trifid-plugin-graph-explorer
[Graph Explorer](https://github.com/zazuko/graph-explorer) for Trifid.
[Graph Explorer](https://github.com/zazuko/graph-explorer) for [Trifid](https://github.com/zazuko/trifid).
This middleware does the static file hosting for all Graph Explorer files and renders an index page that points to the given endpoint URL.
# Usage

@@ -12,2 +12,3 @@

- `template`: Path to an alternative template (default: `views/index.html`)
- `acceptBlankNodes`: Show blank nodes

@@ -27,3 +28,4 @@ Configuring Trifid to use `trifid-plugin-graph-explorer` is done the same way as `trifid-plugin-yasgui`.

+ "default": {
+ "path": "/graph-explorer"
+ "path": "/graph-explorer",
+ "acceptBlankNodes": false
+ }

@@ -30,0 +32,0 @@ + },

Sorry, the diff of this file is not supported yet