chore(xo-lib): update all dependencies

This commit is contained in:
Julien Fontanet 2017-05-25 13:08:57 +02:00
parent ce2a08373e
commit b25adf7f57
4 changed files with 1982 additions and 956 deletions

View File

@ -1,10 +1,24 @@
/benchmark/
/benchmarks/
*.bench.js
*.bench.js.map
/examples/ /examples/
example.js example.js
example.js.map example.js.map
*.example.js *.example.js
*.example.js.map *.example.js.map
/fixture/
/fixtures/
*.fixture.js
*.fixture.js.map
*.fixtures.js
*.fixtures.js.map
/test/ /test/
/tests/ /tests/
*.spec.js *.spec.js
*.spec.js.map *.spec.js.map
__snapshots__/

View File

@ -28,33 +28,40 @@
"node": ">=4" "node": ">=4"
}, },
"dependencies": { "dependencies": {
"jsonrpc-websocket-client": "^0.1.2", "jsonrpc-websocket-client": "^0.2.0",
"lodash": "^4.17.2", "lodash": "^4.17.2",
"make-error": "^1.0.4" "make-error": "^1.0.4"
}, },
"devDependencies": { "devDependencies": {
"babel-cli": "^6.18.0", "babel-cli": "^6.24.1",
"babel-eslint": "^7.1.1", "babel-eslint": "^7.2.3",
"babel-plugin-lodash": "^3.2.9", "babel-plugin-lodash": "^3.2.11",
"babel-preset-env": "^1.0.1", "babel-preset-env": "^1.5.1",
"babel-preset-stage-0": "^6.16.0", "babel-preset-stage-3": "^6.24.1",
"cross-env": "^3.1.3", "cross-env": "^5.0.0",
"dependency-check": "^2.6.0", "dependency-check": "^2.8.0",
"rimraf": "^2.5.4", "jest": "^20.0.3",
"standard": "^8.5.0" "rimraf": "^2.6.1",
"standard": "^10.0.2"
}, },
"scripts": { "scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/", "build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/", "commitmsg": "npm test",
"depcheck": "dependency-check ./package.json",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/", "dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard", "dev-test": "jest --bail --watch",
"posttest": "yarn run lint && yarn run depcheck", "posttest": "standard && dependency-check ./package.json",
"prebuild": "yarn run clean", "prebuild": "rimraf dist/",
"predev": "yarn run clean", "predev": "npm run prebuild",
"prepublish": "yarn run build" "prepublish": "npm run build",
"test": "jest"
}, },
"babel": { "babel": {
"env": {
"test": {
"ignore": null
}
},
"ignore": "*.spec.js",
"plugins": [ "plugins": [
"lodash" "lodash"
], ],
@ -68,9 +75,16 @@
} }
} }
], ],
"stage-0" "stage-3"
] ]
}, },
"jest": {
"testEnvironment": "node",
"roots": [
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": { "standard": {
"ignore": [ "ignore": [
"dist" "dist"

View File

@ -17,10 +17,10 @@ export class XoError extends BaseError {}
export default class Xo extends JsonRpcWebSocketClient { export default class Xo extends JsonRpcWebSocketClient {
constructor (opts) { constructor (opts) {
const url = opts && opts.url || '.' const url = opts != null ? opts.url : '.'
super(`${url === '/' ? '' : url}/api/`) super(`${url === '/' ? '' : url}/api/`)
this._credentials = opts && opts.credentials || null this._credentials = (opts != null ? opts.credentials : null)
this._user = null this._user = null
this.on(OPEN, () => { this.on(OPEN, () => {

File diff suppressed because it is too large Load Diff