remodel to typescript
This commit is contained in:
parent
a2e26cbf93
commit
9891a7e247
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
/node_modules/
|
/node_modules/
|
||||||
/coverage/
|
/coverage/
|
||||||
/.nyc_output/
|
/.nyc_output/
|
||||||
|
/dist/
|
||||||
|
|
||||||
# stryker temp files
|
# stryker temp files
|
||||||
.stryker-tmp
|
.stryker-tmp
|
||||||
|
73
index.js → dist/index.js
vendored
73
index.js → dist/index.js
vendored
@ -4,12 +4,9 @@
|
|||||||
* See file 'LICENSE' for full license details.
|
* See file 'LICENSE' for full license details.
|
||||||
* Created by Timo Hocker <timo@scode.ovh>, March 2020
|
* Created by Timo Hocker <timo@scode.ovh>, March 2020
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
/* eslint-disable no-sync */
|
/* eslint-disable no-sync */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const fs = require ('fs');
|
const fs = require ('fs');
|
||||||
const path = require ('path');
|
const path = require ('path');
|
||||||
|
|
||||||
@ -20,7 +17,6 @@ const path = require ('path');
|
|||||||
* @property {boolean} [verbose] enable verbose logging
|
* @property {boolean} [verbose] enable verbose logging
|
||||||
* @property {boolean} [rethrow] rethrow errors (default: true)
|
* @property {boolean} [rethrow] rethrow errors (default: true)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {object} handler_description
|
* @typedef {object} handler_description
|
||||||
* @property {string} module_folder folder the module file is in
|
* @property {string} module_folder folder the module file is in
|
||||||
@ -28,27 +24,29 @@ const path = require ('path');
|
|||||||
* @property {any} opts optional arguments
|
* @property {any} opts optional arguments
|
||||||
* @property {boolean} rethrow should errors be rethrown
|
* @property {boolean} rethrow should errors be rethrown
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wrap a requestor handler to be compatible with express
|
* wrap a requestor handler to be compatible with express
|
||||||
*
|
*
|
||||||
|
* @param _a
|
||||||
* @param {handler_description} data handler data
|
* @param {handler_description} data handler data
|
||||||
* @returns {Function} requestor handler
|
* @returns {Function} requestor handler
|
||||||
*/
|
*/
|
||||||
function get_handler ({ module_folder, file, opts, rethrow }) {
|
function get_handler (_a) {
|
||||||
|
const { module_folder } = _a;
|
||||||
|
const { file } = _a;
|
||||||
|
const { opts } = _a;
|
||||||
|
const { rethrow } = _a;
|
||||||
// eslint-disable-next-line global-require
|
// eslint-disable-next-line global-require
|
||||||
const handler = require (path.join (process.cwd (), module_folder, file));
|
const handler = require (path.join (process.cwd (), module_folder, file));
|
||||||
|
return function (req, res, next) {
|
||||||
return (req, res, next) => new Promise (
|
return new Promise ((resolve) => resolve (handler (req, res, next, opts)))
|
||||||
(resolve) => resolve (handler (req, res, next, opts))
|
|
||||||
)
|
|
||||||
.catch ((e) => {
|
.catch ((e) => {
|
||||||
if (rethrow)
|
if (rethrow)
|
||||||
throw e;
|
throw e;
|
||||||
});
|
});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* register a handler to the given app
|
* register a handler to the given app
|
||||||
*
|
*
|
||||||
@ -58,20 +56,10 @@ function get_handler ({ module_folder, file, opts, rethrow }) {
|
|||||||
* @param {string} url url to respond to
|
* @param {string} url url to respond to
|
||||||
* @param {boolean} verbose should verbose logging be enabled
|
* @param {boolean} verbose should verbose logging be enabled
|
||||||
*/
|
*/
|
||||||
function register_handler (
|
function register_handler (app, handler_description, method, url, verbose) {
|
||||||
app,
|
|
||||||
handler_description,
|
|
||||||
method,
|
|
||||||
url,
|
|
||||||
verbose
|
|
||||||
) {
|
|
||||||
const handler = get_handler (handler_description);
|
const handler = get_handler (handler_description);
|
||||||
|
if (verbose)
|
||||||
if (verbose) {
|
console.log (`[requestor info] redirecting ${url} to ${handler_description.file}`);
|
||||||
console.log (
|
|
||||||
`[requestor info] redirecting ${url} to ${handler_description.file}`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (method) {
|
switch (method) {
|
||||||
case 'post':
|
case 'post':
|
||||||
@ -90,11 +78,8 @@ function register_handler (
|
|||||||
app.all (url, handler);
|
app.all (url, handler);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (verbose) {
|
if (verbose)
|
||||||
console.warn (
|
console.warn (`'${method}' did not match any request method, ignoring`);
|
||||||
`'${method}' did not match any request method, ignoring`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -107,38 +92,30 @@ function register_handler (
|
|||||||
* @param {string} module_folder folder that contains all modules
|
* @param {string} module_folder folder that contains all modules
|
||||||
* @param {options} options additional options
|
* @param {options} options additional options
|
||||||
*/
|
*/
|
||||||
module.exports = function main (
|
module.exports = function main (app, module_folder, options) {
|
||||||
app,
|
if (options === void 0)
|
||||||
module_folder,
|
options = { opts: null, subdir: '', verbose: false, rethrow: true };
|
||||||
options = { opts: null, subdir: '', verbose: false, rethrow: true }
|
const { opts } = options;
|
||||||
) {
|
const { subdir } = options;
|
||||||
const { opts, subdir, verbose, rethrow } = options;
|
const { verbose } = options;
|
||||||
|
const { rethrow } = options;
|
||||||
for (const file of fs.readdirSync (module_folder)) {
|
for (let _i = 0, _a = fs.readdirSync (module_folder); _i < _a.length; _i++) {
|
||||||
|
const file = _a[_i];
|
||||||
const regex = /(?<method>.*?)-(?<url>.*?)\.js/u;
|
const regex = /(?<method>.*?)-(?<url>.*?)\.js/u;
|
||||||
const { groups } = regex.exec (file);
|
const { groups } = regex.exec (file);
|
||||||
|
|
||||||
if (typeof subdir === 'undefined')
|
if (typeof subdir === 'undefined')
|
||||||
groups.url = `/${groups.url}/`;
|
groups.url = `/${groups.url}/`;
|
||||||
else
|
else
|
||||||
groups.url = `/${subdir}/${groups.url}/`;
|
groups.url = `/${subdir}/${groups.url}/`;
|
||||||
|
|
||||||
groups.url = groups.url
|
groups.url = groups.url
|
||||||
.replace (/^\/[^/]*\/root/iu, '/')
|
.replace (/^\/[^/]*\/root/iu, '/')
|
||||||
.replace (/\./gu, '/')
|
.replace (/\./gu, '/')
|
||||||
.replace (/\/+/gu, '/');
|
.replace (/\/+/gu, '/');
|
||||||
|
register_handler (app, {
|
||||||
register_handler (
|
|
||||||
app,
|
|
||||||
{
|
|
||||||
file,
|
file,
|
||||||
module_folder,
|
module_folder,
|
||||||
opts,
|
opts,
|
||||||
rethrow
|
rethrow
|
||||||
},
|
}, groups.method, groups.url, verbose);
|
||||||
groups.method,
|
|
||||||
groups.url,
|
|
||||||
verbose
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
27
lib/handler_interfaces.ts
Normal file
27
lib/handler_interfaces.ts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
export interface all_handler {
|
||||||
|
async handle_all_request(req: Request, res: Response): void
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface delete_handler {
|
||||||
|
async handle_delete_request(req: Request, res: Response): void
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface get_handler {
|
||||||
|
async handle_get_request(req: Request, res: Response): void
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface head_handler {
|
||||||
|
async handle_head_request(req: Request, res: Response): void
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface post_handler {
|
||||||
|
async handle_post_request(req: Request, res: Response): void
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface put_handler {
|
||||||
|
async handle_put_request(req: Request, res: Response): void
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface trace_handler {
|
||||||
|
async handle_trace_request(req: Request, res: Response): void
|
||||||
|
}
|
28
lib/transaction.ts
Normal file
28
lib/transaction.ts
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import consts from '@scode/consts';
|
||||||
|
import {Request,Response} from 'express';
|
||||||
|
|
||||||
|
class Transaction {
|
||||||
|
/* private */
|
||||||
|
private _req: Request;
|
||||||
|
private _res: Response;
|
||||||
|
|
||||||
|
/* public */
|
||||||
|
public status: number = -1;
|
||||||
|
|
||||||
|
/* properties */
|
||||||
|
public get has_status(): boolean => this.status !== -1;
|
||||||
|
public get req(): Request => this._req;
|
||||||
|
public get res(): Response => this._res;
|
||||||
|
|
||||||
|
/* constructor */
|
||||||
|
public Request(req: Request,res: Response) {
|
||||||
|
this._req = req;
|
||||||
|
this._res = res;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* methods */
|
||||||
|
public end() {
|
||||||
|
if (this.status !== -1)
|
||||||
|
this.res.setHeader(this.status);
|
||||||
|
}
|
||||||
|
}
|
14
package.json
14
package.json
@ -2,7 +2,7 @@
|
|||||||
"name": "@scode/requestor",
|
"name": "@scode/requestor",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Split express paths into individual files to make api programming more structured",
|
"description": "Split express paths into individual files to make api programming more structured",
|
||||||
"main": "index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "nyc ava",
|
"test": "nyc ava",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
@ -22,11 +22,15 @@
|
|||||||
"node": ">=10.0.0"
|
"node": ">=10.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@scode/eslint-config": "^1.2.15",
|
"@scode/eslint-config": "^1.2.31",
|
||||||
"@stryker-mutator/core": "^3.0.2",
|
"@stryker-mutator/core": "^3.1.0",
|
||||||
"@stryker-mutator/javascript-mutator": "^3.0.2",
|
"@stryker-mutator/javascript-mutator": "^3.1.0",
|
||||||
"ava": "^3.4.0",
|
"ava": "^3.5.2",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^6.8.0",
|
||||||
"nyc": "^15.0.0"
|
"nyc": "^15.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@scode/consts": "^1.0.12",
|
||||||
|
"@types/express": "^4.17.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,5 +20,5 @@ module.exports = {
|
|||||||
testRunner: 'command',
|
testRunner: 'command',
|
||||||
transpilers: [],
|
transpilers: [],
|
||||||
coverageAnalysis: 'all',
|
coverageAnalysis: 'all',
|
||||||
mutate: [ 'index.js' ]
|
mutate: [ 'lib/*' ]
|
||||||
};
|
};
|
||||||
|
66
tsconfig.json
Normal file
66
tsconfig.json
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
/* Basic Options */
|
||||||
|
// "incremental": true, /* Enable incremental compilation */
|
||||||
|
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
||||||
|
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
||||||
|
// "lib": [], /* Specify library files to be included in the compilation. */
|
||||||
|
// "allowJs": true, /* Allow javascript files to be compiled. */
|
||||||
|
// "checkJs": true, /* Report errors in .js files. */
|
||||||
|
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||||
|
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
||||||
|
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
||||||
|
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
||||||
|
// "outFile": "./", /* Concatenate and emit output to single file. */
|
||||||
|
"outDir": "./dist", /* Redirect output structure to the directory. */
|
||||||
|
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||||
|
// "composite": true, /* Enable project compilation */
|
||||||
|
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
||||||
|
// "removeComments": true, /* Do not emit comments to output. */
|
||||||
|
// "noEmit": true, /* Do not emit outputs. */
|
||||||
|
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
||||||
|
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
||||||
|
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
||||||
|
|
||||||
|
/* Strict Type-Checking Options */
|
||||||
|
"strict": true, /* Enable all strict type-checking options. */
|
||||||
|
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
||||||
|
// "strictNullChecks": true, /* Enable strict null checks. */
|
||||||
|
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
||||||
|
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
||||||
|
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
||||||
|
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
||||||
|
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
||||||
|
|
||||||
|
/* Additional Checks */
|
||||||
|
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
||||||
|
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
||||||
|
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||||
|
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||||
|
|
||||||
|
/* Module Resolution Options */
|
||||||
|
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
||||||
|
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
||||||
|
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
||||||
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
||||||
|
// "typeRoots": [], /* List of folders to include type definitions from. */
|
||||||
|
// "types": [], /* Type declaration files to be included in compilation. */
|
||||||
|
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
||||||
|
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
||||||
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
||||||
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
||||||
|
|
||||||
|
/* Source Map Options */
|
||||||
|
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
||||||
|
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
||||||
|
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
||||||
|
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
||||||
|
|
||||||
|
/* Experimental Options */
|
||||||
|
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
||||||
|
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
||||||
|
|
||||||
|
/* Advanced Options */
|
||||||
|
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
||||||
|
}
|
||||||
|
}
|
137
yarn.lock
137
yarn.lock
@ -250,7 +250,12 @@
|
|||||||
"@nodelib/fs.scandir" "2.1.3"
|
"@nodelib/fs.scandir" "2.1.3"
|
||||||
fastq "^1.6.0"
|
fastq "^1.6.0"
|
||||||
|
|
||||||
"@scode/eslint-config@^1.2.15":
|
"@scode/consts@^1.0.12":
|
||||||
|
version "1.0.12"
|
||||||
|
resolved "https://npm.scode.ovh/@scode%2fconsts/-/consts-1.0.12.tgz#887dab33a4bafadbd654b0072b91a7bb8f0a62f1"
|
||||||
|
integrity sha512-7Zjb2wFGqCMx/h/T0ceR5kgXT1+fHDyS4ml4pqdtmT6WiR3N+8X2KRlm3mPtU0Td+vzmvXOXBNMuwQuuuqFrjA==
|
||||||
|
|
||||||
|
"@scode/eslint-config@^1.2.31":
|
||||||
version "1.2.31"
|
version "1.2.31"
|
||||||
resolved "https://npm.scode.ovh/@scode%2feslint-config/-/eslint-config-1.2.31.tgz#dc15b427f473475b51ed32b6dbf2078f14e53b23"
|
resolved "https://npm.scode.ovh/@scode%2feslint-config/-/eslint-config-1.2.31.tgz#dc15b427f473475b51ed32b6dbf2078f14e53b23"
|
||||||
integrity sha512-Sk1ptDTHt9a8BR4c4uP5ElJ1dyKqbJtEfzAng7pp2fgd1Ro3wPXHycCtnzRySqsB0jFXqfHWekICt2Skp+4FSQ==
|
integrity sha512-Sk1ptDTHt9a8BR4c4uP5ElJ1dyKqbJtEfzAng7pp2fgd1Ro3wPXHycCtnzRySqsB0jFXqfHWekICt2Skp+4FSQ==
|
||||||
@ -275,7 +280,7 @@
|
|||||||
surrial "~2.0.2"
|
surrial "~2.0.2"
|
||||||
tslib "~1.11.1"
|
tslib "~1.11.1"
|
||||||
|
|
||||||
"@stryker-mutator/core@^3.0.2":
|
"@stryker-mutator/core@^3.1.0":
|
||||||
version "3.1.0"
|
version "3.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@stryker-mutator/core/-/core-3.1.0.tgz#8e0842534c75359832a5b67852bbdb0716d9124c"
|
resolved "https://registry.yarnpkg.com/@stryker-mutator/core/-/core-3.1.0.tgz#8e0842534c75359832a5b67852bbdb0716d9124c"
|
||||||
integrity sha512-riO2ccmOklvR5qXVrcEtUBqkryNY27lL85ZkFfcnPtOon0y1XtDClLz/DogLr4FH414RqHBL5ZMjrk0Bf/sKug==
|
integrity sha512-riO2ccmOklvR5qXVrcEtUBqkryNY27lL85ZkFfcnPtOon0y1XtDClLz/DogLr4FH414RqHBL5ZMjrk0Bf/sKug==
|
||||||
@ -305,7 +310,7 @@
|
|||||||
typed-inject "~2.1.1"
|
typed-inject "~2.1.1"
|
||||||
typed-rest-client "~1.7.1"
|
typed-rest-client "~1.7.1"
|
||||||
|
|
||||||
"@stryker-mutator/javascript-mutator@^3.0.2":
|
"@stryker-mutator/javascript-mutator@^3.1.0":
|
||||||
version "3.1.0"
|
version "3.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/@stryker-mutator/javascript-mutator/-/javascript-mutator-3.1.0.tgz#fea5f92a4bed965fe03518870c88435202672cd3"
|
resolved "https://registry.yarnpkg.com/@stryker-mutator/javascript-mutator/-/javascript-mutator-3.1.0.tgz#fea5f92a4bed965fe03518870c88435202672cd3"
|
||||||
integrity sha512-0UUp9f8vnbIo/5lWm91OZGkcb2x8XdlE38AZbrJmYNqENh11ZoZywoKpYyn/sIpmp2CDpAKY+CxWCr8yiFTiZA==
|
integrity sha512-0UUp9f8vnbIo/5lWm91OZGkcb2x8XdlE38AZbrJmYNqENh11ZoZywoKpYyn/sIpmp2CDpAKY+CxWCr8yiFTiZA==
|
||||||
@ -328,16 +333,49 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
defer-to-connect "^1.0.1"
|
defer-to-connect "^1.0.1"
|
||||||
|
|
||||||
|
"@types/body-parser@*":
|
||||||
|
version "1.19.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.0.tgz#0685b3c47eb3006ffed117cdd55164b61f80538f"
|
||||||
|
integrity sha512-W98JrE0j2K78swW4ukqMleo8R7h/pFETjM2DQ90MF6XK2i4LO4W3gQ71Lt4w3bfm2EvVSyWHplECvB5sK22yFQ==
|
||||||
|
dependencies:
|
||||||
|
"@types/connect" "*"
|
||||||
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/color-name@^1.1.1":
|
"@types/color-name@^1.1.1":
|
||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
|
resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
|
||||||
integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==
|
integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==
|
||||||
|
|
||||||
|
"@types/connect@*":
|
||||||
|
version "3.4.33"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.33.tgz#31610c901eca573b8713c3330abc6e6b9f588546"
|
||||||
|
integrity sha512-2+FrkXY4zllzTNfJth7jOqEHC+enpLeGslEhpnTAkg21GkRrWV4SsAtqchtT4YS9/nODBU2/ZfsBY2X4J/dX7A==
|
||||||
|
dependencies:
|
||||||
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/events@*":
|
"@types/events@*":
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7"
|
resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7"
|
||||||
integrity sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==
|
integrity sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==
|
||||||
|
|
||||||
|
"@types/express-serve-static-core@*":
|
||||||
|
version "4.17.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.3.tgz#dc8068ee3e354d7fba69feb86b3dfeee49b10f09"
|
||||||
|
integrity sha512-sHEsvEzjqN+zLbqP+8OXTipc10yH1QLR+hnr5uw29gi9AhCAAAdri8ClNV7iMdrJrIzXIQtlkPvq8tJGhj3QJQ==
|
||||||
|
dependencies:
|
||||||
|
"@types/node" "*"
|
||||||
|
"@types/range-parser" "*"
|
||||||
|
|
||||||
|
"@types/express@^4.17.4":
|
||||||
|
version "4.17.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.4.tgz#e78bf09f3f530889575f4da8a94cd45384520aac"
|
||||||
|
integrity sha512-DO1L53rGqIDUEvOjJKmbMEQ5Z+BM2cIEPy/eV3En+s166Gz+FeuzRerxcab757u/U4v4XF4RYrZPmqKa+aY/2w==
|
||||||
|
dependencies:
|
||||||
|
"@types/body-parser" "*"
|
||||||
|
"@types/express-serve-static-core" "*"
|
||||||
|
"@types/qs" "*"
|
||||||
|
"@types/serve-static" "*"
|
||||||
|
|
||||||
"@types/glob@^7.1.1":
|
"@types/glob@^7.1.1":
|
||||||
version "7.1.1"
|
version "7.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.1.tgz#aa59a1c6e3fbc421e07ccd31a944c30eba521575"
|
resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.1.tgz#aa59a1c6e3fbc421e07ccd31a944c30eba521575"
|
||||||
@ -347,21 +385,44 @@
|
|||||||
"@types/minimatch" "*"
|
"@types/minimatch" "*"
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
|
"@types/mime@*":
|
||||||
|
version "2.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.1.tgz#dc488842312a7f075149312905b5e3c0b054c79d"
|
||||||
|
integrity sha512-FwI9gX75FgVBJ7ywgnq/P7tw+/o1GUbtP0KzbtusLigAOgIgNISRK0ZPl4qertvXSIE8YbsVJueQ90cDt9YYyw==
|
||||||
|
|
||||||
"@types/minimatch@*":
|
"@types/minimatch@*":
|
||||||
version "3.0.3"
|
version "3.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
|
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
|
||||||
integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==
|
integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==
|
||||||
|
|
||||||
"@types/node@*":
|
"@types/node@*":
|
||||||
version "13.9.5"
|
version "13.11.0"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.9.5.tgz#59738bf30b31aea1faa2df7f4a5f55613750cf00"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.11.0.tgz#390ea202539c61c8fa6ba4428b57e05bc36dc47b"
|
||||||
integrity sha512-hkzMMD3xu6BrJpGVLeQ3htQQNAcOrJjX7WFmtK8zWQpz2UJf13LCFF2ALA7c9OVdvc2vQJeDdjfR35M0sBCxvw==
|
integrity sha512-uM4mnmsIIPK/yeO+42F2RQhGUIs39K2RFmugcJANppXe6J1nvH87PvzPZYpza7Xhhs8Yn9yIAVdLZ84z61+0xQ==
|
||||||
|
|
||||||
"@types/normalize-package-data@^2.4.0":
|
"@types/normalize-package-data@^2.4.0":
|
||||||
version "2.4.0"
|
version "2.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
|
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
|
||||||
integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==
|
integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==
|
||||||
|
|
||||||
|
"@types/qs@*":
|
||||||
|
version "6.9.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.1.tgz#937fab3194766256ee09fcd40b781740758617e7"
|
||||||
|
integrity sha512-lhbQXx9HKZAPgBkISrBcmAcMpZsmpe/Cd/hY7LGZS5OfkySUBItnPZHgQPssWYUET8elF+yCFBbP1Q0RZPTdaw==
|
||||||
|
|
||||||
|
"@types/range-parser@*":
|
||||||
|
version "1.2.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.3.tgz#7ee330ba7caafb98090bece86a5ee44115904c2c"
|
||||||
|
integrity sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==
|
||||||
|
|
||||||
|
"@types/serve-static@*":
|
||||||
|
version "1.13.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.3.tgz#eb7e1c41c4468272557e897e9171ded5e2ded9d1"
|
||||||
|
integrity sha512-oprSwp094zOglVrXdlo/4bAHtKTAxX6VT8FOZlBKrmyLbNvE1zxZyJ6yikMVtHIvwP45+ZQGJn+FdXGKTozq0g==
|
||||||
|
dependencies:
|
||||||
|
"@types/express-serve-static-core" "*"
|
||||||
|
"@types/mime" "*"
|
||||||
|
|
||||||
acorn-jsx@^5.2.0:
|
acorn-jsx@^5.2.0:
|
||||||
version "5.2.0"
|
version "5.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz#4c66069173d6fdd68ed85239fc256226182b2ebe"
|
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz#4c66069173d6fdd68ed85239fc256226182b2ebe"
|
||||||
@ -513,10 +574,10 @@ astral-regex@^2.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31"
|
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31"
|
||||||
integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==
|
integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==
|
||||||
|
|
||||||
ava@^3.4.0:
|
ava@^3.5.2:
|
||||||
version "3.5.1"
|
version "3.5.2"
|
||||||
resolved "https://registry.yarnpkg.com/ava/-/ava-3.5.1.tgz#6dde079621606824495957c78f95c8485639bc14"
|
resolved "https://registry.yarnpkg.com/ava/-/ava-3.5.2.tgz#9a37305c03840c4b63eb53edae29741d8414633e"
|
||||||
integrity sha512-gde/nh438C6cj6/pKntjoPmGg1VSsZlRjyuYTjp0ixsNDj+1YNVeASrlzI+NgvcUmbx17G8uOgByt7lDu8ddXA==
|
integrity sha512-4MYpx0D7VQwzvqCOQsbnPK2Dmg7lipWe2k/n75i0cuFwuosq9MYIWc9MnmCZ1GIlPQ70qOP1DgQcD0ScH/W79Q==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@concordance/react" "^2.0.0"
|
"@concordance/react" "^2.0.0"
|
||||||
ansi-styles "^4.2.1"
|
ansi-styles "^4.2.1"
|
||||||
@ -1061,7 +1122,7 @@ error-ex@^1.2.0, error-ex@^1.3.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
is-arrayish "^0.2.1"
|
is-arrayish "^0.2.1"
|
||||||
|
|
||||||
es-abstract@^1.17.0, es-abstract@^1.17.0-next.1:
|
es-abstract@^1.17.0, es-abstract@^1.17.0-next.1, es-abstract@^1.17.5:
|
||||||
version "1.17.5"
|
version "1.17.5"
|
||||||
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.5.tgz#d8c9d1d66c8981fb9200e2251d799eee92774ae9"
|
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.5.tgz#d8c9d1d66c8981fb9200e2251d799eee92774ae9"
|
||||||
integrity sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==
|
integrity sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg==
|
||||||
@ -1343,9 +1404,9 @@ fast-levenshtein@~2.0.6:
|
|||||||
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
|
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
|
||||||
|
|
||||||
fastq@^1.6.0:
|
fastq@^1.6.0:
|
||||||
version "1.6.1"
|
version "1.7.0"
|
||||||
resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.6.1.tgz#4570c74f2ded173e71cf0beb08ac70bb85826791"
|
resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.7.0.tgz#fcd79a08c5bd7ec5b55cd3f5c4720db551929801"
|
||||||
integrity sha512-mpIH5sKYueh3YyeJwqtVo8sORi0CgtmkVbK6kZStpQlZBYQuTzG2CZ7idSiJuA7bY0SFCWUc5WIs+oYumGCQNw==
|
integrity sha512-YOadQRnHd5q6PogvAR/x62BGituF2ufiEA6s8aavQANw5YKHERI4AREboX6KotzP8oX2klxYF2wcV/7bn1clfQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
reusify "^1.0.4"
|
reusify "^1.0.4"
|
||||||
|
|
||||||
@ -2845,9 +2906,9 @@ run-parallel@^1.1.9:
|
|||||||
integrity sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==
|
integrity sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==
|
||||||
|
|
||||||
rxjs@^6.5.3, rxjs@~6.5.1:
|
rxjs@^6.5.3, rxjs@~6.5.1:
|
||||||
version "6.5.4"
|
version "6.5.5"
|
||||||
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.4.tgz#e0777fe0d184cec7872df147f303572d414e211c"
|
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.5.tgz#c5c884e3094c8cfee31bf27eb87e54ccfc87f9ec"
|
||||||
integrity sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==
|
integrity sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
tslib "^1.9.0"
|
tslib "^1.9.0"
|
||||||
|
|
||||||
@ -3040,21 +3101,39 @@ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0:
|
|||||||
is-fullwidth-code-point "^3.0.0"
|
is-fullwidth-code-point "^3.0.0"
|
||||||
strip-ansi "^6.0.0"
|
strip-ansi "^6.0.0"
|
||||||
|
|
||||||
string.prototype.trimleft@^2.1.1:
|
string.prototype.trimend@^1.0.0:
|
||||||
version "2.1.1"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz#9bdb8ac6abd6d602b17a4ed321870d2f8dcefc74"
|
resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.0.tgz#ee497fd29768646d84be2c9b819e292439614373"
|
||||||
integrity sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag==
|
integrity sha512-EEJnGqa/xNfIg05SxiPSqRS7S9qwDhYts1TSLR1BQfYUfPe1stofgGKvwERK9+9yf+PpfBMlpBaCHucXGPQfUA==
|
||||||
dependencies:
|
dependencies:
|
||||||
define-properties "^1.1.3"
|
define-properties "^1.1.3"
|
||||||
function-bind "^1.1.1"
|
es-abstract "^1.17.5"
|
||||||
|
|
||||||
|
string.prototype.trimleft@^2.1.1:
|
||||||
|
version "2.1.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz#4408aa2e5d6ddd0c9a80739b087fbc067c03b3cc"
|
||||||
|
integrity sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw==
|
||||||
|
dependencies:
|
||||||
|
define-properties "^1.1.3"
|
||||||
|
es-abstract "^1.17.5"
|
||||||
|
string.prototype.trimstart "^1.0.0"
|
||||||
|
|
||||||
string.prototype.trimright@^2.1.1:
|
string.prototype.trimright@^2.1.1:
|
||||||
version "2.1.1"
|
version "2.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz#440314b15996c866ce8a0341894d45186200c5d9"
|
resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz#c76f1cef30f21bbad8afeb8db1511496cfb0f2a3"
|
||||||
integrity sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g==
|
integrity sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg==
|
||||||
dependencies:
|
dependencies:
|
||||||
define-properties "^1.1.3"
|
define-properties "^1.1.3"
|
||||||
function-bind "^1.1.1"
|
es-abstract "^1.17.5"
|
||||||
|
string.prototype.trimend "^1.0.0"
|
||||||
|
|
||||||
|
string.prototype.trimstart@^1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.0.tgz#afe596a7ce9de905496919406c9734845f01a2f2"
|
||||||
|
integrity sha512-iCP8g01NFYiiBOnwG1Xc3WZLyoo+RuBymwIlWncShXDDJYWN6DbnM3odslBJdgCdRlq94B5s63NWAZlcn2CS4w==
|
||||||
|
dependencies:
|
||||||
|
define-properties "^1.1.3"
|
||||||
|
es-abstract "^1.17.5"
|
||||||
|
|
||||||
strip-ansi@^4.0.0:
|
strip-ansi@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
@ -3250,9 +3329,9 @@ typed-inject@~2.1.1:
|
|||||||
typescript "^3.6.3"
|
typescript "^3.6.3"
|
||||||
|
|
||||||
typed-rest-client@~1.7.1:
|
typed-rest-client@~1.7.1:
|
||||||
version "1.7.2"
|
version "1.7.3"
|
||||||
resolved "https://registry.yarnpkg.com/typed-rest-client/-/typed-rest-client-1.7.2.tgz#5be96f5bbff703e3527ffd6e2661d2074056f7e7"
|
resolved "https://registry.yarnpkg.com/typed-rest-client/-/typed-rest-client-1.7.3.tgz#1beb263b86b14d34596f6127c6172dd5fd652e7b"
|
||||||
integrity sha512-6ENgPdTH7s2Xcd6mBaahyMLBoXPi0LNe75E1T0RFOdhqN9ENpZmf3P5iloOlJUDaHYrucPPzMrBybr6BdS2URg==
|
integrity sha512-CwTpx/TkRHGZoHkJhBcp4X8K3/WtlzSHVQR0OIFnt10j4tgy4ypgq/SrrgVpA1s6tAL49Q6J3R5C0Cgfh2ddqA==
|
||||||
dependencies:
|
dependencies:
|
||||||
qs "^6.9.1"
|
qs "^6.9.1"
|
||||||
tunnel "0.0.6"
|
tunnel "0.0.6"
|
||||||
|
Reference in New Issue
Block a user