Socket
Socket
Sign inDemoInstall

@bitgenics/fab-static

Package Overview
Dependencies
328
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.1 to 0.4.2

2

package.json
{
"name": "@bitgenics/fab-static",
"version": "0.4.1",
"version": "0.4.2",
"description": "Front-end Application Bundle generator for (mostly) static applications.",

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

@@ -20,3 +20,3 @@ const url_parse = require('url').parse

const STATIC_DIR_PATH = `/${config.staticDirName}`
const STATIC_DIR_PATH = `/${config.staticDirPath}`

@@ -66,6 +66,3 @@ let files = {}

const pathname = getPath(req.url)
if (
config.redirectToAssets &&
pathname.startsWith(`/${config.staticDirName}`)
) {
if (config.redirectToAssets && pathname.startsWith(STATIC_DIR_PATH)) {
console.log('redirecting!')

@@ -90,4 +87,4 @@ const location = pathname.replace(STATIC_DIR_PATH, '/_assets')

: accepts_html
? htmls['/200.html']
: null
? htmls['/200.html']
: null

@@ -94,0 +91,0 @@ if (html_handler) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc