Commit 7af3d855 by Johannes Zellner

add webdav server for easier file access

1 parent a7317b4b
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz",
"integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8=", "integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8=",
"requires": { "requires": {
"mime-types": "2.1.18", "mime-types": "~2.1.16",
"negotiator": "0.6.1" "negotiator": "0.6.1"
}, },
"dependencies": { "dependencies": {
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz",
"integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==",
"requires": { "requires": {
"mime-db": "1.33.0" "mime-db": "~1.33.0"
} }
} }
} }
...@@ -44,10 +44,10 @@ ...@@ -44,10 +44,10 @@
"resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz",
"integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=",
"requires": { "requires": {
"co": "4.6.0", "co": "^4.6.0",
"fast-deep-equal": "1.0.0", "fast-deep-equal": "^1.0.0",
"fast-json-stable-stringify": "2.0.0", "fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "0.3.1" "json-schema-traverse": "^0.3.0"
} }
}, },
"array-flatten": { "array-flatten": {
...@@ -56,18 +56,21 @@ ...@@ -56,18 +56,21 @@
"integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
}, },
"array-union": { "array-union": {
"version": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz",
"integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=",
"requires": { "requires": {
"array-uniq": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz" "array-uniq": "^1.0.1"
} }
}, },
"array-uniq": { "array-uniq": {
"version": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz",
"integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=" "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY="
}, },
"arrify": { "arrify": {
"version": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
"integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0="
}, },
"asn1": { "asn1": {
...@@ -81,7 +84,8 @@ ...@@ -81,7 +84,8 @@
"integrity": "sha1-7nQAlBMALYTOxyGcasgRgS5yMWA=" "integrity": "sha1-7nQAlBMALYTOxyGcasgRgS5yMWA="
}, },
"async": { "async": {
"version": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "version": "1.5.2",
"resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz",
"integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo="
}, },
"asynckit": { "asynckit": {
...@@ -123,11 +127,12 @@ ...@@ -123,11 +127,12 @@
"integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=",
"optional": true, "optional": true,
"requires": { "requires": {
"tweetnacl": "0.14.5" "tweetnacl": "^0.14.3"
} }
}, },
"bcryptjs": { "bcryptjs": {
"version": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz", "version": "2.4.3",
"resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz",
"integrity": "sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms=" "integrity": "sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms="
}, },
"body-parser": { "body-parser": {
...@@ -136,15 +141,15 @@ ...@@ -136,15 +141,15 @@
"integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=", "integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=",
"requires": { "requires": {
"bytes": "3.0.0", "bytes": "3.0.0",
"content-type": "1.0.4", "content-type": "~1.0.4",
"debug": "2.6.9", "debug": "2.6.9",
"depd": "1.1.2", "depd": "~1.1.1",
"http-errors": "1.6.2", "http-errors": "~1.6.2",
"iconv-lite": "0.4.19", "iconv-lite": "0.4.19",
"on-finished": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "on-finished": "~2.3.0",
"qs": "6.5.1", "qs": "6.5.1",
"raw-body": "2.3.2", "raw-body": "2.3.2",
"type-is": "1.6.16" "type-is": "~1.6.15"
}, },
"dependencies": { "dependencies": {
"depd": { "depd": {
...@@ -158,9 +163,9 @@ ...@@ -158,9 +163,9 @@
"integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=",
"requires": { "requires": {
"depd": "1.1.1", "depd": "1.1.1",
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "2.0.3",
"setprototypeof": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", "setprototypeof": "1.0.3",
"statuses": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz" "statuses": ">= 1.3.1 < 2"
}, },
"dependencies": { "dependencies": {
"depd": { "depd": {
...@@ -177,7 +182,7 @@ ...@@ -177,7 +182,7 @@
"resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz",
"integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=",
"requires": { "requires": {
"hoek": "4.2.1" "hoek": "4.x.x"
} }
}, },
"brace-expansion": { "brace-expansion": {
...@@ -185,7 +190,7 @@ ...@@ -185,7 +190,7 @@
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz",
"integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=",
"requires": { "requires": {
"balanced-match": "1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
} }
}, },
...@@ -214,14 +219,16 @@ ...@@ -214,14 +219,16 @@
"integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ="
}, },
"colors": { "colors": {
"version": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz",
"integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=" "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM="
}, },
"combined-stream": { "combined-stream": {
"version": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", "version": "1.0.5",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz",
"integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=",
"requires": { "requires": {
"delayed-stream": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" "delayed-stream": "~1.0.0"
} }
}, },
"commander": { "commander": {
...@@ -230,7 +237,8 @@ ...@@ -230,7 +237,8 @@
"integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw==" "integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw=="
}, },
"component-emitter": { "component-emitter": {
"version": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz",
"integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY="
}, },
"compressible": { "compressible": {
...@@ -238,7 +246,7 @@ ...@@ -238,7 +246,7 @@
"resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.13.tgz", "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.13.tgz",
"integrity": "sha1-DRAgq5JLL9tNYnmHXH1tq6a6p6k=", "integrity": "sha1-DRAgq5JLL9tNYnmHXH1tq6a6p6k=",
"requires": { "requires": {
"mime-db": "1.33.0" "mime-db": ">= 1.33.0 < 2"
}, },
"dependencies": { "dependencies": {
"mime-db": { "mime-db": {
...@@ -253,13 +261,13 @@ ...@@ -253,13 +261,13 @@
"resolved": "https://registry.npmjs.org/compression/-/compression-1.7.2.tgz", "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.2.tgz",
"integrity": "sha1-qv+81qr4VLROuygDU9WtFlH1mmk=", "integrity": "sha1-qv+81qr4VLROuygDU9WtFlH1mmk=",
"requires": { "requires": {
"accepts": "1.3.4", "accepts": "~1.3.4",
"bytes": "3.0.0", "bytes": "3.0.0",
"compressible": "2.0.13", "compressible": "~2.0.13",
"debug": "2.6.9", "debug": "2.6.9",
"on-headers": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", "on-headers": "~1.0.1",
"safe-buffer": "5.1.1", "safe-buffer": "5.1.1",
"vary": "1.1.2" "vary": "~1.1.2"
} }
}, },
"concat-map": { "concat-map": {
...@@ -268,33 +276,37 @@ ...@@ -268,33 +276,37 @@
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
}, },
"connect-lastmile": { "connect-lastmile": {
"version": "https://registry.npmjs.org/connect-lastmile/-/connect-lastmile-0.0.10.tgz", "version": "0.0.10",
"resolved": "https://registry.npmjs.org/connect-lastmile/-/connect-lastmile-0.0.10.tgz",
"integrity": "sha1-vwF4kJH9sPpk3GYvzbtsnm6V3v8=", "integrity": "sha1-vwF4kJH9sPpk3GYvzbtsnm6V3v8=",
"requires": { "requires": {
"debug": "https://registry.npmjs.org/debug/-/debug-2.1.3.tgz" "debug": "~2.1.0"
}, },
"dependencies": { "dependencies": {
"debug": { "debug": {
"version": "https://registry.npmjs.org/debug/-/debug-2.1.3.tgz", "version": "2.1.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.1.3.tgz",
"integrity": "sha1-zoqxte6PvuK/o7Yzyrk9NmtjQY4=", "integrity": "sha1-zoqxte6PvuK/o7Yzyrk9NmtjQY4=",
"requires": { "requires": {
"ms": "http://registry.npmjs.org/ms/-/ms-0.7.0.tgz" "ms": "0.7.0"
} }
}, },
"ms": { "ms": {
"version": "http://registry.npmjs.org/ms/-/ms-0.7.0.tgz", "version": "0.7.0",
"resolved": "http://registry.npmjs.org/ms/-/ms-0.7.0.tgz",
"integrity": "sha1-hlvpTC5zl62KV9pqYzpuLzB5i4M=" "integrity": "sha1-hlvpTC5zl62KV9pqYzpuLzB5i4M="
} }
} }
}, },
"connect-timeout": { "connect-timeout": {
"version": "https://registry.npmjs.org/connect-timeout/-/connect-timeout-1.9.0.tgz", "version": "1.9.0",
"resolved": "https://registry.npmjs.org/connect-timeout/-/connect-timeout-1.9.0.tgz",
"integrity": "sha1-vCcyaxIhA3FL6/oNlYurM/ZSLjo=", "integrity": "sha1-vCcyaxIhA3FL6/oNlYurM/ZSLjo=",
"requires": { "requires": {
"http-errors": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.1.tgz", "http-errors": "~1.6.1",
"ms": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "ms": "2.0.0",
"on-finished": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "on-finished": "~2.3.0",
"on-headers": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz" "on-headers": "~1.0.1"
} }
}, },
"content-disposition": { "content-disposition": {
...@@ -308,27 +320,32 @@ ...@@ -308,27 +320,32 @@
"integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
}, },
"cookie": { "cookie": {
"version": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", "version": "0.3.1",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
"integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s="
}, },
"cookie-parser": { "cookie-parser": {
"version": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.3.tgz", "version": "1.4.3",
"resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.3.tgz",
"integrity": "sha1-D+MfoZ0AC5X0qt8fU/3CuKIDuqU=", "integrity": "sha1-D+MfoZ0AC5X0qt8fU/3CuKIDuqU=",
"requires": { "requires": {
"cookie": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", "cookie": "0.3.1",
"cookie-signature": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz" "cookie-signature": "1.0.6"
} }
}, },
"cookie-signature": { "cookie-signature": {
"version": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
"integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
}, },
"cookiejar": { "cookiejar": {
"version": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.0.6.tgz", "version": "2.0.6",
"resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.0.6.tgz",
"integrity": "sha1-Cr81atANHFohnYjURRgEbdAmrP4=" "integrity": "sha1-Cr81atANHFohnYjURRgEbdAmrP4="
}, },
"core-util-is": { "core-util-is": {
"version": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
}, },
"crc": { "crc": {
...@@ -341,7 +358,7 @@ ...@@ -341,7 +358,7 @@
"resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz",
"integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=",
"requires": { "requires": {
"boom": "5.2.0" "boom": "5.x.x"
}, },
"dependencies": { "dependencies": {
"boom": { "boom": {
...@@ -349,7 +366,7 @@ ...@@ -349,7 +366,7 @@
"resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz",
"integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==",
"requires": { "requires": {
"hoek": "4.2.1" "hoek": "4.x.x"
} }
} }
} }
...@@ -359,7 +376,7 @@ ...@@ -359,7 +376,7 @@
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
"integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
"requires": { "requires": {
"assert-plus": "1.0.0" "assert-plus": "^1.0.0"
}, },
"dependencies": { "dependencies": {
"assert-plus": { "assert-plus": {
...@@ -374,28 +391,31 @@ ...@@ -374,28 +391,31 @@
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"requires": { "requires": {
"ms": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" "ms": "2.0.0"
} }
}, },
"del": { "del": {
"version": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", "version": "2.2.2",
"resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz",
"integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=",
"requires": { "requires": {
"globby": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", "globby": "^5.0.0",
"is-path-cwd": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", "is-path-cwd": "^1.0.0",
"is-path-in-cwd": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz", "is-path-in-cwd": "^1.0.0",
"object-assign": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "object-assign": "^4.0.1",
"pify": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "pify": "^2.0.0",
"pinkie-promise": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", "pinkie-promise": "^2.0.0",
"rimraf": "2.6.1" "rimraf": "^2.2.8"
} }
}, },
"delayed-stream": { "delayed-stream": {
"version": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk="
}, },
"depd": { "depd": {
"version": "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz",
"integrity": "sha1-4b2Cxqq2ztlluXuIsX7T5SjKGMM=" "integrity": "sha1-4b2Cxqq2ztlluXuIsX7T5SjKGMM="
}, },
"destroy": { "destroy": {
...@@ -421,11 +441,12 @@ ...@@ -421,11 +441,12 @@
"integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=",
"optional": true, "optional": true,
"requires": { "requires": {
"jsbn": "0.1.1" "jsbn": "~0.1.0"
} }
}, },
"ee-first": { "ee-first": {
"version": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
}, },
"encodeurl": { "encodeurl": {
...@@ -460,36 +481,36 @@ ...@@ -460,36 +481,36 @@
"resolved": "https://registry.npmjs.org/express/-/express-4.16.2.tgz", "resolved": "https://registry.npmjs.org/express/-/express-4.16.2.tgz",
"integrity": "sha1-41xt/i1kt9ygpc1PIXgb4ymeB2w=", "integrity": "sha1-41xt/i1kt9ygpc1PIXgb4ymeB2w=",
"requires": { "requires": {
"accepts": "1.3.4", "accepts": "~1.3.4",
"array-flatten": "1.1.1", "array-flatten": "1.1.1",
"body-parser": "1.18.2", "body-parser": "1.18.2",
"content-disposition": "0.5.2", "content-disposition": "0.5.2",
"content-type": "1.0.4", "content-type": "~1.0.4",
"cookie": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", "cookie": "0.3.1",
"cookie-signature": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "cookie-signature": "1.0.6",
"debug": "2.6.9", "debug": "2.6.9",
"depd": "1.1.2", "depd": "~1.1.1",
"encodeurl": "1.0.2", "encodeurl": "~1.0.1",
"escape-html": "1.0.3", "escape-html": "~1.0.3",
"etag": "1.8.1", "etag": "~1.8.1",
"finalhandler": "1.1.0", "finalhandler": "1.1.0",
"fresh": "0.5.2", "fresh": "0.5.2",
"merge-descriptors": "1.0.1", "merge-descriptors": "1.0.1",
"methods": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "methods": "~1.1.2",
"on-finished": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "on-finished": "~2.3.0",
"parseurl": "1.3.2", "parseurl": "~1.3.2",
"path-to-regexp": "0.1.7", "path-to-regexp": "0.1.7",
"proxy-addr": "2.0.2", "proxy-addr": "~2.0.2",
"qs": "6.5.1", "qs": "6.5.1",
"range-parser": "1.2.0", "range-parser": "~1.2.0",
"safe-buffer": "5.1.1", "safe-buffer": "5.1.1",
"send": "0.16.1", "send": "0.16.1",
"serve-static": "1.13.1", "serve-static": "1.13.1",
"setprototypeof": "1.1.0", "setprototypeof": "1.1.0",
"statuses": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", "statuses": "~1.3.1",
"type-is": "1.6.16", "type-is": "~1.6.15",
"utils-merge": "1.0.1", "utils-merge": "1.0.1",
"vary": "1.1.2" "vary": "~1.1.2"
}, },
"dependencies": { "dependencies": {
"depd": { "depd": {
...@@ -509,14 +530,14 @@ ...@@ -509,14 +530,14 @@
"resolved": "https://registry.npmjs.org/express-session/-/express-session-1.15.6.tgz", "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.15.6.tgz",
"integrity": "sha512-r0nrHTCYtAMrFwZ0kBzZEXa1vtPVrw0dKvGSrKP4dahwBQ1BJpF2/y1Pp4sCD/0kvxV4zZeclyvfmw0B4RMJQA==", "integrity": "sha512-r0nrHTCYtAMrFwZ0kBzZEXa1vtPVrw0dKvGSrKP4dahwBQ1BJpF2/y1Pp4sCD/0kvxV4zZeclyvfmw0B4RMJQA==",
"requires": { "requires": {
"cookie": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", "cookie": "0.3.1",
"cookie-signature": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "cookie-signature": "1.0.6",
"crc": "3.4.4", "crc": "3.4.4",
"debug": "2.6.9", "debug": "2.6.9",
"depd": "1.1.2", "depd": "~1.1.1",
"on-headers": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", "on-headers": "~1.0.1",
"parseurl": "1.3.2", "parseurl": "~1.3.2",
"uid-safe": "2.1.5", "uid-safe": "~2.1.5",
"utils-merge": "1.0.1" "utils-merge": "1.0.1"
}, },
"dependencies": { "dependencies": {
...@@ -548,10 +569,11 @@ ...@@ -548,10 +569,11 @@
"integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I="
}, },
"fd-slicer": { "fd-slicer": {
"version": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz",
"integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=",
"requires": { "requires": {
"pend": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz" "pend": "~1.2.0"
} }
}, },
"finalhandler": { "finalhandler": {
...@@ -560,12 +582,12 @@ ...@@ -560,12 +582,12 @@
"integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=", "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=",
"requires": { "requires": {
"debug": "2.6.9", "debug": "2.6.9",
"encodeurl": "1.0.2", "encodeurl": "~1.0.1",
"escape-html": "1.0.3", "escape-html": "~1.0.3",
"on-finished": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "on-finished": "~2.3.0",
"parseurl": "1.3.2", "parseurl": "~1.3.2",
"statuses": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", "statuses": "~1.3.1",
"unpipe": "1.0.0" "unpipe": "~1.0.0"
} }
}, },
"forever-agent": { "forever-agent": {
...@@ -578,9 +600,9 @@ ...@@ -578,9 +600,9 @@
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz",
"integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=",
"requires": { "requires": {
"asynckit": "0.4.0", "asynckit": "^0.4.0",
"combined-stream": "1.0.6", "combined-stream": "1.0.6",
"mime-types": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.15.tgz" "mime-types": "^2.1.12"
}, },
"dependencies": { "dependencies": {
"combined-stream": { "combined-stream": {
...@@ -588,13 +610,14 @@ ...@@ -588,13 +610,14 @@
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz",
"integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=",
"requires": { "requires": {
"delayed-stream": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" "delayed-stream": "~1.0.0"
} }
} }
} }
}, },
"formidable": { "formidable": {
"version": "https://registry.npmjs.org/formidable/-/formidable-1.0.17.tgz", "version": "1.0.17",
"resolved": "https://registry.npmjs.org/formidable/-/formidable-1.0.17.tgz",
"integrity": "sha1-71SRSQ+UM7cF+qdyScmQKa40hVk=" "integrity": "sha1-71SRSQ+UM7cF+qdyScmQKa40hVk="
}, },
"forwarded": { "forwarded": {
...@@ -617,7 +640,7 @@ ...@@ -617,7 +640,7 @@
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
"integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
"requires": { "requires": {
"assert-plus": "1.0.0" "assert-plus": "^1.0.0"
}, },
"dependencies": { "dependencies": {
"assert-plus": { "assert-plus": {
...@@ -628,27 +651,29 @@ ...@@ -628,27 +651,29 @@
} }
}, },
"glob": { "glob": {
"version": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", "version": "7.1.2",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
"integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=", "integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=",
"requires": { "requires": {
"fs.realpath": "1.0.0", "fs.realpath": "^1.0.0",
"inflight": "1.0.6", "inflight": "^1.0.4",
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "2",
"minimatch": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "minimatch": "^3.0.4",
"once": "1.4.0", "once": "^1.3.0",
"path-is-absolute": "1.0.1" "path-is-absolute": "^1.0.0"
} }
}, },
"globby": { "globby": {
"version": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz",
"integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=",
"requires": { "requires": {
"array-union": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", "array-union": "^1.0.1",
"arrify": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", "arrify": "^1.0.0",
"glob": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", "glob": "^7.0.3",
"object-assign": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "object-assign": "^4.0.1",
"pify": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "pify": "^2.0.0",
"pinkie-promise": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz" "pinkie-promise": "^2.0.0"
} }
}, },
"growl": { "growl": {
...@@ -667,8 +692,8 @@ ...@@ -667,8 +692,8 @@
"resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz",
"integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=",
"requires": { "requires": {
"ajv": "5.5.2", "ajv": "^5.1.0",
"har-schema": "2.0.0" "har-schema": "^2.0.0"
} }
}, },
"hawk": { "hawk": {
...@@ -676,10 +701,10 @@ ...@@ -676,10 +701,10 @@
"resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz",
"integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==",
"requires": { "requires": {
"boom": "4.3.1", "boom": "4.x.x",
"cryptiles": "3.1.2", "cryptiles": "3.x.x",
"hoek": "4.2.1", "hoek": "4.x.x",
"sntp": "2.1.0" "sntp": "2.x.x"
} }
}, },
"hoek": { "hoek": {
...@@ -688,13 +713,14 @@ ...@@ -688,13 +713,14 @@
"integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==" "integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA=="
}, },
"http-errors": { "http-errors": {
"version": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.1.tgz", "version": "1.6.1",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.1.tgz",
"integrity": "sha1-X4uO2YrKVFZWv1cplzh/kEpyIlc=", "integrity": "sha1-X4uO2YrKVFZWv1cplzh/kEpyIlc=",
"requires": { "requires": {
"depd": "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz", "depd": "1.1.0",
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "2.0.3",
"setprototypeof": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", "setprototypeof": "1.0.3",
"statuses": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz" "statuses": ">= 1.3.1 < 2"
} }
}, },
"http-signature": { "http-signature": {
...@@ -702,9 +728,9 @@ ...@@ -702,9 +728,9 @@
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
"integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=",
"requires": { "requires": {
"assert-plus": "1.0.0", "assert-plus": "^1.0.0",
"jsprim": "1.4.1", "jsprim": "^1.2.2",
"sshpk": "1.13.1" "sshpk": "^1.7.0"
}, },
"dependencies": { "dependencies": {
"assert-plus": { "assert-plus": {
...@@ -738,9 +764,9 @@ ...@@ -738,9 +764,9 @@
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
"integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
"requires": { "requires": {
"assert-plus": "1.0.0", "assert-plus": "^1.0.0",
"core-util-is": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "core-util-is": "1.0.2",
"extsprintf": "1.3.0" "extsprintf": "^1.2.0"
} }
} }
} }
...@@ -755,12 +781,13 @@ ...@@ -755,12 +781,13 @@
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
"requires": { "requires": {
"once": "1.4.0", "once": "^1.3.0",
"wrappy": "1.0.2" "wrappy": "1"
} }
}, },
"inherits": { "inherits": {
"version": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "version": "2.0.3",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
}, },
"ipaddr.js": { "ipaddr.js": {
...@@ -769,21 +796,24 @@ ...@@ -769,21 +796,24 @@
"integrity": "sha1-1LUFvemUaYfM8PxY2QEP+WB+P6A=" "integrity": "sha1-1LUFvemUaYfM8PxY2QEP+WB+P6A="
}, },
"is-path-cwd": { "is-path-cwd": {
"version": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz",
"integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=" "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0="
}, },
"is-path-in-cwd": { "is-path-in-cwd": {
"version": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz",
"integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=",
"requires": { "requires": {
"is-path-inside": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz" "is-path-inside": "^1.0.0"
} }
}, },
"is-path-inside": { "is-path-inside": {
"version": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz",
"integrity": "sha1-/AbloWg/vaE95mev9xe7wQpI838=", "integrity": "sha1-/AbloWg/vaE95mev9xe7wQpI838=",
"requires": { "requires": {
"path-is-inside": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz" "path-is-inside": "^1.0.1"
} }
}, },
"is-typedarray": { "is-typedarray": {
...@@ -792,7 +822,8 @@ ...@@ -792,7 +822,8 @@
"integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
}, },
"isarray": { "isarray": {
"version": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "version": "0.0.1",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=" "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8="
}, },
"isstream": { "isstream": {
...@@ -895,40 +926,47 @@ ...@@ -895,40 +926,47 @@
"integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
}, },
"methods": { "methods": {
"version": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
}, },
"mime": { "mime": {
"version": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", "version": "1.3.4",
"resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz",
"integrity": "sha1-EV+eO2s9rylZmDyzjxSaLUDrXVM=" "integrity": "sha1-EV+eO2s9rylZmDyzjxSaLUDrXVM="
}, },
"mime-db": { "mime-db": {
"version": "https://registry.npmjs.org/mime-db/-/mime-db-1.27.0.tgz", "version": "1.27.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.27.0.tgz",
"integrity": "sha1-gg9XIpa70g7CXtVeW13oaeVDbrE=" "integrity": "sha1-gg9XIpa70g7CXtVeW13oaeVDbrE="
}, },
"mime-types": { "mime-types": {
"version": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.15.tgz", "version": "2.1.15",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.15.tgz",
"integrity": "sha1-pOv1BkCUVpI3uM9wBGd20J/JKu0=", "integrity": "sha1-pOv1BkCUVpI3uM9wBGd20J/JKu0=",
"requires": { "requires": {
"mime-db": "https://registry.npmjs.org/mime-db/-/mime-db-1.27.0.tgz" "mime-db": "~1.27.0"
} }
}, },
"minimatch": { "minimatch": {
"version": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "version": "3.0.4",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
"integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=",
"requires": { "requires": {
"brace-expansion": "1.1.8" "brace-expansion": "^1.1.7"
} }
}, },
"minimist": { "minimist": {
"version": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "version": "0.0.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
}, },
"mkdirp": { "mkdirp": {
"version": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "version": "0.5.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
"requires": { "requires": {
"minimist": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz" "minimist": "0.0.8"
} }
}, },
"mocha": { "mocha": {
...@@ -944,7 +982,7 @@ ...@@ -944,7 +982,7 @@
"glob": "3.2.11", "glob": "3.2.11",
"growl": "1.9.2", "growl": "1.9.2",
"jade": "0.26.3", "jade": "0.26.3",
"mkdirp": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "mkdirp": "0.5.1",
"supports-color": "1.2.0", "supports-color": "1.2.0",
"to-iso-string": "0.0.2" "to-iso-string": "0.0.2"
}, },
...@@ -970,8 +1008,8 @@ ...@@ -970,8 +1008,8 @@
"integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=",
"dev": true, "dev": true,
"requires": { "requires": {
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "2",
"minimatch": "0.3.0" "minimatch": "0.3"
} }
}, },
"minimatch": { "minimatch": {
...@@ -980,8 +1018,8 @@ ...@@ -980,8 +1018,8 @@
"integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=",
"dev": true, "dev": true,
"requires": { "requires": {
"lru-cache": "2.7.3", "lru-cache": "2",
"sigmund": "1.0.1" "sigmund": "~1.0.0"
} }
}, },
"ms": { "ms": {
...@@ -997,11 +1035,11 @@ ...@@ -997,11 +1035,11 @@
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.0.tgz", "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.0.tgz",
"integrity": "sha1-0B+mxlhZt2/PMbPLU6OCGjEdgFE=", "integrity": "sha1-0B+mxlhZt2/PMbPLU6OCGjEdgFE=",
"requires": { "requires": {
"basic-auth": "2.0.0", "basic-auth": "~2.0.0",
"debug": "2.6.9", "debug": "2.6.9",
"depd": "1.1.2", "depd": "~1.1.1",
"on-finished": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "on-finished": "~2.3.0",
"on-headers": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz" "on-headers": "~1.0.1"
}, },
"dependencies": { "dependencies": {
"depd": { "depd": {
...@@ -1012,14 +1050,16 @@ ...@@ -1012,14 +1050,16 @@
} }
}, },
"ms": { "ms": {
"version": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}, },
"multiparty": { "multiparty": {
"version": "https://registry.npmjs.org/multiparty/-/multiparty-4.1.3.tgz", "version": "4.1.3",
"resolved": "https://registry.npmjs.org/multiparty/-/multiparty-4.1.3.tgz",
"integrity": "sha1-PEPH/LGJbhdGBDap3Qtu8WaOT5Q=", "integrity": "sha1-PEPH/LGJbhdGBDap3Qtu8WaOT5Q=",
"requires": { "requires": {
"fd-slicer": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz" "fd-slicer": "~1.0.1"
} }
}, },
"mv": { "mv": {
...@@ -1038,7 +1078,7 @@ ...@@ -1038,7 +1078,7 @@
"resolved": "https://registry.npmjs.org/nopt/-/nopt-2.1.1.tgz", "resolved": "https://registry.npmjs.org/nopt/-/nopt-2.1.1.tgz",
"integrity": "sha1-ket8SwF+fACtytH9bWOUTQ/bdcE=", "integrity": "sha1-ket8SwF+fACtytH9bWOUTQ/bdcE=",
"requires": { "requires": {
"abbrev": "1.1.1" "abbrev": "1"
} }
}, },
"oauth-sign": { "oauth-sign": {
...@@ -1047,18 +1087,21 @@ ...@@ -1047,18 +1087,21 @@
"integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM="
}, },
"object-assign": { "object-assign": {
"version": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
}, },
"on-finished": { "on-finished": {
"version": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
"integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
"requires": { "requires": {
"ee-first": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" "ee-first": "1.1.1"
} }
}, },
"on-headers": { "on-headers": {
"version": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz",
"integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=" "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c="
}, },
"once": { "once": {
...@@ -1066,7 +1109,7 @@ ...@@ -1066,7 +1109,7 @@
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"requires": { "requires": {
"wrappy": "1.0.2" "wrappy": "1"
} }
}, },
"options": { "options": {
...@@ -1081,11 +1124,12 @@ ...@@ -1081,11 +1124,12 @@
"integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=" "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M="
}, },
"passport": { "passport": {
"version": "https://registry.npmjs.org/passport/-/passport-0.2.2.tgz", "version": "0.2.2",
"resolved": "https://registry.npmjs.org/passport/-/passport-0.2.2.tgz",
"integrity": "sha1-nDjxe+uSnz2Br3uIOOhDDbhwPys=", "integrity": "sha1-nDjxe+uSnz2Br3uIOOhDDbhwPys=",
"requires": { "requires": {
"passport-strategy": "1.0.0", "passport-strategy": "1.x.x",
"pause": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz" "pause": "0.0.1"
} }
}, },
"passport-http-bearer": { "passport-http-bearer": {
...@@ -1093,7 +1137,7 @@ ...@@ -1093,7 +1137,7 @@
"resolved": "https://registry.npmjs.org/passport-http-bearer/-/passport-http-bearer-1.0.1.tgz", "resolved": "https://registry.npmjs.org/passport-http-bearer/-/passport-http-bearer-1.0.1.tgz",
"integrity": "sha1-FHRp6jZp4qhMYWfvmdu3fh8AmKg=", "integrity": "sha1-FHRp6jZp4qhMYWfvmdu3fh8AmKg=",
"requires": { "requires": {
"passport-strategy": "1.0.0" "passport-strategy": "1.x.x"
} }
}, },
"passport-ldapjs": { "passport-ldapjs": {
...@@ -1101,8 +1145,8 @@ ...@@ -1101,8 +1145,8 @@
"resolved": "https://registry.npmjs.org/passport-ldapjs/-/passport-ldapjs-1.0.3.tgz", "resolved": "https://registry.npmjs.org/passport-ldapjs/-/passport-ldapjs-1.0.3.tgz",
"integrity": "sha512-pWyqehzK5IAtg53S6uIc9PHqgxL3xDcog3XDhtvidNd4+3z8XTGV2qQKPaUZnkkRLmWqZ7Dm3gnwnAtp6R1LNQ==", "integrity": "sha512-pWyqehzK5IAtg53S6uIc9PHqgxL3xDcog3XDhtvidNd4+3z8XTGV2qQKPaUZnkkRLmWqZ7Dm3gnwnAtp6R1LNQ==",
"requires": { "requires": {
"ldapjs": "0.7.1", "ldapjs": "^0.7.1",
"passport-strategy": "1.0.0" "passport-strategy": "^1.0.0"
} }
}, },
"passport-strategy": { "passport-strategy": {
...@@ -1116,7 +1160,8 @@ ...@@ -1116,7 +1160,8 @@
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
}, },
"path-is-inside": { "path-is-inside": {
"version": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz",
"integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=" "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM="
}, },
"path-to-regexp": { "path-to-regexp": {
...@@ -1125,11 +1170,13 @@ ...@@ -1125,11 +1170,13 @@
"integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
}, },
"pause": { "pause": {
"version": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", "version": "0.0.1",
"resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz",
"integrity": "sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10=" "integrity": "sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10="
}, },
"pend": { "pend": {
"version": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
"integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=" "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA="
}, },
"performance-now": { "performance-now": {
...@@ -1138,18 +1185,21 @@ ...@@ -1138,18 +1185,21 @@
"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
}, },
"pify": { "pify": {
"version": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
"integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw="
}, },
"pinkie": { "pinkie": {
"version": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", "version": "2.0.4",
"resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
"integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=" "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA="
}, },
"pinkie-promise": { "pinkie-promise": {
"version": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
"integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
"requires": { "requires": {
"pinkie": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz" "pinkie": "^2.0.0"
} }
}, },
"pooling": { "pooling": {
...@@ -1176,7 +1226,7 @@ ...@@ -1176,7 +1226,7 @@
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.2.tgz", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.2.tgz",
"integrity": "sha1-ZXFQT0e7mI7IGAJT+F3X4UlSvew=", "integrity": "sha1-ZXFQT0e7mI7IGAJT+F3X4UlSvew=",
"requires": { "requires": {
"forwarded": "0.1.2", "forwarded": "~0.1.2",
"ipaddr.js": "1.5.2" "ipaddr.js": "1.5.2"
} }
}, },
...@@ -1222,21 +1272,22 @@ ...@@ -1222,21 +1272,22 @@
"integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=",
"requires": { "requires": {
"depd": "1.1.1", "depd": "1.1.1",
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "2.0.3",
"setprototypeof": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", "setprototypeof": "1.0.3",
"statuses": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz" "statuses": ">= 1.3.1 < 2"
} }
} }
} }
}, },
"readable-stream": { "readable-stream": {
"version": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.27-1.tgz", "version": "1.0.27-1",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.27-1.tgz",
"integrity": "sha1-a2eYPCA1fO/QfwFlABoW1xDZEHg=", "integrity": "sha1-a2eYPCA1fO/QfwFlABoW1xDZEHg=",
"requires": { "requires": {
"core-util-is": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "core-util-is": "~1.0.0",
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "~2.0.1",
"isarray": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "isarray": "0.0.1",
"string_decoder": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz" "string_decoder": "~0.10.x"
} }
}, },
"readline-sync": { "readline-sync": {
...@@ -1245,7 +1296,8 @@ ...@@ -1245,7 +1296,8 @@
"integrity": "sha1-PtqOZfI80qF+YTAbHwADOWr17No=" "integrity": "sha1-PtqOZfI80qF+YTAbHwADOWr17No="
}, },
"reduce-component": { "reduce-component": {
"version": "http://registry.npmjs.org/reduce-component/-/reduce-component-1.0.1.tgz", "version": "1.0.1",
"resolved": "http://registry.npmjs.org/reduce-component/-/reduce-component-1.0.1.tgz",
"integrity": "sha1-4Mk1QsV0UhvqE98PlIjtgqt3xdo=" "integrity": "sha1-4Mk1QsV0UhvqE98PlIjtgqt3xdo="
}, },
"request": { "request": {
...@@ -1253,28 +1305,28 @@ ...@@ -1253,28 +1305,28 @@
"resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz", "resolved": "https://registry.npmjs.org/request/-/request-2.83.0.tgz",
"integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==", "integrity": "sha512-lR3gD69osqm6EYLk9wB/G1W/laGWjzH90t1vEa2xuxHD5KUrSzp9pUSfTm+YC5Nxt2T8nMPEvKlhbQayU7bgFw==",
"requires": { "requires": {
"aws-sign2": "0.7.0", "aws-sign2": "~0.7.0",
"aws4": "1.6.0", "aws4": "^1.6.0",
"caseless": "0.12.0", "caseless": "~0.12.0",
"combined-stream": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", "combined-stream": "~1.0.5",
"extend": "3.0.1", "extend": "~3.0.1",
"forever-agent": "0.6.1", "forever-agent": "~0.6.1",
"form-data": "2.3.2", "form-data": "~2.3.1",
"har-validator": "5.0.3", "har-validator": "~5.0.3",
"hawk": "6.0.2", "hawk": "~6.0.2",
"http-signature": "1.2.0", "http-signature": "~1.2.0",
"is-typedarray": "1.0.0", "is-typedarray": "~1.0.0",
"isstream": "0.1.2", "isstream": "~0.1.2",
"json-stringify-safe": "5.0.1", "json-stringify-safe": "~5.0.1",
"mime-types": "2.1.18", "mime-types": "~2.1.17",
"oauth-sign": "0.8.2", "oauth-sign": "~0.8.2",
"performance-now": "2.1.0", "performance-now": "^2.1.0",
"qs": "6.5.1", "qs": "~6.5.1",
"safe-buffer": "5.1.1", "safe-buffer": "^5.1.1",
"stringstream": "0.0.5", "stringstream": "~0.0.5",
"tough-cookie": "2.3.3", "tough-cookie": "~2.3.3",
"tunnel-agent": "0.6.0", "tunnel-agent": "^0.6.0",
"uuid": "3.2.1" "uuid": "^3.1.0"
}, },
"dependencies": { "dependencies": {
"mime-db": { "mime-db": {
...@@ -1287,7 +1339,7 @@ ...@@ -1287,7 +1339,7 @@
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz",
"integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==",
"requires": { "requires": {
"mime-db": "1.33.0" "mime-db": "~1.33.0"
} }
} }
} }
...@@ -1297,7 +1349,7 @@ ...@@ -1297,7 +1349,7 @@
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz",
"integrity": "sha1-wjOOxkPfeht/5cVPqG9XQopV8z0=", "integrity": "sha1-wjOOxkPfeht/5cVPqG9XQopV8z0=",
"requires": { "requires": {
"glob": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz" "glob": "^7.0.5"
} }
}, },
"safe-buffer": { "safe-buffer": {
...@@ -1306,7 +1358,8 @@ ...@@ -1306,7 +1358,8 @@
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
}, },
"safetydance": { "safetydance": {
"version": "https://registry.npmjs.org/safetydance/-/safetydance-0.1.1.tgz", "version": "0.1.1",
"resolved": "https://registry.npmjs.org/safetydance/-/safetydance-0.1.1.tgz",
"integrity": "sha1-FYjGkTOnxpzd/WotHTNDgdC3svc=" "integrity": "sha1-FYjGkTOnxpzd/WotHTNDgdC3svc="
}, },
"sax": { "sax": {
...@@ -1322,9 +1375,9 @@ ...@@ -1322,9 +1375,9 @@
"dev": true, "dev": true,
"requires": { "requires": {
"adm-zip": "0.4.4", "adm-zip": "0.4.4",
"rimraf": "2.6.1", "rimraf": "^2.2.8",
"tmp": "0.0.24", "tmp": "0.0.24",
"ws": "1.1.5", "ws": "^1.0.1",
"xml2js": "0.4.4" "xml2js": "0.4.4"
} }
}, },
...@@ -1334,18 +1387,18 @@ ...@@ -1334,18 +1387,18 @@
"integrity": "sha512-ElCLJdJIKPk6ux/Hocwhk7NFHpI3pVm/IZOYWqUmoxcgeyM+MpxHHKhb8QmlJDX1pU6WrgaHBkVNm73Sv7uc2A==", "integrity": "sha512-ElCLJdJIKPk6ux/Hocwhk7NFHpI3pVm/IZOYWqUmoxcgeyM+MpxHHKhb8QmlJDX1pU6WrgaHBkVNm73Sv7uc2A==",
"requires": { "requires": {
"debug": "2.6.9", "debug": "2.6.9",
"depd": "1.1.2", "depd": "~1.1.1",
"destroy": "1.0.4", "destroy": "~1.0.4",
"encodeurl": "1.0.2", "encodeurl": "~1.0.1",
"escape-html": "1.0.3", "escape-html": "~1.0.3",
"etag": "1.8.1", "etag": "~1.8.1",
"fresh": "0.5.2", "fresh": "0.5.2",
"http-errors": "1.6.2", "http-errors": "~1.6.2",
"mime": "1.4.1", "mime": "1.4.1",
"ms": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "ms": "2.0.0",
"on-finished": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "on-finished": "~2.3.0",
"range-parser": "1.2.0", "range-parser": "~1.2.0",
"statuses": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz" "statuses": "~1.3.1"
}, },
"dependencies": { "dependencies": {
"depd": { "depd": {
...@@ -1359,9 +1412,9 @@ ...@@ -1359,9 +1412,9 @@
"integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=",
"requires": { "requires": {
"depd": "1.1.1", "depd": "1.1.1",
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "2.0.3",
"setprototypeof": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", "setprototypeof": "1.0.3",
"statuses": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz" "statuses": ">= 1.3.1 < 2"
}, },
"dependencies": { "dependencies": {
"depd": { "depd": {
...@@ -1383,13 +1436,13 @@ ...@@ -1383,13 +1436,13 @@
"resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz",
"integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=",
"requires": { "requires": {
"accepts": "1.3.4", "accepts": "~1.3.4",
"batch": "0.6.1", "batch": "0.6.1",
"debug": "2.6.9", "debug": "2.6.9",
"escape-html": "1.0.3", "escape-html": "~1.0.3",
"http-errors": "1.6.2", "http-errors": "~1.6.2",
"mime-types": "2.1.18", "mime-types": "~2.1.17",
"parseurl": "1.3.2" "parseurl": "~1.3.2"
}, },
"dependencies": { "dependencies": {
"depd": { "depd": {
...@@ -1403,9 +1456,9 @@ ...@@ -1403,9 +1456,9 @@
"integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=",
"requires": { "requires": {
"depd": "1.1.1", "depd": "1.1.1",
"inherits": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "inherits": "2.0.3",
"setprototypeof": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", "setprototypeof": "1.0.3",
"statuses": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz" "statuses": ">= 1.3.1 < 2"
} }
}, },
"mime-db": { "mime-db": {
...@@ -1418,7 +1471,7 @@ ...@@ -1418,7 +1471,7 @@
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz",
"integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==",
"requires": { "requires": {
"mime-db": "1.33.0" "mime-db": "~1.33.0"
} }
} }
} }
...@@ -1428,14 +1481,15 @@ ...@@ -1428,14 +1481,15 @@
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.1.tgz", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.1.tgz",
"integrity": "sha512-hSMUZrsPa/I09VYFJwa627JJkNs0NrfL1Uzuup+GqHfToR2KcsXFymXSV90hoyw3M+msjFuQly+YzIH/q0MGlQ==", "integrity": "sha512-hSMUZrsPa/I09VYFJwa627JJkNs0NrfL1Uzuup+GqHfToR2KcsXFymXSV90hoyw3M+msjFuQly+YzIH/q0MGlQ==",
"requires": { "requires": {
"encodeurl": "1.0.2", "encodeurl": "~1.0.1",
"escape-html": "1.0.3", "escape-html": "~1.0.3",
"parseurl": "1.3.2", "parseurl": "~1.3.2",
"send": "0.16.1" "send": "0.16.1"
} }
}, },
"setprototypeof": { "setprototypeof": {
"version": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz",
"integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=" "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ="
}, },
"sigmund": { "sigmund": {
...@@ -1449,7 +1503,7 @@ ...@@ -1449,7 +1503,7 @@
"resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz",
"integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==",
"requires": { "requires": {
"hoek": "4.2.1" "hoek": "4.x.x"
} }
}, },
"sshpk": { "sshpk": {
...@@ -1457,14 +1511,14 @@ ...@@ -1457,14 +1511,14 @@
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz",
"integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=",
"requires": { "requires": {
"asn1": "0.2.3", "asn1": "~0.2.3",
"assert-plus": "1.0.0", "assert-plus": "^1.0.0",
"bcrypt-pbkdf": "1.0.1", "bcrypt-pbkdf": "^1.0.0",
"dashdash": "1.14.1", "dashdash": "^1.12.0",
"ecc-jsbn": "0.1.1", "ecc-jsbn": "~0.1.1",
"getpass": "0.1.7", "getpass": "^0.1.1",
"jsbn": "0.1.1", "jsbn": "~0.1.0",
"tweetnacl": "0.14.5" "tweetnacl": "~0.14.0"
}, },
"dependencies": { "dependencies": {
"asn1": { "asn1": {
...@@ -1480,11 +1534,13 @@ ...@@ -1480,11 +1534,13 @@
} }
}, },
"statuses": { "statuses": {
"version": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", "version": "1.3.1",
"resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz",
"integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=" "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4="
}, },
"string_decoder": { "string_decoder": {
"version": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", "version": "0.10.31",
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=" "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ="
}, },
"stringstream": { "stringstream": {
...@@ -1493,37 +1549,41 @@ ...@@ -1493,37 +1549,41 @@
"integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=" "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg="
}, },
"superagent": { "superagent": {
"version": "https://registry.npmjs.org/superagent/-/superagent-1.8.5.tgz", "version": "1.8.5",
"resolved": "https://registry.npmjs.org/superagent/-/superagent-1.8.5.tgz",
"integrity": "sha1-HA3cOvMOgOuE68BcshItqP6UC1U=", "integrity": "sha1-HA3cOvMOgOuE68BcshItqP6UC1U=",
"requires": { "requires": {
"component-emitter": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", "component-emitter": "~1.2.0",
"cookiejar": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.0.6.tgz", "cookiejar": "2.0.6",
"debug": "2.6.9", "debug": "2",
"extend": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz", "extend": "3.0.0",
"form-data": "https://registry.npmjs.org/form-data/-/form-data-1.0.0-rc3.tgz", "form-data": "1.0.0-rc3",
"formidable": "https://registry.npmjs.org/formidable/-/formidable-1.0.17.tgz", "formidable": "~1.0.14",
"methods": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "methods": "~1.1.1",
"mime": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", "mime": "1.3.4",
"qs": "https://registry.npmjs.org/qs/-/qs-2.3.3.tgz", "qs": "2.3.3",
"readable-stream": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.27-1.tgz", "readable-stream": "1.0.27-1",
"reduce-component": "http://registry.npmjs.org/reduce-component/-/reduce-component-1.0.1.tgz" "reduce-component": "1.0.1"
}, },
"dependencies": { "dependencies": {
"extend": { "extend": {
"version": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.0.tgz",
"integrity": "sha1-WkdDU7nzNT3dgXbf03uRyDpG8dQ=" "integrity": "sha1-WkdDU7nzNT3dgXbf03uRyDpG8dQ="
}, },
"form-data": { "form-data": {
"version": "https://registry.npmjs.org/form-data/-/form-data-1.0.0-rc3.tgz", "version": "1.0.0-rc3",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-1.0.0-rc3.tgz",
"integrity": "sha1-01vGLn+8KTeuePlIqqDTjZBgdXc=", "integrity": "sha1-01vGLn+8KTeuePlIqqDTjZBgdXc=",
"requires": { "requires": {
"async": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "async": "^1.4.0",
"combined-stream": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", "combined-stream": "^1.0.5",
"mime-types": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.15.tgz" "mime-types": "^2.1.3"
} }
}, },
"qs": { "qs": {
"version": "https://registry.npmjs.org/qs/-/qs-2.3.3.tgz", "version": "2.3.3",
"resolved": "https://registry.npmjs.org/qs/-/qs-2.3.3.tgz",
"integrity": "sha1-6eha2+ddoLvkyOBHaghikPhjtAQ=" "integrity": "sha1-6eha2+ddoLvkyOBHaghikPhjtAQ="
} }
} }
...@@ -1551,7 +1611,7 @@ ...@@ -1551,7 +1611,7 @@
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz",
"integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=", "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=",
"requires": { "requires": {
"punycode": "1.4.1" "punycode": "^1.4.1"
} }
}, },
"tunnel-agent": { "tunnel-agent": {
...@@ -1559,7 +1619,7 @@ ...@@ -1559,7 +1619,7 @@
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
"integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
"requires": { "requires": {
"safe-buffer": "5.1.1" "safe-buffer": "^5.0.1"
} }
}, },
"tweetnacl": { "tweetnacl": {
...@@ -1574,7 +1634,7 @@ ...@@ -1574,7 +1634,7 @@
"integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==",
"requires": { "requires": {
"media-typer": "0.3.0", "media-typer": "0.3.0",
"mime-types": "2.1.18" "mime-types": "~2.1.18"
}, },
"dependencies": { "dependencies": {
"mime-db": { "mime-db": {
...@@ -1587,7 +1647,7 @@ ...@@ -1587,7 +1647,7 @@
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz",
"integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==",
"requires": { "requires": {
"mime-db": "1.33.0" "mime-db": "~1.33.0"
} }
} }
} }
...@@ -1597,7 +1657,7 @@ ...@@ -1597,7 +1657,7 @@
"resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz",
"integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==",
"requires": { "requires": {
"random-bytes": "1.0.0" "random-bytes": "~1.0.0"
} }
}, },
"ultron": { "ultron": {
...@@ -1607,7 +1667,8 @@ ...@@ -1607,7 +1667,8 @@
"dev": true "dev": true
}, },
"underscore": { "underscore": {
"version": "http://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", "version": "1.8.3",
"resolved": "http://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz",
"integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=" "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI="
}, },
"unpipe": { "unpipe": {
...@@ -1647,6 +1708,30 @@ ...@@ -1647,6 +1708,30 @@
"extsprintf": "1.0.0" "extsprintf": "1.0.0"
} }
}, },
"webdav-server": {
"version": "2.4.6",
"resolved": "https://registry.npmjs.org/webdav-server/-/webdav-server-2.4.6.tgz",
"integrity": "sha512-YhqjqlQdD4H55UEnRgk99a9epTuulKMW05m6KBTtG6fBXcc4/2H87F2DRJHH7a33PibNn3jWv8u9AgcMHLGUrw==",
"requires": {
"mime-types": "^2.1.18",
"xml-js-builder": "^1.0.3"
},
"dependencies": {
"mime-db": {
"version": "1.38.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz",
"integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg=="
},
"mime-types": {
"version": "2.1.22",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz",
"integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==",
"requires": {
"mime-db": "~1.38.0"
}
}
}
},
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
...@@ -1658,8 +1743,31 @@ ...@@ -1658,8 +1743,31 @@
"integrity": "sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w==", "integrity": "sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w==",
"dev": true, "dev": true,
"requires": { "requires": {
"options": "0.0.6", "options": ">=0.0.5",
"ultron": "1.0.2" "ultron": "1.0.x"
}
},
"xml-js": {
"version": "1.6.11",
"resolved": "https://registry.npmjs.org/xml-js/-/xml-js-1.6.11.tgz",
"integrity": "sha512-7rVi2KMfwfWFl+GpPg6m80IVMWXLRjO+PxTq7V2CDhoGak0wzYzFgUY2m4XJ47OGdXd8eLE8EmwfAmdjw7lC1g==",
"requires": {
"sax": "^1.2.4"
},
"dependencies": {
"sax": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
}
}
},
"xml-js-builder": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/xml-js-builder/-/xml-js-builder-1.0.3.tgz",
"integrity": "sha512-BoLgG/glT45M0jK5PGh9h+iGrQxa8jJk9ofR63GroRifl2tbGB3/yYiVY3wQWHrZgWWfl9+7fhEB/VoD9mWnSg==",
"requires": {
"xml-js": "^1.6.2"
} }
}, },
"xml2js": { "xml2js": {
...@@ -1668,8 +1776,8 @@ ...@@ -1668,8 +1776,8 @@
"integrity": "sha1-MREBAAMAiuGSQOuhdJe1fHKcVV0=", "integrity": "sha1-MREBAAMAiuGSQOuhdJe1fHKcVV0=",
"dev": true, "dev": true,
"requires": { "requires": {
"sax": "0.6.1", "sax": "0.6.x",
"xmlbuilder": "9.0.4" "xmlbuilder": ">=1.0.0"
} }
}, },
"xmlbuilder": { "xmlbuilder": {
......
...@@ -45,7 +45,8 @@ ...@@ -45,7 +45,8 @@
"serve-index": "^1.9.1", "serve-index": "^1.9.1",
"superagent": "^1.7.2", "superagent": "^1.7.2",
"underscore": "^1.8.3", "underscore": "^1.8.3",
"uuid": "^3.2.1" "uuid": "^3.2.1",
"webdav-server": "^2.4.6"
}, },
"devDependencies": { "devDependencies": {
"expect.js": "^0.3.1", "expect.js": "^0.3.1",
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
'use strict'; 'use strict';
var express = require('express'), var express = require('express'),
morgan = require('morgan'), morgan = require('morgan'),
passport = require('passport'), passport = require('passport'),
...@@ -19,6 +18,7 @@ var express = require('express'), ...@@ -19,6 +18,7 @@ var express = require('express'),
mkdirp = require('mkdirp'), mkdirp = require('mkdirp'),
auth = require('./src/auth.js'), auth = require('./src/auth.js'),
serveIndex = require('serve-index'), serveIndex = require('serve-index'),
webdav = require('webdav-server').v2,
files = require('./src/files.js')(path.resolve(__dirname, process.argv[2] || 'files')); files = require('./src/files.js')(path.resolve(__dirname, process.argv[2] || 'files'));
...@@ -63,6 +63,15 @@ if (typeof config.folderListingEnabled === 'undefined') config.folderListingEnab ...@@ -63,6 +63,15 @@ if (typeof config.folderListingEnabled === 'undefined') config.folderListingEnab
var app = express(); var app = express();
var router = new express.Router(); var router = new express.Router();
var webdavServer = new webdav.WebDAVServer({
requireAuthentification: true,
httpAuthentication: new webdav.HTTPBasicAuthentication(new auth.WebdavUserManager(), 'Cloudron Surfer')
});
webdavServer.setFileSystem('/', new webdav.PhysicalFileSystem(ROOT_FOLDER), function (success) {
console.log(`Mounting ${ROOT_FOLDER} as webdav resource`, success);
});
var multipart = multipart({ maxFieldsSize: 2 * 1024, limit: '512mb', timeout: 3 * 60 * 1000 }); var multipart = multipart({ maxFieldsSize: 2 * 1024, limit: '512mb', timeout: 3 * 60 * 1000 });
router.post ('/api/login', auth.login); router.post ('/api/login', auth.login);
...@@ -78,6 +87,7 @@ router.get ('/api/healthcheck', function (req, res) { res.status(200).send(); ...@@ -78,6 +87,7 @@ router.get ('/api/healthcheck', function (req, res) { res.status(200).send();
app.use(morgan('dev')); app.use(morgan('dev'));
app.use(compression()); app.use(compression());
app.use(webdav.extensions.express('/webdav', webdavServer));
app.use('/api', bodyParser.json()); app.use('/api', bodyParser.json());
app.use('/api', bodyParser.urlencoded({ extended: false, limit: '100mb' })); app.use('/api', bodyParser.urlencoded({ extended: false, limit: '100mb' }));
app.use('/api', cookieParser()); app.use('/api', cookieParser());
......
...@@ -9,7 +9,8 @@ var passport = require('passport'), ...@@ -9,7 +9,8 @@ var passport = require('passport'),
BearerStrategy = require('passport-http-bearer').Strategy, BearerStrategy = require('passport-http-bearer').Strategy,
LdapStrategy = require('passport-ldapjs').Strategy, LdapStrategy = require('passport-ldapjs').Strategy,
HttpError = require('connect-lastmile').HttpError, HttpError = require('connect-lastmile').HttpError,
HttpSuccess = require('connect-lastmile').HttpSuccess; HttpSuccess = require('connect-lastmile').HttpSuccess,
webdavErrors = require('webdav-server').v2.Errors;
const LOCAL_AUTH_FILE = path.resolve(process.env.LOCAL_AUTH_FILE || './.users.json'); const LOCAL_AUTH_FILE = path.resolve(process.env.LOCAL_AUTH_FILE || './.users.json');
const TOKENSTORE_FILE = path.resolve(process.env.TOKENSTORE_FILE || './.tokens.json'); const TOKENSTORE_FILE = path.resolve(process.env.TOKENSTORE_FILE || './.tokens.json');
...@@ -140,3 +141,39 @@ exports.logout = function (req, res, next) { ...@@ -140,3 +141,39 @@ exports.logout = function (req, res, next) {
exports.getProfile = function (req, res, next) { exports.getProfile = function (req, res, next) {
next(new HttpSuccess(200, { username: req.user.username })); next(new HttpSuccess(200, { username: req.user.username }));
}; };
// webdav usermanager
exports.WebdavUserManager = WebdavUserManager;
// This implements the required interface only for the Basic Authentication for webdav-server
function WebdavUserManager() {};
WebdavUserManager.prototype.getDefaultUser = function (callback) {
// this is only a dummy user, since we always require authentication
var user = {
username: 'DefaultUser',
password: null,
isAdministrator: false,
isDefaultUser: true,
uid: 'DefaultUser'
};
callback(user);
};
WebdavUserManager.prototype.getUserByNamePassword = function (username, password, callback) {
var users = safe.JSON.parse(safe.fs.readFileSync(LOCAL_AUTH_FILE));
if (!users) return callback(webdavErrors.UserNotFound);
if (!users[username]) return callback(webdavErrors.UserNotFound);
bcrypt.compare(password, users[username].passwordHash, function (error, valid) {
if (error || !valid) return callback(webdavErrors.UserNotFound);
callback(null, {
username: username,
isAdministrator: true,
isDefaultUser: false,
uid: username
});
});
};
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!