Socket
Socket
Sign inDemoInstall

kraken-devtools

Package Overview
Dependencies
28
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

16

lib/middleware.js

@@ -25,3 +25,5 @@ /*───────────────────────────────────────────────────────────────────────────*\

mkdirp = require('mkdirp'),
merge = require('n-deep-merge'),
noop = require('./noop'),
debuglog = require('debuglog')('kraken-devtools'),
filter = require('./filter');

@@ -36,3 +38,3 @@

options.precompile || noop,
createExecutor(compiler),
createExecutor(compiler, options),
options.postcompile || noop

@@ -58,2 +60,4 @@ ];

debuglog("Compiling %j", context);
callback(null, context);

@@ -91,5 +95,5 @@ };

function createExecutor(compiler) {
function createExecutor(compiler, options) {
return function compile(context, callback) {
exec(compiler, context, function (err) {
exec(compiler, context, options, function (err) {
if (err) {

@@ -105,3 +109,3 @@ callback(err);

function exec(compiler, context, callback) {
function exec(compiler, context, options, callback) {

@@ -137,3 +141,5 @@ var srcFile, destFile, srcPath, destPath;

compiler(raw, { paths: dirs, context: context }, function (err, result) {
var config = merge({ paths: dirs, context: context }, options);
compiler(raw, config, function (err, result) {
if (err) {

@@ -140,0 +146,0 @@ callback(err);

{
"name": "kraken-devtools",
"version": "1.0.0",
"version": "1.1.0",
"description": "A development mode toolkit for kraken",

@@ -34,6 +34,8 @@ "main": "index.js",

"async": "^0.2.7",
"concat-stream": "^1.4.4",
"debuglog": "^1.0.1",
"minimatch": "^0.2.14",
"mkdirp": "^0.3.5",
"concat-stream": "^1.4.4",
"rimraf": "^2.2.6",
"minimatch": "^0.2.14"
"n-deep-merge": "0.0.1",
"rimraf": "^2.2.6"
},

@@ -48,3 +50,3 @@ "devDependencies": {

"grunt-mocha-test": "^0.7.0",
"node-sass": "^0.8.3",
"node-sass": "^1.0.0",
"dustjs-linkedin": "^2.3.4",

@@ -51,0 +53,0 @@ "localizr": "^0.1.0",

@@ -30,5 +30,10 @@ /*───────────────────────────────────────────────────────────────────────────*\

lib.render({
data: data,
success: callback.bind(null, null),
error: callback,
data: data.toString(),
success: function success(result) {
callback(null, result.css || result); // result.css for ^2
},
error: function error(err) {
err.status = 500; // for ^2
callback(err);
},
includePaths: args.paths

@@ -38,2 +43,2 @@ });

};
};

@@ -1,11 +0,17 @@

# kraken-devtools
kraken-devtools
===============
Lead Maintainer: [Poornima Venkat](https://github.com/pvenkatakrishnan/)
[![Build Status](https://travis-ci.org/krakenjs/kraken-devtools.svg?branch=master)](https://travis-ci.org/krakenjs/kraken-devtools)
[![NPM version](https://badge.fury.io/js/kraken-devtools.png)](http://badge.fury.io/js/kraken-devtools)
Compile-on-the-fly and other development tools for use when building [express](http://expressjs.com/) applications.
[![Build Status](https://travis-ci.org/krakenjs/kraken-devtools.png)](https://travis-ci.org/krakenjs/kraken-devtools)
[![NPM version](https://badge.fury.io/js/kraken-devtools.png)](http://badge.fury.io/js/kraken-devtools)
## Dependency considerations
Without a great system for supporting optional peer dependencies, here are some minimum versions for using plugins shipped with `kraken-devtools`:
1. `node-sass@^1.0.0`
## Middleware compiler

@@ -56,1 +62,4 @@

```
### kraken-devtools-browserify
Thanks to [iantocristian](http://github.com/iantocristian) we now have [browserify support for kraken-devtools](https://github.com/iantocristian/kraken-devtools-browserify)
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