Socket
Socket
Sign inDemoInstall

min-wd

Package Overview
Dependencies
4
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

lib/plugin.js

22

lib/options.js

@@ -12,2 +12,11 @@ /*

function override(options, overrides) {
var k;
for (k in overrides) {
if (overrides.hasOwnProperty(k)) {
options[k] = overrides[k];
}
}
}
function loadOptions(fileName, key, options) {

@@ -23,8 +32,3 @@ /*jslint stupid: true*/

}
var k;
for (k in overrides) {
if (overrides.hasOwnProperty(k)) {
options[k] = overrides[k];
}
}
override(options, overrides);
return true;

@@ -34,3 +38,3 @@ }

module.exports = function () {
module.exports = function (opts) {
var options = {

@@ -48,2 +52,6 @@ hostname : 'localhost',

if (opts) {
override(options, opts);
}
if (options.sauceLabs) {

@@ -50,0 +58,0 @@ options.hostname = 'ondemand.saucelabs.com';

{
"name": "min-wd",
"version": "1.0.0",
"version": "2.0.0",
"description": "Minimal WebDriver that pipes stdin to browsers",

@@ -16,3 +16,3 @@ "keywords": [

"homepage": "https://github.com/mantoni/min-webdriver",
"main": "./lib/transform.js",
"main": "./lib/plugin.js",
"browser": "./lib/client.js",

@@ -31,2 +31,3 @@ "bin": {

"through": "^2.3",
"resolve": "^0.7",
"listen": "^1.0",

@@ -33,0 +34,0 @@ "brout": "^1.0"

@@ -17,3 +17,3 @@ # Minimal WebDriver

```
npm install min-wd -g
npm install min-wd
```

@@ -51,3 +51,3 @@

```
$ browserify -t min-wd my-script.js | min-wd
$ browserify -p min-wd my-script.js
= internet explorer 9 ========================================================

@@ -95,3 +95,3 @@ Hello browser!

```
$ browserify -t min-wd -p mocaccino my-test.js | min-wd
$ browserify -p mocaccino -p min-wd my-test.js
```

@@ -98,0 +98,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc