Socket
Socket
Sign inDemoInstall

gulp-kmc

Package Overview
Dependencies
118
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.27 to 1.0.28-beta

6

index.js

@@ -58,2 +58,3 @@ 'use strict';

if(ignore) {
file.ignore = true;
this.push(file);

@@ -195,2 +196,7 @@ return callback();

if(file.ignore) {
buffer.push(file);
return callback();
}
var r = file.info;

@@ -197,0 +203,0 @@ if(!r) {

5

package.json
{
"name": "gulp-kmc",
"version": "1.0.27",
"version": "1.0.28-beta",
"description": "kissy module compiler for gulp",

@@ -27,5 +27,6 @@ "main": "index.js",

"through2": "^0.5.1",
"mime": ">=1.2.9"
"mime": ">=1.2.9",
"react-tools": "0.12.2"
},
"readmeFilename": "README.md"
}

4

server.js

@@ -10,2 +10,3 @@ var http = require('http'),

var react = require('react-tools');

@@ -111,3 +112,3 @@ function isObject(obj) {

res.writeHead(200, {'Content-Type': mime.lookup(filename)});
res.writeHead(200, {'Content-Type': mime.lookup(filename),"Access-Control-Allow-Origin":"*"});
if(!config.fixModule||!info) {

@@ -128,2 +129,3 @@ var more = i==0 && info;

var code = fs.readFileSync(filename).toString('utf-8');
code = react.transform(code);
if(i>0) {

@@ -130,0 +132,0 @@ return res.end(code);

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