insert-module-globals
Advanced tools
Comparing version 7.0.6 to 7.1.0
@@ -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); |
{ | ||
"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": { |
@@ -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
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
30641
42
695
6
23