browserify
Advanced tools
Comparing version
{ | ||
"name": "browserify", | ||
"version": "15.0.0", | ||
"version": "15.1.0", | ||
"description": "browser-side require() the node way", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">= 4.0" | ||
"node": ">= 0.8" | ||
}, | ||
@@ -50,3 +50,3 @@ "keywords": [ | ||
"labeled-stream-splicer": "^2.0.0", | ||
"module-deps": "^5.0.0", | ||
"module-deps": "^5.0.1", | ||
"os-browserify": "~0.3.0", | ||
@@ -81,3 +81,5 @@ "parents": "^1.0.1", | ||
"coffeeify": "~1.1.0", | ||
"has-template-literals": "^1.0.0", | ||
"isstream": "^0.1.2", | ||
"make-generator-function": "^1.1.0", | ||
"seq": "0.3.5", | ||
@@ -84,0 +86,0 @@ "tap": "^10.7.2", |
@@ -5,4 +5,6 @@ var browserify = require('../'); | ||
var hasTemplateLiterals = require('has-template-literals')(); | ||
test('quotes', function (t) { | ||
t.plan(3); | ||
t.plan(2); | ||
@@ -12,2 +14,18 @@ var b = browserify(__dirname + '/quotes/main.js'); | ||
var c = { | ||
done : function (single, double) { | ||
t.equal(single, 'success', 'single quotes'); | ||
t.equal(double, 'success', 'double quotes'); | ||
t.end(); | ||
} | ||
}; | ||
vm.runInNewContext(src, c); | ||
}); | ||
}); | ||
test('interpolation literals', { skip: !hasTemplateLiterals }, function (t) { | ||
t.plan(3); | ||
var b = browserify(__dirname + '/quotes/backtick.js'); | ||
b.bundle(function (err, src) { | ||
var c = { | ||
done : function (single, double, backtick) { | ||
@@ -14,0 +32,0 @@ t.equal(single, 'success', 'single quotes'); |
@@ -1,1 +0,1 @@ | ||
done(require('./one.js'), require("./two.js"), require(`./three.js`)); | ||
done(require('./one.js'), require("./two.js")); |
var browserify = require('../'); | ||
var test = require('tap').test; | ||
var vm = require('vm'); | ||
var generatorFunction = require('make-generator-function'); | ||
test('yield', function (t) { | ||
test('yield', { skip: !generatorFunction }, function (t) { | ||
t.plan(6); | ||
var b = browserify(__dirname + '/yield/main.js'); | ||
b.bundle(function (err, src) { | ||
@@ -14,3 +15,3 @@ t.error(err); | ||
vm.runInNewContext(src, c); | ||
function log (msg) { | ||
@@ -17,0 +18,0 @@ t.equal(index++, msg); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
346488
-1.02%11
22.22%419
-14.49%5427
-2.15%Updated