Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

punch

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

punch - npm Package Compare versions

Comparing version 0.5.24 to 0.5.26

4

lib/minifiers/cssmin.js

@@ -1,2 +0,2 @@

var cssminPkg = require("cssmin");
global.cssmin = require("cssmin");

@@ -11,3 +11,3 @@ module.exports = {

try {
output = cssminPkg.cssmin(input);
output = cssmin(input);
} catch(error) {

@@ -14,0 +14,0 @@ err = error;

@@ -38,3 +38,4 @@ var fs = require("fs");

child_process.exec(copy_command, function(err, stdout, stderr) {
if(err) {
if (err && os.platform() === "win32" && err.code <= 3) {
} else if(err) {
throw err;

@@ -41,0 +42,0 @@ }

@@ -235,3 +235,3 @@ var _ = require("underscore");

var directories_to_look = [];
_.each(basepath.split("/"), function(current_dir_entry){
_.each(basepath.split(path.sep || "/"), function(current_dir_entry){
var previous_dir_entry;

@@ -238,0 +238,0 @@

@@ -15,3 +15,3 @@ {

],
"version": "0.5.24",
"version": "0.5.26",
"homepage": "https://github.com/laktek/punch",

@@ -32,3 +32,3 @@ "author": "Lakshan Perera <lakshan@web2media.net> (http://laktek.com)",

"connect": ">= 2.4.4",
"cssmin": ">= 0.3.1",
"cssmin": ">= 0.4.1",
"fresh": ">= 0.1.0",

@@ -35,0 +35,0 @@ "fstream": ">= 0.1.18",

@@ -1,2 +0,1 @@

var cssminPkg = require("cssmin");
var cssmin_minifier = require("../../lib/minifiers/cssmin");

@@ -7,3 +6,3 @@

it("calls the callback with the result", function(){
spyOn(cssminPkg, "cssmin").andCallFake(function(input){
spyOn(global, "cssmin").andCallFake(function(input){
return "compiled output";

@@ -19,3 +18,3 @@ });

it("calls the callback with the error", function(){
spyOn(cssminPkg, "cssmin").andCallFake(function(input){
spyOn(global, "cssmin").andCallFake(function(input){
throw "error";

@@ -22,0 +21,0 @@ });

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