trifid-plugin-graph-explorer
Advanced tools
Comparing version 0.2.0 to 0.3.0
const absoluteUrl = require('absolute-url') | ||
const express = require('express') | ||
const path = require('path') | ||
const url = require('url') | ||
@@ -19,3 +18,3 @@ function middleware (options) { | ||
const urlPathname = url.parse(req.originalUrl).pathname | ||
const urlPathname = new URL(req.originalUrl).pathname | ||
@@ -28,3 +27,3 @@ // redirect to trailing slash URL for relative pathes of JS and CSS files | ||
// read SPARQL endpoint URL from options and resolve with absoluteUrl | ||
res.locals.endpointUrl = url.resolve(req.absoluteUrl(), options.endpointUrl) | ||
res.locals.endpointUrl = new URL(options.endpointUrl, req.absoluteUrl()).href | ||
@@ -31,0 +30,0 @@ res.render(options.template) |
{ | ||
"name": "trifid-plugin-graph-explorer", | ||
"description": "Trifid Graph Explorer plugin", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"license": "MIT", | ||
@@ -19,8 +19,8 @@ "homepage": "https://github.com/zazuko/trifid-plugin-graph-explorer", | ||
"absolute-url": "^1.2.2", | ||
"express": "^4.15.4", | ||
"graph-explorer": "^1.0.0" | ||
"express": "^4.17.1", | ||
"graph-explorer": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"standard": "^10.0.3" | ||
"standard": "^16.0.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6071
31
1
Updatedexpress@^4.17.1
Updatedgraph-explorer@^1.1.0