aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Report/.DS_Storebin0 -> 6148 bytes
-rw-r--r--ecosystem.config.js2
-rwxr-xr-xgetmecziconversion.sh17
-rw-r--r--package.json55
-rw-r--r--report/deliverable-3/main.bbl134
-rw-r--r--report/deliverable-3/main.blg73
-rw-r--r--report/deliverable-3/texts/testing.tex1
-rw-r--r--res/.DS_Storebin0 -> 6148 bytes
-rw-r--r--src/.DS_Storebin0 -> 8196 bytes
-rw-r--r--src/FileRouter.ts675
-rw-r--r--src/app.ts12
-rw-r--r--src/conversion/csv/excel.ts126
-rwxr-xr-xsrc/conversion/czi/JxrDecAppbin0 -> 296464 bytes
-rw-r--r--src/conversion/czi/convertJxrs.py47
-rw-r--r--src/conversion/czi/czi.ts1001
-rwxr-xr-xsrc/conversion/czi/cziConvert.sh7
-rw-r--r--src/conversion/czi/cziconvert.c14
-rw-r--r--src/conversion/czi/pyramidWorker.ts93
-rw-r--r--src/conversion/czi/tileDims.pngbin0 -> 292647 bytes
-rw-r--r--src/conversion/czi/tileExtraction.ts122
-rw-r--r--src/conversion/leica/requestconvertor.ts1
-rw-r--r--src/conversion/leica/scn.ts95
-rw-r--r--src/conversion/types/customPyramidIndex.ts37
-rw-r--r--src/conversion/types/cziBinaryTypings.ts23
-rw-r--r--src/conversion/types/helpers.ts106
-rw-r--r--src/cors/index.d.ts16
-rw-r--r--src/cors/index.js8
-rw-r--r--src/db/.DS_Storebin0 -> 6148 bytes
-rw-r--r--src/db/model/ContributorGroup.ts13
-rw-r--r--src/db/model/File.ts34
-rw-r--r--src/db/model/Project.ts88
-rw-r--r--src/db/model/User.ts73
-rw-r--r--src/db/model/UserJoinsProject.ts10
-rw-r--r--src/errors/errorware.ts5
-rw-r--r--src/files.ts436
-rw-r--r--src/index.ts80
-rw-r--r--src/matcher/index.ts4
-rw-r--r--src/matcher/options.ts6
-rw-r--r--src/mimetype.ts29
-rw-r--r--src/serverConfig.ts2
-rw-r--r--test/.DS_Storebin0 -> 6148 bytes
-rw-r--r--test/integration/protocol.routes.test.ts25
-rw-r--r--test/unit/Tissue Slides.00030.v13.csv3
-rw-r--r--yarn.lock2505
44 files changed, 4880 insertions, 1098 deletions
diff --git a/Report/.DS_Store b/Report/.DS_Store
new file mode 100644
index 0000000..f384dd0
--- /dev/null
+++ b/Report/.DS_Store
Binary files differ
diff --git a/ecosystem.config.js b/ecosystem.config.js
index 937cd36..060e79a 100644
--- a/ecosystem.config.js
+++ b/ecosystem.config.js
@@ -9,7 +9,7 @@ module.exports = {
script: 'src/index.ts',
// cwd: '.',
args: '',
- instances: 3,
+ instances: 1,
watch: false,
ignore_watch: '',
max_memory_restart: '1G',
diff --git a/getmecziconversion.sh b/getmecziconversion.sh
index 4fccdb0..3f447e2 100755
--- a/getmecziconversion.sh
+++ b/getmecziconversion.sh
@@ -1,9 +1,24 @@
#!/bin/bash
+mkdir -p ./ext/bin
+
git clone https://github.com/glencoesoftware/jxrlib.git
cd ./jxrlib/
mkdir build
make ${PWD}/build/JxrDecApp
-cp ./build/JxrDecApp ../src/conversion/czi/JxrDecApp
+cp ./build/JxrDecApp ../ext/bin/JxrDecApp
cd ../
rm -rf jxrlib
+
+curl -L https://github.com/jcupitt/libvips/releases/download/v8.6.3/vips-8.6.3.tar.gz > vips-8.6.3.tar.gz
+tar xf vips-8.6.3.tar.gz
+rm vips-8.6.3.tar.gz
+cd vips-8.6.3
+./configure --prefix="$PWD/../ext/"
+make install
+cd ..
+rm -rf vips-8.6.3
+PATH="$PATH:$PWD/ext/bin"
+LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD/ext/lib"
+
+gcc -Wall -Wextra --pedantic -std=c99 ./src/conversion/czi/cziconvert.c -o ./ext/bin/CZICrunch
diff --git a/package.json b/package.json
index 0fc6626..6b799e4 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"main": "index.ts",
"license": "UNLICENSED",
"scripts": {
- "_test": "NODE_ENV='test' mocha --reporter spec -r ts-node/register",
+ "_test": "PORT=4321 NODE_ENV='test' mocha --reporter spec -r ts-node/register",
"test": "yarn _test './test/**/*.test.ts'",
"test:routes": "yarn _test './test/**/*.routes.test.ts'",
"test:unit": "yarn _test './test/**/*.unit.test.ts'",
@@ -14,10 +14,13 @@
"test:routes:protocol": "yarn _test './test/**/*protocol.routes.test.ts'",
"docs": "typedoc --out 'docs' --readme 'README.md' --name 'St Andrews Junior Honours 2017/18 - Team BE4' --module commonjs --target ES6 --exclude '*.test.ts' --excludeExternals --includeDeclarations --ignoreCompilerErrors --disableOutputCheck 'src'",
"run:postgres": "pg_ctl start",
- "start": "ts-node src/index.ts",
+ "local": "ts-node src/index.ts",
"_lint": "tslint -p './tsconfig.json' -c './tslint.json'",
"lint": "yarn _lint --fix --force './src/**/*.ts'",
- "lint:tests": "yarn _lint --fix --force './test/**/*.ts'"
+ "lint:tests": "yarn _lint --fix --force './test/**/*.ts'",
+ "start": "pm2 restart ecosystem.config.js",
+ "stop": "pm2 stop all",
+ "console": "pm2 monit"
},
"repository": {
"type": "git",
@@ -32,27 +35,32 @@
],
"author": "2017 Junior Honours Backend Group 4",
"devDependencies": {
- "@types/chai": "^3.4.34",
- "@types/chai-http": "0.0.29",
- "@types/debug": "0.0.29",
- "@types/mocha": "^2.2.32",
+ "@types/chai": "4.1.3",
+ "@types/chai-http": "3.0.4",
+ "@types/debug": "0.0.30",
+ "@types/mocha": "5.2.0",
"@types/mocha-each": "^1.1.0",
- "chai": "^3.5.0",
- "chai-http": "^3.0.0",
- "mocha": "^3.1.2",
+ "chai": "4.1.2",
+ "chai-http": "4.0.0",
+ "mocha": "5.1.1",
"tslint": "^5.9.1",
- "typedoc": "^0.10.0"
+ "typedoc": "0.11.1",
+ "yarn-check": "^0.0.3"
},
"dependencies": {
- "@types/body-parser": "0.0.33",
+ "@types/body-parser": "1.16.8",
"@types/colors": "^1.1.3",
+ "@types/csv-parse": "^1.1.11",
+ "@types/csv-stringify": "^1.4.2",
"@types/express": "^4.0.33",
- "@types/express-jwt": "^0.0.38",
+ "@types/express-jwt": "0.0.40",
+ "@types/file-type": "^5.2.1",
"@types/fs-extra": "^5.0.2",
"@types/jsonwebtoken": "^7.2.5",
+ "@types/mime-types": "^2.1.0",
"@types/morgan": "^1.7.32",
"@types/multer": "^1.3.6",
- "@types/node": "^6.0.46",
+ "@types/node": "9.6.6",
"@types/passport": "^0.4.2",
"@types/passport-local": "^1.0.32",
"@types/sequelize": "^4.27.5",
@@ -65,31 +73,34 @@
"body-parser": "^1.18.2",
"colors": "^1.1.2",
"corser": "^2.0.1",
+ "csv-parse": "^2.2.0",
+ "csv-stringify": "^3.0.0",
"express": "^4.16.2",
"express-jwt": "^5.3.0",
"file-system": "^2.2.2",
- "fs-extra": "^5.0.0",
+ "file-type": "^7.6.0",
"jsonwebtoken": "^8.1.1",
+ "mime-types": "^2.1.18",
"mocha-each": "^1.1.0",
"morgan": "^1.9.0",
- "multer": "^1.3.0",
"passport": "^0.4.0",
"passport-local": "^1.0.0",
- "pg": "^7.3.0",
- "pg-hstore": "^2.3.1",
- "pg-native": "^2.1.9",
+ "pg": "^7.4.1",
+ "pg-hstore": "^2.3.2",
+ "pg-native": "^2.2.0",
+ "pm2": "^2.10.2",
"pmx": "^1.6.4",
"reflect-metadata": "^0.1.12",
"sequelize": "^4.32.7",
"sequelize-typescript": "^0.6.2",
- "sharp": "^0.20.0",
+ "sharp": "^0.20.1",
"sqlite3": "^4.0.0",
"supertest": "^3.0.0",
- "ts-node": "^3.3.0",
+ "ts-node": "6.0.0",
"typescript": "^2.7.1",
"uuid": "^3.2.1",
"winston": "^2.4.0",
- "xlsx": "^0.11.19",
+ "xlsx": "^0.12.10",
"xml-parser": "^1.2.1"
}
}
diff --git a/report/deliverable-3/main.bbl b/report/deliverable-3/main.bbl
new file mode 100644
index 0000000..5ffb189
--- /dev/null
+++ b/report/deliverable-3/main.bbl
@@ -0,0 +1,134 @@
+\begin{thebibliography}{10}
+
+\bibitem{zeissLicence}
+Apply for zeiss licence.
+\newblock
+ https://www.zeiss.com/microscopy/int/products/microscope-software/czi/czi-download.html.
+\newblock Accessed: 2018-03-06.
+
+\bibitem{chai}
+Chai assertion library.
+\newblock http://chaijs.com/api/bdd/.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{chai-http}
+Chai http.
+\newblock http://chaijs.com/plugins/chai-http/.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{forever}
+foreverjs.
+\newblock https://github.com/foreverjs/forever.
+\newblock Accessed: 2018-03-07.
+
+\bibitem{xlsx}
+js-xlsx.
+\newblock https://github.com/sheetjs/js-xlsx.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{mocha}
+Mocha.
+\newblock https://mochajs.org/.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{mocha-each}
+mocha-each.
+\newblock https://github.com/ryym/mocha-each.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{morgan}
+morgan.
+\newblock https://github.com/expressjs/morgan.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{openseadragon}
+Openseaddragon.
+\newblock https://openseadragon.github.io/docs/.
+\newblock Accessed: 2019-03-07.
+
+\bibitem{passport}
+Passport.
+\newblock http://www.passportjs.org/docs/.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{passport-local}
+passport-local.
+\newblock https://github.com/jaredhanson/passport-local.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{pm2}
+pm2.
+\newblock http://pm2.keymetrics.io/.
+\newblock Accessed: 2018-03-07.
+
+\bibitem{sequelize}
+Sequelize.
+\newblock http://docs.sequelizejs.com/.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{sequelize-typescript}
+sequelize-typescript.
+\newblock https://github.com/RobinBuschmann/sequelize-typescript.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{sharp}
+sharp.
+\newblock https://github.com/lovell/sharp.
+\newblock Accessed: 2018-03-06.
+
+\bibitem{sharpPerformance}
+Sharp performance.
+\newblock http://sharp.pixelplumbing.com/en/stable/performance/.
+\newblock Accessed: 2018-03-06.
+
+\bibitem{typedoc}
+Typedoc.
+\newblock http://typedoc.org/guides/usage/.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{yarn}
+Yarn.
+\newblock https://yarnpkg.com/en/docs.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{docker}
+Docker hub.
+\newblock https://hub.docker.com/, 2016.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{tslint}
+Tslint.
+\newblock https://palantir.github.io/tslint/, 2016.
+\newblock Accessed: 2018-03-01.
+
+\bibitem{@types}
+Definitelytyped.
+\newblock http://definitelytyped.org/, 2017.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{express}
+Express 4.x.
+\newblock https://expressjs.com/en/4x/api.html, 2017.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{typescript}
+Typescript.
+\newblock https://www.typescriptlang.org/docs/home.html, 2017.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{protocol}
+Cs3099jh2017 protocol.
+\newblock https://github.com/CS3099JH2017/cs3099jh/tree/master/protocols, 2018.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{postgres}
+Postresql.
+\newblock https://www.postgresql.org/docs/, 2018.
+\newblock Accessed: 2018-03-02.
+
+\bibitem{strongloop}
+Strongloop.
+\newblock https://strongloop.com/, 2018.
+\newblock Accessed: 2018-03-07.
+
+\end{thebibliography}
diff --git a/report/deliverable-3/main.blg b/report/deliverable-3/main.blg
new file mode 100644
index 0000000..dcb4ea0
--- /dev/null
+++ b/report/deliverable-3/main.blg
@@ -0,0 +1,73 @@
+This is BibTeX, Version 0.99d (TeX Live 2016)
+Capacity: max_strings=35307, hash_size=35307, hash_prime=30011
+The top-level auxiliary file: main.aux
+The style file: plain.bst
+Database file #1: biblio.bib
+Warning--to sort, need author or key in zeissLicence
+Warning--to sort, need author or key in sharp
+Warning--to sort, need author or key in sharpPerformance
+Warning--to sort, need author or key in openseadragon
+Warning--to sort, need author or key in protocol
+Warning--to sort, need author or key in sequelize
+Warning--to sort, need author or key in strongloop
+Warning--to sort, need author or key in pm2
+Warning--to sort, need author or key in forever
+Warning--to sort, need author or key in mocha-each
+Warning--to sort, need author or key in @types
+Warning--to sort, need author or key in tslint
+Warning--to sort, need author or key in yarn
+Warning--to sort, need author or key in typescript
+Warning--to sort, need author or key in sequelize-typescript
+Warning--to sort, need author or key in postgres
+Warning--to sort, need author or key in mocha
+Warning--to sort, need author or key in chai
+Warning--to sort, need author or key in chai-http
+Warning--to sort, need author or key in express
+Warning--to sort, need author or key in passport
+Warning--to sort, need author or key in passport-local
+Warning--to sort, need author or key in morgan
+Warning--to sort, need author or key in typedoc
+Warning--to sort, need author or key in xlsx
+Warning--to sort, need author or key in docker
+You've used 26 entries,
+ 2118 wiz_defined-function locations,
+ 597 strings with 5770 characters,
+and the built_in function-call counts, 4422 in all, are:
+= -- 450
+> -- 26
+< -- 0
++ -- 26
+- -- 0
+* -- 140
+:= -- 513
+add.period$ -- 78
+call.type$ -- 26
+change.case$ -- 78
+chr.to.int$ -- 0
+cite$ -- 52
+duplicate$ -- 182
+empty$ -- 599
+format.name$ -- 0
+if$ -- 1101
+int.to.chr$ -- 0
+int.to.str$ -- 26
+missing$ -- 0
+newline$ -- 133
+num.names$ -- 0
+pop$ -- 244
+preamble$ -- 1
+purify$ -- 52
+quote$ -- 0
+skip$ -- 137
+stack$ -- 0
+substring$ -- 130
+swap$ -- 26
+text.length$ -- 0
+text.prefix$ -- 0
+top$ -- 0
+type$ -- 104
+warning$ -- 26
+while$ -- 0
+width$ -- 28
+write$ -- 244
+(There were 26 warnings)
diff --git a/report/deliverable-3/texts/testing.tex b/report/deliverable-3/texts/testing.tex
index 94d7dbc..7842f9f 100644
--- a/report/deliverable-3/texts/testing.tex
+++ b/report/deliverable-3/texts/testing.tex
@@ -3,6 +3,7 @@ Testing was a key process in the development of the final product just as it was
\subsection{Using Mocha and Postman}
The JavaScript framework Mocha was still used in the testing process for modules. The test-suite for our project had some major work done since the last submission, allowing tests to run on the Gitlab server as well as addressing bugs in the test-suite and implementation. Whilst also using Mocha for Unit tests, it was used to test the individual routes and their response whilst comparing them to a template. The same method was applied to test requests. This automation increased the efficiency of production, however, the small amount of routes to test allowed us to be more thorough by manually sending requests to the server using Postman. Postman is a API development tool which allows requests to be sent through an easily manageable user interface. By doing this, expected values were easy to match with actual values, and further bugs could be caught even when the templates had matched previously.
+>>>>>>> report
\subsection{Integration Testing}
Once the system had been fully implemented and tested, it was necessary to integrate with the rest of the system such as user interface and the machine learning servers. This allowed us to determine whether specific protocols were implemented correctly and to ensure that all the requirements set by the client were met. To begin the integration process, the server was hosted through the St Andrews web service which allows content to be hosted through the web. This was done by configuring an \textit{nginx} proxy that would allow binding of the loopback address and port number. Using \texttt{tmux}, the session was hosted persistently as it allows terminal sessions to be detached and run in the background. The server runs on the domain \textit{har4.host.cs.st-andrews.ac.uk}. From here, it was possible for other teams to send requests to the running server.
\subsubsection{CORS}
diff --git a/res/.DS_Store b/res/.DS_Store
new file mode 100644
index 0000000..8c8bb1a
--- /dev/null
+++ b/res/.DS_Store
Binary files differ
diff --git a/src/.DS_Store b/src/.DS_Store
new file mode 100644
index 0000000..2d5870d
--- /dev/null
+++ b/src/.DS_Store
Binary files differ
diff --git a/src/FileRouter.ts b/src/FileRouter.ts
index 9059e88..c8884f7 100644
--- a/src/FileRouter.ts
+++ b/src/FileRouter.ts
@@ -5,12 +5,18 @@ import { ProjectFullInfo, default as Project } from './db/model/Project';
import { UserFullInfo, default as User } from './db/model/User';
import { default as UserGroup } from './db/model/UserGroup';
+import * as bodyParser from 'body-parser';
import { RequestError } from './errors/errorware';
import { NextFunction, Request, Response, Router } from 'express';
-import { View, addSubFileToFolder, createProjectFolder, deleteFile, rootPathId,
- saveFile, upload, views } from './files';
+import { View, addSubFileToFolder, copyFile, createProjectFolder, deleteFile,
+ saveFile, views, preprocess } from './files';
+import { appendFileSync } from 'fs';
import { logger } from './logger';
+import { mimetype } from './mimetype';
+import { Contains } from 'sequelize-typescript';
import { Property, default as serverConfig } from './serverConfig';
+import UserHasPrivilege from './db/model/UserHasPrivilege';
+import UserJoinsProject from './db/model/UserJoinsProject';
import { uuid } from './uuid';
/**
@@ -245,14 +251,14 @@ const getUsers: Middleware = async(
Project
]
});
- res.locals.data = users.map((u: User): UserFullInfo => {
- const info: UserFullInfo = u.fullInfo;
- if (!req.user.hasPrivilege('admin')) {
- delete info.private_user_metadata;
- delete info.private_admin_metadata;
- }
+ res.locals.data = Promise.all(users.map((u: User): Promise<UserFullInfo> => {
+ const info: Promise<UserFullInfo> = u.getFullInfo();
return info;
- });
+ }));
+ if (!req.user.hasPrivilege('admin')) {
+ delete res.locals.data.private_user_metadata;
+ delete res.locals.data.private_admin_metadata;
+ }
next();
};
@@ -292,24 +298,24 @@ const getUserProperties: Middleware = (
* "private_admin_metadata": metadata
* }
*/
-const getUsername: Middleware = (
+const getUsername: Middleware = async(
req: Request, res: Response, next: NextFunction
-): void => {
+): Promise<void> => {
logger.debug(`Listing user ${res.locals.user}`);
res.locals.modified = true;
if (res.locals.user == null) {
next(new RequestError(404, 'user_not_found'));
return;
}
- res.locals.data = res.locals.user.fullInfo;
+ res.locals.data = await res.locals.user.getFullInfo();
next();
};
-const getCurUser: Middleware = (
+const getCurUser: Middleware = async(
req: Request, res: Response, next: NextFunction
-): void => {
+): Promise<void> => {
logger.debug('Listing current user');
- res.locals.data = req.user.fullInfo;
+ res.locals.data = await req.user.getFullInfo();
next();
};
@@ -367,19 +373,65 @@ const postUsername: Middleware = async(
): Promise<void> => {
let user: User | null | undefined = res.locals.user;
res.locals.modified = true;
- if (user == null) {
- logger.debug('Adding new user');
- user = new User({
- username: req.params.username,
- password: req.params.password
- });
- } else {
- logger.debug('Editing user');
- user.password = req.params.password;
+
+ if( req.query.action === 'update'){
+ if (user!= null){
+ logger.debug('Editing user');
+
+ if(req.body.password != null){
+ user.password = req.body.password;
+ }
+ if (req.body) {
+ user.metadata = req.body;
+ }
+ await user.save();
+ if(req.body.privileges != null){
+ const priv: UserGroup[] | null = await UserGroup.findAll({
+ include: [{all: true}],
+ where: {
+ name: req.body.privileges
+ }
+ })
+ await user.$set('userGroups', priv);
+ }
+ }
+ else{
+ next(new RequestError(404, 'user_not_found'));
+ return;
+ }
}
- if (req.body) {
- user.metadata = req.body;
+ else if( req.query.action === 'delete'){
+ logger.debug('Deleting a user');
+ if (user!= null){
+ await user.destroy();
+ }
+ else{
+ next(new RequestError(404, 'user_not_found'));
+ return;
+ }
}
+ else{
+ if (user == null) {
+ logger.debug('Adding new user');
+ const priv: UserGroup[] | null = await UserGroup.findAll({
+ include: [{all: true}],
+ where: {
+ name: req.body.privileges
+ }
+ })
+ user = new User({
+ username: req.params.username,
+ password: req.params.password,
+ });
+ await user.save();
+ await user.$set('userGroups', priv);
+ }
+ else{
+ next(new RequestError(400, 'user_already_exists'));
+ return;
+ }
+ }
+ await user.save();
next();
};
@@ -435,9 +487,9 @@ const getProjects: Middleware = async(
User
]
});
- res.locals.data = projects.map(
- (p: Project): ProjectFullInfo => p.fullInfo
- );
+ res.locals.data = Promise.all(projects.map(
+ (p: Project): Promise<ProjectFullInfo> => p.getFullInfo()
+ ));
next();
};
@@ -467,7 +519,7 @@ const getProjectName: Middleware = async(
if (project == null) {
return next(new RequestError(404, 'project_not_found'));
} else {
- res.locals.data = project.fullInfo;
+ res.locals.data = await project.getFullInfo();
next();
}
};
@@ -491,31 +543,81 @@ const postProjectName: Middleware = async(
let project: Project | null = res.locals.project;
res.locals.modified = true;
let promise: PromiseLike<File> | null = null;
- if (project == null) {
- logger.debug('Adding new project');
- const file: File = new File({
- uuid: uuid.generate(),
- mimetype: 'inode/directory',
- parentFolderId: rootPathId
- });
- file.name = ''; // Leave blank as discussed
- promise = file.save();
- createProjectFolder(req.params.project_name);
- project = new Project({
- name: req.params.project_name,
- rootFolder: file
- });
- project.rootFolderId = file.uuid;
+ if (req.query.action === 'update') {
+ logger.debug('Adding new project');
+ if (project != null) {
+ project.metadata = req.body;
+ await project.save();
+ } else {
+ next(new RequestError(400, 'project_not_found'));
+ }
+ } else if (req.query.action === 'delete') {
+ if (project != null) {
+ project.destroy();
+ } else {
+ next(new RequestError(400, 'project_not_found'));
+ }
+ } else if (req.query.action === 'update_grant') {
+ if (project == null) {
+ next(new RequestError(400, 'project_not_found'));
+ } else {
+ const ujp: UserJoinsProject | null = await UserJoinsProject.findOne({
+ include: [{all: true}],
+ where: {
+ username: req.body.username,
+ projectName: project.name
+ }
+ });
+ if (ujp != null) {
+ await ujp.destroy();
+ }
+ if (req.body.access_level !== 'none') {
+ try {
+ let ujp: UserJoinsProject = new UserJoinsProject({
+ username: req.body.username,
+ projectName: project.name,
+ contributorGroupName: req.body.access_level
+ });
+ await ujp.save();
+ } catch (err) {
+ next(new RequestError(400, 'invalid_access_level'));
+ }
+ }
+ }
} else {
- logger.debug('Updating project properties');
+ if (project == null) {
+ logger.debug('Adding new project');
+ const file: File = new File({
+ uuid: uuid.generate(),
+ });
+ file.mimetype = 'inode/directory';
+ file.name = '';
+ promise = file.save();
+ project = new Project({
+ name: req.params.project_name,
+ rootFolderId: file.uuid
+ });
+
+ createProjectFolder(req.params.project_name);
+
+ project.metadata = req.body;
+ // tslint:disable-next-line:await-promise
+ await promise;
+ await project.save()
+ const contribute: UserJoinsProject = new UserJoinsProject({
+ username: req.user.username,
+ projectName: req.params.project_name,
+ contributorGroupName: 'projectOwner'
+
+ })
+ contribute.save()
+ } else {
+ next(new RequestError(400, 'project_already_exists'));
+ }
}
- project.metadata = req.body;
- // tslint:disable-next-line:await-promise
- await promise;
- await project.save();
- next();
+ next()
};
/**
@@ -534,6 +636,90 @@ const getProjectProperties: Middleware = (
}
};
+// Fetch a file from its path:
+const getFileFromPath: (req: Request, res: Response) => Promise<void> = async(
+ req: Request, res: Response
+): Promise<void> => {
+ // Vars we assign here:
+ // - res.locals.deepestFolderName (...Id): deepest existing folder in path
+ // - res.locals.path: requested path (using "/")
+ // - res.locals.filename: requested file name (may be '')
+ // - res.locals.file: actual file object if it exists
+ // Vars arleady assigned:
+ // - res.locals.project: requested project object
+
+ const nth: (str: string, pat: string, n: number) => number = (
+ str: string, pat: string, num: number
+ ): number => {
+ const l: number = str.length;
+ let j: number = -1;
+ let n: number = num;
+ while (n-- && j++ < l) {
+ j = str.indexOf(pat, j);
+ if (j < 0) {
+ break;
+ }
+ }
+ return j;
+ };
+
+ const path: string = req.path.substring(nth(req.path, '/', 4) + 1);
+
+ res.locals.path = path;
+ logger.debug(`Searching for path '${res.locals.path}'`);
+ // Split path into parts
+ const fileNames: string[] = res.locals.path.split('/')
+ .filter((s: string): boolean => s !== '');
+ res.locals.filename = fileNames.length > 0
+ ? fileNames[fileNames.length - 1]
+ : '';
+ const project: Project | null = res.locals.project;
+ if (project == null) {
+ // Project should have been found by previous precondition
+ logger.debug('Project was not found: skipping finding file');
+ throw new RequestError(404, 'project_not_found');
+ }
+ let curDir: File | null = project.rootFolder;
+ if (!curDir) {
+ throw new Error(`Project ${project.name} has been left with no root folder`);
+ }
+ res.locals.deepestFolderId = curDir.uuid;
+ res.locals.deepestFolderName = curDir.name;
+ if (fileNames.length === 0) {
+ res.locals.file = curDir;
+ }
+ let i: number = 0;
+ // Loop through the path and find the deepest folder that exists.
+ // Also find the file if possible.
+ while (curDir && i < fileNames.length) {
+ logger.debug(`Searching for '${fileNames[i]}'`);
+ const fileOrNull: File | null = await File.findOne({
+ include: [{all: true}],
+ where: {
+ nameInternal: fileNames[i],
+ parentFolderId: curDir.uuid
+ }
+ });
+ if (fileOrNull == null) {
+ logger.debug(`Sub-file \'${fileNames[i]}\' not found in DB`);
+ return;
+ }
+
+ if (i < fileNames.length - 1) {
+ // Found next subdirectory
+ logger.debug(`Found Sub-folder \'${fileOrNull.name}\'`);
+ res.locals.deepestFolderId = fileOrNull.uuid;
+ res.locals.deepestFolderName = fileOrNull.name;
+ } else {
+ // Found actual file
+ logger.debug(`Found file \'${fileOrNull.name}\'`);
+ res.locals.file = fileOrNull;
+ }
+ curDir = fileOrNull;
+ i++;
+ }
+};
+
/**
* GET a File.
*/
@@ -547,7 +733,7 @@ const getFile: Middleware = async(
}
const project: Project = res.locals.project;
const view: View = views[req.query.view || 'meta'];
- // TODO return 400 for unsuported views
+ // TODO return 400 for unsupported views
// TODO raw view accepts extra query params offset and length
res.locals.function = view.getResponseFunction(req, res);
res.locals.data = view.getResponseData(file, project, req.query);
@@ -557,7 +743,16 @@ const getFile: Middleware = async(
/**
* GET a File.
*/
-const getFilePath: Middleware = getFile;
+const getFilePath: Middleware = async(
+ req: Request, res: Response, next: NextFunction
+): Promise<void> => {
+ try {
+ await getFileFromPath(req, res);
+ await getFile(req, res, next);
+ } catch (e) {
+ next(e);
+ }
+};
/**
* GET a File.
@@ -587,130 +782,200 @@ const qH: {
!qH.truncates(req) && !qH.isFinal(req)
};
-/**
- * Post a File. / delete / move / etc
- */
-/* tslint:disable */
-const postFilePath: Middleware = async(req: Request, res: Response, next: NextFunction): Promise<void> => {
- logger.debug(`Receiving file ${res.locals.path}`);
- console.log(req.file);
- // req.query.action: set_metadata, mkdir, delete, move, copy
- // req.query.overwrite (bool)
- // req.query.offset (int)
- // req.query.truncate (bool)
- // req.query.final (bool)
-
- // Return 404 when one of these actions is attempted on non-existing file
- if (res.locals.file == null && (qH.setsMetadata(req) || qH.deletes(req) || qH.moves(req) || qH.copys(req))){
- logger.debug(`Action \'${req.query.action}\' not valid if file does not exist`);
- next(new RequestError(404, 'file_not_found'));
- }
-
- // Return 400 when one of these actions is attempted on existing file
- if (res.locals.file != null && (qH.nothingSet(req) || qH.mksDir(req))) {
- logger.debug(`Action \'${req.query.action}\' not valid if file exists`);
- next(new RequestError(400, 'file_exists'));
- }
-
- // Sets final if requested
- if (res.locals.file && qH.isFinal(req)) {
- res.locals.file.status = 'preprocessing';
- // start file conversion
- }
-
- // Sets Metadata if requested
- if(qH.setsMetadata(req)){
- res.locals.file.metadata = req.body;
- await res.locals.file.save();
- next();
- }
-
- // Deletes File if requested
- if(qH.deletes(req)){
- logger.info(`File ${res.locals.file.name} will be deleted`)
- deleteFile(res.locals.file.uuid, res.locals.project.name);
- await res.locals.file.destroy();
- next();
- }
+const makeFile = async(req: Request, res: Response): Promise<File> => {
+ // lets have a res.locals.deepestFolderName (and Id) which is a string of the deepest parent folder found
+ let remainingPath: string = (res.locals.deepestFolderName == '') ? '/' + res.locals.path
+ : res.locals.path.split(res.locals.deepestFolderName)[1];
- // Moves File if requested
- if(qH.moves(req)){
- // TODO
- next(new RequestError(500, 'not_implemented'));
+ let curPath: string = res.locals.deepestFolderName;
+ // Loop the part of the path that doesn't exist yet and create all the folders
+ while ((remainingPath.match(/\//g) || []).length > 1) {
+ // If there are more subfolders that dont exist, then create them
+ const subFolder: string = remainingPath.split('/')[1];
+ curPath += subFolder;
+ logger.debug(`Adding subfolder '${subFolder}'`);
+ const dir: File = new File({
+ uuid: uuid.generate(),
+ type: 'directory',
+ status: 'ready',
+ fullPathInternal: curPath,
+ nameInternal: subFolder
+ });
+ await dir.save();
+ curPath += '/';
+ // update parent directory of new directory
+ await addSubFileToFolder(res.locals.deepestFolderId, dir);
+ // update vars
+ remainingPath = remainingPath.split(subFolder)[1];
+ res.locals.deepestFolderName = subFolder;
+ res.locals.deepestFolderId = dir.uuid;
}
- // Copies File if requested
- if(qH.copys(req)){
- // TODO
- next(new RequestError(500, 'not_implemented'));
- }
+ logger.debug(`Writing file '${res.locals.filename}' to folder '${res.locals.deepestFolderName}'`);
+ res.locals.file = new File({
+ uuid: uuid.generate(),
+ nameInternal: res.locals.filename,
+ fullPathInternal: res.locals.path,
+ status: req.query.final
+ ? 'ready'
+ : 'uploading'
+ });
+ res.locals.file.mimetype = mimetype(
+ req.header('Content-Type'), req.body, res.locals.filename);
- // Overwrite data but not truncate
- // eg. OOOONNNNNNOOOO (O = old data, N = new data)
- if(qH.overwrites(req) && !qH.truncates(req)){
- // TODO
- next(new RequestError(500, 'not_implemented', 'please specify truncate parameter'));
- }
+ // update parent directory of new directory
+ await addSubFileToFolder(res.locals.deepestFolderId, res.locals.file);
+ return res.locals.file;
+};
- // Create File or Folder if file doesn't exist
- if (res.locals.file == null){
- // lets have a res.locals.deepestFolderName (and Id) which is a string of the deepest parent folder found
- let remainingPath: string = (res.locals.deepestFolderName == '') ? '/' + res.locals.path
- : res.locals.path.split(res.locals.deepestFolderName)[1];
-
- // Loop the part of the path that doesn't exist yet and create all the folders
- while((remainingPath.match(/\//g) || []).length > 1){
- // If there are more subfolders that dont exist, then create them
- const subFolder: string = remainingPath.split("/")[1]
- logger.debug(`Adding subfolder \'${subFolder}\'`);
- const dir: File = new File({
- uuid: uuid.generate(),
- mimetype: 'inode/directory',
- nameInternal: subFolder
- });
- await dir.save();
+/**
+ * Post a File. / delete / move / etc
+ */
+const postFilePath: Middleware = async(
+ req: Request, res: Response, next: NextFunction
+): Promise<void> => {
+ try {
+ await getFileFromPath(req, res);
+ logger.debug(`Receiving file ${res.locals.path}`);
+ // / req.query.action: set_metadata, mkdir, delete, move, copy
+ // / req.query.overwrite (bool)
+ // / req.query.offset (int)
+ // / req.query.truncate (bool)
+ // / req.query.final (bool)
- // update parent directory of new directory
- if(!await addSubFileToFolder(res.locals.deepestFolderId, dir.uuid)){
- logger.debug("adding file to folder failed!")
- next(new RequestError(500, 'Adding file to folder failed'))
+ if (res.locals.file) {
+ /* tslint:disable-next-line:curly */
+ if (req.query.action) switch (req.query.action) {
+ case 'set_metadata': {
+ res.locals.file.metadata = JSON.parse(req.body.toString());
+ await res.locals.file.save();
+ break;
+ } case 'delete': {
+ logger.info(`File ${res.locals.file.name} will be deleted`);
+ deleteFile(res.locals.file.uuid, res.locals.project.name);
+ await res.locals.file.destroy();
+ break;
+ } case 'move': {
+ if (!req.body.path) {
+ logger.warn('copying by uuid not implimented');
+ return next(new RequestError(500, 'copy_to_path_only'));
+ }
+ logger.info(`Copying file '${
+ res.locals.file.fullPath}' to new path '${req.body.path}'`);
+ // New File object
+ const promise: PromiseLike<File> | null = null;
+ const newFile: File = new File({
+ uuid: uuid.generate(),
+ type: res.locals.file.type,
+ status: res.locals.file.status,
+ creatorName: res.locals.file.creatorName,
+ createdAt: res.locals.file.createdAt,
+ modifyDate: res.locals.file.modifyDate
+ });
+ newFile.setMetadataInternal(res.locals.file.metadata);
+ newFile.fullPath = req.body.path;
+ newFile.parentFolderId = res.locals.parentFolderId;
+ await newFile.save();
+ const oldUUID: string = res.locals.file.uuid;
+ await res.locals.file.destroy();
+ copyFile(res.locals.project.name, res.locals.file.uuid, oldUUID, true);
+ break;
+ } case 'copy': {
+ if (!req.body.path) {
+ logger.debug('copying by uuid not implimented');
+ return next(new RequestError(500, 'copy_to_path_only'));
+ }
+ logger.info(`Copying file '${
+ res.locals.file.fullPath}' to new path '${req.body.path}'`);
+ const promise: PromiseLike<File> | null = null;
+ const newFile: File = new File({
+ uuid: uuid.generate(),
+ type: res.locals.file.type,
+ status: res.locals.file.status,
+ creatorName: res.locals.file.creatorName,
+ createdAt: res.locals.file.createdAt,
+ modifyDate: res.locals.file.modifyDate
+ });
+ newFile.setMetadataInternal(res.locals.file.metadata);
+ newFile.fullPath = req.body.path;
+ newFile.parentFolderId = res.locals.parentFolderId;
+ await newFile.save();
+ copyFile(res.locals.project.name, res.locals.file.uuid, newFile.uuid);
+ break;
+ } case 'mkdir': {
+ logger.debug(`Action '${req.query.action}' not valid if file exists`);
+ return next(new RequestError(400, 'file_exists'));
+ } default: {
+ logger.warn(`Unknown file edit action '${req.query.action}'`);
+ return next(new RequestError(400, 'unknown_action'));
+ }
+ } else {
+ if (req.query.overwrite) {
+ if (req.query.truncate) {
+ await saveFile(
+ req.body,
+ res.locals.project.name,
+ res.locals.file.uuid,
+ req.query
+ );
+ if (req.query.final) {
+ res.locals.file.status = 'preprocessing';
+ await res.locals.file.save();
+ preprocess(res.locals.file, res.locals.project);
+ }
+ } else {
+ logger.warn('overwriting without truncating not supported');
+ return next(new RequestError(
+ 500,
+ 'not_implemented',
+ 'please specify truncate parameter'
+ ));
+ }
+ } else {
+ return next(new RequestError(400, 'file_already_exists'));
+ }
}
- // update vars
- remainingPath = remainingPath.split(subFolder)[1]
- res.locals.deepestFolderName = subFolder;
- res.locals.deepestFolderId = dir.uuid;
- }
-
- logger.debug(`Writing file \'${res.locals.filename}\' to folder \'${res.locals.deepestFolderName}\'`)
- res.locals.file = new File({
- uuid: uuid.generate(),
- nameInternal: res.locals.filename
- });
- res.locals.file.mimetype = qH.mksDir(req) ? 'inode/directory' : req.file.mimetype;
-
- await res.locals.file.save();
-
- // update parent directory of new directory
- if(!await addSubFileToFolder(res.locals.deepestFolderId, res.locals.file.uuid)){
- logger.debug("adding file to folder failed!")
- next(new RequestError(500, 'Adding file to folder failed'))
+ } else {
+ /* tslint:disable-next-line:curly */
+ if (req.query.action) switch (req.query.action) {
+ case 'mkdir': {
+ await makeFile(req, res);
+ res.locals.file.status = 'final';
+ break;
+ }
+ case 'set_metadata':
+ case 'delete':
+ case 'move':
+ case 'copy':
+ logger.debug(`Action '${req.query.action
+ }' not valid if file does not exist`);
+ return next(new RequestError(404, 'file_not_found'));
+ } else {
+ if (!req.body) {
+ logger.debug('No file attached. Sending 400');
+ next(new RequestError(400, 'no_file_attached'));
+ }
+ await makeFile(req, res);
+ await saveFile(
+ req.body,
+ res.locals.project.name,
+ res.locals.file.uuid,
+ req.query
+ );
+ // Sets final if requested
+ if (qH.isFinal(req)) {
+ res.locals.file.status = 'preprocessing';
+ preprocess(res.locals.file, res.locals.project);
+ }
+ }
+ await res.locals.file.save();
}
- }
+ return next();
- // Move temp file to proper location (if not directory)
- if(!qH.mksDir(req)){
- saveFile(req.file.originalname, res.locals.project.name, res.locals.file.uuid, qH.offset(req));
+ } catch (e) {
+ next(e);
}
-
- // Sets final if requested
- if (qH.isFinal(req)) {
- res.locals.file.status = 'final';
- }
-
- next();
-
};
-/* tslint:enable */
export class FileRouter {
public router: Router;
@@ -751,10 +1016,10 @@ export class FileRouter {
this.router.post('/projects/:project_name', postProjectName);
this.router.get ('/projects/:project_name/properties', getProjectProperties);
// File access
- this.router.get ('/projects/:project_name/files/:path', getFilePath);
+ this.router.get ('/projects/:project_name/files/*', getFilePath);
this.router.post(
- '/projects/:project_name/files/:path',
- upload.single('userfile'), postFilePath);
+ '/projects/:project_name/files/*',
+ bodyParser.raw({ type: '*/*', limit: '20GB' }), postFilePath);
this.router.get ('/projects/:project_name/files_by_id/:id', getFileId);
}
@@ -783,7 +1048,7 @@ export class FileRouter {
}
});
if (user == null) {
- return next(new RequestError(404, 'user_not_found'));
+ //return next(new RequestError(404, 'user_not_found'));
} else {
res.locals.user = user;
}
@@ -800,7 +1065,8 @@ export class FileRouter {
): Promise<void> => {
res.locals.project = await Project.findOne({
include: [
- User
+ User,
+ File
],
where: {
name: projectName
@@ -810,73 +1076,6 @@ export class FileRouter {
}
);
- // Fetch a file from its path:
- this.router.param(
- 'path',
- async(
- req: Request, res: Response, next: NextFunction,
- filename: string
- ): Promise<void> => {
- // Vars we assign here:
- // - res.locals.deepestFolderName (...Id): deepest existing folder in path
- // - res.locals.path: requested path (using "/")
- // - res.locals.filename: requested file name (may be '')
- // - res.locals.file: actual file object if it exists
- // Vars arleady assigned:
- // - res.locals.project: requested project object
-
- // Replace + with /
- res.locals.path = filename.replace(/\+/g, '/');
- logger.debug(`Searching for path \'${res.locals.path}\'`);
- // Split path into parts
- const fileNames: string[] = res.locals.path.split('/');
- res.locals.filename = (fileNames.length > 0) ?
- fileNames[fileNames.length - 1] : '';
- logger.debug(`Searching for file \'${res.locals.filename}\'`);
- const project: Project | null = res.locals.project;
- if (project == null) {
- // Project should have been found by previous precondition
- logger.debug('Project was not found: skipping finding file');
- return next(new RequestError(404, 'project_not_found'));
- }
- let curDir: File | null = project.rootFolder;
- res.locals.deepestFolderId = curDir.uuid;
- res.locals.deepestFolderName = curDir.name;
- let i: number = 0;
- // Loop through the path and find the deepest folder that exists.
- // Also find the file if possible.
- while (curDir && i < fileNames.length) {
- logger.debug(`Searching for \'${fileNames[i]}\'`);
- const fileOrNull: File | null = await File.findOne({
- include: [{all: true}],
- where: {
- nameInternal: fileNames[i],
- parentFolderId: curDir.uuid
- }
- });
- if (fileOrNull == null) {
- logger.debug(`Sub-file \'${fileNames[i]}\' not found in DB`);
- return next();
- }
-
- if (i < fileNames.length - 1) {
- // Found next subdirectory
- logger.debug(`Found Sub-folder \'${fileOrNull.name}\'`);
- res.locals.deepestFolderId = fileOrNull.uuid;
- res.locals.deepestFolderName = fileOrNull.name;
- } else {
- // Found actual file
- logger.debug(`Found file \'${fileOrNull.name}\'`);
- res.locals.file = fileOrNull;
- }
- curDir = fileOrNull;
- i++;
- }
-
- next();
- }
- );
-
// Fetch a file from its UUID:
this.router.param(
'id',
diff --git a/src/app.ts b/src/app.ts
index 6a595f6..7b398fd 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -57,7 +57,7 @@ class App {
async(req: ex.Request, res: ex.Response, next: ex.NextFunction):
Promise<void> => {
if (res.locals.function) {
- res.locals.function.bind(res)(res.locals.data);
+ res.locals.function.bind(res)(await res.locals.data);
} else {
res.json({
status: 'success',
@@ -82,6 +82,12 @@ class App {
'/cs3099group-be-4/_supported_protocols_'
] })
);
+ this.express.use((req, res, next) => {
+ if (req.headers.authorisation) {
+ (req.headers.authorization as any) = req.headers.authorisation;
+ }
+ next();
+ })
this.express.use(passport.initialize());
this.express.use(async(
req: ex.Request, res: ex.Response, next: ex.NextFunction
@@ -110,7 +116,7 @@ class App {
defRouter.get('/', (req: ex.Request, res: ex.Response): void => {
res.json({
message: 'Welcome to the CS3099 BE4 server!',
- important: 'Endpoints start from /cs3099group-be-4/'
+ important: 'Endpoints start from /cs3099group-be-4'
});
});
this.express.use('/cs3099group-be-4', FileRouter);
@@ -123,7 +129,7 @@ class App {
.json({
status: 'error',
error : 'invalid_route',
- error_description: 'Endpoints start from /cs3099group-be-4/'
+ error_description: 'Endpoints start from /cs3099group-be-4'
});
} else {
next();
diff --git a/src/conversion/csv/excel.ts b/src/conversion/csv/excel.ts
new file mode 100644
index 0000000..3f5d30b
--- /dev/null
+++ b/src/conversion/csv/excel.ts
@@ -0,0 +1,126 @@
+import { logger } from '../../logger';
+import * as xlsx from 'xlsx';
+import * as fs from 'fs';
+import { SupportedViews, writeJSONToFile } from '../types/helpers';
+import * as csv from 'csv-parse';
+import { extension } from '../../mimetype'
+
+const writeFile = require('util').promisify(fs.writeFile);
+const readFile = require('util').promisify(fs.readFile);
+const createFolder = require('util').promisify(fs.mkdir);
+const readDir = require('util').promisify(fs.readdir);
+const rename = require('util').promisify(fs.rename);
+const copy = require('util').promisify(fs.copyFile);
+
+const supportedViewsFromMem: (content: string) => Promise<SupportedViews> = (content: string): Promise<SupportedViews> => {
+ return new Promise((res, rej) => {
+ csv(content, {}, function(err: any, output: any) {
+ res({
+ tabular: {
+ columns: output[0],
+ rows: output.length - 1
+ }
+ });
+ });
+ });
+}
+
+const supportedViewsFromDsk: (path: string) => Promise<SupportedViews> = async(path: string): Promise<SupportedViews> => {
+ return supportedViewsFromMem((await readFile(path)).toString());
+}
+
+export const toCSV: (file: string, output: string, mimetype: string) => Promise<number> = async (file: string, output: string, mimetype: string): Promise<number> => {
+ logger.info(`xls convertor received new file to convert to csv: ${file}`);
+
+ await copy(file, `${file}.${extension(mimetype)}`);
+ let book: xlsx.WorkBook = xlsx.readFile(file);
+ fs.unlink(`${file}.${extension(mimetype)}`, (err) => {
+ if (err) {
+ logger.warn(err.toString());
+ }
+ });;
+
+ try {
+ await createFolder(output);
+ let noSheets: number = 0;
+
+ for (let name of book.SheetNames) {
+ await writeFile(`${output}/-${name}`, xlsx.utils.sheet_to_csv(book.Sheets[name]));
+ noSheets++;
+ }
+
+ rename(`${output}/-${book.SheetNames[0]}`, `${output}/_${book.SheetNames[0]}`)
+
+ return noSheets;
+ } catch (err) {
+ logger.failure(err);
+ return 0;
+ }
+}
+
+
+const buildSupportedView: (file: string ) => Promise<object> = async (file: string): Promise<object> => {
+ let shortFile:string = file.split('/')[file.split('/').length - 1]
+ let index: string = shortFile.substring(1, shortFile.length);
+ return {
+ firstSheet: shortFile.startsWith('_'),
+ name: index,
+ tabular: (await supportedViewsFromDsk(file)).tabular
+ }
+}
+
+export const buildSupportedViews: (inputFolder: string ) => Promise<SupportedViews> = async (inputFolder: string): Promise<SupportedViews> => {
+ let allSheets: string[] = await readDir(inputFolder);
+
+ let views: any = {}; views.items = [];
+
+ for (let file of allSheets) {
+ let view: any = await buildSupportedView(`${inputFolder}/${file}`);
+ views.items.push(view.name);
+ views[view.name] = view.tabular;
+ if (view.firstSheet) {
+ views.columns = view.tabular.columns;
+ views.rows = view.tabular.rows;
+ }
+ }
+ return views;
+}
+
+
+// const toAll: (file: string) =>
+// Promise<{csv: string, json: string, html: string}> =
+// async (file: string):
+// Promise<{csv: string, json: string, html: string}> => {
+// return {
+// csv: await toCSV(file).then(),
+// html: await toCSV(file).then()
+// }
+// }
+//
+
+
+
+// const main: () => Promise<void> = async (): Promise<void> => {
+// console.log(await toCSV('/cs/scratch/cjd24/t.xlsx'));
+// }
+// // try {
+// // let file: xlsx.WorkBook = xlsx.readFile(`${testDir}${testFile}`);
+// //
+// // for (let name of file.SheetNames) {
+// // fs.writeFileSync(`${testDir}${testFile.split('.')[0]}-${name}.csv`, xlsx.utils.sheet_to_csv(file.Sheets[name]));
+// // logger.info(`Wrote ${testFile.split('.')[1]} subsheet {${testFile} : ${name}} as CSV.`);
+// // fs.writeFileSync(`${testDir}${testFile.split('.')[0]}-${name}.json`, xlsx.utils.sheet_to_json(file.Sheets[name]));
+// // logger.info(`Wrote ${testFile.split('.')[1]} subsheet {${testFile} : ${name}} as json.`);
+// // fs.writeFileSync(`${testDir}${testFile.split('.')[0]}-${name}.html`, xlsx.utils.sheet_to_html(file.Sheets[name]));
+// // logger.info(`Wrote ${testFile.split('.')[1]} subsheet {${testFile} : ${name}} as HTML.`);
+// // }
+// //
+// // logger.success(`Wrote ${testFile.split('.')[1]} {${testFile}} as CSV.`);
+// // logger.success(`Wrote ${testFile.split('.')[1]} {${testFile}} as JSON.`);
+// // logger.success(`Wrote ${testFile.split('.')[1]} {${testFile}} as HTML.`);
+// // } catch (err) {
+// // // console.log(err);
+// // logger.error(err);
+// // }
+// // };
+// main().then();
diff --git a/src/conversion/czi/JxrDecApp b/src/conversion/czi/JxrDecApp
new file mode 100755
index 0000000..bc35f65
--- /dev/null
+++ b/src/conversion/czi/JxrDecApp
Binary files differ
diff --git a/src/conversion/czi/convertJxrs.py b/src/conversion/czi/convertJxrs.py
index d19a59a..f4b897f 100644
--- a/src/conversion/czi/convertJxrs.py
+++ b/src/conversion/czi/convertJxrs.py
@@ -8,14 +8,21 @@ coutner = 0
def convertjxrs(filename):
- global counter
- global totalFiles
- asTif = filename.rsplit('.',1)[0] + ".tif"
- check_call(['./JxrDecApp', "-i", filename, "-o", asTif])
- check_call(['convert', asTif, filename.rsplit('.',1)[0] + ".png"])
- check_call(['rm', filename, asTif])
- counter += 1
- print (f"> Processed File: {counter}/{totalFiles} : {filename} --> {filename.rsplit('.',1)[0]}.png")
+ global counter
+ global totalFiles
+ try:
+ asTif = filename.rsplit('.',1)[0] + ".tif"
+ check_call(['JxrDecApp', "-i", filename, "-o", asTif])
+ check_call(['convert', asTif, filename.rsplit('.',1)[0] + ".png"])
+ check_call(['rm', filename, asTif])
+ counter += 1
+ except Exception as help:
+ print ("Processing Failed. Probably couldn't find decoder due to invalid system environment path, check this before debugging.");
+ print ("Actual error was:");
+ print (help);
+ exit(0);
+
+ print (f"> Processed File: {counter}/{totalFiles} : {filename} --> {filename.rsplit('.',1)[0]}.png")
if __name__ == "__main__":
@@ -24,15 +31,15 @@ if __name__ == "__main__":
print("\nMissing Argument!\n\nUsage:\npython3 convertJxrs.py <DirectoryContainingJxrs>")
exit(0)
else:
- print("=========== BEGIN JXR CONVERSION ===========")
- print ('Files Dir: ' + argv[1] + '\n')
-
- filenames = glob(argv[1] + 'data-*.jxr')
- counter = 0
- totalFiles = len(filenames)
-
- pool = ThreadPoolExecutor(5)
- for f in pool.map(convertjxrs, filenames):
- pass
- pool.shutdown(True)
- print("=========== FINISH JXR CONVERSION ===========")
+ print("=========== BEGIN JXR CONVERSION ===========")
+ print ('Files Dir: ' + argv[1] + '\n')
+
+ filenames = glob(argv[1] + 'data-*.jxr')
+ counter = 0
+ totalFiles = len(filenames)
+
+ pool = ThreadPoolExecutor(5)
+ for f in pool.map(convertjxrs, filenames):
+ pass
+ pool.shutdown(True)
+ print("=========== FINISH JXR CONVERSION ===========")
diff --git a/src/conversion/czi/czi.ts b/src/conversion/czi/czi.ts
index 127fce6..33bc738 100644
--- a/src/conversion/czi/czi.ts
+++ b/src/conversion/czi/czi.ts
@@ -1,95 +1,55 @@
-
+import { CZIHeightMap, CZITile,
+ WholeCZIHierarchy } from '../types/customPyramidIndex';
+import { Dimension, Segment } from '../types/cziBinaryTypings';
import * as fs from 'fs';
-import { logger } from '../../logger';
+import { SupportedViews, TileBounds, checkForOutputDirectories, writeJSONToFile, execpaths } from '../types/helpers';
+// import { logger } from '../../logger';
import * as sharp from 'sharp';
+// tslint:disable-next-line:no-duplicate-imports
import { SharpInstance } from 'sharp';
+import { isTileRelated, regionToExtract } from './tileExtraction';
import * as parsexml from 'xml-parser';
+import { uuid } from '../../uuid'
+
+const readFile = require('util').promisify(fs.readFile);
+const readdir = require('util').promisify(fs.readdir);
+const exists = require('util').promisify(fs.exists);
-const extractionDirectory: string = '/cs/scratch/cjd24/0701-extraction/';
-const outputImageDirectory: string = '/cs/scratch/cjd24/0701-extraction-processed2/';
-const tileOverlap: number = 0;
+// Various constants for placing files and defining tiles
+let extractDirectory: string = "";
+let outputImageData: string = "";
+let outputImageDirectory: string = "";
+const tileOverlap: number = 0; // Overlap is only half implemented
const tileSize: number = 1024;
const maxZoom: number = 64;
-
-interface Dimension {
- Dimension: string;
- Start: number;
- Size: number;
-}
-interface DirectoryEntry {
- DimensionCount: number;
- DimensionEntries: Dimension[];
-}
-interface SubBlock {
- DirectoryEntry: DirectoryEntry;
- Data: string;
-}
-interface Segment {
- Id: string;
- UsedSize: number;
- Data: SubBlock;
-}
-class TileBounds {
- public left!: number;
- public right!: number;
- public top!: number;
- public bottom!: number;
- public constructor(leftBound: number, rightBound: number, topBound: number, bottomBound: number) {
- this.left = leftBound;
- this.right = rightBound;
- this.top = topBound;
- this.bottom = bottomBound;
- }
-}
-interface SupportedViews {
- scalable_image: {
- width: number;
- height: number;
- channels: [
- {
- channel_id: string;
- channel_name: string;
- metadata?: {};
- }
- ];
- real_width?: {
- value: number;
- units: string;
- };
- real_height?: {
- value: number;
- units: string;
- };
- metadata?: {};
- };
-}
-interface CZITile {
- x_offset: number;
- y_offset: number;
- width: number;
- height: number;
- file: string;
-}
-interface CZIHeightMap {
- zoom_level: number;
- plane: CZITile[][];
-}
-interface WholeCZIHierarchy {
- c_values: [{
- channel_id: string,
- height_map: CZIHeightMap[];
- }];
-}
-
-const getOriginalTileBounds: Function = function(originalTile: Segment): (TileBounds | null) {
+const shell = require('shelljs');
+const finalCZIJson: WholeCZIHierarchy = {
+ c_value_count: 0,
+ total_files: 0,
+ complete: false,
+ c_values: [],
+ zoom_level_count: 0
+};
+let dataBlocks: Segment[] = [];
+
+/**
+ * Simple function to find the tile bounds version of an original tile
+ * in the base image
+ */
+const getOriginalTileBounds: (originalTile: Segment) => TileBounds = (
+ originalTile: Segment
+): TileBounds => {
const bounds: TileBounds = new TileBounds(-1, -1, -1, -1);
+ // Loop over all dimensions to get the x and y
for (const dimension of originalTile.Data.DirectoryEntry.DimensionEntries) {
switch (dimension.Dimension) {
+ // If we have found x, then match the start and width
case 'X':
bounds.left = dimension.Start;
bounds.right = bounds.left + dimension.Size;
continue;
+ // If we have found y, then match the top and bottom
case 'Y':
bounds.top = dimension.Start;
bounds.bottom = bounds.top + dimension.Size;
@@ -99,87 +59,92 @@ const getOriginalTileBounds: Function = function(originalTile: Segment): (TileBo
}
}
- if (bounds.left < 0 || bounds.right < 0 || bounds.top < 0 || bounds.bottom < 0) {
- return null;
+ // If one of the bounds was not created, then there must have been an error
+ if (bounds.left < 0
+ || bounds.right < 0
+ || bounds.top < 0
+ || bounds.bottom < 0
+ ) {
+ throw new Error(
+ `One of the bounds had a dimension less than zero: ${originalTile.Data.Data}`
+ );
}
-
+ // Successful return
return bounds;
};
-const findRelatedTiles: Function = function(activeSegments: Segment[], desired: TileBounds): Segment[] {
+/**
+ * Function used to find which of the original base tiles are
+ * overlapping with the area of the to-be-created tile
+ */
+const findRelatedTiles: (activeSegments: Segment[], desired: TileBounds) =>
+ Segment[] = (
+ activeSegments: Segment[], desired: TileBounds
+): Segment[] => {
const relatedTiles: Segment[] = [];
+ // For all tiles within the region being checked
for (const baseTile of activeSegments) {
-
- let origCoords: TileBounds | null;
-
- if ((origCoords = getOriginalTileBounds(baseTile)) === null) {
- throw new Error('There was a Sad Boi error');
- }
-
- // Desired X on left is within current tile
- if (((desired.left >= origCoords.left) &&
- (desired.left < origCoords.right)) ||
-
- // Desired X on right is within the current tile
- ((desired.right > origCoords.left) &&
- (desired.right <= origCoords.right)) ||
-
- // Desired tile X overlaps base tile
- ((desired.left < origCoords.left) &&
- (desired.right > origCoords.right))) {
-
- // Desired Y on top is within current tile
- if (((desired.top >= origCoords.top) &&
- (desired.top < origCoords.bottom)) ||
-
- // Desired Y on right is within the current tile
- ((desired.bottom > origCoords.top) &&
- (desired.bottom <= origCoords.bottom)) ||
-
- // Desired tile Y overlaps whole base tile
- ((desired.top < origCoords.top) &&
- (desired.bottom > origCoords.bottom))) {
-
- relatedTiles.push(baseTile);
- }
+ if (isTileRelated(getOriginalTileBounds(baseTile), desired)) {
+ relatedTiles.push(baseTile);
}
}
return relatedTiles;
};
-const getDimension: Function = function(segment: Segment, name: string): Dimension {
+/**
+ * This gets the particular dimension from a segment given a segment
+ * and dimension ID
+ */
+const getDimension: (segment: Segment, name: string) => Dimension = (
+ segment: Segment, name: string
+): Dimension => {
for (const dimension of segment.Data.DirectoryEntry.DimensionEntries) {
+ // If the current dimension is the one we are looking for then return it.
if (dimension.Dimension === name) {
return dimension;
}
}
- throw new Error('Dimension: ' + name + " doesn't exist for segment: " + segment);
+ // If we have gotten to here, then the dimension doesnt exist, so throw error.
+ throw new Error(`Dimension: ${name} doesn't exist for segment: ${segment}`);
};
-const orderSegments: Function = function(segments: Segment[]): Segment[][] {
-
+/**
+ * This takes a selection of segments and ensures that they are ordered
+ * left to right, and top to bottom like the words in a book, so that the
+ * stiching process will take the correct slice from them all.
+ * (this is based on the pixel x-y coords of the segment.)
+ */
+const orderSegments: (segments: Segment[]) => Segment[][] = (
+ segments: Segment[]
+): Segment[][] => {
const output: Segment[][] = [];
+ // So long as there is at least 2 segments to order
if (segments.length > 1) {
let xCoords: number[] = [];
let yCoords: number[] = [];
// Get all x/y's;
+ // However also ensure that all of the segments to be ordered, all come
+ // From the same value of 'C' dimension, otherwise there could be overlaps.
const initC: number = getDimension(segments[0], 'C').Start;
for (const seg of segments) {
if (getDimension(seg, 'C').Start !== initC) {
- throw new Error('Segment array contains multiple values of C - this overlay is currently unsupported within this method');
+ throw new Error(`Segment array contains multiple values of C -\
+ this overlay is currently unsupported within this method`);
}
xCoords.push(getDimension(seg, 'X').Start);
yCoords.push(getDimension(seg, 'Y').Start);
}
- // Filter to get Uniaue Values
- xCoords = xCoords.filter(
- (item: number, index: number, array: number[]) => array.indexOf(item) === index);
- yCoords = yCoords.filter(
- (item: number, index: number, array: number[]) => array.indexOf(item) === index);
+
+ // Filter to get Unique Values
+ const filter: (item: number, index: number, array: number[]) => boolean = (
+ item: number, index: number, array: number[]
+ ): boolean => array.indexOf(item) === index;
+ xCoords = xCoords.filter(filter);
+ yCoords = yCoords.filter(filter);
// Use the filtered list to order the segments into rows
for (const yVal of yCoords) {
@@ -209,54 +174,52 @@ const orderSegments: Function = function(segments: Segment[]): Segment[][] {
// Return the result
return output;
- } else {
- output.push(segments);
- return output;
- }
-};
-
-const findRegionToExtract: Function = function(segment: Segment, desired: TileBounds): TileBounds {
- const baseBounds: TileBounds = getOriginalTileBounds(segment);
- const chunkToExtract: TileBounds = new TileBounds(-1, -1, -1, -1);
-
- if (desired.left <= baseBounds.left) {
- chunkToExtract.left = 0;
- } else {
- chunkToExtract.left = desired.left - baseBounds.left;
- }
-
- if (desired.right >= baseBounds.right) {
- chunkToExtract.right = baseBounds.right - baseBounds.left;
- } else {
- chunkToExtract.right = desired.right - baseBounds.left;
}
- if (desired.top <= baseBounds.top) {
- chunkToExtract.top = 0;
- } else {
- chunkToExtract.top = desired.top - baseBounds.top;
- }
-
- if (desired.bottom >= baseBounds.bottom) {
- chunkToExtract.bottom = baseBounds.bottom - baseBounds.top;
- } else {
- chunkToExtract.bottom = desired.bottom - baseBounds.top;
- }
-
- return chunkToExtract;
+ // There is only one segment, so no need to re-order.
+ return [segments];
};
-const extractAndStitchChunks: Function = async function(segments: Segment[][], desiredRegion: TileBounds): Promise<SharpInstance> {
+/**
+ * Takes a base tile, and the whole bounds of a new tile, and uses this
+ * to calculate the region within the base tile that is overlapping the new tile
+ * to be extracted.
+ */
+const findRegionToExtract: (
+ segmanet: Segment, desired: TileBounds
+) => TileBounds = (
+ segment: Segment, desired: TileBounds
+): TileBounds => {
+ // Return the slice within the base tile for extraction
+ return regionToExtract(getOriginalTileBounds(segment), desired, 1);
+};
+/*
+ * Take an ordered selection of segments and cookie cutter out a tile from this
+ * into a new image
+ */
+ const extractAndStitchChunks: (
+ segments: Segment[][], desiredRegion: TileBounds
+ ) => Promise<SharpInstance> = async(
+ segments: Segment[][], desiredRegion: TileBounds
+ ): Promise<SharpInstance> => {
+
+ // Create a buffer for the rows part of raw image data
const tileVerticalBuffer: Buffer[] = [];
+ // For all ros (y coords) in the image
for (const segRow of segments) {
+ // Create a buffer for this row
const tileRow: Buffer[] = [];
let chunkToExtract: TileBounds = new TileBounds(-1, -1, -1, -1);
+
+ // For all of the columns within this row
for (const segCol of segRow) {
+ // Find out the region of the base tile to be added to the new image
chunkToExtract = findRegionToExtract(segCol, desiredRegion);
- const data: Promise<Buffer> =
- sharp(`${extractionDirectory}${segCol.Data.Data}`)
+ // Extract this section of image data into a sharp buffer
+ let data: Promise<Buffer> =
+ sharp(`${extractDirectory}${segCol.Data.Data}`)
.extract({
left: chunkToExtract.left,
top: chunkToExtract.top,
@@ -265,162 +228,674 @@ const extractAndStitchChunks: Function = async function(segments: Segment[][], d
})
.toBuffer();
+ // Push this data into the row buffer
tileRow.push(await data);
}
+ // Prepare variables to squash all of the column data into one, for this row
let imageVerticalSlice: SharpInstance = sharp(tileRow[0]);
- const bufferBound = findRegionToExtract(segRow[0], desiredRegion);
+ const bufferBound: TileBounds = findRegionToExtract(segRow[0], desiredRegion);
+ // Check if the inital chunk needs to be extended to support the other columns
if ((bufferBound.right - bufferBound.left) < (tileSize - tileOverlap)) {
- imageVerticalSlice = await imageVerticalSlice.extend(
- {top: 0, left: 0, bottom: 0, right: (tileSize - (bufferBound.right - bufferBound.left))});
+ imageVerticalSlice = await imageVerticalSlice.extend({
+ top: 0,
+ left: 0,
+ bottom: 0,
+ right: (tileSize - (bufferBound.right - bufferBound.left))
+ });
}
- for (let index = 1; index < segRow.length; index++) {
+ // For every column along this row, join it to the previous column data
+ for (let index: number = 1; index < segRow.length; index++) {
imageVerticalSlice = await imageVerticalSlice
- .overlayWith(tileRow[index],
- {top: 0, left: (bufferBound.right - bufferBound.left) + ((index - 1) * tileSize)});
+ .overlayWith(tileRow[index], {
+ top: 0,
+ left: (bufferBound.right - bufferBound.left)
+ + ((index - 1) * tileSize)
+ });
}
+ // Add this horizontal data buffer to the vertical buffer
tileVerticalBuffer.push(await imageVerticalSlice.toBuffer());
}
+ // Prepare variables used to combine all rows into one image
let finalImage: SharpInstance = sharp(tileVerticalBuffer[0]);
- const bufferBound = findRegionToExtract(segments[0][0], desiredRegion);
+ const bufferBound: TileBounds =
+ findRegionToExtract(segments[0][0], desiredRegion);
+ // Check if the inital row needs to be extended to support further rows
if ((bufferBound.bottom - bufferBound.top) < (tileSize - tileOverlap)) {
- finalImage = await finalImage.extend(
- {top: 0, left: 0, bottom: (tileSize - (bufferBound.bottom - bufferBound.top)), right: 0});
+ finalImage = await finalImage
+ .background({
+ r: 0,
+ g: 0,
+ b: 0,
+ alpha: 1
+ }).extend({
+ top: 0,
+ left: 0,
+ bottom: (tileSize - (bufferBound.bottom - bufferBound.top)),
+ right: 0
+ });
}
- for (let index = 1; index < segments.length; index++) {
+ // For all further rows in the image, combine it with the previous rows' data
+ for (let index: number = 1; index < segments.length; index++) {
finalImage = finalImage.overlayWith(
tileVerticalBuffer[index],
{top: getDimension(segments[index - 1][0], 'Y').Size, left: 0});
}
- return finalImage;
-};
+ // Return the finalised image.
+ if ((await finalImage.metadata()).channels != 4) {
+ return sharp(Buffer.alloc(tileSize, tileSize), {
+ create: {
+ width: tileSize,
+ height: tileSize,
+ channels: 4,
+ background: { r: 0, g: 0, b: 0, alpha: 1 }
+ }
+ }).overlayWith(await finalImage.toBuffer())
+ } else {
+ return finalImage;
+ }
+ // .toFile("/cs/home/cjd24/Documents/current/groupPractical/project-code/src/conversion/czi/test1.png");
+}
-//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+/**
+ * Used to remove obtuse JSON data,
+ * where it is not needed in the SupportedView object
+ */
+const cleanSupportedViewObject: (obj: parsexml.Node[]) => object = (
+ obj: parsexml.Node[]
+): object => {
+ const newChild: any = {};
+ let hasAttr: boolean = false;
+ let hasChildren: boolean = false;
+ let hasContent: boolean = false;
+
+ // For all nodes in the json object
+ for (const node of obj) {
+
+ // Check if this node has attributes
+ hasAttr = (node.attributes !== undefined
+ && node.attributes !== null
+ && Object.keys(node.attributes).length !== 0
+ );
+ // Check for further children
+ hasChildren = (node.children !== undefined && node.children.length > 0);
+ // Check for simple content object
+ hasContent = (node.content !== undefined
+ && node.content !== null
+ && node.content !== '');
+
+ // If the Node has further children, then deal with this
+ if (hasChildren) {
+ let soloChildren: boolean = true;
+
+ // Check if this node just contains children, or its own data too
+ newChild[node.name] = {};
+ if (hasAttr) {
+ // If there are also attributes, then set this in the output
+ newChild[node.name].attributes = node.attributes;
+ soloChildren = false;
+ }
+ if (hasContent) {
+ // If there is also a 'content' then set this in the output
+ newChild[node.name].content = node.content;
+ soloChildren = false;
+ }
+ // If there are only chilren, then set this as this objects data
+ if (soloChildren) {
+ // Recursively call this function to clean up sub-children too.
+ newChild[node.name] = cleanSupportedViewObject(node.children);
+ } else {
+ // Otherwise, if there is also data, then add a children object
+ newChild[node.name].children = cleanSupportedViewObject(node.children);
+ }
+ } else if (hasAttr) {
+ newChild[node.name] = {};
-const dataBlocks: Segment[] = require(`${extractionDirectory}outputjson.json`).czi.filter(
- (s: Segment) => s.Id === 'ZISRAWSUBBLOCK' && s.Data.Data !== 'empty');
-const inspect = require('util').inspect;
-const metaXML: parsexml.Document = parsexml(fs.readFileSync(`${extractionDirectory}FILE-META-1.xml`, 'utf8'));
+ // Check for content too, if so, add a discrete child for this.
+ if (hasContent) {
+ newChild[node.name].content = node.content;
+ }
+ /*
+ * Add the attributes as a sub child regardless,
+ * since it exists on this key.
+ */
+ newChild[node.name].attributes = node.attributes;
+ } else if (hasContent) {
+ newChild[node.name] = node.content;
+ }
+ }
-const supportedViews: SupportedViews = {scalable_image: {width: -1, height: -1, channels: [{channel_id: '-1', channel_name: ''}], metadata: metaXML}};
-supportedViews.scalable_image.channels.pop();
+ return newChild;
+};
+
+/**
+ * Clean up all vales of C within the JSON for supported views
+ */
+const cleanSupportedViews: (view: SupportedViews) => void = (
+ view: SupportedViews
+): void => {
+ if (!view.scalable_image) {
+ throw new Error("SupportedView.scalable_image does not exist where it should.");
+ }
+ for (const channel of view.scalable_image.channels) {
+ channel.metadata = cleanSupportedViewObject(
+ channel.metadata as parsexml.Node[]
+ );
+ }
+};
let totalSizeX: number = -1;
let totalSizeY: number = -1;
+const supportedViews: SupportedViews = {
+ scalable_image: {
+ width: -1,
+ height: -1,
+ channels: [{
+ channel_id: '-1',
+ channel_name: ''
+ }],
+ metadata: {}
+ }
+};
+if (!supportedViews.scalable_image) {
+ throw new Error("SupportedView.scalable_image does not exist where it should.");
+}
+supportedViews.scalable_image.channels.pop();
-// THE FOLLOWING FOR LOOP IS DISGUSTING AND I HATE IT, AND I WISH I DIDNT WRITE IT BUT DON'T SEE ANY OTHER WAY TO DO IT LOL :'(
-for (const child of metaXML.root.children) {
- if (child.name === 'Metadata') {
- for (const entry of child.children) {
- if (entry.name === 'Information') {
- for (const properties of entry.children) {
- if (properties.name === 'Image') {
- for (const property of properties.children) {
- if (property.name === 'SizeX' && property.content) {
- totalSizeX = Number.parseInt(property.content, 10);
- supportedViews.scalable_image.width = totalSizeX;
- continue;
- } else if (property.name === 'SizeY' && property.content) {
- totalSizeY = Number.parseInt(property.content, 10);
- supportedViews.scalable_image.height = totalSizeY;
- continue;
- } else if (property.name === 'Dimensions') {
- for (const chan of property.children) {
- if (chan.name === 'Channels') {
- for (const channel of chan.children) {
- supportedViews.scalable_image.channels.push(
- {
- channel_id: channel.attributes.Id.split(':')[1],
- channel_name: channel.attributes.Name,
- metadata: channel.children
- }
- );
- }
- }
+/* tslint:disable:curly cyclomatic-complexity */
+/*
+ * Function to parse the xml file from the original extraction from CZI,
+ * its nasty!
+ */
+const parseExtractedXML: (xmlFile: string) => void = async(
+ xmlFile: string
+): Promise<void> => {
+ const metaXML: parsexml.Document = parsexml(await readFile(xmlFile, 'utf8'));
+ // Parse the XML :(
+ // THE FOLLOWING 2 FOR LOOPS ARE DISGUSTING AND I HATE IT,
+ // AND I WISH I DIDNT WRITE IT BUT DON'T SEE ANY OTHER WAY TO DO IT LOL :'(
+ if (!supportedViews.scalable_image) {
+ throw new Error("SupportedView.scalable_image does not exist where it should.");
+ }
+ for (const child of metaXML.root.children) if (child.name === 'Metadata') {
+ for (const entry of child.children) if (entry.name === 'Information') {
+ for (const properties of entry.children) if (properties.name === 'Image') {
+ for (const property of properties.children) if (
+ property.name === 'SizeX' && property.content
+ ) {
+ totalSizeX = Number.parseInt(property.content, 10);
+ supportedViews.scalable_image.width = totalSizeX;
+ continue;
+ } else if (property.name === 'SizeY' && property.content) {
+ totalSizeY = Number.parseInt(property.content, 10);
+ supportedViews.scalable_image.height = totalSizeY;
+ continue;
+ } else if (property.name === 'Dimensions') {
+ for (const chan of property.children) if (chan.name === 'Channels') {
+ for (const channel of chan.children) {
+ supportedViews.scalable_image.channels.push({
+ channel_id: channel.attributes.Id.split(':')[1],
+ channel_name: channel.attributes.Name,
+ metadata: channel.children
+ });
+ }
+ }
+ }
+ break;
+ }
+ break;
+ }
+ break;
+ }
+ for (const child of metaXML.root.children) if (child.name === 'Metadata') {
+ for (const entry of child.children) if (entry.name === 'Scaling') {
+ for (const properties of entry.children) if (properties.name === 'Items') {
+ for (const dist of properties.children) if (dist.name === 'Distance') {
+ switch (dist.attributes.Id) {
+ case 'X': {
+ supportedViews.scalable_image.real_width = {};
+ for (const attr of dist.children) {
+ if (attr.name === 'Value' && attr.content !== undefined) {
+ supportedViews.scalable_image.real_width.value =
+ Number.parseFloat(attr.content) * 1000000 * totalSizeX;
+ } else if (attr.name === 'DefaultUnitFormat') {
+ supportedViews.scalable_image.real_width.units = attr.content;
+ }
+ }
+ break;
+ }
+ case 'Y': {
+ supportedViews.scalable_image.real_height = {};
+ for (const attr of dist.children) {
+ if (attr.name === 'Value' && attr.content !== undefined) {
+ supportedViews.scalable_image.real_height.value =
+ Number.parseFloat(attr.content) * 1000000 * totalSizeY;
+ } else if (attr.name === 'DefaultUnitFormat') {
+ supportedViews.scalable_image.real_height.units = attr.content;
}
}
+ break;
}
}
}
+ break;
}
+ break;
}
+ break;
}
-}
+ supportedViews.scalable_image.metadata = metaXML;
+};
+/* tslint:enable:curly cyclomatic-complexity */
-// Get all values of X and Y respectively.
-const uniqueX: number[] = dataBlocks.map((x: Segment) => getDimension(x, 'X').Start).filter(
- (item: number, index: number, array: number[]) => array.indexOf(item) === index);
-const uniqueY: number[] = dataBlocks.map((x: Segment) => getDimension(x, 'Y').Start).filter(
- (item: number, index: number, array: number[]) => array.indexOf(item) === index);
-
-const uniqueTileSizes: number[][] = [];
-for (const seg of dataBlocks) {
-
- const x: number = getDimension(seg, 'X').Size;
- const y: number = getDimension(seg, 'Y').Size;
- let found: boolean = false;
- for (const dimPair of uniqueTileSizes) {
- if (x === dimPair[0] && y === dimPair[1]) {
- found = true;
- break;
+////////////////////////////////////////////////////////////////////////////////
+// Begin work on getting the new tiles all nice
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ * This is used to create the next zoomed out tier of the given height map
+ */
+const zoomTier: (
+ previousHeightMap: CZIHeightMap, p: number, c: number
+) => Promise<CZIHeightMap> = async(
+ previousHeightMap: CZIHeightMap, p: number, c: number
+): Promise<CZIHeightMap> => {
+
+ const squashRow = async (previousPlane: CZITile[][], ys: number, p: number): Promise<CZITile[]> => {
+
+ const squashQuad = async (previousPlane: CZITile[][], ys: number, xs: number, p: number): Promise<CZITile> => {
+ if (await exists(`${outputImageDirectory}img-c${c}-p${p}-y${ys * tileSize}-x${xs * tileSize}.png`) && (ys < previousPlane.length)) {
+ finalCZIJson.total_files++;
+ return {
+ x_offset: xs * tileSize,
+ y_offset: ys * tileSize,
+ width: tileSize,
+ height: tileSize,
+ file: `img-c${c}-p${p}-y${ys}-x${xs}.png`
+ };
+ }
+
+ // Combine 4 tiles into a new tile and scale down for this tier
+ // Top left
+ let quadrents:string = `${outputImageDirectory}${previousPlane[ys][xs].file} `;
+ let across:number = 1;
+ let quadrentCount: number = 1;
+
+ // Combine top right
+ const moreToRight: boolean = (xs + 1) < previousPlane[0].length;
+ if (moreToRight) {
+ quadrents += `${outputImageDirectory}${previousPlane[ys][xs + 1].file} `;
+ across++; quadrentCount++;
+ }
+ // Combine bottom left
+ const moreToBottom: boolean = (ys + 1) < previousPlane.length;
+ if (moreToBottom) {
+ quadrents += `${outputImageDirectory}${previousPlane[ys + 1][xs].file} `;
+ quadrentCount++;
+ }
+ // Combine bottom right
+ if (moreToBottom && moreToRight) {
+ quadrents += `${outputImageDirectory}${previousPlane[ys + 1][xs + 1].file} `;
+ }
+
+ let outputFileName: string =`${outputImageData}/tmp/${uuid.generate()}.png`;
+ shell.exec(`${execpaths} vips arrayjoin "${quadrents}" ${outputFileName} --across ${across}`, {silent: true});
+
+ // Rescale and push to file
+ if (quadrentCount !== 3) {
+
+ let extRight: number = 0, extBottom: number = 0;
+ if (moreToRight) {
+ extBottom = tileSize;
+ } else if (moreToBottom){
+ extRight = tileSize;
+ }
+
+ sharp(await sharp(outputFileName)
+ .background({r: 0, g: 0, b: 0, alpha: 1})
+ .extend({
+ top: 0, left: 0,
+ bottom: extBottom, right: extRight
+ }).toBuffer())
+ .resize(tileSize, tileSize)
+ .toFile(`${outputImageDirectory}img-c${c}-p${p}-y${ys * tileSize}-x${xs * tileSize}.png`);
+ } else {
+ await sharp(outputFileName)
+ .resize(tileSize, tileSize)
+ .toFile(`${outputImageDirectory}img-c${c}-p${p}-y${ys * tileSize}-x${xs * tileSize}.png`);
+ }
+ shell.exec(`rm ${outputFileName}`, {silent: true});
+
+ finalCZIJson.total_files++;
+ return {
+ x_offset: previousPlane[ys][xs].x_offset,
+ y_offset: previousPlane[ys][xs].y_offset,
+ width: previousPlane[ys][xs].width * 2,
+ height: previousPlane[ys][xs].height * 2,
+ file: `img-c${c}-p${p}-y${ys * tileSize}-x${xs * tileSize}.png`
+ };
}
+
+ const cziRow: Promise<CZITile>[] = [];
+ // For all columns within the previous plane
+ for (let xs: number = 0; xs < previousPlane[0].length; xs += 2) {
+ cziRow.push(squashQuad(previousPlane, ys, xs, p));
+ }
+
+ return await Promise.all(cziRow);
}
- if (!found) {
- uniqueTileSizes.push([x, y]);
+
+ const newZoomTier: CZIHeightMap = {
+ zoom_level: previousHeightMap.zoom_level * 2, plane: []
+ };
+
+ // Check the condition where another zoom level does not make sense
+ if (previousHeightMap.plane.length === 1
+ && previousHeightMap.plane[0].length === 1) {
+ console.log(
+ ' Task(1/1): ' +
+ 'Stage 100% complete. ' +
+ 'Stage was skipped as maximum sensible zoom level was reached.'
+ );
+ return previousHeightMap;
}
-}
-let filteredDataBlocks: Segment[] = [];
-const filterC: Function = function(to: number): void {
- filteredDataBlocks = dataBlocks.filter(
- (item: Segment, index: number, array: Segment[]) => getDimension(item, 'C').Start === to
- );
-};
+ const newplane: CZITile[][] = [];
+ // For all rows within the previous plane
+ for (let ys: number = 0; ys < previousHeightMap.plane.length; ys += 2) {
+ newplane.push(await squashRow(previousHeightMap.plane, ys, p));
+
+ console.log(
+ ` Task(${ys / 2 + 1}/${
+ Math.floor(previousHeightMap.plane.length / 2) + 1}): ` +
+ `Stage ${Math.ceil(((ys / previousHeightMap.plane.length)
+ * 100) * 100) / 100}% complete. `
+ );
+ }
-////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+ newZoomTier.plane = newplane;
+ newZoomTier.tile_height_count = newZoomTier.plane.length;
+ newZoomTier.tile_width_count = newZoomTier.plane[0].length;
-// Begin work on getting the new tiles all nice
-// Print out all of the related tiles to every new tile to be created.
-let filecoutner: number = 0;
-async function extrapolateDimension(cVal: number, totalCs: number, maxZoomLevel: number): Promise<CZIHeightMap[]> {
- console.log(`Stage (${cVal + 1}/${totalCs}): Task(0/${Math.ceil(totalSizeY / tileSize)}): 0% complete.`);
- for (let ys: number = 0; ys < totalSizeY;) {
- let timing = process.hrtime();
- for (let xs: number = 0; xs < totalSizeX; xs += tileSize) {
- const desired = new TileBounds (
+ return newZoomTier;
+};
+
+/**
+ * Big boi function to build up the base tier of each value of c, then builds
+ * Our pre-computed pyramid of the rest of the zoom levels.
+ */
+const extrapolateDimension: (
+ cVal: number, totalCs: number, maxZoom: number
+) => Promise<CZIHeightMap[]> = async(
+ cVal: number, totalCs: number, maxZoom: number
+): Promise<CZIHeightMap[]> => {
+
+ const doOneRow = (ys: number, filteredDataBlocks: Segment[]): Promise<CZITile[]> => {
+
+ const doOneBaseTile = async(xs: number, ys: number, filteredDataBlocks: Segment[]): Promise<CZITile> => {
+ if (await exists(`${outputImageDirectory}img-c${cVal}-p0-y${ys}-x${xs}.png`) && (ys + tileSize < totalSizeY)) {
+ ///////////////////////////////////////////////////////////////////////////////////This if statement should be temporary??????????????????????????????????/
+ finalCZIJson.total_files++;
+ return {
+ x_offset: xs,
+ y_offset: ys,
+ width: tileSize,
+ height: tileSize,
+ file: `img-c${cVal}-p0-y${ys}-x${xs}.png`
+ };
+ }
+ const desired: TileBounds = new TileBounds(
xs - tileOverlap,
xs + tileSize + tileOverlap,
ys - tileOverlap,
ys + tileSize + tileOverlap
);
- filterC(cVal);
- // console.log(filteredDataBlocks.map((x: any) => x.Data.DirectoryEntry.DimensionEntries[2]));
- const sortedSegments: Segment[][] = orderSegments(findRelatedTiles(filteredDataBlocks, desired));
- (await extractAndStitchChunks(sortedSegments, desired)).toFile(`${outputImageDirectory}img-${filecoutner++}`);
+ const sortedSegments: Segment[][] =
+ orderSegments(findRelatedTiles(filteredDataBlocks, desired));
+
+ (await extractAndStitchChunks(sortedSegments, desired))
+ .toFile(`${outputImageDirectory}img-c${cVal}-p0-y${ys}-x${xs}.png`);
+
+ return {
+ x_offset: xs,
+ y_offset: ys,
+ width: tileSize,
+ height: tileSize,
+ file: `img-c${cVal}-p0-y${ys}-x${xs}.png`
+ };
}
- ys += tileSize;
- timing = process.hrtime(timing);
- console.log(`Stage (${cVal + 1}/${totalCs}): Task(${ys / tileSize}/${Math.ceil(totalSizeY / tileSize)}): ${Math.ceil(((ys / totalSizeY) * 100) * 100) / 100}% complete. (${timing[0]} sec/iter)`);
+
+ const rowPromises: Promise<CZITile>[] = [];
+
+ for (let xs: number = 0; xs < totalSizeX; xs += tileSize) {
+ rowPromises.push(doOneBaseTile(xs, ys, filteredDataBlocks));
+ finalCZIJson.total_files++;
+ }
+
+ return Promise.all(rowPromises);
}
- return [];
-}
-const finalCZIJson: WholeCZIHierarchy = {} as any;
-async function main(): Promise<void> {
- for (const cval of supportedViews.scalable_image.channels) {
- await extrapolateDimension(Number.parseInt(cval.channel_id, 10), supportedViews.scalable_image.channels.length, maxZoom).then((v) => {
- finalCZIJson.c_values.push({channel_id: cval.channel_id, height_map: v});
- console.log(`Completed Tier: ${cval.channel_id}`);
+ const filteredDataBlocks: Segment[] = dataBlocks.filter(
+ (item: Segment, index: number, array: Segment[]) =>
+ getDimension(item, 'C').Start === cVal
+ );
+ // Begin output for the base tier
+ console.log('=========================================================');
+ console.log(`>> Beginning Dimension Extrapolation for \'C\' : ${cVal}`);
+ console.log('=========================================================');
+ console.log('>> Computing base tier, this will take a while...\n');
+ const baseCZIHeightMap: CZIHeightMap = {zoom_level: 1, plane: []};
+
+ console.log(`Stage (${cVal * Math.log2(maxZoom) + 1}/${totalCs}):`);
+ // For all rows within the total base pixel height
+ const plane: CZITile[][] = [];
+ for (let ys: number = 0; ys < totalSizeY; ys += tileSize) {
+ plane.push(await doOneRow(ys, filteredDataBlocks));
+
+ process.stdout.write("\r");
+ console.log(
+ ` Task(${ys / tileSize}/${Math.ceil(totalSizeY / tileSize)}): ` +
+ `Stage ${Math.ceil(((ys / totalSizeY) * 100) * 100) / 100}% complete. `
+ );
+ }
+ baseCZIHeightMap.plane = plane;
+ baseCZIHeightMap.tile_height_count = baseCZIHeightMap.plane.length;
+ baseCZIHeightMap.tile_width_count = baseCZIHeightMap.plane[0].length;
+
+ // BUILD UP THE HIGHER ZOOM LAYERS.
+ console.log(`>> Base tier complete for \'C\': ${cVal
+ }; Begin computing zoom tiers...\n`);
+
+ const retHeightMap: CZIHeightMap[] = [baseCZIHeightMap];
+ writeJSONToFile(`${outputImageData}/intermediate-stage-map.json`, retHeightMap);
+ for (let stage: number = 1; stage <= Math.log2(maxZoom); stage++) {
+ console.log(`Stage (${cVal * Math.log2(maxZoom) + 1 + stage}/${totalCs}):`);
+ await zoomTier(retHeightMap[stage - 1], stage, cVal)
+ .then((v: CZIHeightMap) => {
+ retHeightMap.push(v);
return;
- }, (err) => {
- console.error(err);
}
);
+ writeJSONToFile(`${outputImageData}/intermediate-stage-map.json`, retHeightMap);
+ }
+
+ console.log(`>> Completed Extrapolation for dimension, \'C\': ${cVal}\n\n`);
+ return retHeightMap;
+};
+
+
+/**
+ * used to write the supported views object to file both in total and "cleaned"
+ */
+const createSupportedViewsObject: () => void = async(): Promise<void> => {
+ dataBlocks = require(`${extractDirectory}outputjson.json`)
+ .czi.filter((s: Segment) =>
+ s.Id === 'ZISRAWSUBBLOCK' && s.Data.Data !== 'empty'
+ );
+ // Parse the xml
+ await parseExtractedXML(`${extractDirectory}FILE-META-1.xml`);
+
+ // Create the total supported Views object
+ // !!!!! This line was removed in order to reduce the output file size and
+ // !!!!! increase the usability by only giving the striped down version
+ // writeJSONToFile(`${outputImageData}/supported_views.json`, supportedViews);
+
+ // Cleanup and create "smart" supported views object without whole metadata
+ cleanSupportedViews(supportedViews);
+ if (!supportedViews.scalable_image) {
+ throw new Error("SupportedView.scalable_image does not exist where it should.");
+ }
+ supportedViews.scalable_image.metadata = {
+ tile_size: tileSize,
+ max_zoom: maxZoom,
+ tile_overlap: tileOverlap
+ };
+ writeJSONToFile(
+ `${outputImageData}/supported_views.json`, supportedViews);
+};
+
+/**
+ * Used to build up a pyramid for each value of c from the base images
+ */
+const buildCustomPyramids: () => Promise<boolean> = async(): Promise<boolean> => {
+ // Set some variables for errors and and percent counts
+ let errorOccurred: boolean = false;
+ finalCZIJson.zoom_level_count = Math.log2(maxZoom) + 1;
+
+ // For all channels in the base image
+ if (!supportedViews.scalable_image) {
+ throw new Error("SupportedView.scalable_image does not exist where it should.");
}
- fs.writeFile(`${outputImageDirectory}layout.json`, JSON.stringify(finalCZIJson), (err) => console.error(err));
+ for (const cval of supportedViews.scalable_image.channels) {
+
+ errorOccurred = false;
+ if (!errorOccurred) {
+ // Extract the base tiles and build up custom pyramid data
+ await extrapolateDimension(
+ Number.parseInt(cval.channel_id, 10),
+ supportedViews.scalable_image.channels.length * Math.log2(maxZoom * 2),
+ maxZoom
+ ).then((v: CZIHeightMap[]) => {
+ // On success, add the new heightmap to the final json data block
+ finalCZIJson.c_values.push({channel_id: cval.channel_id, height_map: v});
+ finalCZIJson.c_value_count++;
+ return;
+ }).catch((err: Error) => {
+ // On error, write the error to console and set an error true.
+ if (err) {
+ console.error(err.message);
+ }
+ errorOccurred = true;
+ }
+ );
+ } else {
+ console.error(`\nAn error occurred while extracting dimension: ${cval}`);
+ console.error('Skipping futher elements and moving to next dimension.\n\n');
+ }
+ // Write the final json data to file with most recent changes
+ writeJSONToFile(`${outputImageData}/layout.json`, finalCZIJson);
+ }
+ finalCZIJson.complete = true;
+ return errorOccurred;
+};
+
+const initialExtractAndConvert: (absFilePath: string, space: string) => Promise<void> = async (absFilePath: string, space: string): Promise<void> => {
+
+ outputImageData = space;
+ extractDirectory = outputImageData + "/extract/";
+ outputImageDirectory = outputImageData + "/data/";
+
+ checkForOutputDirectories([outputImageData, extractDirectory]);
+ console.log(">> This will complete at roughly 2GB/min");
+ shell.exec(`${execpaths} CZICrunch ${absFilePath} ${extractDirectory}`);
+
+ shell.exec(`${execpaths} python3 convertJxrs.py ${extractDirectory}`);
+
+ // let totalFiles: number = 0, counter: number = 0;
+ // console.log("=========== BEGIN JXR CONVERSION ===========")
+ //
+ // let filenames: string[] = (await readdir(extractDirectory)).filter((x: string) => x.endsWith(".jxr"));
+ // counter = 0
+ // totalFiles = filenames.length;
+ //
+ // const doOne: (n: number, file: string, asTif: string) => Promise<void> = async(n: number, file: string, asTif: string): Promise<void> => {
+ // shell.exec(`${execpaths} JxrDecApp -i ${file} -o ${asTif}`);
+ // shell.exec(`convert ${asTif} ${file.substring(0, file.lastIndexOf('.'))}.png`);
+ // shell.exec(`rm ${file} ${asTif}`);
+ // console.log (`> Processed File: ${n}/${totalFiles} : ${file} --> ${file.substring(0, file.lastIndexOf('.'))}.png`);
+ // }
+ //
+ // try {
+ // let promises: Promise<void>[] = [];
+ // for (let index: number = 0; index < filenames.length; index++) {
+ //
+ // if (promises.length < 30) {
+ // let file = extractDirectory + filenames[index];
+ // promises.push(doOne(counter++, file, file.substring(0, file.lastIndexOf('.')) + ".tif"));
+ // } else {
+ // index--;
+ // await Promise.all(promises);
+ // promises.length = 0;
+ // }
+ // }
+ // await Promise.all(promises);
+ // } catch (err) {
+ // console.log("Processing Failed. Probably couldn't find decoder due to invalid system environment path, check this before debugging. Actual Err:");
+ // console.error(err);
+ // }
+ // console.log("=========== FINISH JXR CONVERSION ===========")
}
-main();
+
+process.on("warning", (err: any) => console.warn(err))
+/**
+ * Main function used to call the rest of the relevant code to crunch a CZI
+ * extraction.
+ */
+export const main: (original: string, space:string) => Promise<void> = async (original: string, space:string): Promise<void> => {
+ console.log('\n');
+
+ try {
+ console.log('>> Extracting from CZI and Converting to PNG');
+ await initialExtractAndConvert(original, space);
+
+ console.log('\n>> Checking/Creating output directories...');
+ checkForOutputDirectories([outputImageDirectory, `${outputImageData}/tmp/`]);
+
+ console.log('\n>> Creating Supported Views and writing files...');
+ await createSupportedViewsObject();
+
+ console.log('\n');
+ if (await buildCustomPyramids()) {
+ console.log('>> Removing the initial extraction bloat');
+ shell.exec(`rm -rf ${outputImageData}/extract/`, { async: true })
+ };
+
+ console.log("\n>> Done");
+ } catch (Err) {
+ console.error("This was a really big boi error, and something is sad: ");
+ console.error(Err);
+ }
+};
+// main();
+
+// /* tslint:disable */
+// async function main2() {
+//
+// let layout: WholeCZIHierarchy = require(`${outputImageData}layout.json`);
+//
+// for (let stage:number = 1; stage < Math.sqrt(maxZoom); stage++) {
+// await zoomTier(layout.c_values[0].height_map[stage - 1])
+// .then((v: CZIHeightMap) =>
+// {
+// writeJSONToFile(`${outputImageData}stageMap-${stage}.json`, v);
+// return;
+// }
+// );
+// }
+// }
+//
+// main2().then().catch(e => console.log(e));
diff --git a/src/conversion/czi/cziConvert.sh b/src/conversion/czi/cziConvert.sh
index 639251c..dd664d5 100755
--- a/src/conversion/czi/cziConvert.sh
+++ b/src/conversion/czi/cziConvert.sh
@@ -1,8 +1,11 @@
#!/bin/sh
+FILENAME='2016_12_17__0701'
CZI_WORKING_DIR=${1:-"/cs/scratch"}
-CZI_EXTRACTION_DIR=${2:-"0701-extraction"}
-CZI_FILE=${3:-"2016_12_17__0701.czi"}
+CZI_EXTRACTION_DIR=${2:-${FILENAME}}
+CZI_FILE=${3:-${FILENAME}".czi"}
+
+echo "about to try to convert: " + ${CZI_WORKING_DIR}/${USER}/${CZI_FILE}
gcc -Wall -Wextra --pedantic -std=c99 cziconvert.c
mkdir -p ${CZI_WORKING_DIR}/${USER}/${CZI_EXTRACTION_DIR}
diff --git a/src/conversion/czi/cziconvert.c b/src/conversion/czi/cziconvert.c
index 85b925c..3024e7c 100644
--- a/src/conversion/czi/cziconvert.c
+++ b/src/conversion/czi/cziconvert.c
@@ -284,8 +284,8 @@ int functionRouter(FILE* imageFile, FILE* jsonOutput, long* fileOffset) {
int main(int argc, char* argv[]) {
//Check program input arguments.
- if (argc < 2 || argc > 4) {
- printf("Invalid number of arguments passed in.\nUsage:\n\n./prog <input file> <outputjson> <pythonJxrConvertor>\n\n");
+ if (argc < 2 || argc > 3) {
+ printf("Invalid number of arguments passed in.\nUsage:\n\n./prog <input file> <outputjson>\n\n");
exit(1);
}
@@ -340,15 +340,5 @@ int main(int argc, char* argv[]) {
fclose(jsonOutput);
printf("\n=========== FINISH CZI EXTRACTION ===========\n\n\n\n");
-
- //convert all the data's to jxr;
- char jxrLoc[200];
- sprintf(jxrLoc, "%s %s %s", "python3", argv[3], argv[2]);
- system(jxrLoc);
-
-
- //begin work on re-factoring the image structure into a "smooth" grid
-
-
return 0;
}
diff --git a/src/conversion/czi/pyramidWorker.ts b/src/conversion/czi/pyramidWorker.ts
new file mode 100644
index 0000000..6b12409
--- /dev/null
+++ b/src/conversion/czi/pyramidWorker.ts
@@ -0,0 +1,93 @@
+import { WholeCZIHierarchy, CZIHeightMap, CZITile, CZITileRequest } from '../types/customPyramidIndex';
+import { TileBounds, execpaths } from '../types/helpers';
+import * as sharp from 'sharp';
+import { isTileRelated } from './tileExtraction';
+import { uuid } from '../../uuid'
+import * as fs from 'fs';
+import { RequestError } from '../../errors'
+const readFile = require('util').promisify(fs.readFile);
+
+const findRelatedTiles: Function = function(plane: CZIHeightMap, desired: TileBounds): CZITile[][] {
+
+ const relatedTiles: CZITile[][] = [];
+ for (const planeTileRow of plane.plane) {
+ let tileRow: CZITile[] = [];
+ let foundTiles: boolean = false;
+
+ for (const tile of planeTileRow) {
+
+ if (isTileRelated(
+ new TileBounds(
+ tile.x_offset,
+ tile.x_offset + tile.width,
+ tile.y_offset,
+ tile.y_offset + tile.height
+ ), desired)
+ ) {
+ tileRow.push(tile);
+ foundTiles = true;
+ }
+ }
+ if (foundTiles) {
+ relatedTiles.push(tileRow);
+ }
+ }
+ return relatedTiles;
+};
+
+export const getTile: Function = async function(imageDir: string, cVal: string, x:number = 0, y:number = 0, w:number = 1024, h:number = 1024, zoom: number = 1): Promise<Buffer> {
+ let layout: WholeCZIHierarchy = JSON.parse(await readFile(imageDir + "/layout.json", 'utf8'));
+
+ let bound: TileBounds = new TileBounds(x, x + w, y, y + h);
+ let map: CZIHeightMap;
+ try {
+ map = layout.c_values[Number(cVal)].height_map[Math.floor(Math.log2(zoom))]
+ } catch {
+ throw new RequestError(400, "bad_zoom_index")
+ }
+
+ return readFile((await getFinalTile(imageDir, map, cVal, bound)).file_path);
+}
+
+const getFinalTile: Function = async function(imageDir: string, imageTier: CZIHeightMap, cVal: string, desiredRegion: TileBounds): Promise<CZITileRequest> {
+
+ console.error("Has the calling function checked that the image has completed processing in WholeCZIHierarchy??");
+
+ let involvedTiles: string = '';
+ for (const row of imageTier.plane) {
+ for (const tile of row) {
+ involvedTiles += `${imageDir}/data/${tile.file} `
+ }
+ }
+
+ let outputFileName: string =`${imageDir}/tmp/${uuid.generate()}.png`
+ require('shelljs').exec(`${execpaths} vips arrayjoin "${involvedTiles}" ${outputFileName} --across ${imageTier.plane[0].length}`)
+
+ let extractionRegion = new TileBounds(
+ desiredRegion.left - imageTier.plane[0][0].width,
+ desiredRegion.right - imageTier.plane[0][0].width,
+ desiredRegion.top - imageTier.plane[0][0].height,
+ desiredRegion.bottom - imageTier.plane[0][0].height
+ );
+ extractionRegion.scaleDown(imageTier.zoom_level);
+
+ await sharp(outputFileName)
+ .extract({
+ top: extractionRegion.top,
+ left: extractionRegion.left,
+ width: extractionRegion.width(),
+ height: extractionRegion.height()
+ })
+ .toFile(outputFileName);
+
+ return {
+ dimensions: new TileBounds(
+ 0, extractionRegion.width(),
+ 0, extractionRegion.height()
+ ),
+ original_bounds: desiredRegion,
+ zoom_level: imageTier.zoom_level,
+ c_value: cVal,
+ file_path: outputFileName
+ };
+}
diff --git a/src/conversion/czi/tileDims.png b/src/conversion/czi/tileDims.png
new file mode 100644
index 0000000..70e2484
--- /dev/null
+++ b/src/conversion/czi/tileDims.png
Binary files differ
diff --git a/src/conversion/czi/tileExtraction.ts b/src/conversion/czi/tileExtraction.ts
new file mode 100644
index 0000000..83f63a5
--- /dev/null
+++ b/src/conversion/czi/tileExtraction.ts
@@ -0,0 +1,122 @@
+import { TileBounds } from '../types/helpers';
+
+export const isTileRelated: Function = function(origCoords: TileBounds, desired: TileBounds): boolean {
+
+ if (((desired.left >= origCoords.left) &&
+ (desired.left < origCoords.right)) ||
+
+ // Desired X on right is within the current tile
+ ((desired.right > origCoords.left) &&
+ (desired.right <= origCoords.right)) ||
+
+ // Desired tile X overlaps base tile
+ ((desired.left < origCoords.left) &&
+ (desired.right > origCoords.right))) {
+
+ // Desired Y on top is within current tile
+ if (((desired.top >= origCoords.top) &&
+ (desired.top < origCoords.bottom)) ||
+
+ // Desired Y on right is within the current tile
+ ((desired.bottom > origCoords.top) &&
+ (desired.bottom <= origCoords.bottom)) ||
+
+ // Desired tile Y overlaps whole base tile
+ ((desired.top < origCoords.top) &&
+ (desired.bottom > origCoords.bottom))) {
+
+ //If all of the if statements have passed, then this tile
+ //is part of the overlap for the new tile to be created.
+ return true;
+ }
+ }
+ return false;
+};
+
+/*
+ * Takes a base tile, and the whole bounds of a new tile, and uses this
+ * to calculate the region within the base tile that is overlapping the new tile
+ * to be extracted.
+ */
+export const regionToExtract: Function = function(baseBounds: TileBounds, desired: TileBounds, zoomLevel: number): TileBounds {
+
+ //get the base tile area and create an object for the chunk to extract
+ const chunkToExtract: TileBounds = new TileBounds(-1, -1, -1, -1);
+
+ // check if the new tile overlaps the leftmost boundary
+ if (desired.left <= baseBounds.left) {
+ chunkToExtract.left = 0;
+ } else {
+ chunkToExtract.left = desired.left - baseBounds.left;
+ }
+
+ // check if the new tile overlaps the rightmost boundary
+ if (desired.right >= baseBounds.right) {
+ chunkToExtract.right = baseBounds.right - baseBounds.left;
+ } else {
+ chunkToExtract.right = desired.right - baseBounds.left;
+ }
+
+ // check if the new tile overlaps the top boundary
+ if (desired.top <= baseBounds.top) {
+ chunkToExtract.top = 0;
+ } else {
+ chunkToExtract.top = desired.top - baseBounds.top;
+ }
+
+ // check if the new tile overlaps the bottom boundary
+ if (desired.bottom >= baseBounds.bottom) {
+ chunkToExtract.bottom = baseBounds.bottom - baseBounds.top;
+ } else {
+ chunkToExtract.bottom = desired.bottom - baseBounds.top;
+ }
+
+ if (chunkToExtract.left < 0 || chunkToExtract.right < 0 || chunkToExtract.top < 0 || chunkToExtract.bottom < 0) {
+ throw new Error('Chunk to extract from base tile has invalid bound (< 0).');
+ }
+
+ chunkToExtract.left = Math.ceil(chunkToExtract.left / zoomLevel);
+ chunkToExtract.right = Math.ceil(chunkToExtract.right / zoomLevel);
+ chunkToExtract.top = Math.ceil(chunkToExtract.top / zoomLevel);
+ chunkToExtract.bottom = Math.ceil(chunkToExtract.bottom / zoomLevel);
+
+ //return the slice within the base tile for extraction
+ return chunkToExtract;
+};
+
+// export const createHorizontalImageSlice: Function = async function (bufferBound: TileBounds, tileSize: number, tileOverlap: number, rowLength:number, row: Buffer[]): Promise<Buffer> {
+// //prepare variables to squash all of the column data into one, for this row
+// let imageVerticalSlice: SharpInstance = sharp(row[0]);
+// //check if the inital chunk needs to be extended to support the other columns
+// if ((bufferBound.right - bufferBound.left) < (tileSize - tileOverlap)) {
+// imageVerticalSlice = await imageVerticalSlice.background({r: 0, g: 0, b: 0, alpha: 0}).extend(
+// {top:0, left:0, bottom:0, right: (tileSize - (bufferBound.right - bufferBound.left))});
+// }
+// //for every column along this row, join it to the previous column data
+// for (let index = 1; index < rowLength; index++) {
+// imageVerticalSlice = await imageVerticalSlice
+// .overlayWith(row[index],
+// {top: 0, left: (bufferBound.right - bufferBound.left) + ((index -1) * tileSize)});
+// }
+// return imageVerticalSlice.toBuffer();
+// }
+//
+//
+// export const createImageFromHorizontalSlices: Function = async function(bufferBound: TileBounds, horizontalSlices: Buffer[], tileSize: number, tileOverlap: number, rowCount: number, tiles: CZITile[][]): Promise<SharpInstance> {
+// //prepare variables used to combine all rows into one image
+// let finalImage: SharpInstance = sharp(horizontalSlices[0]);
+//
+// //Check if the inital row needs to be extended to support further rows
+// if ((bufferBound.bottom - bufferBound.top) < (tileSize - tileOverlap)) {
+// finalImage = await finalImage.background({r: 0, g: 0, b: 0, alpha: 0}).extend(
+// {top:0, left:0, bottom: (tileSize - (bufferBound.bottom - bufferBound.top)), right: 0});
+// }
+// //For all further rows in the image, combine it with the previous rows' data
+// for (let index = 1; index < rowCount; index++) {
+// finalImage = finalImage.overlayWith(
+// horizontalSlices[index],
+// {top: tiles[index - 1][0].height, left: 0});
+// }
+//
+// return finalImage;
+// }
diff --git a/src/conversion/leica/requestconvertor.ts b/src/conversion/leica/requestconvertor.ts
new file mode 100644
index 0000000..50002d7
--- /dev/null
+++ b/src/conversion/leica/requestconvertor.ts
@@ -0,0 +1 @@
+import { logger } from '../../logger';
diff --git a/src/conversion/leica/scn.ts b/src/conversion/leica/scn.ts
new file mode 100644
index 0000000..5d75cb3
--- /dev/null
+++ b/src/conversion/leica/scn.ts
@@ -0,0 +1,95 @@
+import * as fs from 'fs';
+import * as sharp from 'sharp';
+// tslint:disable-next-line:no-duplicate-imports
+import { SharpInstance } from 'sharp';
+import { SupportedViews, TileBounds, writeJSONToFile, checkForOutputDirectories, execpaths } from '../types/helpers';
+import { uuid } from '../../uuid'
+import { logger } from '../../logger';
+
+// CHANGE ME FOR TESTING!!!!!
+const input: string = "diseessse1.scn"
+const baseDirname: string = '/cs/scratch/cjd24/tifers/';
+
+
+
+// Various constants for placing files and defining tiles
+const extensionBinariesDir: string = __dirname + `/../../../ext/bin/`;
+
+const tileOverlap: number = 0; // Overlap is only half implemented
+const tileSize: number = 512;
+
+
+const crunchLeica: () => Promise<string> = async (): Promise<string> => {
+
+ try {
+ let output: string =`${baseDirname}${uuid.generate()}/`;
+ let leica: SharpInstance = sharp(baseDirname + input).png();
+ logger.debug("Read new sharp instance for lecia: " + input);
+
+ checkForOutputDirectories([output]);
+ logger.info("Creating new output directory for LECIA > DZI @ " + output);
+
+ let meta: sharp.Metadata = await leica.metadata();
+
+ let width: number = -1;
+ let height: number = -1;
+ if (meta.width !== undefined) {
+ width = meta.width;
+ }
+ if (meta.height !== undefined) {
+ height = meta.height;
+ }
+
+ let supportedViews: SupportedViews = {
+ scalable_image: {
+ width: width,
+ height: height,
+ channels:
+ [{
+ channel_id: '-1',
+ channel_name: '-1',
+ metadata: {}
+ }],
+ metadata: {
+ tile_size: tileSize,
+ max_zoom: "Not yet supported in this version of convertor",
+ tile_overlap: tileOverlap,
+ exif: meta.exif
+ }
+ }
+ }
+
+ let channels: any = [];
+ if (meta.channels !== undefined) {
+ for (let index: number = 0; index < meta.channels; index++) {
+ channels.push({
+ channel_id: `${index}`,
+ channel_name: `${meta.space}`,
+ metadata: {}
+ })
+ }
+ supportedViews.scalable_image.channels = channels;
+ }
+
+ writeJSONToFile(`${output}supported_views.json`, supportedViews)
+ logger.info("Wrote supported_views object for: " + output);
+
+ await sharp(baseDirname + input)
+ .png()
+ .tile({
+ size: tileSize,
+ overlap: tileOverlap,
+ layout: "dz"
+ })
+ .toFile(`${output}output`);
+ logger.success(`Finalised output of ${input} as .dzi`);
+ return `${output}output.dzi`;
+ }
+ catch (err) {
+ logger.failure(`Lecia conversion failed with error: ${err}`)
+ return `Lecia conversion failed with error: ${err}`;
+ }
+};
+
+
+crunchLeica().then((ret:string) => console.log(ret));
diff --git a/src/conversion/types/customPyramidIndex.ts b/src/conversion/types/customPyramidIndex.ts
new file mode 100644
index 0000000..3c367b7
--- /dev/null
+++ b/src/conversion/types/customPyramidIndex.ts
@@ -0,0 +1,37 @@
+import { TileBounds } from './helpers'
+
+//The following are interfaces for the Custom object storing Information
+//about the CUSTOM pyramid being created for this image
+export interface CZITile {
+ x_offset: number;
+ y_offset: number;
+ width: number;
+ height: number;
+ file: string;
+}
+
+export interface CZIHeightMap {
+ zoom_level: number;
+ tile_width_count?: number;
+ tile_height_count?: number;
+ plane: CZITile[][];
+}
+
+export interface WholeCZIHierarchy {
+ c_value_count: number;
+ zoom_level_count: number;
+ total_files: number;
+ complete: boolean;
+ c_values: {
+ channel_id: string,
+ height_map: CZIHeightMap[];
+ }[];
+}
+
+export interface CZITileRequest {
+ dimensions: TileBounds,
+ original_bounds: TileBounds,
+ zoom_level: number,
+ c_value: string,
+ file_path: string
+}
diff --git a/src/conversion/types/cziBinaryTypings.ts b/src/conversion/types/cziBinaryTypings.ts
new file mode 100644
index 0000000..a78b4e9
--- /dev/null
+++ b/src/conversion/types/cziBinaryTypings.ts
@@ -0,0 +1,23 @@
+//Interfaces used to define the tiles incoming from the CZI extraction
+
+export interface Dimension {
+ Dimension: string;
+ Start: number;
+ Size: number;
+}
+
+export interface DirectoryEntry {
+ DimensionCount: number;
+ DimensionEntries: Dimension[];
+}
+
+export interface SubBlock {
+ DirectoryEntry: DirectoryEntry;
+ Data: string;
+}
+
+export interface Segment {
+ Id: string;
+ UsedSize: number;
+ Data: SubBlock;
+}
diff --git a/src/conversion/types/helpers.ts b/src/conversion/types/helpers.ts
new file mode 100644
index 0000000..bb10e58
--- /dev/null
+++ b/src/conversion/types/helpers.ts
@@ -0,0 +1,106 @@
+import * as fs from 'fs';
+import { Node } from 'xml-parser';
+
+/**
+ * Interface used to define the structure of the "supportedViews" section
+ * of the protocol specification for scalable images
+ */
+export interface SupportedViews {
+ scalable_image?: {
+ width: number;
+ height: number;
+ channels:
+ {
+ channel_id: string;
+ channel_name: string;
+ metadata?: {};
+ }[];
+ real_width?: {
+ value?: number;
+ units?: string;
+ };
+ real_height?: {
+ value?: number;
+ units?: string;
+ };
+ metadata?: {};
+ };
+ tabular?: {
+ columns: string[];
+ rows: number;
+ }
+}
+
+/**
+ * Interface used to define the pixel-bounds of a 'section' within the image
+ */
+export class TileBounds {
+ public left: number;
+ public right: number;
+ public top: number;
+ public bottom: number;
+ public constructor(
+ leftBound: number,
+ rightBound: number,
+ topBound: number,
+ bottomBound: number
+ ) {
+ this.left = leftBound;
+ this.right = rightBound;
+ this.top = topBound;
+ this.bottom = bottomBound;
+ }
+ public width(): number {
+ return this.right - this.left;
+ }
+ public height(): number {
+ return this.bottom - this.top;
+ }
+ public scaleDown(level: number) {
+ this.left = Math.ceil(this.left / level),
+ this.right = Math.ceil(this.right / level),
+ this.top = Math.ceil(this.top / level),
+ this.bottom = Math.ceil(this.bottom / level)
+ }
+ public scaleUp(level: number) {
+ this.left = Math.floor(this.left * level),
+ this.right = Math.ceil(this.right * level),
+ this.top = Math.ceil(this.top * level),
+ this.bottom = Math.ceil(this.bottom * level)
+ }
+}
+
+
+
+/**
+ * function used to ensure that the directories required have been created
+ */
+export const checkForOutputDirectories: (directories: string[]) => void = (
+ directories: string[]
+): void => {
+ for (const dir of directories) {
+ if (!fs.existsSync(`${dir}`)) {
+ fs.mkdirSync(`${dir}`);
+ }
+ }
+};
+
+/**
+ * Write given JSON object to given filepath
+ */
+export const writeJSONToFile: (filePath: string, obj: object) =>
+ void = (filePath: string, obj: object): void => {
+ fs.writeFile(
+ filePath,
+ JSON.stringify(obj, null, 2),
+ (err: Error) => {
+ if (err) {
+ console.error(err.message);
+ throw err;
+ }
+ }
+ );
+ };
+
+const extensionBinariesDir: string = __dirname + `/../../../ext/bin/`;
+export const execpaths: string = `PATH="$PATH:${extensionBinariesDir}" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${extensionBinariesDir}../lib/" `;
diff --git a/src/cors/index.d.ts b/src/cors/index.d.ts
index 81da9d4..d6e651a 100644
--- a/src/cors/index.d.ts
+++ b/src/cors/index.d.ts
@@ -1,3 +1,15 @@
import { NextFunction, Request, Response } from 'express';
-export const cors: () => (req: Request, res: Response, next: NextFunction) =>
- void;
+
+export interface CORSOptions {
+ origins?: string[] | Function;
+ methods?: string[];
+ requestHeaders?: string[];
+ responseHeaders?: string[];
+ supportsCredentials?: boolean;
+ maxAge?: number;
+ endPreflightRequests?: boolean;
+}
+
+export const cors: () =>
+ (req: Request, res: Response, next: NextFunction) =>
+ void;
diff --git a/src/cors/index.js b/src/cors/index.js
index 96ffa61..7e21093 100644
--- a/src/cors/index.js
+++ b/src/cors/index.js
@@ -1,2 +1,8 @@
-const cors = require('corser').create;
+const corser = require('corser');
+const cors = corser.create.bind(null, {
+ requestHeaders: corser.simpleRequestHeaders.concat([
+ 'Authorisation',
+ 'Authorization'
+ ])
+});
module.exports = { cors: cors };
diff --git a/src/db/.DS_Store b/src/db/.DS_Store
new file mode 100644
index 0000000..6a62f95
--- /dev/null
+++ b/src/db/.DS_Store
Binary files differ
diff --git a/src/db/model/ContributorGroup.ts b/src/db/model/ContributorGroup.ts
index d3a5867..da7243d 100644
--- a/src/db/model/ContributorGroup.ts
+++ b/src/db/model/ContributorGroup.ts
@@ -1,12 +1,16 @@
-import { AllowNull, Column, DataType, HasMany, Model, Table
+import { AllowNull, Column, DataType, HasMany, Model, PrimaryKey, Table
} from 'sequelize-typescript';
import { default as UserJoinsProject } from './UserJoinsProject';
@Table
export default class ContributorGroup extends Model<ContributorGroup> {
- @AllowNull
+ @PrimaryKey
@Column(DataType.TEXT)
- public name!: string | null;
+ public name!: string;
+
+ // @PrimaryKey
+ // @Column
+ // public username!: string;
/* "Error: Foreign key for "ContributorGroup"
* is missing on "UserJoinsProject"." */
@@ -31,6 +35,9 @@ export default class ContributorGroup extends Model<ContributorGroup> {
@Column
public canEditUserPermissions!: boolean;
+ @Column
+ public canDeleteProject!: boolean;
+
@AllowNull
@Column(DataType.TEXT)
public description!: string | null;
diff --git a/src/db/model/File.ts b/src/db/model/File.ts
index 8a12431..95031e4 100644
--- a/src/db/model/File.ts
+++ b/src/db/model/File.ts
@@ -3,7 +3,9 @@ import { AllowNull, BelongsTo, Column, CreatedAt, DataType, ForeignKey, HasMany,
HasOne, Model, PrimaryKey, Table, UpdatedAt } from 'sequelize-typescript';
import { default as User } from './User';
-import { FileTypeName, mimes } from '../../files';
+import { RequestError } from '../../errors';
+import { FileTypeName, INITIAL_METADATA, Metadata, mimes } from '../../files';
+import { match, metadata } from '../../matcher';
/*
* attributes:
@@ -11,7 +13,6 @@ import { FileTypeName, mimes } from '../../files';
* - fullPathInternal
* - uuid
* - type
- * - size
* - parentFolderId
* - containedFilesInternal
* - creatorName
@@ -31,7 +32,7 @@ export default class File extends Model<File> {
@AllowNull
@Column
- private fullPathInternal!: string;
+ public fullPathInternal!: string;
@PrimaryKey
@Column
@@ -40,9 +41,6 @@ export default class File extends Model<File> {
@Column(DataType.TEXT)
public type!: FileTypeName;
- @Column
- public size!: number;
-
@ForeignKey(() => File)
@AllowNull
@Column(DataType.TEXT)
@@ -77,6 +75,9 @@ export default class File extends Model<File> {
public status!: string;
@Column
+ public originalMimetype!: string;
+
+ @Column
private metadataInternal!: string;
public get name(): string {
@@ -117,15 +118,28 @@ export default class File extends Model<File> {
this.containedFilesInternal = files;
}
- public get metadata(): object {
- return JSON.parse(this.metadataInternal);
+ public get metadata(): Metadata {
+ return !!(this.metadataInternal) ? JSON.parse(this.metadataInternal)
+ : INITIAL_METADATA;
}
- public set metadata(metadata: object) {
- this.metadataInternal = JSON.stringify(metadata);
+ public set metadata(md: Metadata) {
+ const oldMD: Metadata = this.metadata;
+ const newMD: Metadata = md;
+ if (!match(metadata, newMD)) {
+ throw new RequestError(400, 'invalid_request');
+ }
+ if (newMD.version !== oldMD.version + 1) {
+ throw new RequestError(400, 'invalid_request');
+ }
+ this.metadataInternal = JSON.stringify(newMD);
+ }
+ public setMetadataInternal(md: Metadata): void {
+ this.metadataInternal = JSON.stringify(md);
}
public set mimetype(mime: string) {
+ this.originalMimetype = mime;
this.type = mimes.get(mime) || 'generic';
}
}
diff --git a/src/db/model/Project.ts b/src/db/model/Project.ts
index 6cda34e..7b30d56 100644
--- a/src/db/model/Project.ts
+++ b/src/db/model/Project.ts
@@ -1,5 +1,6 @@
import { default as ContributorGroup } from './ContributorGroup';
import { default as File } from './File';
+import { NotVoid } from 'lodash';
import { BelongsTo, BelongsToMany, Column, CreatedAt, DataType, ForeignKey,
Model, PrimaryKey, Table, UpdatedAt } from 'sequelize-typescript';
import { default as User } from './User';
@@ -92,30 +93,99 @@ export default class Project extends Model<Project> {
return;
}
- public getAccessLevel(user: User): ContributorGroup {
- throw new Error(`unimplemented, ${this}`);
+ public async hasAccessLevel(user: User, accessLevel: string): Promise<boolean> {
+ const ujps: UserJoinsProject[] | null = await UserJoinsProject.findAll({
+ include: [ ContributorGroup],
+ where: {
+ username: user.username,
+ projectName: this.name
+ }
+ });
+ if (ujps != null) {
+ const adders: ContributorGroup[] = await ujps.map((ujp: UserJoinsProject): ContributorGroup => {
+ if (ujp.contributorGroup != null) {
+ return ujp.contributorGroup;
+ } else {
+ throw new Error('Missing contributor group');
+ }
+ });
+ if (adders.some((cg: ContributorGroup): boolean => cg.name == accessLevel)) {
+ return true;
+ }
+
+ switch (accessLevel) {
+ case 'canCreateFiles':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canCreateFiles
+ );
+ case 'canDeleteFiles':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canDeleteFiles
+ );
+ case 'canViewFiles':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canViewFiles
+ );
+ case 'canAddUsers':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canAddUsers
+ );
+ case 'canRemoveUsers':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canRemoveUsers
+ );
+ case 'canEditUserPermissions':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canEditUserPermissions
+ );
+ case 'canDeleteProject':
+ return adders.some(
+ (cg: ContributorGroup): boolean => cg.canDeleteProject
+ );
+ default:
+ throw new Error('invalid access role');
+ }
+ } else {
+ return(false);
+ }
+ }
+
+ public async getAccessLevel(user: User): Promise<String[]> {
+ const ujps: UserJoinsProject[] | null = await UserJoinsProject.findAll({
+ include: [ ContributorGroup],
+ where: {
+ username: user.username,
+ projectName: this.name
+ }
+ });
+ const listContributors: String[] = await ujps.map((ujp: UserJoinsProject): String => {
+ if (ujp.contributorGroup != undefined) {
+ return ujp.contributorGroupName;
+ } else {
+ throw new Error('Invalid access');
+ }
+ });
+ return listContributors;
}
- public getUserInfo(user: User): UserInfo {
+ public async getUserInfo(user: User): Promise<UserInfo> {
return {
username: user.username,
- access_level: this.getAccessLevel(user)
- .toString()
+ access_level: (await this.getAccessLevel(user)).join()
};
}
- public get fullInfo(): ProjectFullInfo {
+ public async getFullInfo(): Promise<ProjectFullInfo> {
if (this.contributors === undefined) {
throw new Error('contributors undefined');
}
return {
project_name: this.name,
- users: this.contributors
- .map((u: User): UserInfo => this.getUserInfo(u)),
+ users: await Promise.all(this.contributors
+ .map( (u: User): Promise<UserInfo> => this.getUserInfo(u))),
public_metadata: {
creation_date: this.creationDate
},
- // TODO: Check if we have anything to use these for yet?
private_metadata: {},
admin_metadata: {}
};
diff --git a/src/db/model/User.ts b/src/db/model/User.ts
index 76e055d..3c0abe2 100644
--- a/src/db/model/User.ts
+++ b/src/db/model/User.ts
@@ -1,3 +1,4 @@
+import { RequestError } from '../../errors/errorware';
import { default as File } from './File';
import { default as Project } from './Project';
import { BelongsToMany, Column, CreatedAt, DataType, HasMany,
@@ -6,6 +7,9 @@ import { default as UserGroup } from './UserGroup';
import { default as UserHasPrivilege } from './UserHasPrivilege';
import { default as UserJoinsProject } from './UserJoinsProject';
+import ContributorGroup from './ContributorGroup';
+import { truncateFile } from '../../files';
+
@Table
export default class User extends Model<User> {
@PrimaryKey
@@ -13,7 +17,7 @@ export default class User extends Model<User> {
public username!: string;
@Column
- private readonly passwordInternal!: string;
+ private passwordInternal!: string;
@BelongsToMany(() => UserGroup, () => UserHasPrivilege)
public userGroups?: UserGroup[];
@@ -104,28 +108,59 @@ export default class User extends Model<User> {
return;
}
- // TODO implement
- public getAccessLevel(project: Project): string {
- throw new Error(`unimplemented, ${this}`);
- }
-
public hasPrivilege(privilege: string): boolean {
if (this.userGroups === undefined) {
throw new Error('usergroups undefined');
}
- return this.userGroups.some(
- (ug: UserGroup): boolean => ug.name === privilege
- );
+ if (this.userGroups.some((ug: UserGroup): boolean => ug.name == privilege)) {
+ return true;
+ }
+ switch (privilege) {
+ case 'canCreateUsers':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canCreateUsers
+ );
+ case 'canDeleteUsers':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canDeleteUsers
+ );
+ case 'canEditUsers':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canEditUsers
+ );
+ case 'canCreateProjects':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canCreateProjects
+ );
+ case 'canDeleteProjects':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canDeleteProjects
+ );
+ case 'canEditProjects':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canEditProjects
+ );
+ case 'canAccessLogs':
+ return this.userGroups.some(
+ (ug: UserGroup): boolean => ug.canAccessLogs
+ );
+ default:
+ throw new Error('privilege undefined');
+ }
+ }
+
+ public async getAccessLevel(project: Project): Promise<string> {
+ return (await project.getAccessLevel(this)).join();
}
- public getProjectInfo(project: Project): ProjectInfo {
+ public async getProjectInfo(project: Project): Promise<ProjectInfo> {
return {
project_name: project.name,
- access_level: this.getAccessLevel(project)
+ access_level: await this.getAccessLevel(project)
};
}
- public get fullInfo(): UserFullInfo {
+ public async getFullInfo(): Promise<UserFullInfo> {
// FIXME: Fetch these things if they aren't already present
if (this.userGroups === undefined) {
this.userGroups = [];
@@ -137,8 +172,8 @@ export default class User extends Model<User> {
privileges: this.userGroups
.filter((ug: UserGroup): boolean => ug.name !== null)
.map((ug: UserGroup): string => ug.name as string),
- projects : this.projects!.map(
- (p: Project): ProjectInfo => this.getProjectInfo(p)
+ projects : await Promise.all( this.projects!.map(
+ (p: Project): Promise<ProjectInfo> => this.getProjectInfo(p))
),
// TODO: Check if we have anything to use these for yet?
public_user_metadata: {},
@@ -154,15 +189,17 @@ export default class User extends Model<User> {
private_user_metadata?: Metadata;
}): void {
if (newInfo.password !== undefined) {
- if (this.authenticate(newInfo.password.old)) {
- this.password = newInfo.password.new;
+ if (!this.authenticate(newInfo.password.old)) {
+ this.passwordInternal = newInfo.password.new;
+ } else {
+ throw new RequestError(400, 'invalid_password');
}
}
}
public authenticate(password: string): boolean {
// TODO use salting (and maybe even constant-time comparison?)
- return password === this.password;
+ return password === this.passwordInternal;
}
public get password(): string {
@@ -171,7 +208,7 @@ export default class User extends Model<User> {
public set password(newPassword: string) {
// TODO use salting
- this.password = newPassword;
+ this.passwordInternal = newPassword;
}
}
diff --git a/src/db/model/UserJoinsProject.ts b/src/db/model/UserJoinsProject.ts
index 0948517..c2aa33a 100644
--- a/src/db/model/UserJoinsProject.ts
+++ b/src/db/model/UserJoinsProject.ts
@@ -1,8 +1,8 @@
+import { default as ContributorGroup } from './ContributorGroup';
import { default as Project } from './Project';
import { BelongsTo, Column, CreatedAt, DataType, ForeignKey, Model, Table
} from 'sequelize-typescript';
import { default as User } from './User';
-import { default as ContributorGroup } from './UserGroup';
@Table
export default class UserJoinsProject extends Model<UserJoinsProject> {
@@ -14,14 +14,14 @@ export default class UserJoinsProject extends Model<UserJoinsProject> {
@Column
public projectName!: string;
+ @ForeignKey(() => ContributorGroup)
+ @Column
+ public contributorGroupName!: string;
+
@CreatedAt
@Column(DataType.DATE)
public joinDate!: Date;
- @ForeignKey(() => ContributorGroup)
- @Column
- public contributorGroupId!: number;
-
@BelongsTo(() => ContributorGroup)
public contributorGroup?: ContributorGroup;
}
diff --git a/src/errors/errorware.ts b/src/errors/errorware.ts
index 6d87bcb..e2b5610 100644
--- a/src/errors/errorware.ts
+++ b/src/errors/errorware.ts
@@ -1,5 +1,7 @@
import { NextFunction, Request, Response } from 'express';
+import { logger } from '../logger';
+
/**
* General error and error-handling logic for the middleware stack.
*/
@@ -115,10 +117,11 @@ export type Errorware =
export const errorHandler: Errorware = (
err: Error, req: Request, res: Response, next: NextFunction
): void => {
+ logger.failure(`Responded to ${req.ip}`);
if (RequestError.is(err)) {
res.status(err.code)
.json(err.responseBlock());
} else {
- res.send(err);
+ res.status(500).send(err.stack);
}
};
diff --git a/src/files.ts b/src/files.ts
index e87d8da..19862d1 100644
--- a/src/files.ts
+++ b/src/files.ts
@@ -2,19 +2,41 @@ import { Request, Response } from 'express';
import * as fs from 'fs-extra';
import { logger } from './logger';
import * as Multer from 'multer';
-
+import * as stream from 'stream';
+import * as parse from 'csv-parse';
+import * as stringify from 'csv-stringify';
import { default as File } from './db/model/File';
import { default as Project } from './db/model/Project';
+import { uuid } from './uuid';
+import { main as CZICrunch } from './conversion/czi/czi'
+import { getTile } from './conversion/czi/pyramidWorker'
+import { RequestError } from './errors';
+import { toCSV as excelToCSV, buildSupportedViews } from './conversion/csv/excel';
+const readDir = require('util').promisify(fs.readdir);
+const readFile = require('util').promisify(fs.readFile);
+
-const CONTENT_BASE_DIRECTORY: string = './files';
-const LOG_BASE_DIRECTORY: string = './logs';
+const BASE_BASE: string = '/cs/scratch/cjd24/'
+const CONTENT_BASE_DIRECTORY: string = BASE_BASE + 'files';
+const LOG_BASE_DIRECTORY: string = BASE_BASE + 'logs';
+const TEMP_BASE_DIRECTORY: string = BASE_BASE + 'files-temp';
-/* tslint:disable */
-const path: (filename: string, projectName: string) => string = (filename: string, projectName: string): string => {
- return `${CONTENT_BASE_DIRECTORY}/${projectName}/${filename}`;
+export interface Metadata {
+ version: number;
+ namespaces: object;
+ [index: string]: any;
+}
+
+export const INITIAL_METADATA: Metadata = {
+ version: 1,
+ namespaces: {}
};
-const writableStream: (filename: string, projectName: string) => fs.WriteStream = (filename: string, projectName: string): fs.WriteStream => {
+const writableStream: (
+ filename: string, projectName: string
+) => fs.WriteStream = (
+ filename: string, projectName: string
+): fs.WriteStream => {
return fs.createWriteStream(path(filename, projectName));
};
@@ -23,70 +45,143 @@ interface RawSize {
length: number;
}
-const readableStream: (filename: string, projectName: string, { offset, length }?: Partial<RawSize>) => fs.ReadStream
- = (filename: string, projectName: string, { offset, length }: Partial<RawSize> = { offset: undefined, length: undefined }): fs.ReadStream => {
+interface TabularParameters {
+ rowstart: number;
+ rowcount: number;
+ cols: string[];
+}
+
+interface FileUploadParameters {
+ truncate: boolean;
+ overwrite: boolean;
+ offset: number;
+ action: 'set_metadata'
+ | 'delete'
+ | 'move'
+ | 'copy'
+ | 'mkdir';
+}
+
+interface TileQuery {
+ channel_name: string;
+ x_offset: number;
+ y_offset: number;
+ width: number;
+ height: number;
+ zoom_level: number;
+}
+interface Query extends
+ Partial<RawSize>,
+ Partial<TabularParameters>,
+ Partial<FileUploadParameters>,
+ Partial<TileQuery> {
+ children?: boolean;
+}
+
+const readableStream: (
+ filename: string,
+ projectName: string,
+ { offset, length }?: Query,
+ view?: ViewName
+) => fs.ReadStream = (
+ filename: string,
+ projectName: string,
+ { offset, length }: Query = { offset: undefined, length: undefined },
+ view?: ViewName
+): fs.ReadStream => {
const options: object = {
- start: offset? offset: 0,
- end: offset && length? offset + length: undefined
+ start: offset ? offset : 0,
+ end: offset && length ? offset + length : undefined
};
- return fs.createReadStream(path(filename, projectName), options);
+ return fs.createReadStream(path(filename, projectName, view), options);
};
-export function logPath (type: string, projectName?: string){
- return projectName
- ? `${LOG_BASE_DIRECTORY}/projects/${projectName}/${type}`
- : `${LOG_BASE_DIRECTORY}/general/${type}`;
-}
-
-/*
export const logPath: (type: string, projectName?: string) => string = (
- type: string, projectName?: string): string => {
+ type: string, projectName?: string
+): string => {
return projectName
? `${LOG_BASE_DIRECTORY}/projects/${projectName}/${type}`
: `${LOG_BASE_DIRECTORY}/general/${type}`;
};
-*/
-let storage = Multer.diskStorage({
- destination: function (req, file, cb) {
- cb(null, CONTENT_BASE_DIRECTORY)
- },
- filename: function (req, file, cb) {
- cb(null, `temp-${file.originalname}`)
- }
-});
+export const path: (file: string, project: string, view?: ViewName) => string =
+ (file: string, project: string, view?: ViewName): string =>
+ `${CONTENT_BASE_DIRECTORY}/${project}/${file}/${view || 'ORIGINAL'}`;
+
+export const originalPath: (file: string, project: string) => string =
+ (file: string, project: string): string =>
+ `${CONTENT_BASE_DIRECTORY}/${project}/${file}/ORIGINAL`;
+
+export const pathNoView: (file: string, project: string) => string =
+ (file: string, project: string): string =>
+ `${CONTENT_BASE_DIRECTORY}/${project}/${file}`;
-export const upload: Multer.Instance = Multer({ storage: storage });
+export const tempPath: (file: string, project: string) => string = (
+ file: string
+): string =>
+ `${TEMP_BASE_DIRECTORY}/${uuid.generate()}`;
-export const saveFile: (filename: string, projectname: string, fileId: string, offset: number, truncate?: boolean) => void =
- (filename: string, projectname: string, fileId: string, offset: number, truncate?: boolean): void => {
+export const saveFile: (data: Buffer, projectName: string, fileId: string, query: Query) => Promise<void> =
+ async(data: Buffer, projectName: string, fileId: string, query: Query): Promise<void> => {
// TODO only overwrite beginning of file and keep rest of data
- // ensure file exists
- fs.ensureFileSync(`${CONTENT_BASE_DIRECTORY}/${projectname}/${fileId}`);
- // truncate to offset
- truncateFile(fileId, projectname, offset);
- // open streams to append to file
- let rStream = fs.createReadStream(`${CONTENT_BASE_DIRECTORY}/temp-${filename}`);
- let wStream = fs.createWriteStream(`${CONTENT_BASE_DIRECTORY}/${projectname}/${fileId}`, {'flags':'a'});
- rStream.pipe(wStream).on('finish', () => {
- fs.removeSync(`${CONTENT_BASE_DIRECTORY}/temp-${filename}`);
- }).on('error', (err: any) => {
- logger.debug(`Error while saving file to proper location: ${err}`);
+ // Ensure file exists
+ await fs.ensureFile(path(fileId, projectName));
+ // Truncate to offset
+ await truncateFile(fileId, projectName, query.offset || 0);
+ // Open streams to append to file
+ const rStream: stream.PassThrough = new stream.PassThrough();
+ rStream.end(data);
+ const wStream: fs.WriteStream =
+ fs.createWriteStream(path(fileId, projectName), { flags: 'a' });
+ rStream.pipe(wStream).on('error', (err: Error) => {
+ throw new RequestError(500, `Error while saving file to proper location: ${err}`);
});
-}
+};
-export const deleteFile: (fileId: string, projectName: string) => void =
- (fileId: string, projectName: string): void => {
-
- fs.removeSync(`${CONTENT_BASE_DIRECTORY}/${projectName}/${fileId}`);
-}
+export const deleteFile: (fileId: string, projectName: string) => void = async(
+ fileId: string, projectName: string
+): Promise<void> => {
+ await fs.remove(`${CONTENT_BASE_DIRECTORY}/${projectName}/${fileId}`);
+};
-export const truncateFile: (fileId: string, projectName: string, newLength: number) => void =
- (fileId: string, projectName: string, newLength: number): void => {
+export const truncateFile: (fileId: string, projectName: string, newLength: number) => Promise<void> =
+ async(fileId: string, projectName: string, newLength: number): Promise<void> => {
// get the file descriptor of the file to be truncated
- const fd: number = fs.openSync(`${CONTENT_BASE_DIRECTORY}/${projectName}/${fileId}`, 'r+');
- fs.ftruncateSync(fd, newLength);
-}
+ const fd: number = await fs.open(path(fileId, projectName), 'r+');
+ await fs.ftruncate(fd, newLength);
+};
+
+export const copyFile: (projName: string, fromId: string, toId: string, move?: boolean)
+ => Promise<void> = async(projName: string, fromId: string, toId: string, move?: boolean): Promise<void> => {
+ // ensure to path exists
+ fs.ensureDirSync(pathNoView(toId, projName));
+ const fromDir: string = pathNoView(fromId, projName);
+ const toDir: string = pathNoView(toId, projName);
+ // loop all views in file
+ fs.readdir(fromDir, (err: any, files: string[]) => {
+ if (err) {
+ logger.error(`Error while copying file: ${err}`);
+ } else {
+ files.forEach((file: string, index: number) => {
+ const fromPathFull = fromDir + '/' + file;
+ const toPathFull = toDir + '/' + file;
+ fs.ensureFileSync(toPathFull);
+ // open streams to transfer data
+ const rStream = fs.createReadStream(fromPathFull);
+ const wStream = fs.createWriteStream(toPathFull);
+ rStream.pipe(wStream).on('finish', async() => {
+ if (!!move) {
+ await fs.remove(fromPathFull);
+ }
+ console.log(`copy success of file from \'${fromPathFull}\' to \'${toPathFull}\'`);
+ }).on('error', (err: any) => {
+ logger.error(`Error while copying file: ${err}`);
+ });
+ });
+ }
+ });
+
+};
export const files: {
path: (f: string, p: string) => string;
@@ -98,17 +193,19 @@ export const files: {
logPath
};
-export type ViewName = 'raw' | 'meta';
+export type ViewName = 'raw' | 'meta' | 'tabular' | 'scalable_image';
interface Query extends Partial<RawSize> {
- children?: boolean;
+ include_children?: boolean;
}
export interface View {
- getContents: (file: File) => object;
+ getContents: (file: File, project: Project) => object | Promise<object>;
getResponseData: (file: File, project: Project, query: Query) =>
Promise<object>;
getResponseFunction: (req: Request, res: Response) => Function | null;
+ preprocess: (file: File, original: string, space: string) =>
+ Promise<void>;
}
interface MetaResponseData {
@@ -132,7 +229,7 @@ const metaGetResponseData: (
const data: MetaResponseData = {
file_path: file.fullPath,
file_name: file.name,
- id: file.id,
+ id: file.uuid,
type: file.type,
metadata: file.metadata,
status: file.status,
@@ -140,23 +237,23 @@ const metaGetResponseData: (
};
for (const view of fileTypes[file.type].supportedViews) {
data.supported_views[view] =
- views[view].getContents(file);
+ await views[view].getContents(file, project);
}
- if (query.children) {
+ if (query.include_children) {
data.children = [];
const children: File[] | null = await File.findAll({
where: {
- parentFolder: file
+ parentFolderId: file.uuid
}
});
if (children != null) {
for (const child of children) {
data.children.push(await metaGetResponseData(
- file,
+ child,
project,
{
...query,
- children: undefined
+ include_children: undefined
}
));
}
@@ -165,13 +262,20 @@ const metaGetResponseData: (
return data;
};
+export const getSize: (file: File, project: Project) => Promise<number> = async(
+ file: File, project: Project
+): Promise<number> => {
+ const stat: fs.Stats = await fs.stat(path(file.uuid, project.name));
+ return stat.size;
+};
+
export const views: {
[view: string]: View;
} = {
raw: {
- getContents: (file: File): object => {
+ getContents: async(file: File, project: Project): Promise<object> => {
return {
- size: file.size
+ size: await getSize(file, project)
};
},
getResponseData: async(
@@ -180,7 +284,11 @@ export const views: {
return readableStream(file.uuid, project.name, query);
},
getResponseFunction: (req: Request, res: Response): Function | null => {
- return res.send;
+ return (rStream: fs.ReadStream): fs.ReadStream =>
+ rStream.pipe(res as any);
+ },
+ preprocess: async(): Promise<void> => {
+ return;
}
},
meta: {
@@ -190,11 +298,114 @@ export const views: {
getResponseData: metaGetResponseData,
getResponseFunction: (req: Request, res: Response): Function | null => {
return null;
+ },
+ preprocess: async(): Promise<void> => {
+ return;
}
- }
+ },
+ tabular: {
+ getContents: async(file: File, project: Project): Promise<object> => {
+ return await buildSupportedViews(path(file.uuid, project.name, 'tabular'));
+ },
+ getResponseData: async(
+ file: File, project: Project, query: Query
+ ): Promise<object> => {
+ const space: string = path(file.uuid, project.name, 'tabular');
+ const files: string[] = await readDir(space);
+ const select: string | undefined = files.find((name: string): boolean => name[0] === '_');
+ if (!select) {
+ throw new Error('no default sheet to show :s')
+ }
+ let rowTo = (query.rowcount)
+ ? (Number(query.rowstart) || 0) + Number(query.rowcount) -1
+ : undefined;
+ console.log(rowTo)
+ return fs.createReadStream(`${space}/${select}`)
+ .pipe(parse({
+ columns: true,
+ from: query.rowstart,
+ to: rowTo
+ })).pipe(stringify({
+ }));
+ },
+ getResponseFunction: (req: Request, res: Response): Function | null => {
+ return (stream: fs.ReadStream) => stream.pipe(res);
+ },
+ preprocess: async(file: File, original: string, space: string): Promise<void> => {
+ const mt: string = file.originalMimetype;
+ let validType: boolean = false;
+
+ if (mt.includes("csv")) {
+ validType = true;
+ } else if(mt.includes("spreadsheet")) {
+ validType = true;
+ } else if(mt.includes("ods")) {
+ validType = true;
+ } else if(mt.includes("xls")) {
+ validType = true;
+ }
+
+ if (validType) {
+ await excelToCSV(original, space, mt);
+ } else {
+ logger.warn(`unsupported file type ${mt}`);
+ }
+ }
+ },
+ scalable_image: {
+ getContents: async(file: File, project: Project): Promise<object> => {
+ return JSON.parse(await readFile(path(file.uuid, project.name, 'scalable_image') + "/supported_views.json", 'utf8'));
+ },
+ getResponseData: async(
+ file: File, project: Project, query: Query
+ ): Promise<object> => {
+ return getTile(
+ path(file.uuid, project.name, 'scalable_image') + '/',
+ query.channel_name,
+ query.x_offset,
+ query.y_offset,
+ query.width,
+ query.height,
+ query.zoom_level
+ );
+ },
+ getResponseFunction: (req: Request, res: Response): Function | null => {
+ return (stream: fs.ReadStream) => stream.pipe(res);
+ },
+ preprocess: async(file: File, original: string, space: string): Promise<void> => {
+ let isCZI: boolean = await new Promise<boolean>((res, rej) => {
+ fs.open(original, 'r', function(status, fd) {
+ if (status) {
+ logger.debug(status.message);
+ return;
+ }
+ var buffer = new Buffer(10);
+ fs.read(fd, buffer, 0, 10, 0, function(err, num) {
+ logger.debug(buffer.toString('utf8', 0, num));
+ res(buffer.toString('utf8', 0, num) === 'ZISRAWFILE');
+ });
+ });
+ });
+
+ if (isCZI) {
+ CZICrunch(original, space);
+ } else {
+ const mt: string = file.originalMimetype;
+ let validType: boolean = false;
+
+ logger.crit("FILES OTHER THAN CZI CURRENTLY NOT IMPLEMENTED")
+
+ // if (mt.includes("tif")) {
+ // await lecialol(original, space, mt);
+ // } else {
+ // logger.warn(`unsupported file type ${mt}`);
+ // }
+ }
+ }
+ }
};
-export type FileTypeName = 'generic' | 'directory';
+export type FileTypeName = 'generic' | 'directory' | 'tabular' | 'scalable_image';
export interface FileType {
supportedViews: ViewName[];
@@ -212,7 +423,35 @@ const fileTypes: {
supportedViews: [
'meta'
]
+ },
+ tabular: {
+ supportedViews: [
+ 'raw', 'meta', 'tabular'
+ ]
+ },
+ scalable_image: {
+ supportedViews: [
+ 'raw', 'meta', 'scalable_image'
+ ]
+ }
+};
+
+export const preprocess: (
+ file: File, project: Project
+) => Promise<void> = async(
+ file: File, project: Project
+): Promise<void> => {
+ const promises: Promise<void>[] = [];
+ for (const view of fileTypes[file.type].supportedViews) {
+ promises.push(views[view].preprocess(
+ file,
+ originalPath(file.uuid, project.name),
+ path(file.uuid, project.name, view)
+ ));
}
+ await Promise.all(promises);
+ file.status = 'ready';
+ await file.save();
};
class MimeTypeMap extends Map<string, string> {
@@ -231,48 +470,39 @@ class MimeTypeMap extends Map<string, string> {
}
export const mimes: MimeTypeMap = new MimeTypeMap([
- [ 'inode/directory', 'directory' ]
+ [ 'inode/directory', 'directory' ],
+ [ 'text/csv', 'tabular' ]
]);
export const rootPathId: string = '0';
export const rootPathFile: File | null = null;
-export const createRootFolder: () => void = (): any => {
- if (!fs.existsSync(CONTENT_BASE_DIRECTORY)){
- fs.mkdirSync(CONTENT_BASE_DIRECTORY);
+export const createRootFolder: () => Promise<void> = async(
+): Promise<void> => {
+ try {
+ await fs.mkdir(CONTENT_BASE_DIRECTORY);
+ } catch (e) {
+ logger.warn(`error when creating base folder: ${e}`);
}
-}
+};
-export const createProjectFolder: (name: string) => void = (projName: string): any => {
- if (!fs.existsSync(CONTENT_BASE_DIRECTORY + '/' + projName)){
- fs.mkdirSync(CONTENT_BASE_DIRECTORY + '/' + projName);
+export const createProjectFolder: (name: string) => Promise<void> = async(
+ projName: string
+): Promise<void> => {
+ try {
+ await fs.mkdir(CONTENT_BASE_DIRECTORY + '/' + projName);
+ } catch (e) {
+ logger.warn(`error when creating folder for project ${projName}: ${e}`);
}
-}
+};
-export const addSubFileToFolder: (parentId: string, subFileId: string) => Promise<boolean> = async(parentId: string, subFileId: string): Promise<boolean> => {
- logger.debug(`adding file ${subFileId}) to directory ${parentId}`)
+export const addSubFileToFolder: (
+ parentId: string, subFile: File
+) => Promise<void> = async(
+ parentId: string, subFile: File
+): Promise<void> => {
+ logger.debug(`adding file ${subFile.uuid} to directory ${parentId}`);
// Fetch parent and subFile object from database
- const parent: File | null = await File.findOne({
- include: [{all: true}],
- where: {
- uuid: parentId
- }
- });
- const file: File | null = await File.findOne({
- include: [{all: true}],
- where: {
- uuid: subFileId
- }
- });
- if(!parent || !file){
- return false;
- }
- // update both objects
- parent.containedFiles.push(file);
- file.parentFolderId = parent.uuid;
- // save
- await file.save();
- await parent.save();
-
- return true;
-}
+ subFile.parentFolderId = parentId;
+ await subFile.save();
+};
diff --git a/src/index.ts b/src/index.ts
index 0074d7b..e99aa1a 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,7 +1,10 @@
-
+import * as fs from 'fs-extra';
import { logger } from './logger';
logger.info('Starting up server');
+logger.info('Creating necessary directories');
+fs.ensureDirSync('logs/general');
+fs.ensureDirSync('files');
logger.info('Importing server logic');
import { default as app } from './app';
@@ -10,6 +13,7 @@ logger.info('Importing database ORM');
import { createRootFolder, rootPathId } from './files';
import { default as seq } from './db/orm';
+import { default as ContributorGroup } from './db/model/ContributorGroup';
import { default as File } from './db/model/File';
import { default as User } from './db/model/User';
import { default as UserGroup } from './db/model/UserGroup';
@@ -18,7 +22,7 @@ const DEFAULT_PORT: number = 3000;
// Use default port 3000 or port supplied by OS
const port: number = process.env.PORT
- ? process.env.PORT
+ ? Number(process.env.PORT)
: DEFAULT_PORT;
logger.info(`Port ${port} chosen`);
@@ -60,8 +64,77 @@ async function reset(): Promise<void> {
description: 'Allows Post to Log'
});
+ const userManagement: UserGroup = new UserGroup({
+ name: 'userManagement',
+ canCreateUsers: true,
+ canDeleteUsers: true,
+ canEditUsers: true,
+ isInternal: false,
+ description: 'Allows management of other users'
+ });
+
+ const projectAdmin: UserGroup = new UserGroup({
+ name: 'projectAdmin',
+ canDeleteProjects: true,
+ canEditProjects: true,
+ isInternal: false,
+ description: 'Admin privileges on other projects '
+ });
+
+ const standardUser: UserGroup = new UserGroup({
+ name: 'standardUser',
+ canCreateProjects: true,
+ isInternal: true,
+ description: 'Allows creation of new projects'
+ });
+
await logging.save();
await admin.save();
+ await userManagement.save();
+ await projectAdmin.save();
+ await standardUser.save();
+
+ const projectOwner: ContributorGroup = new ContributorGroup({
+ name: 'projectOwner',
+ canCreateFiles: true,
+ canAddUsers: true,
+ canRemoveUsers: true,
+ canDeleteFiles: true,
+ canDeleteProject: true,
+ canEditUserPermissions: true,
+ canViewFiles: true,
+ isInternal: false,
+ description: 'Project Admin'
+ });
+
+ const standardProjectUser: ContributorGroup = new ContributorGroup({
+ name: 'standardProjectUser',
+ canCreateFiles: true,
+ canViewFiles: true,
+ isInternal: false,
+ description: 'Allows working on a project'
+ });
+
+ const readOnlyProjectUser: ContributorGroup = new ContributorGroup({
+ name: 'readOnlyProjectUser',
+ canViewFiles: true,
+ isInternal: false,
+ description: 'Allows viewing of files in a project '
+ });
+
+ const projectUserManagement: ContributorGroup = new ContributorGroup({
+ name: 'projectUserManagement',
+ canAddUsers: true,
+ canEditUserPermissions: true,
+ canRemoveUsers: true,
+ isInternal: false,
+ description: 'Allows managament of users in a Project'
+ });
+
+ await projectOwner.save();
+ await standardProjectUser.save();
+ await readOnlyProjectUser.save();
+ await projectUserManagement.save();
logger.info('Adding admin user');
const root: User = new User({
@@ -93,7 +166,8 @@ async function reset(): Promise<void> {
process.exit(1);
}
- //await reset();
+ await reset();
+
logger.info('Booting ExpressJS server');
app.listen(port, (err: Error) => {
diff --git a/src/matcher/index.ts b/src/matcher/index.ts
index 0806907..e7c2f88 100644
--- a/src/matcher/index.ts
+++ b/src/matcher/index.ts
@@ -5,7 +5,9 @@ export {
exact,
optional,
alternative,
- array
+ array,
+ match,
+ metadata
} from './options';
export {
diff --git a/src/matcher/options.ts b/src/matcher/options.ts
index 62e4985..0bad627 100644
--- a/src/matcher/options.ts
+++ b/src/matcher/options.ts
@@ -89,6 +89,12 @@ export const array = (template: TemplateValue, values?: Value[]) => {
};
// tslint:disable-next-line:typedef
+export const metadata = exact({
+ version: types.integer,
+ namespaces: {}
+});
+
+// tslint:disable-next-line:typedef
const options = {
match,
exact,
diff --git a/src/mimetype.ts b/src/mimetype.ts
new file mode 100644
index 0000000..4110ae5
--- /dev/null
+++ b/src/mimetype.ts
@@ -0,0 +1,29 @@
+import * as fromData from 'file-type';
+import { lookup as fromName } from 'mime-types';
+
+const DEFAULT_MIMETYPE: string = 'application/octet-stream';
+
+export const mimetype: (
+ contentType?: string, data?: Buffer, name?: string
+) => string = (
+ contentType?: string, data?: Buffer, name?: string
+): string => {
+ if (contentType && contentType !== DEFAULT_MIMETYPE) {
+ return contentType;
+ }
+ if (data) {
+ const fType: fromData.FileTypeResult = fromData(data);
+ if (fType) {
+ return fType.mime;
+ }
+ }
+ if (name) {
+ const mType: string | false = fromName(name);
+ if (mType) {
+ return mType;
+ }
+ }
+ return DEFAULT_MIMETYPE;
+};
+
+export { extension } from 'mime-types';
diff --git a/src/serverConfig.ts b/src/serverConfig.ts
index 136995a..5d2575a 100644
--- a/src/serverConfig.ts
+++ b/src/serverConfig.ts
@@ -82,7 +82,7 @@ export class Property {
}
public set value(value: Value) {
- if (!this.readOnly) {
+ if (this.readOnly) {
throw new Error('this property is read-only');
} else if (!types[this.type](value)) {
throw new Error(`value ${value} is not of type ${this.type}`);
diff --git a/test/.DS_Store b/test/.DS_Store
new file mode 100644
index 0000000..eef9cc0
--- /dev/null
+++ b/test/.DS_Store
Binary files differ
diff --git a/test/integration/protocol.routes.test.ts b/test/integration/protocol.routes.test.ts
index a371fd5..77b39f0 100644
--- a/test/integration/protocol.routes.test.ts
+++ b/test/integration/protocol.routes.test.ts
@@ -103,7 +103,8 @@ const completeProtocol: MochaForEachInput[] = [
'warning',
'error',
'critical',
- 'success'
+ 'success',
+ 'failure'
]),
message: types.anything,
label: optional(types.string),
@@ -135,7 +136,7 @@ const completeProtocol: MochaForEachInput[] = [
])
}), 200],
['post', '/properties?action=update',
- [{id: 'new_prop', value: 'some_value'}], 200],
+ [{id: 'project_example', value: 2}], 200],
['get', '/user_privileges', array({
privilege: types.string,
description: types.string,
@@ -166,7 +167,8 @@ const completeProtocol: MochaForEachInput[] = [
public_admin_metadata: types.anything,
private_admin_metadata: types.anything
}, 200],
- ['post', '/users/new_user', null, 200],
+ ['post', '/users/new_user?action=create',
+ {password: 'secret', privileges: []}, 200],
['get', '/users/mock_user/properties', {
data: optional(types.anything)
}, 200],
@@ -182,7 +184,10 @@ const completeProtocol: MochaForEachInput[] = [
public_admin_metadata: types.anything,
private_admin_metadata: types.anything
}, 200],
- ['post', '/current_user', null, 200],
+ ['post', '/current_user?action=update', {password: {
+ old: 'pass',
+ new: 'newpass'
+ }}, 200],
['get', '/project_roles', array({
role: types.string,
description: types.string,
@@ -208,11 +213,11 @@ const completeProtocol: MochaForEachInput[] = [
private_metadata: types.anything,
admin_metadata: optional(types.anything)
}, 200],
- ['post', '/projects/mocky', null, 200],
+ ['post', '/projects/mocky2', {}, 200],
['get', '/projects/mocky/properties', null, 200],
- ['post', '/projects/mocky/files/folder+some_file?action=overwrite', {}, 200],
- ['get', '/projects/mocky/files/folder+some_file', null, 200],
- ['get', '/projects/mocky/files_by_id/file1', null, 200]
+ ['post', '/projects/mocky/files/foler/file?action=overwrite', {}, 200],
+ ['get', '/projects/mocky/files/foler/file', null, 200]
+ //['get', '/projects/mocky/files_by_id/file1', null, 200]
];
/* tslint:enable:align */
@@ -227,7 +232,7 @@ describe('routes : protocol', () => {
forEach(completeProtocol).it(
'%s %s should be json',
(method: string, path: string, temp: Template, resCode: number) => {
- const request: ChaiHttp.Request = method === 'get'
+ const request: any = method === 'get'
? chai.request(app).get(base + path)
: chai.request(app).post(base + path)
.set('content-type', 'application/json').send(temp);
@@ -258,7 +263,7 @@ describe('routes : protocol', () => {
forEach(completeProtocol).it(
'%s %s should conform to the general response template',
(method: string, path: string, temp: Template, resCode: number) => {
- const request: ChaiHttp.Request = method === 'get'
+ const request: any = method === 'get'
? chai.request(app).get(base + path)
: chai.request(app).post(base + path).send(temp);;
request.set('Authorization', `Bearer ${token}`);
diff --git a/test/unit/Tissue Slides.00030.v13.csv b/test/unit/Tissue Slides.00030.v13.csv
new file mode 100644
index 0000000..32a365f
--- /dev/null
+++ b/test/unit/Tissue Slides.00030.v13.csv
@@ -0,0 +1,3 @@
+inner_x;inner_y;level_name;class_name;Mean CK;Mean D240;Mean DAPI;Standard deviation CK;Standard deviation D240;Standard deviation DAPI;Ratio CK;Ratio D240;Ratio DAPI;Area (µm²);Border length (Pxl);Length (µm);Length/Thickness;Length/Width;Number of pixels;Perimeter;Rel. Border to Image Border;Thickness (Pxl);Vessel Wall thickness (µm);Volume (Pxl);Width (µm);Asymmetry;Border index;Circularity;Compactness;Density;Elliptic Fit;Ellipticity;Roundness;Shape index
+278;1644;TissueLevel (ROI and bud map);Markers 1 and 2;111.91269841;49.00952381;43.888888889;46.453427751;53.507779331;27.926326608;0.54641907759;0.23929133309;0.21428958932;139.167;158;16.324198007;undefined;1.1350017263;630;0;0;undefined;0;630;14.382531435;0.22056688527;1.5490196078;2.5842367704;1.6870615231;2.0749555783;0.66031746032;0.3083863821;0.91206852044;1.573717669
+314;1630;TissueLevel (ROI and bud map);vessel border to bud invasion;8.1280438312;65.000202922;28.99411526;10.822207323;66.30369822;25.807309309;0.079591224399;0.63649333643;0.28391543917;1088.5952;608;54.52;undefined;1.5064935065;4928;0;0;undefined;0;4928;36.19;0.41167215052;2.0965517241;1.786429407;1.8125;2.1469508548;0.60470779221;0.26168440136;1.0913355585;2.1652509527 \ No newline at end of file
diff --git a/yarn.lock b/yarn.lock
index 5f382eb..eadf4be 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -10,33 +10,24 @@
version "3.5.18"
resolved "https://registry.yarnpkg.com/@types/bluebird/-/bluebird-3.5.18.tgz#6a60435d4663e290f3709898a4f75014f279c4d6"
-"@types/body-parser@*":
+"@types/body-parser@*", "@types/body-parser@1.16.8":
version "1.16.8"
resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.16.8.tgz#687ec34140624a3bec2b1a8ea9268478ae8f3be3"
dependencies:
"@types/express" "*"
"@types/node" "*"
-"@types/body-parser@0.0.33":
- version "0.0.33"
- resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-0.0.33.tgz#33ca1498fc37e51c5df0c81cae34569e7041e025"
- dependencies:
- "@types/express" "*"
-
-"@types/chai-http@0.0.29":
- version "0.0.29"
- resolved "https://registry.yarnpkg.com/@types/chai-http/-/chai-http-0.0.29.tgz#eee0470af9df0cfaf37cf383c446830a26d5da86"
+"@types/chai-http@3.0.4":
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/@types/chai-http/-/chai-http-3.0.4.tgz#21d83e1c9d4a0ae96555e7d84af9800f5f07a273"
dependencies:
"@types/chai" "*"
"@types/node" "*"
+ "@types/superagent" "*"
-"@types/chai@*":
- version "4.1.2"
- resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.1.2.tgz#f1af664769cfb50af805431c407425ed619daa21"
-
-"@types/chai@^3.4.34":
- version "3.5.2"
- resolved "https://registry.yarnpkg.com/@types/chai/-/chai-3.5.2.tgz#c11cd2817d3a401b7ba0f5a420f35c56139b1c1e"
+"@types/chai@*", "@types/chai@4.1.3":
+ version "4.1.3"
+ resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.1.3.tgz#b8a74352977a23b604c01aa784f5b793443fb7dc"
"@types/colors@^1.1.3":
version "1.2.1"
@@ -50,17 +41,29 @@
dependencies:
"@types/node" "*"
-"@types/debug@0.0.29":
- version "0.0.29"
- resolved "https://registry.yarnpkg.com/@types/debug/-/debug-0.0.29.tgz#a1e514adfbd92f03a224ba54d693111dbf1f3754"
+"@types/csv-parse@^1.1.11":
+ version "1.1.11"
+ resolved "https://registry.yarnpkg.com/@types/csv-parse/-/csv-parse-1.1.11.tgz#47d68b5579e66aa0d55af9dbae76f1d2ff836f1d"
+ dependencies:
+ "@types/node" "*"
+
+"@types/csv-stringify@^1.4.2":
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/@types/csv-stringify/-/csv-stringify-1.4.2.tgz#3a71c6f508ae434339e2304d36bb00177e659d95"
+ dependencies:
+ "@types/node" "*"
+
+"@types/debug@0.0.30":
+ version "0.0.30"
+ resolved "https://registry.yarnpkg.com/@types/debug/-/debug-0.0.30.tgz#dc1e40f7af3b9c815013a7860e6252f6352a84df"
"@types/events@*":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@types/events/-/events-1.2.0.tgz#81a6731ce4df43619e5c8c945383b3e62a89ea86"
-"@types/express-jwt@^0.0.38":
- version "0.0.38"
- resolved "https://registry.yarnpkg.com/@types/express-jwt/-/express-jwt-0.0.38.tgz#64b90b917299d99d3558d15e912ed22af0b48e6d"
+"@types/express-jwt@0.0.40":
+ version "0.0.40"
+ resolved "https://registry.yarnpkg.com/@types/express-jwt/-/express-jwt-0.0.40.tgz#07df88f324f329df6599e84a052eec6ccba7b764"
dependencies:
"@types/express" "*"
"@types/express-unless" "*"
@@ -86,9 +89,15 @@
"@types/express-serve-static-core" "*"
"@types/serve-static" "*"
-"@types/fs-extra@5.0.0":
- version "5.0.0"
- resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-5.0.0.tgz#d3e225b35eb5c6d3a5a782c28219df365c781413"
+"@types/file-type@^5.2.1":
+ version "5.2.1"
+ resolved "https://registry.yarnpkg.com/@types/file-type/-/file-type-5.2.1.tgz#e7af49e08187b6b7598509c5e416669d25fa3461"
+ dependencies:
+ "@types/node" "*"
+
+"@types/fs-extra@5.0.1":
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-5.0.1.tgz#cd856fbbdd6af2c11f26f8928fd8644c9e9616c9"
dependencies:
"@types/node" "*"
@@ -128,14 +137,18 @@
version "4.14.107"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.107.tgz#b2d2ae3958bfb8ff828495cbe12214af9e4d035e"
-"@types/lodash@4.14.99":
- version "4.14.99"
- resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.99.tgz#e6e10c0a4cc16c7409b3181f1e66880d2fb7d4dc"
+"@types/lodash@4.14.104":
+ version "4.14.104"
+ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.104.tgz#53ee2357fa2e6e68379341d92eb2ecea4b11bb80"
"@types/marked@0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@types/marked/-/marked-0.3.0.tgz#583c223dd33385a1dda01aaf77b0cd0411c4b524"
+"@types/mime-types@^2.1.0":
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/@types/mime-types/-/mime-types-2.1.0.tgz#9ca52cda363f699c69466c2a6ccdaad913ea7a73"
+
"@types/mime@*":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.0.tgz#5a7306e367c539b9f6543499de8dd519fac37a8b"
@@ -150,13 +163,9 @@
dependencies:
"@types/mocha" "*"
-"@types/mocha@*":
- version "5.0.0"
- resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-5.0.0.tgz#a3014921991066193f6c8e47290d4d598dfd19e6"
-
-"@types/mocha@^2.2.32":
- version "2.2.48"
- resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.48.tgz#3523b126a0b049482e1c3c11877460f76622ffab"
+"@types/mocha@*", "@types/mocha@5.2.0":
+ version "5.2.0"
+ resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-5.2.0.tgz#b3c8e69f038835db1a7fdc0b3d879fc50506e29e"
"@types/morgan@^1.7.32":
version "1.7.35"
@@ -170,18 +179,14 @@
dependencies:
"@types/express" "*"
-"@types/node@*":
- version "9.6.5"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.5.tgz#ee700810fdf49ac1c399fc5980b7559b3e5a381d"
+"@types/node@*", "@types/node@9.6.6":
+ version "9.6.6"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.6.tgz#439b91f9caf3983cad2eef1e11f6bedcbf9431d2"
"@types/node@6.0.41":
version "6.0.41"
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.41.tgz#578cf53aaec65887bcaf16792f8722932e8ff8ea"
-"@types/node@^6.0.46":
- version "6.0.106"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.106.tgz#391bc3598ab5823563f7155847212152893edcd7"
-
"@types/passport-local@^1.0.32":
version "1.0.33"
resolved "https://registry.yarnpkg.com/@types/passport-local/-/passport-local-1.0.33.tgz#d245b60c5b801cb3aeca1ffab557d5fe1534260d"
@@ -198,8 +203,8 @@
"@types/passport" "*"
"@types/passport@*", "@types/passport@^0.4.2":
- version "0.4.4"
- resolved "https://registry.yarnpkg.com/@types/passport/-/passport-0.4.4.tgz#934acc2b8870fdde1800f48effd92cbf5c2646f5"
+ version "0.4.5"
+ resolved "https://registry.yarnpkg.com/@types/passport/-/passport-0.4.5.tgz#a6dd5bd2f96f2f15d350a688c3f59aa16d101c7a"
dependencies:
"@types/express" "*"
@@ -238,9 +243,9 @@
dependencies:
"@types/node" "*"
-"@types/shelljs@0.7.7":
- version "0.7.7"
- resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.7.tgz#1f7bfa28947661afea06365db9b1135bbc903ec4"
+"@types/shelljs@0.7.8":
+ version "0.7.8"
+ resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.8.tgz#4b4d6ee7926e58d7bca448a50ba442fd9f6715bd"
dependencies:
"@types/glob" "*"
"@types/node" "*"
@@ -314,10 +319,34 @@ amdefine@>=0.0.4:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
+amp-message@~0.1.1:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/amp-message/-/amp-message-0.1.2.tgz#a78f1c98995087ad36192a41298e4db49e3dfc45"
+ dependencies:
+ amp "0.3.1"
+
+amp@0.3.1, amp@~0.3.1:
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/amp/-/amp-0.3.1.tgz#6adf8d58a74f361e82c1fa8d389c079e139fc47d"
+
+ansi-align@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f"
+ dependencies:
+ string-width "^2.0.0"
+
+ansi-escapes@^1.1.0:
+ version "1.4.0"
+ resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e"
+
ansi-regex@^2.0.0:
version "2.1.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
+ansi-regex@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998"
+
ansi-styles@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
@@ -328,9 +357,12 @@ ansi-styles@^3.2.1:
dependencies:
color-convert "^1.9.0"
-append-field@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/append-field/-/append-field-0.1.0.tgz#6ddc58fa083c7bc545d3c5995b2830cc2366d44a"
+anymatch@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb"
+ dependencies:
+ micromatch "^3.1.4"
+ normalize-path "^2.1.1"
aproba@^1.0.3:
version "1.2.0"
@@ -349,10 +381,40 @@ argparse@^1.0.7:
dependencies:
sprintf-js "~1.0.2"
+arr-diff@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520"
+
+arr-flatten@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1"
+
+arr-union@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4"
+
+array-find-index@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1"
+
array-flatten@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
+array-union@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39"
+ dependencies:
+ array-uniq "^1.0.1"
+
+array-uniq@^1.0.1:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6"
+
+array-unique@^0.3.2:
+ version "0.3.2"
+ resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428"
+
arrify@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
@@ -361,6 +423,14 @@ assertion-error@^1.0.1:
version "1.1.0"
resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b"
+assign-symbols@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
+
+async-each@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d"
+
async-listener@^0.6.0:
version "0.6.9"
resolved "https://registry.yarnpkg.com/async-listener/-/async-listener-0.6.9.tgz#51bc95e41095417f33922fb4dee4f232b3226488"
@@ -368,10 +438,16 @@ async-listener@^0.6.0:
semver "^5.3.0"
shimmer "^1.1.0"
-async@^1.4.0, async@^1.5.0, async@^1.5.2:
+async@1.5, async@^1.4.0, async@^1.5, async@^1.5.0:
version "1.5.2"
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
+async@^2.5:
+ version "2.6.0"
+ resolved "https://registry.yarnpkg.com/async/-/async-2.6.0.tgz#61a29abb6fcc026fea77e56d1c6ec53a795951f4"
+ dependencies:
+ lodash "^4.14.0"
+
async@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/async/-/async-1.0.0.tgz#f8fc04ca3a13784ade9e1641af98578cfbd647a9"
@@ -380,7 +456,11 @@ asynckit@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
-babel-code-frame@^6.22.0:
+atob@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.0.tgz#ab2b150e51d7b122b9efc8d7340c06b6c41076bc"
+
+babel-code-frame@^6.22.0, babel-code-frame@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
dependencies:
@@ -388,6 +468,46 @@ babel-code-frame@^6.22.0:
esutils "^2.0.2"
js-tokens "^3.0.2"
+babel-messages@^6.23.0:
+ version "6.23.0"
+ resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e"
+ dependencies:
+ babel-runtime "^6.22.0"
+
+babel-runtime@^6.22.0, babel-runtime@^6.26.0, babel-runtime@^6.6.1:
+ version "6.26.0"
+ resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
+ dependencies:
+ core-js "^2.4.0"
+ regenerator-runtime "^0.11.0"
+
+babel-traverse@^6.7.3:
+ version "6.26.0"
+ resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee"
+ dependencies:
+ babel-code-frame "^6.26.0"
+ babel-messages "^6.23.0"
+ babel-runtime "^6.26.0"
+ babel-types "^6.26.0"
+ babylon "^6.18.0"
+ debug "^2.6.8"
+ globals "^9.18.0"
+ invariant "^2.2.2"
+ lodash "^4.17.4"
+
+babel-types@^6.26.0:
+ version "6.26.0"
+ resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497"
+ dependencies:
+ babel-runtime "^6.26.0"
+ esutils "^2.0.2"
+ lodash "^4.17.4"
+ to-fast-properties "^1.0.3"
+
+babylon@^6.1.21, babylon@^6.18.0:
+ version "6.18.0"
+ resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
+
balanced-match@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
@@ -396,12 +516,28 @@ base64url@2.0.0, base64url@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/base64url/-/base64url-2.0.0.tgz#eac16e03ea1438eff9423d69baa36262ed1f70bb"
+base@^0.11.1:
+ version "0.11.2"
+ resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f"
+ dependencies:
+ cache-base "^1.0.1"
+ class-utils "^0.3.5"
+ component-emitter "^1.2.1"
+ define-property "^1.0.0"
+ isobject "^3.0.1"
+ mixin-deep "^1.2.0"
+ pascalcase "^0.1.1"
+
basic-auth@~2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.0.tgz#015db3f353e02e56377755f962742e8981e7bbba"
dependencies:
safe-buffer "5.1.1"
+binary-extensions@^1.0.0:
+ version "1.11.0"
+ resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205"
+
bindings@1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.2.1.tgz#14ad6113812d2d37d72e67b4cacb4bb726505f11"
@@ -413,6 +549,10 @@ bl@^1.0.0:
readable-stream "^2.3.5"
safe-buffer "^5.1.1"
+blessed@^0.1.81:
+ version "0.1.81"
+ resolved "https://registry.yarnpkg.com/blessed/-/blessed-0.1.81.tgz#f962d687ec2c369570ae71af843256e6d0ca1129"
+
bluebird@^3.4.6, bluebird@^3.5.0:
version "3.5.1"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9"
@@ -432,6 +572,18 @@ body-parser@1.18.2, body-parser@^1.18.2:
raw-body "2.3.2"
type-is "~1.6.15"
+boxen@^1.2.1:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b"
+ dependencies:
+ ansi-align "^2.0.0"
+ camelcase "^4.0.0"
+ chalk "^2.0.1"
+ cli-boxes "^1.0.0"
+ string-width "^2.0.0"
+ term-size "^1.2.0"
+ widest-line "^2.0.0"
+
brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
@@ -439,41 +591,93 @@ brace-expansion@^1.1.7:
balanced-match "^1.0.0"
concat-map "0.0.1"
-browser-stdout@1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f"
+braces@^2.3.0, braces@^2.3.1:
+ version "2.3.2"
+ resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729"
+ dependencies:
+ arr-flatten "^1.1.0"
+ array-unique "^0.3.2"
+ extend-shallow "^2.0.1"
+ fill-range "^4.0.0"
+ isobject "^3.0.1"
+ repeat-element "^1.1.2"
+ snapdragon "^0.8.1"
+ snapdragon-node "^2.0.1"
+ split-string "^3.0.2"
+ to-regex "^3.0.1"
+
+browser-stdout@1.3.1:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60"
buffer-equal-constant-time@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819"
-buffer-from@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.0.0.tgz#4cb8832d23612589b0406e9e2956c17f06fdf531"
-
buffer-writer@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/buffer-writer/-/buffer-writer-1.0.1.tgz#22a936901e3029afcd7547eb4487ceb697a3bf08"
-builtin-modules@^1.1.1:
+builtin-modules@^1.0.0, builtin-modules@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
-busboy@^0.2.11:
- version "0.2.14"
- resolved "https://registry.yarnpkg.com/busboy/-/busboy-0.2.14.tgz#6c2a622efcf47c57bbbe1e2a9c37ad36c7925453"
- dependencies:
- dicer "0.2.5"
- readable-stream "1.1.x"
-
bytes@3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
+cache-base@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2"
+ dependencies:
+ collection-visit "^1.0.0"
+ component-emitter "^1.2.1"
+ get-value "^2.0.6"
+ has-value "^1.0.0"
+ isobject "^3.0.1"
+ set-value "^2.0.0"
+ to-object-path "^0.3.0"
+ union-value "^1.0.0"
+ unset-value "^1.0.0"
+
+callsite-record@^3.0.0:
+ version "3.2.2"
+ resolved "https://registry.yarnpkg.com/callsite-record/-/callsite-record-3.2.2.tgz#9a0390642e43fe8bb823945e51464f69f41643de"
+ dependencies:
+ callsite "^1.0.0"
+ chalk "^1.1.1"
+ error-stack-parser "^1.3.3"
+ highlight-es "^1.0.0"
+ lodash "4.6.1 || ^4.16.1"
+ pinkie-promise "^2.0.0"
+
+callsite@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/callsite/-/callsite-1.0.0.tgz#280398e5d664bd74038b6f0905153e6e8af1bc20"
+
+camelcase-keys@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7"
+ dependencies:
+ camelcase "^2.0.0"
+ map-obj "^1.0.0"
+
camelcase@^1.0.2:
version "1.2.1"
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39"
+camelcase@^2.0.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f"
+
+camelcase@^4.0.0, camelcase@^4.1.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"
+
+capture-stack-trace@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz#4a6fa07399c26bba47f0b2496b4d0fb408c5550d"
+
center-align@^0.1.1:
version "0.1.3"
resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad"
@@ -481,32 +685,35 @@ center-align@^0.1.1:
align-text "^0.1.3"
lazy-cache "^1.0.3"
-cfb@~1.0.2:
+cfb@~1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/cfb/-/cfb-1.0.6.tgz#d0107fa579a8d79c53a31074a755abcb898017f0"
dependencies:
commander "^2.14.1"
printj "~1.1.2"
-chai-http@^3.0.0:
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/chai-http/-/chai-http-3.0.0.tgz#5460d8036e1f1a12b0b5b5cbd529e6dc1d31eb4b"
+chai-http@4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/chai-http/-/chai-http-4.0.0.tgz#810f579e98ae9d7847701759de7682361f2f286f"
dependencies:
- cookiejar "2.0.x"
- is-ip "1.0.0"
+ cookiejar "^2.1.1"
+ is-ip "^2.0.0"
methods "^1.1.2"
- qs "^6.2.0"
- superagent "^2.0.0"
+ qs "^6.5.1"
+ superagent "^3.7.0"
-chai@^3.5.0:
- version "3.5.0"
- resolved "https://registry.yarnpkg.com/chai/-/chai-3.5.0.tgz#4d02637b067fe958bdbfdd3a40ec56fef7373247"
+chai@4.1.2:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/chai/-/chai-4.1.2.tgz#0f64584ba642f0f2ace2806279f4f06ca23ad73c"
dependencies:
assertion-error "^1.0.1"
- deep-eql "^0.1.3"
- type-detect "^1.0.0"
+ check-error "^1.0.1"
+ deep-eql "^3.0.0"
+ get-func-name "^2.0.0"
+ pathval "^1.0.0"
+ type-detect "^4.0.0"
-chalk@^1.1.3:
+chalk@^1.0.0, chalk@^1.1, chalk@^1.1.1, chalk@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
dependencies:
@@ -516,7 +723,7 @@ chalk@^1.1.3:
strip-ansi "^3.0.0"
supports-color "^2.0.0"
-chalk@^2.0.0, chalk@^2.3.0:
+chalk@^2.0.1, chalk@^2.3.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.0.tgz#a060a297a6b57e15b61ca63ce84995daa0fe6e52"
dependencies:
@@ -524,10 +731,73 @@ chalk@^2.0.0, chalk@^2.3.0:
escape-string-regexp "^1.0.5"
supports-color "^5.3.0"
+charm@~0.1.1:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/charm/-/charm-0.1.2.tgz#06c21eed1a1b06aeb67553cdc53e23274bac2296"
+
+check-error@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82"
+
+chokidar@^2:
+ version "2.0.3"
+ resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.3.tgz#dcbd4f6cbb2a55b4799ba8a840ac527e5f4b1176"
+ dependencies:
+ anymatch "^2.0.0"
+ async-each "^1.0.0"
+ braces "^2.3.0"
+ glob-parent "^3.1.0"
+ inherits "^2.0.1"
+ is-binary-path "^1.0.0"
+ is-glob "^4.0.0"
+ normalize-path "^2.1.1"
+ path-is-absolute "^1.0.0"
+ readdirp "^2.0.0"
+ upath "^1.0.0"
+ optionalDependencies:
+ fsevents "^1.1.2"
+
chownr@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.0.1.tgz#e2a75042a9551908bebd25b8523d5f9769d79181"
+ci-info@^1.0.0:
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.1.3.tgz#710193264bb05c77b8c90d02f5aaf22216a667b2"
+
+class-utils@^0.3.5:
+ version "0.3.6"
+ resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463"
+ dependencies:
+ arr-union "^3.1.0"
+ define-property "^0.2.5"
+ isobject "^3.0.0"
+ static-extend "^0.1.1"
+
+cli-boxes@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143"
+
+cli-cursor@^1.0.1, cli-cursor@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987"
+ dependencies:
+ restore-cursor "^1.0.1"
+
+cli-spinners@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-0.1.2.tgz#bb764d88e185fb9e1e6a2a1f19772318f605e31c"
+
+cli-table-redemption@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/cli-table-redemption/-/cli-table-redemption-1.0.1.tgz#0359d8c34df74980029d76dff071a05a127c4fdd"
+ dependencies:
+ chalk "^1.1.3"
+
+cli-width@^2.0.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639"
+
cliui@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1"
@@ -536,6 +806,14 @@ cliui@^2.1.0:
right-align "^0.1.1"
wordwrap "0.0.2"
+cliui@^3.2.0:
+ version "3.2.0"
+ resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d"
+ dependencies:
+ string-width "^1.0.1"
+ strip-ansi "^3.0.1"
+ wrap-ansi "^2.0.0"
+
cls-bluebird@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/cls-bluebird/-/cls-bluebird-2.1.0.tgz#37ef1e080a8ffb55c2f4164f536f1919e7968aee"
@@ -543,17 +821,28 @@ cls-bluebird@^2.1.0:
is-bluebird "^1.0.2"
shimmer "^1.1.0"
+co@^4.6.0:
+ version "4.6.0"
+ resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
+
code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
-codepage@~1.12.0:
+codepage@~1.12.1:
version "1.12.2"
resolved "https://registry.yarnpkg.com/codepage/-/codepage-1.12.2.tgz#fd4424448c8bf1db5d7e01f9ecf9e8346582a195"
dependencies:
commander "~2.14.1"
exit-on-epipe "~1.0.1"
+collection-visit@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"
+ dependencies:
+ map-visit "^1.0.0"
+ object-visit "^1.0.0"
+
color-convert@^1.9.0, color-convert@^1.9.1:
version "1.9.1"
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed"
@@ -586,23 +875,21 @@ colors@1.0.x:
version "1.0.3"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b"
-combined-stream@1.0.6, combined-stream@^1.0.5:
+combined-stream@1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818"
dependencies:
delayed-stream "~1.0.0"
-commander@2.9.0:
- version "2.9.0"
- resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4"
- dependencies:
- graceful-readlink ">= 1.0.0"
+commander@2.11.0:
+ version "2.11.0"
+ resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563"
-commander@^2.12.1, commander@~2.13.0:
+commander@2.13.0:
version "2.13.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c"
-commander@^2.14.1:
+commander@^2.12.1, commander@^2.14.1:
version "2.15.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f"
@@ -610,7 +897,7 @@ commander@~2.14.1:
version "2.14.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.14.1.tgz#2235123e37af8ca3c65df45b026dbd357b01b9aa"
-component-emitter@^1.2.0:
+component-emitter@^1.2.0, component-emitter@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6"
@@ -618,14 +905,16 @@ concat-map@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
-concat-stream@^1.5.0:
- version "1.6.2"
- resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
+configstore@^3.0.0:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/configstore/-/configstore-3.1.2.tgz#c6f25defaeef26df12dd33414b001fe81a543f8f"
dependencies:
- buffer-from "^1.0.0"
- inherits "^2.0.3"
- readable-stream "^2.2.2"
- typedarray "^0.0.6"
+ dot-prop "^4.1.0"
+ graceful-fs "^4.1.2"
+ make-dir "^1.0.0"
+ unique-string "^1.0.0"
+ write-file-atomic "^2.0.0"
+ xdg-basedir "^3.0.0"
console-control-strings@^1.0.0, console-control-strings@~1.1.0:
version "1.1.0"
@@ -654,14 +943,18 @@ cookie@0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb"
-cookiejar@2.0.x:
- version "2.0.6"
- resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.0.6.tgz#0abf356ad00d1c5a219d88d44518046dd026acfe"
-
-cookiejar@^2.0.6, cookiejar@^2.1.0:
+cookiejar@^2.1.0, cookiejar@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.1.1.tgz#41ad57b1b555951ec171412a81942b1e8200d34a"
+copy-descriptor@^0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
+
+core-js@^2.4.0:
+ version "2.5.5"
+ resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.5.tgz#b14dde936c640c0579a6b50cabcc132dd6127e3b"
+
core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
@@ -677,43 +970,88 @@ crc-32@~1.2.0:
exit-on-epipe "~1.0.1"
printj "~1.1.0"
+create-error-class@^3.0.0:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6"
+ dependencies:
+ capture-stack-trace "^1.0.0"
+
+cron@^1.3:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/cron/-/cron-1.3.0.tgz#7e459968eaf94e1a445be796ce402166c234659d"
+ dependencies:
+ moment-timezone "^0.5.x"
+
+cross-spawn-async@^2.1.1:
+ version "2.2.5"
+ resolved "https://registry.yarnpkg.com/cross-spawn-async/-/cross-spawn-async-2.2.5.tgz#845ff0c0834a3ded9d160daca6d390906bb288cc"
+ dependencies:
+ lru-cache "^4.0.0"
+ which "^1.2.8"
+
+cross-spawn@^5.0.1:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
+ dependencies:
+ lru-cache "^4.0.1"
+ shebang-command "^1.2.0"
+ which "^1.2.9"
+
+crypto-random-string@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e"
+
+csv-parse@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-2.2.0.tgz#478097dc731a0b665bc761344cad18507a359893"
+
+csv-stringify@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/csv-stringify/-/csv-stringify-3.0.0.tgz#ed2b4eaae5a3be382309f7864168458970307d7f"
+ dependencies:
+ lodash.get "~4.4.2"
+
+currently-unhandled@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea"
+ dependencies:
+ array-find-index "^1.0.1"
+
cycle@1.0.x:
version "1.0.3"
resolved "https://registry.yarnpkg.com/cycle/-/cycle-1.0.3.tgz#21e80b2be8580f98b468f379430662b046c34ad2"
-debug@2.6.8:
- version "2.6.8"
- resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc"
- dependencies:
- ms "2.0.0"
-
-debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.6.3, debug@^2.6.9:
+debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.3, debug@^2.6.8, debug@^2.6.9:
version "2.6.9"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
dependencies:
ms "2.0.0"
-debug@^3, debug@^3.1.0:
+debug@3.1.0, debug@^3, debug@^3.0, debug@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
dependencies:
ms "2.0.0"
-decamelize@^1.0.0:
+decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2:
version "1.2.0"
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
+decode-uri-component@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545"
+
decompress-response@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3"
dependencies:
mimic-response "^1.0.0"
-deep-eql@^0.1.3:
- version "0.1.3"
- resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-0.1.3.tgz#ef558acab8de25206cd713906d74e56930eb69f2"
+deep-eql@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-3.0.1.tgz#dfc9404400ad1c8fe023e7da1df1c147c4b444df"
dependencies:
- type-detect "0.1.1"
+ type-detect "^4.0.0"
deep-extend@~0.4.0:
version "0.4.2"
@@ -725,6 +1063,25 @@ deep-metrics@^0.0.1:
dependencies:
semver "^5.3.0"
+define-property@^0.2.5:
+ version "0.2.5"
+ resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116"
+ dependencies:
+ is-descriptor "^0.1.0"
+
+define-property@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6"
+ dependencies:
+ is-descriptor "^1.0.0"
+
+define-property@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d"
+ dependencies:
+ is-descriptor "^1.0.2"
+ isobject "^3.0.1"
+
delayed-stream@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
@@ -733,6 +1090,22 @@ delegates@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
+depcheck@^0.6.3:
+ version "0.6.9"
+ resolved "https://registry.yarnpkg.com/depcheck/-/depcheck-0.6.9.tgz#efe6fdf5cf00c2172811bc2a2403d59e5341e519"
+ dependencies:
+ babel-traverse "^6.7.3"
+ babylon "^6.1.21"
+ builtin-modules "^1.1.1"
+ deprecate "^1.0.0"
+ deps-regex "^0.1.4"
+ js-yaml "^3.4.2"
+ lodash "^4.5.1"
+ minimatch "^3.0.2"
+ require-package-name "^2.0.1"
+ walkdir "0.0.11"
+ yargs "^8.0.2"
+
depd@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359"
@@ -741,6 +1114,14 @@ depd@^1.1.0, depd@~1.1.1, depd@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
+deprecate@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/deprecate/-/deprecate-1.0.0.tgz#661490ed2428916a6c8883d8834e5646f4e4a4a8"
+
+deps-regex@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/deps-regex/-/deps-regex-0.1.4.tgz#518667b7691460a5e7e0a341be76eb7ce8090184"
+
destroy@~1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80"
@@ -749,25 +1130,24 @@ detect-libc@^1.0.2, detect-libc@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b"
-dicer@0.2.5:
- version "0.2.5"
- resolved "https://registry.yarnpkg.com/dicer/-/dicer-0.2.5.tgz#5996c086bb33218c812c090bddc09cd12facb70f"
- dependencies:
- readable-stream "1.1.x"
- streamsearch "0.1.2"
-
-diff@3.2.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9"
-
-diff@^3.1.0, diff@^3.2.0:
+diff@3.5.0, diff@^3.1.0, diff@^3.2.0:
version "3.5.0"
resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12"
+dot-prop@^4.1.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57"
+ dependencies:
+ is-obj "^1.0.0"
+
dottie@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/dottie/-/dottie-2.0.0.tgz#da191981c8b8d713ca0115d5898cf397c2f0ddd0"
+duplexer3@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
+
ecdsa-sig-formatter@1.0.9:
version "1.0.9"
resolved "https://registry.yarnpkg.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.9.tgz#4bc926274ec3b5abb5016e7e1d60921ac262b2a1"
@@ -795,6 +1175,18 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0:
dependencies:
once "^1.4.0"
+error-ex@^1.2.0:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc"
+ dependencies:
+ is-arrayish "^0.2.1"
+
+error-stack-parser@^1.3.3:
+ version "1.3.6"
+ resolved "https://registry.yarnpkg.com/error-stack-parser/-/error-stack-parser-1.3.6.tgz#e0e73b93e417138d1cd7c0b746b1a4a14854c292"
+ dependencies:
+ stackframe "^0.3.1"
+
es6-shim@0.35.3:
version "0.35.3"
resolved "https://registry.yarnpkg.com/es6-shim/-/es6-shim-0.35.3.tgz#9bfb7363feffff87a6cdb6cd93e405ec3c4b6f26"
@@ -803,6 +1195,10 @@ escape-html@~1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
+escape-regexp@0.0.1:
+ version "0.0.1"
+ resolved "https://registry.yarnpkg.com/escape-regexp/-/escape-regexp-0.0.1.tgz#f44bda12d45bbdf9cb7f862ee7e4827b3dd32254"
+
escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
@@ -819,14 +1215,66 @@ etag@~1.8.1:
version "1.8.1"
resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"
+eventemitter2@1.0.5:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-1.0.5.tgz#f983610517b1737c0b9dc643beca93893c04df18"
+
+eventemitter2@~0.4.14:
+ version "0.4.14"
+ resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-0.4.14.tgz#8f61b75cde012b2e9eb284d4545583b5643b61ab"
+
+execa@^0.2.2:
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/execa/-/execa-0.2.2.tgz#e2ead472c2c31aad6f73f1ac956eef45e12320cb"
+ dependencies:
+ cross-spawn-async "^2.1.1"
+ npm-run-path "^1.0.0"
+ object-assign "^4.0.1"
+ path-key "^1.0.0"
+ strip-eof "^1.0.0"
+
+execa@^0.7.0:
+ version "0.7.0"
+ resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777"
+ dependencies:
+ cross-spawn "^5.0.1"
+ get-stream "^3.0.0"
+ is-stream "^1.1.0"
+ npm-run-path "^2.0.0"
+ p-finally "^1.0.0"
+ signal-exit "^3.0.0"
+ strip-eof "^1.0.0"
+
+exit-hook@^1.0.0:
+ version "1.1.1"
+ resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8"
+
exit-on-epipe@~1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz#0bdd92e87d5285d267daa8171d0eb06159689692"
+expand-brackets@^2.1.4:
+ version "2.1.4"
+ resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622"
+ dependencies:
+ debug "^2.3.3"
+ define-property "^0.2.5"
+ extend-shallow "^2.0.1"
+ posix-character-classes "^0.1.0"
+ regex-not "^1.0.0"
+ snapdragon "^0.8.1"
+ to-regex "^3.0.1"
+
expand-template@^1.0.2:
version "1.1.0"
resolved "https://registry.yarnpkg.com/expand-template/-/expand-template-1.1.0.tgz#e09efba977bf98f9ee0ed25abd0c692e02aec3fc"
+expand-tilde@^2.0.0, expand-tilde@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502"
+ dependencies:
+ homedir-polyfill "^1.0.1"
+
express-jwt@^5.3.0:
version "5.3.1"
resolved "https://registry.yarnpkg.com/express-jwt/-/express-jwt-5.3.1.tgz#66f05c7dddb5409c037346a98b88965bb10ea4ae"
@@ -875,14 +1323,51 @@ express@^4.16.2:
utils-merge "1.0.1"
vary "~1.1.2"
+extend-shallow@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f"
+ dependencies:
+ is-extendable "^0.1.0"
+
+extend-shallow@^3.0.0, extend-shallow@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8"
+ dependencies:
+ assign-symbols "^1.0.0"
+ is-extendable "^1.0.1"
+
extend@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444"
+extglob@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543"
+ dependencies:
+ array-unique "^0.3.2"
+ define-property "^1.0.0"
+ expand-brackets "^2.1.4"
+ extend-shallow "^2.0.1"
+ fragment-cache "^0.2.1"
+ regex-not "^1.0.0"
+ snapdragon "^0.8.1"
+ to-regex "^3.0.1"
+
eyes@0.1.x:
version "0.1.8"
resolved "https://registry.yarnpkg.com/eyes/-/eyes-0.1.8.tgz#62cf120234c683785d902348a800ef3e0cc20bc0"
+fclone@1.0.11, fclone@^1:
+ version "1.0.11"
+ resolved "https://registry.yarnpkg.com/fclone/-/fclone-1.0.11.tgz#10e85da38bfea7fc599341c296ee1d77266ee640"
+
+figures@^1.3.5:
+ version "1.7.0"
+ resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e"
+ dependencies:
+ escape-string-regexp "^1.0.5"
+ object-assign "^4.1.0"
+
file-match@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/file-match/-/file-match-1.0.2.tgz#c9cad265d2c8adf3a81475b0df475859069faef7"
@@ -896,6 +1381,19 @@ file-system@^2.2.2:
file-match "^1.0.1"
utils-extend "^1.0.4"
+file-type@^7.6.0:
+ version "7.6.0"
+ resolved "https://registry.yarnpkg.com/file-type/-/file-type-7.6.0.tgz#b3dbfc8029148e86f30761b21253562943d21f06"
+
+fill-range@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7"
+ dependencies:
+ extend-shallow "^2.0.1"
+ is-number "^3.0.0"
+ repeat-string "^1.6.1"
+ to-regex-range "^2.1.0"
+
finalhandler@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.1.tgz#eebf4ed840079c83f4249038c9d703008301b105"
@@ -908,13 +1406,22 @@ finalhandler@1.1.1:
statuses "~1.4.0"
unpipe "~1.0.0"
-form-data@1.0.0-rc4:
- version "1.0.0-rc4"
- resolved "https://registry.yarnpkg.com/form-data/-/form-data-1.0.0-rc4.tgz#05ac6bc22227b43e4461f488161554699d4f8b5e"
+find-up@^1.0.0:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
dependencies:
- async "^1.5.2"
- combined-stream "^1.0.5"
- mime-types "^2.1.10"
+ path-exists "^2.0.0"
+ pinkie-promise "^2.0.0"
+
+find-up@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7"
+ dependencies:
+ locate-path "^2.0.0"
+
+for-in@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
form-data@^2.3.1:
version "2.3.2"
@@ -924,7 +1431,7 @@ form-data@^2.3.1:
combined-stream "1.0.6"
mime-types "^2.1.12"
-formidable@^1.0.17, formidable@^1.1.1:
+formidable@^1.1.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.2.1.tgz#70fb7ca0290ee6ff961090415f4b3df3d2082659"
@@ -936,6 +1443,12 @@ frac@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/frac/-/frac-1.1.2.tgz#3d74f7f6478c88a1b5020306d747dc6313c74d0b"
+fragment-cache@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19"
+ dependencies:
+ map-cache "^0.2.2"
+
fresh@0.5.2:
version "0.5.2"
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
@@ -962,6 +1475,13 @@ fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
+fsevents@^1.1.2:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.0.tgz#e11a5ff285471e4cc43ab9cd09bb7986c565dcdc"
+ dependencies:
+ nan "^2.9.2"
+ node-pre-gyp "^0.9.0"
+
gauge@~2.7.3:
version "2.7.4"
resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
@@ -979,20 +1499,44 @@ generic-pool@^3.4.0:
version "3.4.2"
resolved "https://registry.yarnpkg.com/generic-pool/-/generic-pool-3.4.2.tgz#92ff7196520d670839a67308092a12aadf2f6a59"
+get-caller-file@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5"
+
+get-func-name@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz#ead774abee72e20409433a066366023dd6887a41"
+
+get-stdin@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe"
+
+get-stream@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14"
+
+get-value@^2.0.3, get-value@^2.0.6:
+ version "2.0.6"
+ resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28"
+
github-from-package@0.0.0:
version "0.0.0"
resolved "https://registry.yarnpkg.com/github-from-package/-/github-from-package-0.0.0.tgz#97fb5d96bfde8973313f20e8288ef9a167fa64ce"
-glob@7.1.1:
- version "7.1.1"
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
+giturl@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/giturl/-/giturl-1.0.0.tgz#9732a81e9e25c457a22f0e2ca1c9c51dbbb5325f"
+
+"gkt@https://tgz.pm2.io/gkt-1.0.0.tgz":
+ version "1.0.0"
+ resolved "https://tgz.pm2.io/gkt-1.0.0.tgz#405502b007f319c3f47175c4474527300f2ab5ad"
+
+glob-parent@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae"
dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^3.0.2"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
+ is-glob "^3.1.0"
+ path-dirname "^1.0.0"
glob@7.1.2, glob@^7.0.0, glob@^7.0.5, glob@^7.1.1:
version "7.1.2"
@@ -1005,17 +1549,78 @@ glob@7.1.2, glob@^7.0.0, glob@^7.0.5, glob@^7.1.1:
once "^1.3.0"
path-is-absolute "^1.0.0"
-graceful-fs@^4.1.2, graceful-fs@^4.1.6:
+glob@^6.0.1:
+ version "6.0.4"
+ resolved "https://registry.yarnpkg.com/glob/-/glob-6.0.4.tgz#0f08860f6a155127b2fadd4f9ce24b1aab6e4d22"
+ dependencies:
+ inflight "^1.0.4"
+ inherits "2"
+ minimatch "2 || 3"
+ once "^1.3.0"
+ path-is-absolute "^1.0.0"
+
+global-dirs@^0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445"
+ dependencies:
+ ini "^1.3.4"
+
+global-modules@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea"
+ dependencies:
+ global-prefix "^1.0.1"
+ is-windows "^1.0.1"
+ resolve-dir "^1.0.0"
+
+global-prefix@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-1.0.2.tgz#dbf743c6c14992593c655568cb66ed32c0122ebe"
+ dependencies:
+ expand-tilde "^2.0.2"
+ homedir-polyfill "^1.0.1"
+ ini "^1.3.4"
+ is-windows "^1.0.1"
+ which "^1.2.14"
+
+globals@^9.18.0:
+ version "9.18.0"
+ resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a"
+
+globby@^4.0.0:
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/globby/-/globby-4.1.0.tgz#080f54549ec1b82a6c60e631fc82e1211dbe95f8"
+ dependencies:
+ array-union "^1.0.1"
+ arrify "^1.0.0"
+ glob "^6.0.1"
+ object-assign "^4.0.1"
+ pify "^2.0.0"
+ pinkie-promise "^2.0.0"
+
+got@^6.7.1:
+ version "6.7.1"
+ resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0"
+ dependencies:
+ create-error-class "^3.0.0"
+ duplexer3 "^0.1.4"
+ get-stream "^3.0.0"
+ is-redirect "^1.0.0"
+ is-retry-allowed "^1.0.0"
+ is-stream "^1.0.0"
+ lowercase-keys "^1.0.0"
+ safe-buffer "^5.0.1"
+ timed-out "^4.0.0"
+ unzip-response "^2.0.1"
+ url-parse-lax "^1.0.0"
+
+graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6:
version "4.1.11"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
-"graceful-readlink@>= 1.0.0":
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"
-
-growl@1.9.2:
- version "1.9.2"
- resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f"
+growl@1.10.3:
+ version "1.10.3"
+ resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.3.tgz#1926ba90cf3edfe2adb4927f5880bc22c66c790f"
handlebars@^4.0.6:
version "4.0.11"
@@ -1033,9 +1638,9 @@ has-ansi@^2.0.0:
dependencies:
ansi-regex "^2.0.0"
-has-flag@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa"
+has-flag@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51"
has-flag@^3.0.0:
version "3.0.0"
@@ -1045,10 +1650,45 @@ has-unicode@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9"
+has-value@^0.3.1:
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f"
+ dependencies:
+ get-value "^2.0.3"
+ has-values "^0.1.4"
+ isobject "^2.0.0"
+
+has-value@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177"
+ dependencies:
+ get-value "^2.0.6"
+ has-values "^1.0.0"
+ isobject "^3.0.0"
+
+has-values@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771"
+
+has-values@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f"
+ dependencies:
+ is-number "^3.0.0"
+ kind-of "^4.0.0"
+
he@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd"
+highlight-es@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/highlight-es/-/highlight-es-1.0.1.tgz#3bb01eb1f2062ddaab72f8b23766a3bf8c1a771f"
+ dependencies:
+ chalk "^1.1.1"
+ is-es2016-keyword "^1.0.0"
+ js-tokens "^3.0.0"
+
highlight.js@^9.0.0:
version "9.12.0"
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.12.0.tgz#e6d9dbe57cbefe60751f02af336195870c90c01e"
@@ -1059,6 +1699,10 @@ homedir-polyfill@^1.0.1:
dependencies:
parse-passwd "^1.0.0"
+hosted-git-info@^2.1.4:
+ version "2.6.0"
+ resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.0.tgz#23235b29ab230c576aab0d4f13fc046b0b038222"
+
http-errors@1.6.2:
version "1.6.2"
resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736"
@@ -1077,16 +1721,36 @@ http-errors@~1.6.2:
setprototypeof "1.1.0"
statuses ">= 1.4.0 < 2"
-iconv-lite@0.4.19, iconv-lite@^0.4.4:
+iconv-lite@0.4.19:
version "0.4.19"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
+iconv-lite@^0.4.4:
+ version "0.4.21"
+ resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.21.tgz#c47f8733d02171189ebc4a400f3218d348094798"
+ dependencies:
+ safer-buffer "^2.1.0"
+
ignore-walk@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8"
dependencies:
minimatch "^3.0.4"
+import-lazy@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
+
+imurmurhash@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
+
+indent-string@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80"
+ dependencies:
+ repeating "^2.0.0"
+
inflection@1.12.0:
version "1.12.0"
resolved "https://registry.yarnpkg.com/inflection/-/inflection-1.12.0.tgz#a200935656d6f5f6bc4dc7502e1aecb703228416"
@@ -1098,30 +1762,80 @@ inflight@^1.0.4:
once "^1.3.0"
wrappy "1"
-inherits@2, inherits@2.0.3, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3:
+inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@~2.0.1, inherits@~2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
-ini@~1.3.0:
+ini@^1.3.4, ini@~1.3.0:
version "1.3.5"
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927"
+inquirer@^0.12.0:
+ version "0.12.0"
+ resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.12.0.tgz#1ef2bfd63504df0bc75785fff8c2c41df12f077e"
+ dependencies:
+ ansi-escapes "^1.1.0"
+ ansi-regex "^2.0.0"
+ chalk "^1.0.0"
+ cli-cursor "^1.0.1"
+ cli-width "^2.0.0"
+ figures "^1.3.5"
+ lodash "^4.3.0"
+ readline2 "^1.0.1"
+ run-async "^0.1.0"
+ rx-lite "^3.1.2"
+ string-width "^1.0.1"
+ strip-ansi "^3.0.0"
+ through "^2.3.6"
+
interpret@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614"
-ip-regex@^1.0.0:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-1.0.3.tgz#dc589076f659f419c222039a33316f1c7387effd"
+invariant@^2.2.2:
+ version "2.2.4"
+ resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
+ dependencies:
+ loose-envify "^1.0.0"
+
+invert-kv@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
+
+ip-regex@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9"
ipaddr.js@1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.6.0.tgz#e3fa357b773da619f26e95f049d055c72796f86b"
+is-accessor-descriptor@^0.1.6:
+ version "0.1.6"
+ resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6"
+ dependencies:
+ kind-of "^3.0.2"
+
+is-accessor-descriptor@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656"
+ dependencies:
+ kind-of "^6.0.0"
+
+is-arrayish@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
+
is-arrayish@^0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.1.tgz#c2dfc386abaa0c3e33c48db3fe87059e69065efd"
+is-binary-path@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898"
+ dependencies:
+ binary-extensions "^1.0.0"
+
is-bluebird@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-bluebird/-/is-bluebird-1.0.2.tgz#096439060f4aa411abee19143a84d6a55346d6e2"
@@ -1130,17 +1844,164 @@ is-buffer@^1.1.5:
version "1.1.6"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
+is-builtin-module@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe"
+ dependencies:
+ builtin-modules "^1.0.0"
+
+is-ci@^1.0.10, is-ci@^1.0.8:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.1.0.tgz#247e4162e7860cebbdaf30b774d6b0ac7dcfe7a5"
+ dependencies:
+ ci-info "^1.0.0"
+
+is-data-descriptor@^0.1.4:
+ version "0.1.4"
+ resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56"
+ dependencies:
+ kind-of "^3.0.2"
+
+is-data-descriptor@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7"
+ dependencies:
+ kind-of "^6.0.0"
+
+is-descriptor@^0.1.0:
+ version "0.1.6"
+ resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca"
+ dependencies:
+ is-accessor-descriptor "^0.1.6"
+ is-data-descriptor "^0.1.4"
+ kind-of "^5.0.0"
+
+is-descriptor@^1.0.0, is-descriptor@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec"
+ dependencies:
+ is-accessor-descriptor "^1.0.0"
+ is-data-descriptor "^1.0.0"
+ kind-of "^6.0.2"
+
+is-es2016-keyword@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-es2016-keyword/-/is-es2016-keyword-1.0.0.tgz#f6e54e110c5e4f8d265e69d2ed0eaf8cf5f47718"
+
+is-extendable@^0.1.0, is-extendable@^0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
+
+is-extendable@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4"
+ dependencies:
+ is-plain-object "^2.0.4"
+
+is-extglob@^2.1.0, is-extglob@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
+
+is-finite@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa"
+ dependencies:
+ number-is-nan "^1.0.0"
+
is-fullwidth-code-point@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb"
dependencies:
number-is-nan "^1.0.0"
-is-ip@1.0.0:
+is-fullwidth-code-point@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f"
+
+is-glob@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a"
+ dependencies:
+ is-extglob "^2.1.0"
+
+is-glob@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0"
+ dependencies:
+ is-extglob "^2.1.1"
+
+is-installed-globally@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80"
+ dependencies:
+ global-dirs "^0.1.0"
+ is-path-inside "^1.0.0"
+
+is-ip@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/is-ip/-/is-ip-2.0.0.tgz#68eea07e8a0a0a94c2d080dd674c731ab2a461ab"
+ dependencies:
+ ip-regex "^2.0.0"
+
+is-npm@^1.0.0:
version "1.0.0"
- resolved "https://registry.yarnpkg.com/is-ip/-/is-ip-1.0.0.tgz#2bb6959f797ccd6f9fdc812758bcbc87c4c59074"
+ resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4"
+
+is-number@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195"
dependencies:
- ip-regex "^1.0.0"
+ kind-of "^3.0.2"
+
+is-number@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff"
+
+is-obj@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f"
+
+is-odd@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/is-odd/-/is-odd-2.0.0.tgz#7646624671fd7ea558ccd9a2795182f2958f1b24"
+ dependencies:
+ is-number "^4.0.0"
+
+is-path-inside@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036"
+ dependencies:
+ path-is-inside "^1.0.1"
+
+is-plain-obj@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e"
+
+is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
+ dependencies:
+ isobject "^3.0.1"
+
+is-redirect@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24"
+
+is-retry-allowed@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34"
+
+is-stream@^1.0.0, is-stream@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
+
+is-utf8@^0.2.0:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
+
+is-windows@^1.0.1, is-windows@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
is@^3.2.0:
version "3.2.1"
@@ -1150,10 +2011,24 @@ isarray@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf"
-isarray@~1.0.0:
+isarray@1.0.0, isarray@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
+isexe@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
+
+isobject@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89"
+ dependencies:
+ isarray "1.0.0"
+
+isobject@^3.0.0, isobject@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df"
+
isstream@0.1.x:
version "0.1.2"
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
@@ -1162,11 +2037,11 @@ js-string-escape@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/js-string-escape/-/js-string-escape-1.0.1.tgz#e2625badbc0d67c7533e9edc1068c587ae4137ef"
-js-tokens@^3.0.2:
+js-tokens@^3.0.0, js-tokens@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
-js-yaml@^3.7.0:
+js-yaml@^3.4.2, js-yaml@^3.7.0:
version "3.11.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.11.0.tgz#597c1a8bd57152f26d622ce4117851a51f5ebaef"
dependencies:
@@ -1177,10 +2052,6 @@ json-stringify-safe@^5.0:
version "5.0.1"
resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
-json3@3.3.2:
- version "3.3.2"
- resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1"
-
jsonfile@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
@@ -1219,16 +2090,46 @@ jws@^3.1.4:
jwa "^1.1.4"
safe-buffer "^5.0.1"
-kind-of@^3.0.2:
+kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0:
version "3.2.2"
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
dependencies:
is-buffer "^1.1.5"
+kind-of@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57"
+ dependencies:
+ is-buffer "^1.1.5"
+
+kind-of@^5.0.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d"
+
+kind-of@^6.0.0, kind-of@^6.0.2:
+ version "6.0.2"
+ resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051"
+
+latest-version@^3.0.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-3.1.0.tgz#a205383fea322b33b5ae3b18abee0dc2f356ee15"
+ dependencies:
+ package-json "^4.0.0"
+
lazy-cache@^1.0.3:
version "1.0.4"
resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"
+lazy@~1.0.11:
+ version "1.0.11"
+ resolved "https://registry.yarnpkg.com/lazy/-/lazy-1.0.11.tgz#daa068206282542c088288e975c297c1ae77b690"
+
+lcid@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835"
+ dependencies:
+ invert-kv "^1.0.0"
+
libpq@^1.7.0:
version "1.8.7"
resolved "https://registry.yarnpkg.com/libpq/-/libpq-1.8.7.tgz#c2deb121e28f7f84bd3b2451afff68b6663e74f9"
@@ -1236,53 +2137,44 @@ libpq@^1.7.0:
bindings "1.2.1"
nan "^2.3.0"
-lodash._baseassign@^3.0.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e"
+load-json-file@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0"
dependencies:
- lodash._basecopy "^3.0.0"
- lodash.keys "^3.0.0"
-
-lodash._basecopy@^3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36"
-
-lodash._basecreate@^3.0.0:
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821"
-
-lodash._getnative@^3.0.0:
- version "3.9.1"
- resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
+ graceful-fs "^4.1.2"
+ parse-json "^2.2.0"
+ pify "^2.0.0"
+ pinkie-promise "^2.0.0"
+ strip-bom "^2.0.0"
-lodash._isiterateecall@^3.0.0:
- version "3.0.9"
- resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c"
+load-json-file@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8"
+ dependencies:
+ graceful-fs "^4.1.2"
+ parse-json "^2.2.0"
+ pify "^2.0.0"
+ strip-bom "^3.0.0"
-lodash.create@3.1.1:
- version "3.1.1"
- resolved "https://registry.yarnpkg.com/lodash.create/-/lodash.create-3.1.1.tgz#d7f2849f0dbda7e04682bb8cd72ab022461debe7"
+locate-path@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
dependencies:
- lodash._baseassign "^3.0.0"
- lodash._basecreate "^3.0.0"
- lodash._isiterateecall "^3.0.0"
+ p-locate "^2.0.0"
+ path-exists "^3.0.0"
lodash.findindex@^4.4.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash.findindex/-/lodash.findindex-4.6.0.tgz#a3245dee61fb9b6e0624b535125624bb69c11106"
+lodash.get@~4.4.2:
+ version "4.4.2"
+ resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"
+
lodash.includes@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f"
-lodash.isarguments@^3.0.0:
- version "3.1.0"
- resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a"
-
-lodash.isarray@^3.0.0:
- version "3.0.4"
- resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55"
-
lodash.isboolean@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6"
@@ -1307,14 +2199,6 @@ lodash.isstring@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"
-lodash.keys@^3.0.0:
- version "3.1.2"
- resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a"
- dependencies:
- lodash._getnative "^3.0.0"
- lodash.isarguments "^3.0.0"
- lodash.isarray "^3.0.0"
-
lodash.merge@^4.6.0:
version "4.6.1"
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.1.tgz#adc25d9cb99b9391c59624f379fbba60d7111d54"
@@ -1327,7 +2211,11 @@ lodash.set@^4.0.0:
version "4.3.2"
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"
-lodash@^4.13.1, lodash@^4.17.1:
+lodash.toarray@^4.4.0:
+ version "4.4.0"
+ resolved "https://registry.yarnpkg.com/lodash.toarray/-/lodash.toarray-4.4.0.tgz#24c4bfcd6b2fba38bfd0594db1179d8e9b656561"
+
+"lodash@4.6.1 || ^4.16.1", lodash@^4.14.0, lodash@^4.17.1, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@^4.5.1, lodash@^4.7.0:
version "4.17.5"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
@@ -1335,11 +2223,55 @@ longest@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097"
+loose-envify@^1.0.0:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848"
+ dependencies:
+ js-tokens "^3.0.0"
+
+loud-rejection@^1.0.0:
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f"
+ dependencies:
+ currently-unhandled "^0.4.1"
+ signal-exit "^3.0.0"
+
+lowercase-keys@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f"
+
+lru-cache@^4.0.0, lru-cache@^4.0.1:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.2.tgz#45234b2e6e2f2b33da125624c4664929a0224c3f"
+ dependencies:
+ pseudomap "^1.0.2"
+ yallist "^2.1.2"
+
+make-dir@^1.0.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.2.0.tgz#6d6a49eead4aae296c53bbf3a1a008bd6c89469b"
+ dependencies:
+ pify "^3.0.0"
+
make-error@^1.1.1:
version "1.3.4"
resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.4.tgz#19978ed575f9e9545d2ff8c13e33b5d18a67d535"
-marked@^0.3.12:
+map-cache@^0.2.2:
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf"
+
+map-obj@^1.0.0, map-obj@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d"
+
+map-visit@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f"
+ dependencies:
+ object-visit "^1.0.0"
+
+marked@^0.3.17:
version "0.3.19"
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.19.tgz#5d47f709c4c9fc3c216b6d46127280f40b39d790"
@@ -1347,37 +2279,86 @@ media-typer@0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
+mem@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76"
+ dependencies:
+ mimic-fn "^1.0.0"
+
+meow@^3.7.0:
+ version "3.7.0"
+ resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb"
+ dependencies:
+ camelcase-keys "^2.0.0"
+ decamelize "^1.1.2"
+ loud-rejection "^1.0.0"
+ map-obj "^1.0.1"
+ minimist "^1.1.3"
+ normalize-package-data "^2.3.4"
+ object-assign "^4.0.1"
+ read-pkg-up "^1.0.1"
+ redent "^1.0.0"
+ trim-newlines "^1.0.0"
+
merge-descriptors@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61"
+merge-options@0.0.64:
+ version "0.0.64"
+ resolved "https://registry.yarnpkg.com/merge-options/-/merge-options-0.0.64.tgz#cbe04f594a6985eaf27f7f8f0b2a3acf6f9d562d"
+ dependencies:
+ is-plain-obj "^1.1.0"
+
methods@^1.1.1, methods@^1.1.2, methods@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
+micromatch@^3.1.4:
+ version "3.1.10"
+ resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23"
+ dependencies:
+ arr-diff "^4.0.0"
+ array-unique "^0.3.2"
+ braces "^2.3.1"
+ define-property "^2.0.2"
+ extend-shallow "^3.0.2"
+ extglob "^2.0.4"
+ fragment-cache "^0.2.1"
+ kind-of "^6.0.2"
+ nanomatch "^1.2.9"
+ object.pick "^1.3.0"
+ regex-not "^1.0.0"
+ snapdragon "^0.8.1"
+ to-regex "^3.0.2"
+
mime-db@~1.33.0:
version "1.33.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.33.0.tgz#a3492050a5cb9b63450541e39d9788d2272783db"
-mime-types@^2.1.10, mime-types@^2.1.12, mime-types@~2.1.18:
+mime-types@^2.1.12, mime-types@^2.1.18, mime-types@~2.1.18:
version "2.1.18"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8"
dependencies:
mime-db "~1.33.0"
-mime@1.4.1, mime@^1.4.1:
+mime@1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6"
-mime@^1.3.4:
+mime@^1.4.1:
version "1.6.0"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
+mimic-fn@^1.0.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022"
+
mimic-response@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.0.tgz#df3d3652a73fded6b9b0b24146e6fd052353458e"
-minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4:
+"minimatch@2 || 3", minimatch@3.0.4, minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
dependencies:
@@ -1387,7 +2368,7 @@ minimist@0.0.8:
version "0.0.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
-minimist@^1.2.0:
+minimist@^1.1.3, minimist@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
@@ -1408,6 +2389,13 @@ minizlib@^1.1.0:
dependencies:
minipass "^2.2.1"
+mixin-deep@^1.2.0:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe"
+ dependencies:
+ for-in "^1.0.2"
+ is-extendable "^1.0.1"
+
mkdirp@0.5.1, mkdirp@^0.5.0, mkdirp@^0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
@@ -1420,30 +2408,29 @@ mocha-each@^1.1.0:
dependencies:
sprintf-js "^1.0.3"
-mocha@^3.1.2:
- version "3.5.3"
- resolved "https://registry.yarnpkg.com/mocha/-/mocha-3.5.3.tgz#1e0480fe36d2da5858d1eb6acc38418b26eaa20d"
+mocha@5.1.1:
+ version "5.1.1"
+ resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.1.1.tgz#b774c75609dac05eb48f4d9ba1d827b97fde8a7b"
dependencies:
- browser-stdout "1.3.0"
- commander "2.9.0"
- debug "2.6.8"
- diff "3.2.0"
+ browser-stdout "1.3.1"
+ commander "2.11.0"
+ debug "3.1.0"
+ diff "3.5.0"
escape-string-regexp "1.0.5"
- glob "7.1.1"
- growl "1.9.2"
+ glob "7.1.2"
+ growl "1.10.3"
he "1.1.1"
- json3 "3.3.2"
- lodash.create "3.1.1"
+ minimatch "3.0.4"
mkdirp "0.5.1"
- supports-color "3.1.2"
+ supports-color "4.4.0"
-moment-timezone@^0.5.14:
- version "0.5.15"
- resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.15.tgz#0e2acec4a424850b4e0e3e08984532726563ad4c"
+moment-timezone@^0.5.14, moment-timezone@^0.5.x:
+ version "0.5.16"
+ resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.16.tgz#661717d5f55b4d2c2e002262d726c83785192a5a"
dependencies:
moment ">= 2.9.0"
-"moment@>= 2.9.0", moment@^2.20.0:
+"moment@>= 2.9.0", moment@^2.19, moment@^2.20.0:
version "2.22.1"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.1.tgz#529a2e9bf973f259c9643d237fda84de3a26e8ad"
@@ -1465,20 +2452,15 @@ ms@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a"
-multer@^1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/multer/-/multer-1.3.0.tgz#092b2670f6846fa4914965efc8cf94c20fec6cd2"
- dependencies:
- append-field "^0.1.0"
- busboy "^0.2.11"
- concat-stream "^1.5.0"
- mkdirp "^0.5.1"
- object-assign "^3.0.0"
- on-finished "^2.3.0"
- type-is "^1.6.4"
- xtend "^4.0.0"
+mute-stream@0.0.5:
+ version "0.0.5"
+ resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0"
-nan@^2.10.0, nan@^2.3.0:
+mute-stream@~0.0.4:
+ version "0.0.7"
+ resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
+
+nan@^2.10.0, nan@^2.3.0, nan@^2.9.2:
version "2.10.0"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f"
@@ -1486,7 +2468,24 @@ nan@~2.9.2:
version "2.9.2"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.9.2.tgz#f564d75f5f8f36a6d9456cca7a6c4fe488ab7866"
-needle@^2.2.0:
+nanomatch@^1.2.9:
+ version "1.2.9"
+ resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.9.tgz#879f7150cb2dab7a471259066c104eee6e0fa7c2"
+ dependencies:
+ arr-diff "^4.0.0"
+ array-unique "^0.3.2"
+ define-property "^2.0.2"
+ extend-shallow "^3.0.2"
+ fragment-cache "^0.2.1"
+ is-odd "^2.0.0"
+ is-windows "^1.0.2"
+ kind-of "^6.0.2"
+ object.pick "^1.3.0"
+ regex-not "^1.0.0"
+ snapdragon "^0.8.1"
+ to-regex "^3.0.1"
+
+needle@^2.1.0, needle@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/needle/-/needle-2.2.0.tgz#f14efc69cee1024b72c8b21c7bdf94a731dc12fa"
dependencies:
@@ -1504,7 +2503,13 @@ node-abi@^2.2.0:
dependencies:
semver "^5.4.1"
-node-pre-gyp@~0.9.0:
+node-emoji@^1.0.3:
+ version "1.8.1"
+ resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.8.1.tgz#6eec6bfb07421e2148c75c6bba72421f8530a826"
+ dependencies:
+ lodash.toarray "^4.4.0"
+
+node-pre-gyp@^0.9.0, node-pre-gyp@~0.9.0:
version "0.9.1"
resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.9.1.tgz#f11c07516dd92f87199dbc7e1838eab7cd56c9e0"
dependencies:
@@ -1530,6 +2535,21 @@ nopt@^4.0.1:
abbrev "1"
osenv "^0.1.4"
+normalize-package-data@^2.3.2, normalize-package-data@^2.3.4:
+ version "2.4.0"
+ resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f"
+ dependencies:
+ hosted-git-info "^2.1.4"
+ is-builtin-module "^1.0.0"
+ semver "2 || 3 || 4 || 5"
+ validate-npm-package-license "^3.0.1"
+
+normalize-path@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
+ dependencies:
+ remove-trailing-separator "^1.0.1"
+
npm-bundled@^1.0.1:
version "1.0.3"
resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.3.tgz#7e71703d973af3370a9591bafe3a63aca0be2308"
@@ -1541,6 +2561,18 @@ npm-packlist@^1.1.6:
ignore-walk "^3.0.1"
npm-bundled "^1.0.1"
+npm-run-path@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-1.0.0.tgz#f5c32bf595fe81ae927daec52e82f8b000ac3c8f"
+ dependencies:
+ path-key "^1.0.0"
+
+npm-run-path@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
+ dependencies:
+ path-key "^2.0.0"
+
npmlog@^4.0.1, npmlog@^4.0.2, npmlog@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b"
@@ -1550,19 +2582,42 @@ npmlog@^4.0.1, npmlog@^4.0.2, npmlog@^4.1.2:
gauge "~2.7.3"
set-blocking "~2.0.0"
+nssocket@0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/nssocket/-/nssocket-0.6.0.tgz#59f96f6ff321566f33c70f7dbeeecdfdc07154fa"
+ dependencies:
+ eventemitter2 "~0.4.14"
+ lazy "~1.0.11"
+
number-is-nan@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d"
-object-assign@^3.0.0:
- version "3.0.0"
- resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-3.0.0.tgz#9bedd5ca0897949bca47e7ff408062d549f587f2"
-
-object-assign@^4.1.0:
+object-assign@^4.0.1, object-assign@^4.1.0:
version "4.1.1"
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
-on-finished@^2.3.0, on-finished@~2.3.0:
+object-copy@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c"
+ dependencies:
+ copy-descriptor "^0.1.0"
+ define-property "^0.2.5"
+ kind-of "^3.0.3"
+
+object-visit@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb"
+ dependencies:
+ isobject "^3.0.0"
+
+object.pick@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747"
+ dependencies:
+ isobject "^3.0.1"
+
+on-finished@~2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947"
dependencies:
@@ -1578,6 +2633,10 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0:
dependencies:
wrappy "1"
+onetime@^1.0.0:
+ version "1.1.0"
+ resolved "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789"
+
optimist@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
@@ -1585,10 +2644,27 @@ optimist@^0.6.1:
minimist "~0.0.1"
wordwrap "~0.0.2"
+ora@^0.2.1:
+ version "0.2.3"
+ resolved "https://registry.yarnpkg.com/ora/-/ora-0.2.3.tgz#37527d220adcd53c39b73571d754156d5db657a4"
+ dependencies:
+ chalk "^1.1.1"
+ cli-cursor "^1.0.2"
+ cli-spinners "^0.1.2"
+ object-assign "^4.0.1"
+
os-homedir@^1.0.0, os-homedir@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
+os-locale@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2"
+ dependencies:
+ execa "^0.7.0"
+ lcid "^1.0.0"
+ mem "^1.1.0"
+
os-tmpdir@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
@@ -1600,10 +2676,45 @@ osenv@^0.1.4:
os-homedir "^1.0.0"
os-tmpdir "^1.0.0"
+p-finally@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
+
+p-limit@^1.1.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.2.0.tgz#0e92b6bedcb59f022c13d0f1949dc82d15909f1c"
+ dependencies:
+ p-try "^1.0.0"
+
+p-locate@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43"
+ dependencies:
+ p-limit "^1.1.0"
+
+p-try@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"
+
+package-json@^4.0.0, package-json@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/package-json/-/package-json-4.0.1.tgz#8869a0401253661c4c4ca3da6c2121ed555f5eed"
+ dependencies:
+ got "^6.7.1"
+ registry-auth-token "^3.0.1"
+ registry-url "^3.0.3"
+ semver "^5.1.0"
+
packet-reader@0.3.1:
version "0.3.1"
resolved "https://registry.yarnpkg.com/packet-reader/-/packet-reader-0.3.1.tgz#cd62e60af8d7fea8a705ec4ff990871c46871f27"
+parse-json@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9"
+ dependencies:
+ error-ex "^1.2.0"
+
parse-passwd@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6"
@@ -1612,6 +2723,10 @@ parseurl@~1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3"
+pascalcase@^0.1.1:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14"
+
passport-local@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/passport-local/-/passport-local-1.0.0.tgz#1fe63268c92e75606626437e3b906662c15ba6ee"
@@ -1629,10 +2744,36 @@ passport@^0.4.0:
passport-strategy "1.x.x"
pause "0.0.1"
+path-dirname@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0"
+
+path-exists@^2.0.0, path-exists@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b"
+ dependencies:
+ pinkie-promise "^2.0.0"
+
+path-exists@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515"
+
path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
+path-is-inside@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53"
+
+path-key@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/path-key/-/path-key-1.0.0.tgz#5d53d578019646c0d68800db4e146e6bdc2ac7af"
+
+path-key@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
+
path-parse@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1"
@@ -1641,6 +2782,24 @@ path-to-regexp@0.1.7:
version "0.1.7"
resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
+path-type@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441"
+ dependencies:
+ graceful-fs "^4.1.2"
+ pify "^2.0.0"
+ pinkie-promise "^2.0.0"
+
+path-type@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73"
+ dependencies:
+ pify "^2.0.0"
+
+pathval@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0"
+
pause@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/pause/-/pause-0.0.1.tgz#1d408b3fdb76923b9543d96fb4c9dfd535d9cb5d"
@@ -1649,7 +2808,7 @@ pg-connection-string@0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/pg-connection-string/-/pg-connection-string-0.1.3.tgz#da1847b20940e42ee1492beaf65d49d91b245df7"
-pg-hstore@^2.3.1:
+pg-hstore@^2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/pg-hstore/-/pg-hstore-2.3.2.tgz#f7ef053e7b9b892ae986af2f7cbe86432dfcf24f"
dependencies:
@@ -1659,7 +2818,7 @@ pg-int8@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/pg-int8/-/pg-int8-1.0.1.tgz#943bd463bf5b71b4170115f80f8efc9a0c0eb78c"
-pg-native@^2.1.9:
+pg-native@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/pg-native/-/pg-native-2.2.0.tgz#bc84756f4ecbf600ff7cb48ea5854141830cf1e4"
dependencies:
@@ -1690,7 +2849,7 @@ pg-types@~1.12.1:
postgres-date "~1.0.0"
postgres-interval "^1.1.0"
-pg@^7.3.0:
+pg@^7.4.1:
version "7.4.1"
resolved "https://registry.yarnpkg.com/pg/-/pg-7.4.1.tgz#f3411c8ddf9f692322fe05e7017a1888e47f78f1"
dependencies:
@@ -1709,7 +2868,99 @@ pgpass@1.x:
dependencies:
split "^1.0.0"
-pmx@^1.6.4:
+pidusage@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/pidusage/-/pidusage-1.2.0.tgz#65ee96ace4e08a4cd3f9240996c85b367171ee92"
+
+pify@^2.0.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c"
+
+pify@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176"
+
+pinkie-promise@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa"
+ dependencies:
+ pinkie "^2.0.0"
+
+pinkie@^2.0.0:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870"
+
+pkg-dir@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4"
+ dependencies:
+ find-up "^1.0.0"
+
+pm2-axon-rpc@0.5.0:
+ version "0.5.0"
+ resolved "https://registry.yarnpkg.com/pm2-axon-rpc/-/pm2-axon-rpc-0.5.0.tgz#ad08d6a27f580d5c7be4d7bf9dddff398f868994"
+ dependencies:
+ debug "^3.0"
+ fclone "^1"
+
+pm2-axon@3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/pm2-axon/-/pm2-axon-3.1.0.tgz#1b4527f3385e203adc1a5b0488bb52f0322731da"
+ dependencies:
+ amp "~0.3.1"
+ amp-message "~0.1.1"
+ debug "^3.0"
+ escape-regexp "0.0.1"
+
+pm2-deploy@^0.3.9:
+ version "0.3.9"
+ resolved "https://registry.yarnpkg.com/pm2-deploy/-/pm2-deploy-0.3.9.tgz#adeee775c56d52b8f251ba9b0abe0db50a01dfc7"
+ dependencies:
+ async "^1.5"
+ tv4 "^1.3"
+
+pm2-multimeter@^0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/pm2-multimeter/-/pm2-multimeter-0.1.2.tgz#1a1e55153d41a05534cea23cfe860abaa0eb4ace"
+ dependencies:
+ charm "~0.1.1"
+
+pm2@^2.10.2:
+ version "2.10.2"
+ resolved "https://registry.yarnpkg.com/pm2/-/pm2-2.10.2.tgz#73dae0691712a1b335ede30a3a0464eda11faf3c"
+ dependencies:
+ async "^2.5"
+ blessed "^0.1.81"
+ chalk "^1.1"
+ chokidar "^2"
+ cli-table-redemption "^1.0.0"
+ commander "2.13.0"
+ cron "^1.3"
+ debug "^3.0"
+ eventemitter2 "1.0.5"
+ fclone "1.0.11"
+ mkdirp "0.5.1"
+ moment "^2.19"
+ needle "^2.1.0"
+ nssocket "0.6.0"
+ pidusage "^1.2.0"
+ pm2-axon "3.1.0"
+ pm2-axon-rpc "0.5.0"
+ pm2-deploy "^0.3.9"
+ pm2-multimeter "^0.1.2"
+ pmx "^1.6"
+ promptly "2.2.0"
+ semver "^5.3"
+ shelljs "0.7.8"
+ source-map-support "^0.5"
+ sprintf-js "1.1.1"
+ v8-compile-cache "^1.1.0"
+ vizion "^0.2"
+ yamljs "^0.3.0"
+ optionalDependencies:
+ gkt "https://tgz.pm2.io/gkt-1.0.0.tgz"
+
+pmx@^1.6, pmx@^1.6.4:
version "1.6.4"
resolved "https://registry.yarnpkg.com/pmx/-/pmx-1.6.4.tgz#45a0ebbf3c302e51b7514815f09817db79afd593"
dependencies:
@@ -1719,6 +2970,10 @@ pmx@^1.6.4:
semver "5.*"
vxx "^1.2.0"
+posix-character-classes@^0.1.0:
+ version "0.1.1"
+ resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
+
postgres-array@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/postgres-array/-/postgres-array-1.0.2.tgz#8e0b32eb03bf77a5c0a7851e0441c169a256a238"
@@ -1757,6 +3012,10 @@ prebuild-install@^2.5.1:
tunnel-agent "^0.6.0"
which-pm-runs "^1.0.0"
+prepend-http@^1.0.1:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
+
printj@~1.1.0, printj@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/printj/-/printj-1.1.2.tgz#d90deb2975a8b9f600fb3a1c94e3f4c53c78a222"
@@ -1769,6 +3028,12 @@ progress@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f"
+promptly@2.2.0:
+ version "2.2.0"
+ resolved "https://registry.yarnpkg.com/promptly/-/promptly-2.2.0.tgz#2a13fa063688a2a5983b161fff0108a07d26fc74"
+ dependencies:
+ read "^1.0.4"
+
proxy-addr@~2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.3.tgz#355f262505a621646b3130a728eb647e22055341"
@@ -1776,6 +3041,10 @@ proxy-addr@~2.0.3:
forwarded "~0.1.2"
ipaddr.js "1.6.0"
+pseudomap@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
+
pump@^1.0.0:
version "1.0.3"
resolved "https://registry.yarnpkg.com/pump/-/pump-1.0.3.tgz#5dfe8311c33bbf6fc18261f9f34702c47c08a954"
@@ -1790,7 +3059,7 @@ pump@^2.0.1:
end-of-stream "^1.1.0"
once "^1.3.1"
-qs@6.5.1, qs@^6.1.0, qs@^6.2.0, qs@^6.5.1:
+qs@6.5.1, qs@^6.5.1:
version "6.5.1"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8"
@@ -1807,7 +3076,7 @@ raw-body@2.3.2:
iconv-lite "0.4.19"
unpipe "1.0.0"
-rc@^1.1.6, rc@^1.1.7:
+rc@^1.0.1, rc@^1.1.6, rc@^1.1.7:
version "1.2.6"
resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.6.tgz#eb18989c6d4f4f162c399f79ddd29f3835568092"
dependencies:
@@ -1816,6 +3085,42 @@ rc@^1.1.6, rc@^1.1.7:
minimist "^1.2.0"
strip-json-comments "~2.0.1"
+read-pkg-up@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02"
+ dependencies:
+ find-up "^1.0.0"
+ read-pkg "^1.0.0"
+
+read-pkg-up@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be"
+ dependencies:
+ find-up "^2.0.0"
+ read-pkg "^2.0.0"
+
+read-pkg@^1.0.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28"
+ dependencies:
+ load-json-file "^1.0.0"
+ normalize-package-data "^2.3.2"
+ path-type "^1.0.0"
+
+read-pkg@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8"
+ dependencies:
+ load-json-file "^2.0.0"
+ normalize-package-data "^2.3.2"
+ path-type "^2.0.0"
+
+read@^1.0.4:
+ version "1.0.7"
+ resolved "https://registry.yarnpkg.com/read/-/read-1.0.7.tgz#b3da19bd052431a97671d44a42634adf710b40c4"
+ dependencies:
+ mute-stream "~0.0.4"
+
readable-stream@1.0.31:
version "1.0.31"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.31.tgz#8f2502e0bc9e3b0da1b94520aabb4e2603ecafae"
@@ -1825,16 +3130,7 @@ readable-stream@1.0.31:
isarray "0.0.1"
string_decoder "~0.10.x"
-readable-stream@1.1.x:
- version "1.1.14"
- resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.14.tgz#7cf4c54ef648e3813084c636dd2079e166c081d9"
- dependencies:
- core-util-is "~1.0.0"
- inherits "~2.0.1"
- isarray "0.0.1"
- string_decoder "~0.10.x"
-
-readable-stream@^2.0.0, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.2.2, readable-stream@^2.3.5:
+readable-stream@^2.0.0, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.3.5:
version "2.3.6"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf"
dependencies:
@@ -1846,26 +3142,122 @@ readable-stream@^2.0.0, readable-stream@^2.0.5, readable-stream@^2.0.6, readable
string_decoder "~1.1.1"
util-deprecate "~1.0.1"
+readdirp@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78"
+ dependencies:
+ graceful-fs "^4.1.2"
+ minimatch "^3.0.2"
+ readable-stream "^2.0.2"
+ set-immediate-shim "^1.0.1"
+
+readline2@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35"
+ dependencies:
+ code-point-at "^1.0.0"
+ is-fullwidth-code-point "^1.0.0"
+ mute-stream "0.0.5"
+
rechoir@^0.6.2:
version "0.6.2"
resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
dependencies:
resolve "^1.1.6"
+redent@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde"
+ dependencies:
+ indent-string "^2.1.0"
+ strip-indent "^1.0.1"
+
reflect-metadata@^0.1.12:
version "0.1.12"
resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.1.12.tgz#311bf0c6b63cd782f228a81abe146a2bfa9c56f2"
-repeat-string@^1.5.2:
+regenerator-runtime@^0.11.0:
+ version "0.11.1"
+ resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
+
+regex-not@^1.0.0, regex-not@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c"
+ dependencies:
+ extend-shallow "^3.0.2"
+ safe-regex "^1.1.0"
+
+registry-auth-token@^3.0.1:
+ version "3.3.2"
+ resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz#851fd49038eecb586911115af845260eec983f20"
+ dependencies:
+ rc "^1.1.6"
+ safe-buffer "^5.0.1"
+
+registry-url@^3.0.3:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942"
+ dependencies:
+ rc "^1.0.1"
+
+remove-trailing-separator@^1.0.1:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
+
+repeat-element@^1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a"
+
+repeat-string@^1.5.2, repeat-string@^1.6.1:
version "1.6.1"
resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
+repeating@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda"
+ dependencies:
+ is-finite "^1.0.0"
+
+require-directory@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
+
+require-main-filename@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"
+
+require-package-name@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/require-package-name/-/require-package-name-2.0.1.tgz#c11e97276b65b8e2923f75dabf5fb2ef0c3841b9"
+
+resolve-dir@^1.0.0:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-1.0.1.tgz#79a40644c362be82f26effe739c9bb5382046f43"
+ dependencies:
+ expand-tilde "^2.0.0"
+ global-modules "^1.0.0"
+
+resolve-url@^0.2.1:
+ version "0.2.1"
+ resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
+
resolve@^1.1.6, resolve@^1.3.2:
version "1.7.1"
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.7.1.tgz#aadd656374fd298aee895bc026b8297418677fd3"
dependencies:
path-parse "^1.0.5"
+restore-cursor@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541"
+ dependencies:
+ exit-hook "^1.0.0"
+ onetime "^1.0.0"
+
+ret@~0.1.10:
+ version "0.1.15"
+ resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
+
retry-as-promised@^2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/retry-as-promised/-/retry-as-promised-2.3.2.tgz#cd974ee4fd9b5fe03cbf31871ee48221c07737b7"
@@ -1885,22 +3277,48 @@ rimraf@^2.6.1:
dependencies:
glob "^7.0.5"
+run-async@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389"
+ dependencies:
+ once "^1.3.0"
+
+rx-lite@^3.1.2:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102"
+
safe-buffer@5.1.1, safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853"
+safe-regex@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e"
+ dependencies:
+ ret "~0.1.10"
+
+safer-buffer@^2.1.0:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
+
sax@^1.2.4:
version "1.2.4"
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
-semver@4.3.2:
- version "4.3.2"
- resolved "https://registry.yarnpkg.com/semver/-/semver-4.3.2.tgz#c7a07158a80bedd052355b770d82d6640f803be7"
+semver-diff@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36"
+ dependencies:
+ semver "^5.0.3"
-semver@5.*, semver@^5.0.1, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0:
+"semver@2 || 3 || 4 || 5", semver@5.*, semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.3, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0:
version "5.5.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"
+semver@4.3.2:
+ version "4.3.2"
+ resolved "https://registry.yarnpkg.com/semver/-/semver-4.3.2.tgz#c7a07158a80bedd052355b770d82d6640f803be7"
+
send@0.16.2:
version "0.16.2"
resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1"
@@ -1961,10 +3379,32 @@ serve-static@1.13.2:
parseurl "~1.3.2"
send "0.16.2"
-set-blocking@~2.0.0:
+set-blocking@^2.0.0, set-blocking@~2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
+set-immediate-shim@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61"
+
+set-value@^0.4.3:
+ version "0.4.3"
+ resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1"
+ dependencies:
+ extend-shallow "^2.0.1"
+ is-extendable "^0.1.1"
+ is-plain-object "^2.0.1"
+ to-object-path "^0.3.0"
+
+set-value@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274"
+ dependencies:
+ extend-shallow "^2.0.1"
+ is-extendable "^0.1.1"
+ is-plain-object "^2.0.3"
+ split-string "^3.0.1"
+
setprototypeof@1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.3.tgz#66567e37043eeb4f04d91bd658c0cbefb55b8e04"
@@ -1973,7 +3413,7 @@ setprototypeof@1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656"
-sharp@^0.20.0:
+sharp@^0.20.1:
version "0.20.1"
resolved "https://registry.yarnpkg.com/sharp/-/sharp-0.20.1.tgz#13adde896bc9ec0372b0907554e0329f35a7bce6"
dependencies:
@@ -1988,6 +3428,24 @@ sharp@^0.20.0:
tar "^4.4.0"
tunnel-agent "^0.6.0"
+shebang-command@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
+ dependencies:
+ shebang-regex "^1.0.0"
+
+shebang-regex@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
+
+shelljs@0.7.8:
+ version "0.7.8"
+ resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
+ dependencies:
+ glob "^7.0.0"
+ interpret "^1.0.0"
+ rechoir "^0.6.2"
+
shelljs@^0.8.1:
version "0.8.1"
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.1.tgz#729e038c413a2254c4078b95ed46e0397154a9f1"
@@ -2000,7 +3458,7 @@ shimmer@^1.0.0, shimmer@^1.1.0, shimmer@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/shimmer/-/shimmer-1.2.0.tgz#f966f7555789763e74d8841193685a5e78736665"
-signal-exit@^3.0.0:
+signal-exit@^3.0.0, signal-exit@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
@@ -2022,11 +3480,52 @@ simple-swizzle@^0.2.2:
dependencies:
is-arrayish "^0.3.1"
-source-map-support@^0.4.0:
- version "0.4.18"
- resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f"
+snapdragon-node@^2.0.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b"
+ dependencies:
+ define-property "^1.0.0"
+ isobject "^3.0.0"
+ snapdragon-util "^3.0.1"
+
+snapdragon-util@^3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2"
dependencies:
+ kind-of "^3.2.0"
+
+snapdragon@^0.8.1:
+ version "0.8.2"
+ resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d"
+ dependencies:
+ base "^0.11.1"
+ debug "^2.2.0"
+ define-property "^0.2.5"
+ extend-shallow "^2.0.1"
+ map-cache "^0.2.2"
source-map "^0.5.6"
+ source-map-resolve "^0.5.0"
+ use "^3.1.0"
+
+source-map-resolve@^0.5.0:
+ version "0.5.1"
+ resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.1.tgz#7ad0f593f2281598e854df80f19aae4b92d7a11a"
+ dependencies:
+ atob "^2.0.0"
+ decode-uri-component "^0.2.0"
+ resolve-url "^0.2.1"
+ source-map-url "^0.4.0"
+ urix "^0.1.0"
+
+source-map-support@^0.5, source-map-support@^0.5.3:
+ version "0.5.4"
+ resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.4.tgz#54456efa89caa9270af7cd624cc2f123e51fbae8"
+ dependencies:
+ source-map "^0.6.0"
+
+source-map-url@^0.4.0:
+ version "0.4.0"
+ resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3"
source-map@^0.4.4:
version "0.4.4"
@@ -2038,13 +3537,45 @@ source-map@^0.5.6, source-map@~0.5.1:
version "0.5.7"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
+source-map@^0.6.0:
+ version "0.6.1"
+ resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
+
+spdx-correct@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82"
+ dependencies:
+ spdx-expression-parse "^3.0.0"
+ spdx-license-ids "^3.0.0"
+
+spdx-exceptions@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz#2c7ae61056c714a5b9b9b2b2af7d311ef5c78fe9"
+
+spdx-expression-parse@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0"
+ dependencies:
+ spdx-exceptions "^2.1.0"
+ spdx-license-ids "^3.0.0"
+
+spdx-license-ids@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87"
+
+split-string@^3.0.1, split-string@^3.0.2:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2"
+ dependencies:
+ extend-shallow "^3.0.0"
+
split@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/split/-/split-1.0.1.tgz#605bd9be303aa59fb35f9229fbea0ddec9ea07d9"
dependencies:
through "2"
-sprintf-js@^1.0.3:
+sprintf-js@1.1.1, sprintf-js@^1.0.3:
version "1.1.1"
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.1.tgz#36be78320afe5801f6cea3ee78b6e5aab940ea0c"
@@ -2059,7 +3590,7 @@ sqlite3@^4.0.0:
nan "~2.9.2"
node-pre-gyp "~0.9.0"
-ssf@~0.10.1:
+ssf@~0.10.2:
version "0.10.2"
resolved "https://registry.yarnpkg.com/ssf/-/ssf-0.10.2.tgz#65b2b4fcdfd967bc8e8383a41349009893115976"
dependencies:
@@ -2069,6 +3600,17 @@ stack-trace@0.0.x:
version "0.0.10"
resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
+stackframe@^0.3.1:
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-0.3.1.tgz#33aa84f1177a5548c8935533cbfeb3420975f5a4"
+
+static-extend@^0.1.1:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6"
+ dependencies:
+ define-property "^0.2.5"
+ object-copy "^0.1.0"
+
"statuses@>= 1.3.1 < 2", "statuses@>= 1.4.0 < 2":
version "1.5.0"
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
@@ -2077,10 +3619,6 @@ statuses@~1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087"
-streamsearch@0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-0.1.2.tgz#808b9d0e56fc273d809ba57338e929919a1a9f1a"
-
string-width@^1.0.1, string-width@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3"
@@ -2089,6 +3627,13 @@ string-width@^1.0.1, string-width@^1.0.2:
is-fullwidth-code-point "^1.0.0"
strip-ansi "^3.0.0"
+string-width@^2.0.0, string-width@^2.1.1:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e"
+ dependencies:
+ is-fullwidth-code-point "^2.0.0"
+ strip-ansi "^4.0.0"
+
string_decoder@~0.10.x:
version "0.10.31"
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
@@ -2105,30 +3650,37 @@ strip-ansi@^3.0.0, strip-ansi@^3.0.1:
dependencies:
ansi-regex "^2.0.0"
+strip-ansi@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f"
+ dependencies:
+ ansi-regex "^3.0.0"
+
+strip-bom@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e"
+ dependencies:
+ is-utf8 "^0.2.0"
+
strip-bom@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
-strip-json-comments@^2.0.0, strip-json-comments@~2.0.1:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
+strip-eof@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf"
-superagent@^2.0.0:
- version "2.3.0"
- resolved "https://registry.yarnpkg.com/superagent/-/superagent-2.3.0.tgz#703529a0714e57e123959ddefbce193b2e50d115"
+strip-indent@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2"
dependencies:
- component-emitter "^1.2.0"
- cookiejar "^2.0.6"
- debug "^2.2.0"
- extend "^3.0.0"
- form-data "1.0.0-rc4"
- formidable "^1.0.17"
- methods "^1.1.1"
- mime "^1.3.4"
- qs "^6.1.0"
- readable-stream "^2.0.5"
+ get-stdin "^4.0.1"
+
+strip-json-comments@~2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
-superagent@^3.0.0:
+superagent@^3.0.0, superagent@^3.7.0:
version "3.8.2"
resolved "https://registry.yarnpkg.com/superagent/-/superagent-3.8.2.tgz#e4a11b9d047f7d3efeb3bbe536d9ec0021d16403"
dependencies:
@@ -2150,11 +3702,11 @@ supertest@^3.0.0:
methods "~1.1.2"
superagent "^3.0.0"
-supports-color@3.1.2:
- version "3.1.2"
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5"
+supports-color@4.4.0:
+ version "4.4.0"
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.4.0.tgz#883f7ddabc165142b2a61427f3352ded195d1a3e"
dependencies:
- has-flag "^1.0.0"
+ has-flag "^2.0.0"
supports-color@^2.0.0:
version "2.0.0"
@@ -2196,6 +3748,12 @@ tar@^4, tar@^4.4.0:
safe-buffer "^5.1.1"
yallist "^3.0.2"
+term-size@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69"
+ dependencies:
+ execa "^0.7.0"
+
terraformer-wkt-parser@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/terraformer-wkt-parser/-/terraformer-wkt-parser-1.1.2.tgz#336a0c8fc82094a5aff83288f69aedecd369bf0c"
@@ -2208,36 +3766,69 @@ terraformer@~1.0.5:
dependencies:
"@types/geojson" "^1.0.0"
-through@2:
+text-table@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
+
+throat@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/throat/-/throat-2.0.2.tgz#a9fce808b69e133a632590780f342c30a6249b02"
+
+through@2, through@^2.3.6:
version "2.3.8"
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
+timed-out@^4.0.0:
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f"
+
+to-fast-properties@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47"
+
+to-object-path@^0.3.0:
+ version "0.3.0"
+ resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af"
+ dependencies:
+ kind-of "^3.0.2"
+
+to-regex-range@^2.1.0:
+ version "2.1.1"
+ resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38"
+ dependencies:
+ is-number "^3.0.0"
+ repeat-string "^1.6.1"
+
+to-regex@^3.0.1, to-regex@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce"
+ dependencies:
+ define-property "^2.0.2"
+ extend-shallow "^3.0.2"
+ regex-not "^1.0.2"
+ safe-regex "^1.1.0"
+
toposort-class@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/toposort-class/-/toposort-class-1.0.1.tgz#7ffd1f78c8be28c3ba45cd4e1a3f5ee193bd9988"
-ts-node@^3.3.0:
- version "3.3.0"
- resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-3.3.0.tgz#c13c6a3024e30be1180dd53038fc209289d4bf69"
+trim-newlines@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613"
+
+ts-node@6.0.0:
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-6.0.0.tgz#46c25f8498593a9248eeea16906f1598fa098140"
dependencies:
arrify "^1.0.0"
- chalk "^2.0.0"
+ chalk "^2.3.0"
diff "^3.1.0"
make-error "^1.1.1"
minimist "^1.2.0"
mkdirp "^0.5.1"
- source-map-support "^0.4.0"
- tsconfig "^6.0.0"
- v8flags "^3.0.0"
+ source-map-support "^0.5.3"
yn "^2.0.0"
-tsconfig@^6.0.0:
- version "6.0.0"
- resolved "https://registry.yarnpkg.com/tsconfig/-/tsconfig-6.0.0.tgz#6b0e8376003d7af1864f8df8f89dd0059ffcd032"
- dependencies:
- strip-bom "^3.0.0"
- strip-json-comments "^2.0.0"
-
tslib@^1.8.0, tslib@^1.8.1:
version "1.9.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8"
@@ -2271,58 +3862,54 @@ tunnel-agent@^0.6.0:
dependencies:
safe-buffer "^5.0.1"
-type-detect@0.1.1:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-0.1.1.tgz#0ba5ec2a885640e470ea4e8505971900dac58822"
+tv4@^1.3:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/tv4/-/tv4-1.3.0.tgz#d020c846fadd50c855abb25ebaecc68fc10f7963"
-type-detect@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2"
+type-detect@^4.0.0:
+ version "4.0.8"
+ resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c"
-type-is@^1.6.4, type-is@~1.6.15, type-is@~1.6.16:
+type-is@~1.6.15, type-is@~1.6.16:
version "1.6.16"
resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.16.tgz#f89ce341541c672b25ee7ae3c73dee3b2be50194"
dependencies:
media-typer "0.3.0"
mime-types "~2.1.18"
-typedarray@^0.0.6:
- version "0.0.6"
- resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
-
typedoc-default-themes@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.5.0.tgz#6dc2433e78ed8bea8e887a3acde2f31785bd6227"
-typedoc@^0.10.0:
- version "0.10.0"
- resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.10.0.tgz#898b447248dabf68ecbde9d5ccf5141fda8aa166"
+typedoc@0.11.1:
+ version "0.11.1"
+ resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.11.1.tgz#9f033887fd2218c769e1045feb88a1efed9f12c9"
dependencies:
- "@types/fs-extra" "5.0.0"
+ "@types/fs-extra" "5.0.1"
"@types/handlebars" "4.0.36"
"@types/highlight.js" "9.12.2"
- "@types/lodash" "4.14.99"
+ "@types/lodash" "4.14.104"
"@types/marked" "0.3.0"
"@types/minimatch" "3.0.3"
- "@types/shelljs" "0.7.7"
+ "@types/shelljs" "0.7.8"
fs-extra "^5.0.0"
handlebars "^4.0.6"
highlight.js "^9.0.0"
- lodash "^4.13.1"
- marked "^0.3.12"
+ lodash "^4.17.5"
+ marked "^0.3.17"
minimatch "^3.0.0"
progress "^2.0.0"
shelljs "^0.8.1"
typedoc-default-themes "^0.5.0"
- typescript "2.7.1"
+ typescript "2.7.2"
-typescript@2.7.1:
- version "2.7.1"
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.1.tgz#bb3682c2c791ac90e7c6210b26478a8da085c359"
+typescript@2.7.2:
+ version "2.7.2"
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.2.tgz#2d615a1ef4aee4f574425cdff7026edf81919836"
typescript@^2.7.1:
- version "2.8.1"
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.1.tgz#6160e4f8f195d5ba81d4876f9c0cc1fbc0820624"
+ version "2.8.3"
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.3.tgz#5d817f9b6f31bb871835f4edf0089f21abe6c170"
uglify-js@^2.6:
version "2.8.29"
@@ -2338,8 +3925,23 @@ uglify-to-browserify@~1.0.0:
resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7"
underscore@^1.7.0:
- version "1.8.3"
- resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022"
+ version "1.9.0"
+ resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.0.tgz#31dbb314cfcc88f169cd3692d9149d81a00a73e4"
+
+union-value@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4"
+ dependencies:
+ arr-union "^3.1.0"
+ get-value "^2.0.6"
+ is-extendable "^0.1.1"
+ set-value "^0.4.3"
+
+unique-string@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a"
+ dependencies:
+ crypto-random-string "^1.0.0"
universalify@^0.1.0:
version "0.1.1"
@@ -2349,6 +3951,52 @@ unpipe@1.0.0, unpipe@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
+unset-value@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"
+ dependencies:
+ has-value "^0.3.1"
+ isobject "^3.0.0"
+
+unzip-response@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97"
+
+upath@^1.0.0:
+ version "1.0.4"
+ resolved "https://registry.yarnpkg.com/upath/-/upath-1.0.4.tgz#ee2321ba0a786c50973db043a50b7bcba822361d"
+
+update-notifier@^2.1.0:
+ version "2.5.0"
+ resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.5.0.tgz#d0744593e13f161e406acb1d9408b72cad08aff6"
+ dependencies:
+ boxen "^1.2.1"
+ chalk "^2.0.1"
+ configstore "^3.0.0"
+ import-lazy "^2.1.0"
+ is-ci "^1.0.10"
+ is-installed-globally "^0.1.0"
+ is-npm "^1.0.0"
+ latest-version "^3.0.0"
+ semver-diff "^2.0.0"
+ xdg-basedir "^3.0.0"
+
+urix@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72"
+
+url-parse-lax@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73"
+ dependencies:
+ prepend-http "^1.0.1"
+
+use@^3.1.0:
+ version "3.1.0"
+ resolved "https://registry.yarnpkg.com/use/-/use-3.1.0.tgz#14716bf03fdfefd03040aef58d8b4b85f3a7c544"
+ dependencies:
+ kind-of "^6.0.2"
+
util-deprecate@~1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
@@ -2365,11 +4013,16 @@ uuid@^3.0.1, uuid@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14"
-v8flags@^3.0.0:
- version "3.0.2"
- resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-3.0.2.tgz#ad6a78a20a6b23d03a8debc11211e3cc23149477"
+v8-compile-cache@^1.1.0:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-1.1.2.tgz#8d32e4f16974654657e676e0e467a348e89b0dc4"
+
+validate-npm-package-license@^3.0.1:
+ version "3.0.3"
+ resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz#81643bcbef1bdfecd4623793dc4648948ba98338"
dependencies:
- homedir-polyfill "^1.0.1"
+ spdx-correct "^3.0.0"
+ spdx-expression-parse "^3.0.0"
validator@^9.4.1:
version "9.4.1"
@@ -2379,6 +4032,12 @@ vary@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
+vizion@^0.2:
+ version "0.2.13"
+ resolved "https://registry.yarnpkg.com/vizion/-/vizion-0.2.13.tgz#1314cdee2b34116f9f5b1248536f95dbfcd6ef5f"
+ dependencies:
+ async "1.5"
+
vxx@^1.2.0:
version "1.2.2"
resolved "https://registry.yarnpkg.com/vxx/-/vxx-1.2.2.tgz#741fb51c6f11d3383da6f9b92018a5d7ba807611"
@@ -2395,23 +4054,43 @@ vxx@^1.2.0:
shimmer "^1.0.0"
uuid "^3.0.1"
+walkdir@0.0.11:
+ version "0.0.11"
+ resolved "https://registry.yarnpkg.com/walkdir/-/walkdir-0.0.11.tgz#a16d025eb931bd03b52f308caed0f40fcebe9532"
+
+which-module@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
+
which-pm-runs@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb"
+which@^1.2.14, which@^1.2.8, which@^1.2.9:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
+ dependencies:
+ isexe "^2.0.0"
+
wide-align@^1.1.0:
version "1.1.2"
resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710"
dependencies:
string-width "^1.0.2"
+widest-line@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.0.tgz#0142a4e8a243f8882c0233aa0e0281aa76152273"
+ dependencies:
+ string-width "^2.1.1"
+
window-size@0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d"
winston@^2.4.0:
- version "2.4.1"
- resolved "https://registry.yarnpkg.com/winston/-/winston-2.4.1.tgz#a3a9265105564263c6785b4583b8c8aca26fded6"
+ version "2.4.2"
+ resolved "https://registry.yarnpkg.com/winston/-/winston-2.4.2.tgz#3ca01f763116fc48db61053b7544e750431f8db0"
dependencies:
async "~1.0.0"
colors "1.0.x"
@@ -2434,21 +4113,40 @@ wordwrap@~0.0.2:
version "0.0.3"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
+wrap-ansi@^2.0.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85"
+ dependencies:
+ string-width "^1.0.1"
+ strip-ansi "^3.0.1"
+
wrappy@1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
-xlsx@^0.11.19:
- version "0.11.19"
- resolved "https://registry.yarnpkg.com/xlsx/-/xlsx-0.11.19.tgz#2f019d9df756f6345aac5bc1af2442cf22a025e3"
+write-file-atomic@^2.0.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab"
+ dependencies:
+ graceful-fs "^4.1.11"
+ imurmurhash "^0.1.4"
+ signal-exit "^3.0.2"
+
+xdg-basedir@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4"
+
+xlsx@^0.12.10:
+ version "0.12.10"
+ resolved "https://registry.yarnpkg.com/xlsx/-/xlsx-0.12.10.tgz#c2e71be364d90ece2e08f0bae91563483c4897f8"
dependencies:
adler-32 "~1.2.0"
- cfb "~1.0.2"
- codepage "~1.12.0"
- commander "~2.13.0"
+ cfb "~1.0.6"
+ codepage "~1.12.1"
+ commander "~2.14.1"
crc-32 "~1.2.0"
exit-on-epipe "~1.0.1"
- ssf "~0.10.1"
+ ssf "~0.10.2"
xml-parser@^1.2.1:
version "1.2.1"
@@ -2460,10 +4158,49 @@ xtend@^4.0.0, xtend@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af"
+y18n@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41"
+
+yallist@^2.1.2:
+ version "2.1.2"
+ resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
+
yallist@^3.0.0, yallist@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9"
+yamljs@^0.3.0:
+ version "0.3.0"
+ resolved "https://registry.yarnpkg.com/yamljs/-/yamljs-0.3.0.tgz#dc060bf267447b39f7304e9b2bfbe8b5a7ddb03b"
+ dependencies:
+ argparse "^1.0.7"
+ glob "^7.0.5"
+
+yargs-parser@^7.0.0:
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9"
+ dependencies:
+ camelcase "^4.1.0"
+
+yargs@^8.0.2:
+ version "8.0.2"
+ resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360"
+ dependencies:
+ camelcase "^4.1.0"
+ cliui "^3.2.0"
+ decamelize "^1.1.1"
+ get-caller-file "^1.0.1"
+ os-locale "^2.0.0"
+ read-pkg-up "^2.0.0"
+ require-directory "^2.1.1"
+ require-main-filename "^1.0.1"
+ set-blocking "^2.0.0"
+ string-width "^2.0.0"
+ which-module "^2.0.0"
+ y18n "^3.2.1"
+ yargs-parser "^7.0.0"
+
yargs@~3.10.0:
version "3.10.0"
resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1"
@@ -2473,6 +4210,36 @@ yargs@~3.10.0:
decamelize "^1.0.0"
window-size "0.1.0"
+yarn-check@^0.0.3:
+ version "0.0.3"
+ resolved "https://registry.yarnpkg.com/yarn-check/-/yarn-check-0.0.3.tgz#75212b24d770066fe8249d250e8de48b9615e381"
+ dependencies:
+ babel-runtime "^6.6.1"
+ callsite-record "^3.0.0"
+ chalk "^1.1.3"
+ co "^4.6.0"
+ depcheck "^0.6.3"
+ execa "^0.2.2"
+ giturl "^1.0.0"
+ global-modules "^1.0.0"
+ globby "^4.0.0"
+ inquirer "^0.12.0"
+ is-ci "^1.0.8"
+ lodash "^4.7.0"
+ meow "^3.7.0"
+ merge-options "0.0.64"
+ minimatch "^3.0.2"
+ node-emoji "^1.0.3"
+ ora "^0.2.1"
+ package-json "^4.0.1"
+ path-exists "^2.1.0"
+ pkg-dir "^1.0.0"
+ semver "^5.0.1"
+ semver-diff "^2.0.0"
+ text-table "^0.2.0"
+ throat "^2.0.2"
+ update-notifier "^2.1.0"
+
yn@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a"