Comparing version 5.4.9 to 5.4.10
@@ -0,1 +1,8 @@ | ||
## [5.4.10](https://github.com/oclif/cli-ux/compare/v5.4.9...v5.4.10) (2020-08-07) | ||
### Bug Fixes | ||
* do not cache require, require is already cached in NodeJS by design ([#194](https://github.com/oclif/cli-ux/issues/194)) ([99b9466](https://github.com/oclif/cli-ux/commit/99b9466d8e4abc9efaf3282eac080af17137a047)) | ||
## [5.4.9](https://github.com/oclif/cli-ux/compare/v5.4.8...v5.4.9) (2020-07-02) | ||
@@ -2,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
export declare const deps: { | ||
declare const _default: { | ||
readonly stripAnsi: (string: string) => string; | ||
@@ -22,2 +22,2 @@ readonly ansiStyles: { | ||
}; | ||
export default deps; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const cache = {}; | ||
function fetch(s) { | ||
if (!cache[s]) { | ||
cache[s] = require(s); | ||
} | ||
return cache[s]; | ||
} | ||
exports.deps = { | ||
/* eslint-disable node/no-missing-require */ | ||
exports.default = { | ||
get stripAnsi() { | ||
return fetch('strip-ansi'); | ||
return require('strip-ansi'); | ||
}, | ||
get ansiStyles() { | ||
return fetch('ansi-styles'); | ||
return require('ansi-styles'); | ||
}, | ||
get ansiEscapes() { | ||
return fetch('ansi-escapes'); | ||
return require('ansi-escapes'); | ||
}, | ||
get passwordPrompt() { | ||
return fetch('password-prompt'); | ||
return require('password-prompt'); | ||
}, | ||
get screen() { | ||
return fetch('@oclif/screen'); | ||
return require('@oclif/screen'); | ||
}, | ||
get open() { | ||
return fetch('./open').default; | ||
return require('./open').default; | ||
}, | ||
get prompt() { | ||
return fetch('./prompt'); | ||
return require('./prompt'); | ||
}, | ||
get styledObject() { | ||
return fetch('./styled/object').default; | ||
return require('./styled/object').default; | ||
}, | ||
get styledHeader() { | ||
return fetch('./styled/header').default; | ||
return require('./styled/header').default; | ||
}, | ||
get styledJSON() { | ||
return fetch('./styled/json').default; | ||
return require('./styled/json').default; | ||
}, | ||
get table() { | ||
return fetch('./styled/table').table; | ||
return require('./styled/table').table; | ||
}, | ||
get tree() { | ||
return fetch('./styled/tree').default; | ||
return require('./styled/tree').default; | ||
}, | ||
get wait() { | ||
return fetch('./wait').default; | ||
return require('./wait').default; | ||
}, | ||
get progress() { | ||
return fetch('./styled/progress').default; | ||
return require('./styled/progress').default; | ||
}, | ||
}; | ||
exports.default = exports.deps; |
{ | ||
"name": "cli-ux", | ||
"description": "cli IO utilities", | ||
"version": "5.4.9", | ||
"version": "5.4.10", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -15,3 +15,3 @@ "bugs": "https://github.com/oclif/cli-ux/issues", | ||
"cardinal": "^2.1.1", | ||
"chalk": "^3.0.0", | ||
"chalk": "^4.1.0", | ||
"clean-stack": "^3.0.0", | ||
@@ -29,7 +29,7 @@ "cli-progress": "^3.4.0", | ||
"password-prompt": "^1.1.2", | ||
"semver": "^5.6.0", | ||
"semver": "^7.3.2", | ||
"string-width": "^4.2.0", | ||
"strip-ansi": "^5.1.0", | ||
"strip-ansi": "^6.0.0", | ||
"supports-color": "^7.1.0", | ||
"supports-hyperlinks": "^1.0.1", | ||
"supports-hyperlinks": "^2.1.0", | ||
"tslib": "^2.0.0" | ||
@@ -48,6 +48,6 @@ }, | ||
"@types/lodash": "^4.14.117", | ||
"@types/mocha": "^5.2.5", | ||
"@types/mocha": "^8.0.0", | ||
"@types/node": "^11.11.2", | ||
"@types/semver": "^5.5.0", | ||
"@types/strip-ansi": "^3.0.0", | ||
"@types/semver": "^7.3.1", | ||
"@types/strip-ansi": "^5.2.1", | ||
"@types/supports-color": "^5.3.0", | ||
@@ -57,3 +57,3 @@ "axios": "^0.19.0", | ||
"chai-as-promised": "^7.1.1", | ||
"eslint": "^6.6.0", | ||
"eslint": "^7.5.0", | ||
"eslint-config-oclif": "^3.1.0", | ||
@@ -60,0 +60,0 @@ "eslint-config-oclif-typescript": "^0.2.0", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
94768
9
2
1903
+ Addedsupports-hyperlinks@2.3.0(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedchalk@3.0.0(transitive)
- Removedhas-flag@2.0.03.0.0(transitive)
- Removedsemver@5.7.2(transitive)
- Removedstrip-ansi@5.2.0(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedsupports-hyperlinks@1.0.1(transitive)
Updatedchalk@^4.1.0
Updatedsemver@^7.3.2
Updatedstrip-ansi@^6.0.0
Updatedsupports-hyperlinks@^2.1.0