insert-module-globals
Advanced tools
Comparing version 2.1.1 to 2.2.0
var parseScope = require('lexical-scope'); | ||
var commondir = require('commondir'); | ||
var through = require('through'); | ||
var defined = require('defined'); | ||
@@ -49,2 +50,4 @@ var path = require('path'); | ||
if (!files) files = []; | ||
var commoner = defined(opts.commondir, commondir); | ||
if (commoner === false) commoner = function () { return '/' }; | ||
@@ -54,3 +57,3 @@ var vars = opts.vars || _vars | ||
var basedir = opts.basedir || (files.length | ||
? commondir(files.map(function (x) { | ||
? commoner(files.map(function (x) { | ||
return path.resolve(path.dirname(x)); | ||
@@ -57,0 +60,0 @@ })) |
{ | ||
"name": "insert-module-globals", | ||
"version": "2.1.1", | ||
"description": "insert implicit module globals into a module-deps stream", | ||
"main": "index.js", | ||
"bin": { | ||
"insert-module-globals": "bin/cmd.js" | ||
}, | ||
"dependencies": { | ||
"commondir": "~0.0.1", | ||
"lexical-scope": "~0.0.14", | ||
"process": "~0.5.1", | ||
"through": "~2.3.4", | ||
"duplexer": "~0.1.1", | ||
"JSONStream": "~0.7.1" | ||
}, | ||
"devDependencies": { | ||
"tap": "~0.4.0", | ||
"browser-pack": "~0.10.2", | ||
"native-buffer-browserify": "~1.2.2", | ||
"module-deps": "~1.0.2", | ||
"browserify": "~2.32.0" | ||
}, | ||
"scripts": { | ||
"test": "tap test/*.js", | ||
"prepublish": "./bundle.sh" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/substack/insert-module-globals.git" | ||
}, | ||
"homepage": "https://github.com/substack/insert-module-globals", | ||
"keywords": [ | ||
"__filename", | ||
"__dirname", | ||
"global", | ||
"process", | ||
"module-deps", | ||
"browser-pack", | ||
"browserify" | ||
], | ||
"author": { | ||
"name": "James Halliday", | ||
"email": "mail@substack.net", | ||
"url": "http://substack.net" | ||
}, | ||
"license": "MIT" | ||
"name": "insert-module-globals", | ||
"version": "2.2.0", | ||
"description": "insert implicit module globals into a module-deps stream", | ||
"main": "index.js", | ||
"bin": { | ||
"insert-module-globals": "bin/cmd.js" | ||
}, | ||
"dependencies": { | ||
"commondir": "~0.0.1", | ||
"lexical-scope": "~0.0.14", | ||
"process": "~0.5.1", | ||
"through": "~2.3.4", | ||
"duplexer": "~0.1.1", | ||
"JSONStream": "~0.7.1", | ||
"defined": "0.0.0" | ||
}, | ||
"devDependencies": { | ||
"tap": "~0.4.0", | ||
"browser-pack": "~0.10.2", | ||
"native-buffer-browserify": "~1.2.2", | ||
"module-deps": "~1.0.2", | ||
"browserify": "~2.32.0" | ||
}, | ||
"scripts": { | ||
"test": "tap test/*.js", | ||
"prepublish": "./bundle.sh" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/substack/insert-module-globals.git" | ||
}, | ||
"homepage": "https://github.com/substack/insert-module-globals", | ||
"keywords": [ | ||
"__filename", | ||
"__dirname", | ||
"global", | ||
"process", | ||
"module-deps", | ||
"browser-pack", | ||
"browserify" | ||
], | ||
"author": { | ||
"name": "James Halliday", | ||
"email": "mail@substack.net", | ||
"url": "http://substack.net" | ||
}, | ||
"license": "MIT" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71103
1814
128
7
+ Addeddefined@0.0.0
+ Addeddefined@0.0.0(transitive)