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

insert-module-globals

Package Overview
Dependencies
Maintainers
39
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 7.0.6 to 7.1.0

test/immediate.js

6

index.js

@@ -44,2 +44,8 @@ var parseScope = require('lexical-scope');

},
setImmediate: function () {
return 'require("timers").setImmediate';
},
clearImmediate: function () {
return 'require("timers").clearImmediate';
},
__filename: function (file, basedir) {

@@ -46,0 +52,0 @@ var relpath = path.relative(basedir, file);

5

package.json
{
"name": "insert-module-globals",
"version": "7.0.6",
"version": "7.1.0",
"description": "insert implicit module globals into a module-deps stream",

@@ -25,3 +25,4 @@ "main": "index.js",

"module-deps": "^4.0.2",
"tape": "^4.2.0"
"tape": "^4.2.0",
"timers-browserify": "^1.4.2"
},

@@ -28,0 +29,0 @@ "scripts": {

9

test/always.js

@@ -12,3 +12,4 @@ var test = require('tape')

modules: {
buffer: require.resolve('buffer/')
buffer: require.resolve('buffer/'),
timers: require.resolve('timers-browserify')
}

@@ -36,3 +37,4 @@ });

modules: {
buffer: require.resolve('buffer/')
buffer: require.resolve('buffer/'),
timers: require.resolve('timers-browserify')
}

@@ -71,3 +73,4 @@ });

modules: {
buffer: require.resolve('buffer/')
buffer: require.resolve('buffer/'),
timers: require.resolve('timers-browserify')
}

@@ -74,0 +77,0 @@ });

@@ -18,3 +18,3 @@ var test = require('tape');

t.equal(c.require('main')({}), false, 'not a buffer (object)');
t.notOk(/require("buffer")/.test(src), 'buffer not required in source')
t.notOk(/require\("buffer"\)/.test(src), 'buffer not required in source')
t.notOk(/require\("\//.test(src), 'absolute path not required in source')

@@ -21,0 +21,0 @@ }));

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