Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0liQ committed Jan 20, 2018
1 parent fcd1219 commit 1e87e20
Show file tree
Hide file tree
Showing 3 changed files with 320 additions and 212 deletions.
114 changes: 57 additions & 57 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
if (typeof global === "object") {
global.require = require;
}
var _d78f = {};
_d78f.f = {}
var _403e = {};
_403e.f = {}
// cached modules
_d78f.m = {};
_d78f.s = function(id) {
var result = _d78f.r(id);
_403e.m = {};
_403e.s = function(id) {
var result = _403e.r(id);
if (result === undefined) {
return require(id);
}
}
_d78f.r = function(id) {
var cached = _d78f.m[id];
_403e.r = function(id) {
var cached = _403e.m[id];
// resolve if in cache
if (cached) {
return cached.m.exports;
}
var file = _d78f.f[id];
var file = _403e.f[id];
if (!file)
return;
cached = _d78f.m[id] = {};
cached = _403e.m[id] = {};
cached.exports = {};
cached.m = { exports: cached.exports };
file(cached.m, cached.exports);
return cached.m.exports;
};
// stricter/index.js
_d78f.f[0] = function(module,exports){
_403e.f[0] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
var stricter_1 = _d78f.r(1);
var stricter_1 = _403e.r(1);
exports.stricter = stricter_1.default;
var cli_1 = _d78f.r(19);
var cli_1 = _403e.r(19);
exports.cli = cli_1.default;
var processor_1 = _d78f.r(9);
var processor_1 = _403e.r(9);
exports.readFilesData = processor_1.readFilesData;
var dependencies_1 = _d78f.r(11);
var dependencies_1 = _403e.r(11);
exports.readDependencies = dependencies_1.default;
}
// stricter/stricter.js
_d78f.f[1] = function(module,exports){
_403e.f[1] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const config_1 = _d78f.r(2);
const rule_1 = _d78f.r(6);
const processor_1 = _d78f.r(9);
const dependencies_1 = _d78f.r(11);
const logger_1 = _d78f.r(15);
const utils_1 = _d78f.r(7);
const types_1 = _d78f.r(10);
const config_1 = _403e.r(2);
const rule_1 = _403e.r(6);
const processor_1 = _403e.r(9);
const dependencies_1 = _403e.r(11);
const logger_1 = _403e.r(15);
const utils_1 = _403e.r(7);
const types_1 = _403e.r(10);
exports.default = ({silent = false, reporter = types_1.Reporter.CONSOLE, configPath}) => {
if (!silent) {
console.log('Stricter: Checking...');
Expand Down Expand Up @@ -78,11 +78,11 @@ exports.default = ({silent = false, reporter = types_1.Reporter.CONSOLE, configP
};
}
// stricter/config/index.js
_d78f.f[2] = function(module,exports){
_403e.f[2] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const read_config_1 = _d78f.r(3);
const process_config_1 = _d78f.r(4);
const validate_config_1 = _d78f.r(5);
const read_config_1 = _403e.r(3);
const process_config_1 = _403e.r(4);
const validate_config_1 = _403e.r(5);
exports.getConfig = configPath => {
const foundConfig = read_config_1.default(configPath);
validate_config_1.default(foundConfig);
Expand All @@ -91,7 +91,7 @@ exports.getConfig = configPath => {
};
}
// stricter/config/read-config.js
_d78f.f[3] = function(module,exports){
_403e.f[3] = function(module,exports){
var process = require('process');
Object.defineProperty(exports, '__esModule', { value: true });
const cosmiconfig = require('cosmiconfig');
Expand All @@ -109,7 +109,7 @@ exports.default = configPath => {
};
}
// stricter/config/process-config.js
_d78f.f[4] = function(module,exports){
_403e.f[4] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const path = require('path');
exports.getDirResolver = filepath => dir => path.resolve(path.dirname(filepath), dir);
Expand All @@ -133,7 +133,7 @@ exports.default = foundConfig => {
};
}
// stricter/config/validate-config.js
_d78f.f[5] = function(module,exports){
_403e.f[5] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
exports.default = foundConfig => {
if (!foundConfig) {
Expand All @@ -148,11 +148,11 @@ exports.default = foundConfig => {
};
}
// stricter/rule/index.js
_d78f.f[6] = function(module,exports){
_403e.f[6] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const path = require('path');
const utils_1 = _d78f.r(7);
const default_rules_1 = _d78f.r(8);
const utils_1 = _403e.r(7);
const default_rules_1 = _403e.r(8);
exports.defaultRules = { 'stricter/unused-files': default_rules_1.unusedFilesRule };
exports.RULE_SUFFIX = '.rule';
const stripOutSuffix = str => {
Expand All @@ -165,7 +165,7 @@ exports.getRuleDefinitions = config => {
const ruleFiles = utils_1.listFiles(config.rulesDir).filter(i => i.endsWith(`${ exports.RULE_SUFFIX }.js`));
const customRules = ruleFiles.reduce((acc, filePath) => {
const ruleName = path.basename(filePath, path.extname(filePath));
const rule = _d78f.s(filePath);
const rule = _403e.s(filePath);
if (!rule.onProject) {
throw new Error(`Rule ${ ruleName } should have onProject.`);
}
Expand Down Expand Up @@ -223,7 +223,7 @@ exports.filterFilesToProcess = (directory, files, ruleApplications) => {
};
}
// stricter/utils/index.js
_d78f.f[7] = function(module,exports){
_403e.f[7] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const fs = require('fs');
const path = require('path');
Expand Down Expand Up @@ -270,7 +270,7 @@ exports.parse = source => {
};
}
// stricter/rule/default-rules/index.js
_d78f.f[8] = function(module,exports){
_403e.f[8] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const dfs = (stack, dependencies, seen) => {
while (stack.length) {
Expand Down Expand Up @@ -307,11 +307,11 @@ const checkForMatch = (setting, filePath) => {
};
}
// stricter/processor/index.js
_d78f.f[9] = function(module,exports){
_403e.f[9] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const utils_1 = _d78f.r(7);
const rule_1 = _d78f.r(6);
const types_1 = _d78f.r(10);
const utils_1 = _403e.r(7);
const rule_1 = _403e.r(6);
const types_1 = _403e.r(10);
const readFileData = filePath => {
const source = utils_1.readFile(filePath);
const ast = filePath.endsWith('.js') ? () => utils_1.parse(source) : undefined;
Expand Down Expand Up @@ -382,7 +382,7 @@ exports.applyProjectRules = (directory, filesData, dependencies, ruleApplication
};
}
// stricter/types/index.js
_d78f.f[10] = function(module,exports){
_403e.f[10] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
var Level;
(function (Level) {
Expand All @@ -397,10 +397,10 @@ var Reporter;
}(Reporter = exports.Reporter || (exports.Reporter = {})));
}
// stricter/dependencies/index.js
_d78f.f[11] = function(module,exports){
_403e.f[11] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const extract_path_1 = _d78f.r(12);
const parse_imports_1 = _d78f.r(14);
const extract_path_1 = _403e.r(12);
const parse_imports_1 = _403e.r(14);
exports.default = (filesData, root, extensions) => {
const result = Object.entries(filesData).reduce((acc, [filePath, data]) => {
if (!data.ast) {
Expand All @@ -417,18 +417,18 @@ exports.default = (filesData, root, extensions) => {
};
}
// stricter/dependencies/extract-path.js
_d78f.f[12] = function(module,exports){
_403e.f[12] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const path = require('path');
const resolve_import_1 = _d78f.r(13);
const resolve_import_1 = _403e.r(13);
exports.default = (importString, filePath, resolveRoots, extensions) => {
const potentialImportPaths = importString.startsWith('.') ? [path.resolve(filePath, '..', importString)] : resolveRoots.map(i => path.resolve(i, importString));
const result = resolve_import_1.default(potentialImportPaths, extensions) || importString;
return result;
};
}
// stricter/dependencies/resolve-import.js
_d78f.f[13] = function(module,exports){
_403e.f[13] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const fs = require('fs');
const path = require('path');
Expand All @@ -447,7 +447,7 @@ exports.default = (potentialImportPaths, extensions) => {
};
}
// stricter/dependencies/parse-imports.js
_d78f.f[14] = function(module,exports){
_403e.f[14] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const babylon_walk_1 = require('babylon-walk');
exports.default = ast => {
Expand Down Expand Up @@ -480,18 +480,18 @@ exports.default = ast => {
};
}
// stricter/logger/index.js
_d78f.f[15] = function(module,exports){
_403e.f[15] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
var console_1 = _d78f.r(16);
var console_1 = _403e.r(16);
exports.consoleLogger = console_1.default;
var mocha_1 = _d78f.r(17);
var mocha_1 = _403e.r(17);
exports.mochaLogger = mocha_1.default;
var flatten_1 = _d78f.r(18);
var flatten_1 = _403e.r(18);
exports.compactProjectLogs = flatten_1.compactProjectLogs;
exports.getErrorCount = projectLogs => Object.values(projectLogs).reduce((acc, i) => acc + (i.errors && i.errors.length || 0), 0);
}
// stricter/logger/console.js
_d78f.f[16] = function(module,exports){
_403e.f[16] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const chalk_1 = require('chalk');
exports.default = logs => {
Expand All @@ -514,7 +514,7 @@ exports.default = logs => {
};
}
// stricter/logger/mocha.js
_d78f.f[17] = function(module,exports){
_403e.f[17] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
const fs = require('fs');
const reportFileName = 'stricter.json';
Expand Down Expand Up @@ -557,7 +557,7 @@ exports.default = logs => {
};
}
// stricter/logger/flatten.js
_d78f.f[18] = function(module,exports){
_403e.f[18] = function(module,exports){
Object.defineProperty(exports, '__esModule', { value: true });
exports.compactProjectLogs = projectResult => {
const result = Object.entries(projectResult).map(([rule, applicationResult]) => ({
Expand All @@ -569,12 +569,12 @@ exports.compactProjectLogs = projectResult => {
};
}
// stricter/cli.js
_d78f.f[19] = function(module,exports){
_403e.f[19] = function(module,exports){
var process = require('process');
Object.defineProperty(exports, '__esModule', { value: true });
const program = require('commander');
const isCi = require('is-ci');
const stricter_1 = _d78f.r(1);
const stricter_1 = _403e.r(1);
exports.default = () => {
program.version('0.0.12').option('-c, --config <path>', 'specify config location').option('-r, --reporter <console|mocha>', 'specify reporter', /^(console|mocha)$/i, 'console').parse(process.argv);
const result = stricter_1.default({
Expand All @@ -585,4 +585,4 @@ exports.default = () => {
return result;
};
}
module.exports = _d78f.r(0)
module.exports = _403e.r(0)
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@
"cross-env": "^5.1.3",
"fuse-box": "^3.0.2",
"fuse-box-typechecker": "^2.7.0",
"jest": "^22.0.4",
"prettier": "^1.9.2",
"jest": "^22.1.4",
"prettier": "^1.10.2",
"ts-jest": "^22.0.1",
"ts-node": "^4.1.0",
"tslint": "^5.8.0",
"tslint": "^5.9.1",
"tslint-config-airbnb": "^5.4.2",
"tslint-config-prettier": "^1.6.0",
"tslint-plugin-prettier": "^1.3.0",
"typescript": "^2.6.2"
},
"dependencies": {
"babylon": "^7.0.0-beta.36",
"babylon": "^7.0.0-beta.38",
"babylon-walk": "^1.0.2",
"chalk": "^2.3.0",
"commander": "^2.12.2",
"commander": "^2.13.0",
"cosmiconfig": "^4.0.0",
"is-ci": "^1.1.0"
},
Expand Down
Loading

0 comments on commit 1e87e20

Please sign in to comment.