🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

broccoli

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli - npm Package Compare versions

Comparing version

to
0.12.2

4

CHANGELOG.md
# master
# 0.12.2
* Fix directory handling in server on Windows
# 0.12.1

@@ -4,0 +8,0 @@

5

lib/middleware.js

@@ -37,4 +37,5 @@ var path = require('path')

if (stat.isDirectory()) {
// if no trailing slash, redirect
if (filename[filename.length - 1] !== '/') {
// If no trailing slash, redirect. We use path.sep because filename
// has backslashes on Windows.
if (filename[filename.length - 1] !== path.sep) {
urlObj.pathname += '/'

@@ -41,0 +42,0 @@ response.setHeader('Location', url.format(urlObj))

{
"name": "broccoli",
"description": "Fast client-side asset builder",
"version": "0.12.1",
"version": "0.12.2",
"author": "Jo Liss <joliss42@gmail.com>",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet