This commit is contained in:
zino
2021-03-02 00:06:38 +01:00
parent 3a8aab0e9a
commit eeb745b013
3567 changed files with 1234741 additions and 0 deletions

22
client/node_modules/tsconfig/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 TypeStrong
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

14
client/node_modules/tsconfig/dist/tsconfig.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
import Promise = require('any-promise');
export interface LoadResult {
path?: string;
config: any;
}
export declare function resolve(cwd: string, filename?: string): Promise<string | void>;
export declare function resolveSync(cwd: string, filename?: string): string | void;
export declare function find(dir: string): Promise<string | void>;
export declare function findSync(dir: string): string | void;
export declare function load(cwd: string, filename?: string): Promise<LoadResult>;
export declare function loadSync(cwd: string, filename?: string): LoadResult;
export declare function readFile(filename: string): Promise<any>;
export declare function readFileSync(filename: string): any;
export declare function parse(contents: string, filename: string): any;

160
client/node_modules/tsconfig/dist/tsconfig.js generated vendored Normal file
View File

@@ -0,0 +1,160 @@
"use strict";
var fs = require('fs');
var path = require('path');
var Promise = require('any-promise');
var stripBom = require('strip-bom');
var parseJson = require('parse-json');
var stripComments = require('strip-json-comments');
var CONFIG_FILENAME = 'tsconfig.json';
function resolve(cwd, filename) {
if (!filename) {
return find(cwd);
}
var fullPath = path.resolve(cwd, filename);
return stat(fullPath)
.then(function (stats) {
if (isFile(stats)) {
return fullPath;
}
if (isDirectory(stats)) {
var configFile_1 = path.join(fullPath, CONFIG_FILENAME);
return stat(configFile_1)
.then(function (stats) {
if (isFile(stats)) {
return configFile_1;
}
throw new TypeError("Cannot find a " + CONFIG_FILENAME + " file at the specified directory: " + filename);
});
}
throw new TypeError("The specified path does not exist: " + filename);
});
}
exports.resolve = resolve;
function resolveSync(cwd, filename) {
if (!filename) {
return findSync(cwd);
}
var fullPath = path.resolve(cwd, filename);
var stats = statSync(fullPath);
if (isFile(stats)) {
return fullPath;
}
if (isDirectory(stats)) {
var configFile = path.join(fullPath, CONFIG_FILENAME);
var stats_1 = statSync(configFile);
if (isFile(stats_1)) {
return configFile;
}
throw new TypeError("Cannot find a " + CONFIG_FILENAME + " file at the specified directory: " + filename);
}
throw new TypeError("The specified path does not exist: " + filename);
}
exports.resolveSync = resolveSync;
function find(dir) {
var configFile = path.resolve(dir, CONFIG_FILENAME);
return stat(configFile)
.then(function (stats) {
if (isFile(stats)) {
return configFile;
}
var parentDir = path.dirname(dir);
if (dir === parentDir) {
return;
}
return find(parentDir);
});
}
exports.find = find;
function findSync(dir) {
var configFile = path.resolve(dir, CONFIG_FILENAME);
var stats = statSync(configFile);
if (isFile(stats)) {
return configFile;
}
var parentDir = path.dirname(dir);
if (dir === parentDir) {
return;
}
return findSync(parentDir);
}
exports.findSync = findSync;
function load(cwd, filename) {
return resolve(cwd, filename)
.then(function (path) {
if (path == null) {
return Promise.resolve({
config: {
files: [],
compilerOptions: {}
}
});
}
return readFile(path).then(function (config) { return ({ path: path, config: config }); });
});
}
exports.load = load;
function loadSync(cwd, filename) {
var path = resolveSync(cwd, filename);
if (path == null) {
return {
config: {
files: [],
compilerOptions: {}
}
};
}
var config = readFileSync(path);
return { path: path, config: config };
}
exports.loadSync = loadSync;
function readFile(filename) {
return new Promise(function (resolve, reject) {
fs.readFile(filename, 'utf8', function (err, contents) {
if (err) {
return reject(err);
}
try {
return resolve(parse(contents, filename));
}
catch (err) {
return reject(err);
}
});
});
}
exports.readFile = readFile;
function readFileSync(filename) {
var contents = fs.readFileSync(filename, 'utf8');
return parse(contents, filename);
}
exports.readFileSync = readFileSync;
function parse(contents, filename) {
var data = stripComments(stripBom(contents));
if (/^\s*$/.test(data)) {
return {};
}
return parseJson(data, null, filename);
}
exports.parse = parse;
function stat(filename) {
return new Promise(function (resolve, reject) {
fs.stat(filename, function (err, stats) {
return err ? resolve(undefined) : resolve(stats);
});
});
}
function statSync(filename) {
try {
return fs.statSync(filename);
}
catch (e) {
return;
}
}
function isFile(stats) {
return stats ? stats.isFile() || stats.isFIFO() : false;
}
function isDirectory(stats) {
return stats ? stats.isDirectory() : false;
}
//# sourceMappingURL=tsconfig.js.map

1
client/node_modules/tsconfig/dist/tsconfig.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

0
client/node_modules/tsconfig/dist/tsconfig.spec.d.ts generated vendored Normal file
View File

136
client/node_modules/tsconfig/dist/tsconfig.spec.js generated vendored Normal file
View File

@@ -0,0 +1,136 @@
"use strict";
var chai_1 = require('chai');
var path_1 = require('path');
var util_1 = require('util');
var tsconfig = require('./tsconfig');
var TEST_DIR = path_1.join(__dirname, '../tests');
describe('tsconfig', function () {
var tests = [
{
args: [TEST_DIR, 'invalidfile'],
error: "Unexpected token 's' at 1:1 in " + path_1.join(TEST_DIR, 'invalidfile/tsconfig.json') + "\nsome random string\n^"
},
{
args: [TEST_DIR, 'missing'],
error: 'Cannot find a tsconfig.json file at the specified directory: missing'
},
{
args: [TEST_DIR, 'missing/foobar'],
error: 'The specified path does not exist: missing/foobar'
},
{
args: ['/'],
config: {}
},
{
args: [TEST_DIR, 'empty'],
config: {},
path: path_1.join(TEST_DIR, 'empty/tsconfig.json')
},
{
args: [TEST_DIR, 'empty/tsconfig.json'],
config: {},
path: path_1.join(TEST_DIR, 'empty/tsconfig.json')
},
{
args: [path_1.join(TEST_DIR, 'find/up/config')],
config: {},
path: path_1.join(TEST_DIR, 'find/tsconfig.json')
},
{
args: [TEST_DIR, 'valid'],
config: {
compilerOptions: {
module: 'commonjs',
noImplicitAny: true,
outDir: 'dist',
removeComments: true,
sourceMap: true,
preserveConstEnums: true
},
files: [
'./src/foo.ts'
]
},
path: path_1.join(TEST_DIR, 'valid/tsconfig.json')
},
{
args: [TEST_DIR, 'bom'],
config: {
compilerOptions: {
module: 'commonjs',
noImplicitAny: true,
outDir: 'dist',
removeComments: true,
sourceMap: true,
preserveConstEnums: true
},
files: [
'./src/bom.ts'
]
},
path: path_1.join(TEST_DIR, 'bom/tsconfig.json')
},
{
args: [path_1.join(TEST_DIR, 'cwd')],
config: {
compilerOptions: {
module: 'commonjs',
noImplicitAny: true,
outDir: 'dist',
removeComments: true,
sourceMap: true,
preserveConstEnums: true
}
},
path: path_1.join(TEST_DIR, 'cwd/tsconfig.json')
}
];
describe('sync', function () {
tests.forEach(function (test) {
describe(util_1.inspect(test.args), function () {
it('should try to find config', function () {
var result;
try {
result = tsconfig.loadSync(test.args[0], test.args[1]);
}
catch (err) {
chai_1.expect(err.message).to.equal(test.error);
return;
}
chai_1.expect(result.path).to.equal(test.path);
chai_1.expect(result.config).to.deep.equal(test.config);
});
if (test.path) {
it('should resolve filename', function () {
chai_1.expect(tsconfig.resolveSync(test.args[0], test.args[1])).to.equal(test.path);
});
}
});
});
});
describe('async', function () {
tests.forEach(function (test) {
describe(util_1.inspect(test.args), function () {
it('should try to find config', function () {
return tsconfig.load(test.args[0], test.args[1])
.then(function (result) {
chai_1.expect(result.path).to.equal(test.path);
chai_1.expect(result.config).to.deep.equal(test.config);
}, function (error) {
chai_1.expect(error.message).to.equal(test.error);
});
});
if (test.path) {
it('should resolve filename', function () {
return tsconfig.resolve(test.args[0], test.args[1])
.then(function (filename) {
chai_1.expect(filename).to.equal(test.path);
});
});
}
});
});
});
});
//# sourceMappingURL=tsconfig.spec.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"tsconfig.spec.js","sourceRoot":"","sources":["../src/tsconfig.spec.ts"],"names":[],"mappings":";AAAA,qBAAuB,MACvB,CAAC,CAD4B;AAC7B,qBAAqB,MACrB,CAAC,CAD0B;AAC3B,qBAAwB,MACxB,CAAC,CAD6B;AAC9B,IAAY,QAAQ,WAAM,YAE1B,CAAC,CAFqC;AAEtC,IAAM,QAAQ,GAAG,WAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;AAS5C,QAAQ,CAAC,UAAU,EAAE;IACnB,IAAM,KAAK,GAAW;QACpB;YACE,IAAI,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC;YAC/B,KAAK,EAAE,oCAAkC,WAAI,CAAC,QAAQ,EAAE,2BAA2B,CAAC,4BAAyB;SAC9G;QACD;YACE,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;YAC3B,KAAK,EAAE,sEAAsE;SAC9E;QACD;YACE,IAAI,EAAE,CAAC,QAAQ,EAAE,gBAAgB,CAAC;YAClC,KAAK,EAAE,mDAAmD;SAC3D;QACD;YACE,IAAI,EAAE,CAAC,GAAG,CAAC;YACX,MAAM,EAAE,EAAE;SACX;QACD;YACE,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;YACzB,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,WAAI,CAAC,QAAQ,EAAE,qBAAqB,CAAC;SAC5C;QACD;YACE,IAAI,EAAE,CAAC,QAAQ,EAAE,qBAAqB,CAAC;YACvC,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,WAAI,CAAC,QAAQ,EAAE,qBAAqB,CAAC;SAC5C;QACD;YACE,IAAI,EAAE,CAAC,WAAI,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;YACxC,MAAM,EAAE,EAAE;YACV,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E;oBAC9B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;yBAC7C,IAAI,CACH,UAAA,MAAM;wBACJ,aAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;wBACvC,aAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;oBAClD,CAAC,EACD,UAAA,KAAK;wBACH,aAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;oBAC5C,CAAC,CACF,CAAA;gBACL,CAAC,CAAC,CAAA;gBAEF,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;oBACd,EAAE,CAAC,yBAAyB,EAAE;wBAC5B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;6BAChD,IAAI,CAAC,UAAA,QAAQ;4BACZ,aAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;wBACtC,CAAC,CAAC,CAAA;oBACN,CAAC,CAAC,CAAA;gBACJ,CAAC;YACH,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}

61
client/node_modules/tsconfig/package.json generated vendored Normal file
View File

@@ -0,0 +1,61 @@
{
"name": "tsconfig",
"version": "5.0.3",
"description": "Resole and parse `tsconfig.json`, replicating to TypeScript's behaviour",
"main": "dist/tsconfig.js",
"files": [
"dist/",
"LICENSE",
"typings.json"
],
"scripts": {
"lint": "tslint \"src/**/*.ts\"",
"build": "npm run build-ts",
"build-ts": "rm -rf dist && tsc",
"test-spec": "mocha dist/**/*.spec.js -R spec --bail",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- dist/**/*.spec.js -R spec --bail",
"test": "npm run build && npm run lint && npm run test-cov",
"prepublish": "typings install && npm run build"
},
"repository": {
"type": "git",
"url": "https://github.com/TypeStrong/tsconfig.git"
},
"keywords": [
"TypeScript",
"compiler",
"config",
"tsconfig",
"json",
"resolve"
],
"author": {
"name": "Blake Embrey",
"email": "hello@blakeembrey.com",
"url": "http://blakeembrey.me"
},
"contributors": [
"basaratali@gmail.com"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/TypeStrong/tsconfig/issues"
},
"homepage": "https://github.com/TypeStrong/tsconfig",
"dependencies": {
"any-promise": "^1.3.0",
"parse-json": "^2.2.0",
"strip-bom": "^2.0.0",
"strip-json-comments": "^2.0.0"
},
"devDependencies": {
"bluebird": "^3.4.1",
"chai": "^3.0.0",
"istanbul": "^0.4.0",
"mocha": "^2.0.1",
"tslint": "^3.13.0",
"tslint-config-standard": "^1.3.0",
"typescript": "^1.8.10",
"typings": "^1.0.4"
}
}

12
client/node_modules/tsconfig/typings.json generated vendored Normal file
View File

@@ -0,0 +1,12 @@
{
"dependencies": {
"parse-json": "registry:npm/parse-json#2.0.0+20160211003958",
"strip-bom": "registry:npm/strip-bom#2.0.0+20160211003958",
"strip-json-comments": "registry:npm/strip-json-comments#2.0.0+20160211003958"
},
"globalDevDependencies": {
"chai": "registry:dt/chai#3.4.0+20160601211834",
"mocha": "registry:dt/mocha#2.2.5+20160720003353",
"node": "registry:dt/node#6.0.0+20160720070758"
}
}