New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-concat-script

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-concat-script - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

index.js

@@ -8,2 +8,6 @@ var fs = require('fs'),

opt = {
baseDir: opt.baseDir || './'
};
function concat(file, encoding, callback) {

@@ -25,6 +29,6 @@ if (file.isNull()) {

var m = line.match(/src="(.*.js)"/) || line.match(/^ *'(.*)',?$/);
if (!m || !fs.existsSync(m[1])) {
if (!m || !fs.existsSync(opt.baseDir + m[1])) {
return;
}
newLines.push(fs.readFileSync(m[1]).toString());
newLines.push(fs.readFileSync(opt.baseDir + m[1]).toString());
parsed = true;

@@ -44,2 +48,2 @@ });

return through.obj(concat);
};
};
{
"name": "gulp-concat-script",
"version": "1.0.1",
"version": "1.0.2",
"description": "Parses js files, finds `document.write('<script src='*.js'></script>')` directive and includes these files.",

@@ -13,3 +13,3 @@ "main": "index.js",

"type": "git",
"url": "https://github.com/wenzhixin/gulp-concat-script.git"
"url": "git+https://github.com/wenzhixin/gulp-concat-script.git"
},

@@ -21,3 +21,6 @@ "keywords": [

],
"author": "wenzhixin (http://wenzhixin.net.cn)",
"author": {
"name": "wenzhixin",
"url": "http://wenzhixin.net.cn"
},
"license": "THE MIT Lincense",

@@ -27,3 +30,29 @@ "bugs": {

},
"homepage": "https://github.com/wenzhixin/gulp-concat-script"
"homepage": "https://github.com/wenzhixin/gulp-concat-script",
"gitHead": "7726096ccf1f2b168e22d05573826b5e7d7acf92",
"_id": "gulp-concat-script@1.0.1",
"_shasum": "5f3e616867882388cc311a0406da16baef838ce5",
"_from": "gulp-concat-script@latest",
"_npmVersion": "1.4.28",
"_npmUser": {
"name": "wenzhixin",
"email": "wenzhixin2010@gmail.com"
},
"maintainers": [
{
"name": "wenzhixin",
"email": "wenzhixin2010@gmail.com"
}
],
"dist": {
"shasum": "5f3e616867882388cc311a0406da16baef838ce5",
"size": 1950,
"noattachment": false,
"tarball": "http://registry.npm.taobao.org/gulp-concat-script/download/gulp-concat-script-1.0.1.tgz"
},
"directories": {},
"publish_time": 1416205142776,
"_cnpm_publish_time": 1416205142776,
"_resolved": "https://registry.npm.taobao.org/gulp-concat-script/download/gulp-concat-script-1.0.1.tgz",
"readme": "ERROR: No README data found!"
}
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