@nx-tools/core
Advanced tools
Comparing version 3.0.1 to 4.0.0-alpha.1
@@ -5,2 +5,8 @@ # Changelog | ||
## [3.0.1](https://github.com/gperdomor/nx-tools/compare/core@3.0.0...core@3.0.1) (2022-07-11) | ||
### Bug Fixes | ||
- **core:** move from chalk to colorette ([5a5e7fa](https://github.com/gperdomor/nx-tools/commit/5a5e7facf1d47fb8b547fc2f5bf7ea0a9bc914ab)) | ||
## [3.0.0](https://github.com/gperdomor/nx-tools/compare/core@3.0.0-alpha.3...core@3.0.0) (2022-06-14) | ||
@@ -7,0 +13,0 @@ |
{ | ||
"name": "@nx-tools/core", | ||
"version": "3.0.1", | ||
"version": "4.0.0-alpha.1", | ||
"type": "commonjs", | ||
"author": "gperdomor <gperdomor@gmail.com>", | ||
"repository": "https://github.com/nx-tools/nx-tools", | ||
"bugs": "https://github.com/nx-tools/nx-tools/issues", | ||
"repository": "https://github.com/gperdomor/nx-tools", | ||
"bugs": "https://github.com/gperdomor/nx-tools/issues", | ||
"license": "MIT", | ||
@@ -13,5 +13,5 @@ "engines": { | ||
"dependencies": { | ||
"@actions/exec": "^1.1.1", | ||
"@swc/helpers": "^0.4.3", | ||
"colorette": "^2.0.19" | ||
"@actions/exec": "1.1.1", | ||
"@swc/helpers": "0.4.9", | ||
"colorette": "2.0.19" | ||
}, | ||
@@ -18,0 +18,0 @@ "peerDependencies": { |
@@ -1,2 +0,6 @@ | ||
"use strict"; | ||
/** | ||
* Iterate an array in an asynchronous way | ||
* @param array The array to iterate | ||
* @param callback Callback | ||
*/ "use strict"; | ||
Object.defineProperty(exports, "asyncForEach", { | ||
@@ -3,0 +7,0 @@ enumerable: true, |
@@ -1,2 +0,6 @@ | ||
"use strict"; | ||
/** | ||
* Insert variables directly in the string. | ||
* @param string String to interpolate. | ||
* @returns Interpolated string. | ||
*/ "use strict"; | ||
Object.defineProperty(exports, "interpolate", { | ||
@@ -3,0 +7,0 @@ enumerable: true, |
@@ -1,1 +0,1 @@ | ||
export declare function loadPackage(packageName: string, context: string, loaderFn?: Function): any; | ||
export declare function loadPackage(packageName: string, context: string, loaderFn?: Function): Promise<any>; |
@@ -8,5 +8,5 @@ "use strict"; | ||
const MISSING_REQUIRED_DEPENDENCY = (name, reason)=>`The "${name}" package is missing. Please, make sure to install this library ($ npm install ${name}) to take advantage of ${reason}.`; | ||
function loadPackage(packageName, context, loaderFn) { | ||
async function loadPackage(packageName, context, loaderFn) { | ||
try { | ||
return loaderFn ? loaderFn() : require(packageName); | ||
return loaderFn ? loaderFn() : await Promise.resolve(packageName).then((p)=>require(p)); | ||
} catch (e) { | ||
@@ -13,0 +13,0 @@ _devkit.logger.error(`PackageLoader - ${MISSING_REQUIRED_DEPENDENCY(packageName, context)}`); |
@@ -21,3 +21,4 @@ "use strict"; | ||
function isDebug() { | ||
return process.env['RUNNER_DEBUG'] === '1'; | ||
const debug = process.env['RUNNER_DEBUG']; | ||
return debug === 'true' || debug === '1'; | ||
} | ||
@@ -24,0 +25,0 @@ function debug(message) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
26627
268
2
+ Added@swc/helpers@0.4.9(transitive)
+ Addedcolorette@2.0.19(transitive)
- Removed@swc/helpers@0.4.37(transitive)
- Removedcolorette@2.0.20(transitive)
Updated@actions/exec@1.1.1
Updated@swc/helpers@0.4.9
Updatedcolorette@2.0.19