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

insert-module-globals

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insert-module-globals - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

5

index.js
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 @@ }))

93

package.json
{
"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

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