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

karma-phantomjs-launcher

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-phantomjs-launcher - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name"0.2.2"></a>
### 0.2.2 (2015-12-24)
#### Bug Fixes
* pass PhantomJS script as the first cmd-line argument ([1c195c6b](https://github.com/karma-runner/karma-phantomjs-launcher/commit/1c195c6b))
* do not duplicate cmd-line flags on repeated PhantomJS runs ([76228f18](https://github.com/karma-runner/karma-phantomjs-launcher/commit/76228f18))
<a name"0.2.1"></a>

@@ -2,0 +12,0 @@ ### 0.2.1 (2015-08-05)

14

index.js

@@ -32,3 +32,3 @@ var fs = require('fs')

var options = args && args.options || config && config.options || {}
var flags = args && args.flags || config && config.flags || []
var providedFlags = args && args.flags || config && config.flags || []

@@ -52,7 +52,2 @@ this._start = function (url) {

if (args.debug) {
flags = flags.concat('--remote-debugger-port=9000')
flags = flags.concat('--remote-debugger-autorun=yes')
}
var file = fs.readFileSync(path.join(__dirname, 'capture.template.js'))

@@ -71,3 +66,8 @@

flags = flags.concat(captureFile)
// PhantomJS takes its script file as the first cmd-line argument
var flags = [captureFile].concat(providedFlags)
if (args.debug) {
flags.push('--remote-debugger-port=9000')
flags.push('--remote-debugger-autorun=yes')
}

@@ -74,0 +74,0 @@ // and start phantomjs

{
"name": "karma-phantomjs-launcher",
"version": "0.2.1",
"version": "0.2.2",
"description": "A Karma plugin. Launcher for PhantomJS.",

@@ -31,2 +31,3 @@ "main": "index.js",

"eslint-plugin-react": "^3.2.0",
"eslint-plugin-standard": "^1.3.1",
"grunt": "~0.4.1",

@@ -37,3 +38,3 @@ "grunt-auto-release": "~0.0.2",

"grunt-eslint": "^17.0.0",
"grunt-karma": "^0.11.0",
"grunt-karma": "^0.12.1",
"grunt-npm": "~0.0.2",

@@ -43,3 +44,4 @@ "jasmine-core": "^2.3.4",

"karma-jasmine": "^0.3.5",
"load-grunt-tasks": "^3.2.0"
"load-grunt-tasks": "^3.2.0",
"phantomjs": "^1.9.19"
},

@@ -49,7 +51,7 @@ "contributors": [

"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
"Jurko Gospodnetić <jurko.gospodnetic@pke.hr>",
"Friedel Ziegelmayer <friedel.ziegelmayer@gmail.com>",
"Dan Siwiec <daniel.siwiec@gmail.com>",
"Huafu Gandon <huafu.gandon@gmail.com>",
"Sylvain Hamel <sylvainhamel0@gmail.com>",
"Huafu Gandon <huafu.gandon@gmail.com>",
"Nick Malaguti <nmalaguti@palantir.com>",
"Rob Barreca <rob.barreca@inmobi.com>",
"nherzing <nherzing@gmail.com>",

@@ -62,4 +64,6 @@ "Chad Smith <chad@configit.com>",

"Jonathan Park <jpark@daptiv.com>",
"Mark Derbecker <mark.derbecker@seeq.com>"
"Mark Derbecker <mark.derbecker@seeq.com>",
"Nick Malaguti <nmalaguti@palantir.com>",
"Rob Barreca <rob.barreca@inmobi.com>"
]
}

@@ -12,18 +12,11 @@ # karma-phantomjs-launcher

The easiest way is to keep `karma-phantomjs-launcher` as a devDependency in your `package.json`.
```json
{
"devDependencies": {
"karma": "~0.10",
"karma-phantomjs-launcher": "~0.1"
}
}
```
The easiest way is to keep `karma-phantomjs-launcher` as a devDependency in your `package.json`,
by running
You can simple do it by:
```bash
npm install karma-phantomjs-launcher --save-dev
$ npm install --save-dev karma-phantomjs-launcher
```
## Configuration
```js

@@ -54,9 +47,31 @@ // karma.conf.js

}
});
};
})
}
```
The `options` attribute allows you to initialize properties on
the phantomjs `page` object, so
```js
options: {
windowName: 'my-window',
settings: {
webSecurityEnabled: false
},
}
```
is equivalent to:
```js
var webPage = require('webpage')
var page = webPage.create()
page.windowName = 'my-window'
page.settings.webSecurityEnabled = false
```
You can pass list of browsers as a CLI argument too:
```bash
karma start --browsers PhantomJS_custom
$ karma start --browsers PhantomJS_custom
```

@@ -63,0 +78,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