chore(xo-server-auth-ldap): update all deps

This commit is contained in:
Julien Fontanet
2017-02-02 15:48:51 +01:00
parent a478d02e5d
commit 768ef8a316
5 changed files with 1435 additions and 556 deletions

View File

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

View File

@@ -33,44 +33,61 @@
"node": ">=4"
},
"dependencies": {
"babel-runtime": "^6.3.19",
"babel-runtime": "^6.22.0",
"event-to-promise": "^0.7.0",
"exec-promise": "^0.6.1",
"inquirer": "^3.0.1",
"ldapjs": "^1.0.0",
"ldapjs": "^1.0.1",
"lodash": "^4.17.4",
"promise-toolbox": "^0.8.0"
},
"devDependencies": {
"babel-cli": "^6.3.17",
"babel-eslint": "^7.0.0",
"babel-plugin-transform-runtime": "^6.3.13",
"babel-preset-latest": "^6.16.0",
"babel-preset-stage-0": "^6.3.13",
"cross-env": "^3.1.3",
"dependency-check": "^2.5.1",
"babel-cli": "^6.22.2",
"babel-eslint": "^7.1.1",
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-preset-env": "^1.1.8",
"babel-preset-stage-3": "^6.22.0",
"cross-env": "^3.1.4",
"dependency-check": "^2.8.0",
"jest": "^18.1.0",
"rimraf": "^2.5.4",
"standard": "^8.0.0"
"standard": "^8.6.0"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json",
"commitmsg": "npm test",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "yarn run lint && yarn run depcheck",
"prebuild": "yarn run clean",
"predev": "yarn run clean",
"prepublish": "yarn run build"
"dev-test": "jest --bail --watch",
"posttest": "standard && dependency-check ./package.json",
"prebuild": "rimraf dist/",
"predev": "npm run prebuild",
"prepublish": "npm run build",
"test": "jest"
},
"babel": {
"plugins": [
"lodash",
"transform-runtime"
],
"presets": [
"latest",
"stage-0"
[
"env",
{
"targets": {
"node": 4
}
}
],
"stage-3"
]
},
"jest": {
"testPathDirs": [
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": {
"ignore": [
"dist"

View File

@@ -1,6 +1,7 @@
/* eslint no-throw-literal: 0 */
import eventToPromise from 'event-to-promise'
import { bind, noop } from 'lodash'
import { createClient } from 'ldapjs'
import { escape } from 'ldapjs/lib/filters/escape'
import { promisify } from 'promise-toolbox'
@@ -8,14 +9,6 @@ import { readFile } from 'fs'
// ===================================================================
const bind = (fn, thisArg) => function () {
return fn.apply(thisArg, arguments)
}
const noop = () => {}
// -------------------------------------------------------------------
const VAR_RE = /\{\{([^}]+)\}\}/g
const evalFilter = (filter, vars) => filter.replace(VAR_RE, (_, name) => {
const value = vars[name]

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env node
import execPromise from 'exec-promise'
import { bind } from 'lodash'
import { fromCallback } from 'promise-toolbox'
import { readFile, writeFile } from 'fs'
@@ -44,5 +45,5 @@ execPromise(async args => {
validate: input => !!input.length
}),
password: await password('Password')
}, ::console.log)
}, bind(console.log, console))
})

File diff suppressed because it is too large Load Diff