@nowa/core
Advanced tools
Comparing version 0.7.4 to 0.7.5
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="0.7.5"></a> | ||
## [0.7.5](https://github.com/nowa-webpack/nowa2/compare/@nowa/core@0.7.4...@nowa/core@0.7.5) (2018-11-13) | ||
**Note:** Version bump only for package @nowa/core | ||
<a name="0.7.4"></a> | ||
@@ -8,0 +16,0 @@ ## [0.7.4](https://github.com/nowa-webpack/nowa2/compare/@nowa/core@0.7.3...@nowa/core@0.7.4) (2018-11-13) |
@@ -1,6 +0,7 @@ | ||
export interface ISolution { | ||
/** | ||
* solution(s) which your solution would extends | ||
*/ | ||
solution?: string | string[]; | ||
} | ||
import { Module } from './lib/core/module'; | ||
import { Runner } from './lib/runner'; | ||
import * as Types from './lib/types'; | ||
import * as utils from './lib/utils'; | ||
export declare const createRunner: (createUtils: Runner.UtilsCreator, plugins: Types.IPlugin<Runner>[]) => Promise<Runner>; | ||
export declare const createDefaultRunner: (createUtils: Runner.UtilsCreator, plugins: Types.IPlugin<Runner>[]) => Promise<Runner>; | ||
export { Runner, Module, utils, Types }; |
40
index.js
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const module_1 = require("./lib/core/module"); | ||
exports.Module = module_1.Module; | ||
const runner_1 = require("./lib/runner"); | ||
exports.Runner = runner_1.Runner; | ||
const Types = require("./lib/types"); | ||
exports.Types = Types; | ||
const utils = require("./lib/utils"); | ||
exports.utils = utils; | ||
const initError_1 = require("./lib/plugins/initError"); | ||
const loadAdvanced_1 = require("./lib/plugins/loadAdvanced"); | ||
const loadConfig_1 = require("./lib/plugins/loadConfig"); | ||
const loadModules_1 = require("./lib/plugins/loadModules"); | ||
const loadPlugins_1 = require("./lib/plugins/loadPlugins"); | ||
const loadSolution_1 = require("./lib/plugins/loadSolution"); | ||
const parseConfig_1 = require("./lib/plugins/parseConfig"); | ||
const parseSolution_1 = require("./lib/plugins/parseSolution"); | ||
const runError_1 = require("./lib/plugins/runError"); | ||
exports.createRunner = (createUtils, plugins) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const runner = new runner_1.Runner(createUtils); | ||
for (const plugin of plugins) { | ||
yield plugin.apply(runner, createUtils(plugin.constructor.name)); | ||
} | ||
return runner; | ||
}); | ||
exports.createDefaultRunner = (createUtils, plugins) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const allPlugins = [ | ||
new initError_1.InitErrorPlugin(), | ||
new loadAdvanced_1.LoadAdvancedPlugin(), | ||
new loadConfig_1.LoadConfigPlugin(), | ||
new loadModules_1.LoadModulesPlugin(), | ||
new loadPlugins_1.LoadPluginsPlugin(), | ||
new loadSolution_1.LoadSolutionPlugin(), | ||
new parseConfig_1.ParseConfigPlugin(), | ||
new parseSolution_1.ParseSolutionPlugin(), | ||
new runError_1.RunErrorPlugin(), | ||
...plugins, | ||
]; | ||
return exports.createRunner(createUtils, allPlugins); | ||
}); |
{ | ||
"name": "@nowa/core", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"description": "the nowa core", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
60080
37
1240
1
15