@react-vector-graphics/core
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -23,3 +23,3 @@ "use strict"; | ||
logger.info('options:', config.options); | ||
const pluginArgs = [{}]; | ||
const pluginParams = [{}]; | ||
for (const plugin of plugins_1.getPlugins(config)) { | ||
@@ -31,10 +31,10 @@ logger.info('plugin:', plugin); | ||
]); | ||
const results = yield Promise.all(pluginArgs.splice(0).map((args) => __awaiter(void 0, void 0, void 0, function* () { | ||
const result = yield pluginFn(args.code, pluginConfig, args.state, logger); | ||
const results = yield Promise.all(pluginParams.splice(0).map((params) => __awaiter(void 0, void 0, void 0, function* () { | ||
const result = yield pluginFn(params.code, pluginConfig, params.state, logger); | ||
return (Array.isArray(result) ? result : [result]) | ||
.filter(Boolean) | ||
.map(r => normalizePluginParams(r, args)); | ||
.map(r => normalizePluginParams(r, params)); | ||
}))); | ||
pluginArgs.push(...pluginArgs.concat(...results)); | ||
pluginParams.push(...pluginParams.concat(...results)); | ||
} | ||
}); |
{ | ||
"name": "@react-vector-graphics/core", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "Core library of react-vector-graphics", | ||
@@ -11,3 +11,3 @@ "author": "Top Hat <opensource@tophat.com>", | ||
"lib": "lib", | ||
"test": "__tests__" | ||
"test": "tests" | ||
}, | ||
@@ -36,3 +36,3 @@ "files": [ | ||
}, | ||
"gitHead": "2259d10204c0338b674ecfda7fda3f4d1255e941" | ||
"gitHead": "52e6a242e5de5b9c157297755a9d6f20d9ef2632" | ||
} |
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
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
18922