@electron-forge/async-ora
Advanced tools
Comparing version 6.0.0-beta.34 to 6.0.0-beta.35
export declare class OraImpl { | ||
text: string; | ||
constructor(text?: string); | ||
succeed(symbol?: string): this; | ||
fail(symbol?: string): this; | ||
succeed(_symbol?: string): this; | ||
fail(_symbol?: string): this; | ||
start(): this; | ||
stop(symbol?: string): this; | ||
warn(message: string): this; | ||
stop(_symbol?: string): this; | ||
warn(_message: string): this; | ||
} | ||
@@ -10,0 +10,0 @@ export interface AsyncOraMethod { |
@@ -16,3 +16,5 @@ "use strict"; | ||
/* eslint "no-console": "off" */ | ||
class OraImpl { | ||
// eslint-disable-next-line no-empty-function, no-useless-constructor | ||
constructor(text = '') { | ||
@@ -22,7 +24,7 @@ this.text = text; | ||
succeed(symbol) { | ||
succeed(_symbol) { | ||
return this; | ||
} | ||
fail(symbol) { | ||
fail(_symbol) { | ||
return this; | ||
@@ -35,7 +37,7 @@ } | ||
stop(symbol) { | ||
stop(_symbol) { | ||
return this; | ||
} | ||
warn(message) { | ||
warn(_message) { | ||
return this; | ||
@@ -86,2 +88,2 @@ } | ||
exports.default = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9vcmEtaGFuZGxlci50cyJdLCJuYW1lcyI6WyJPcmFJbXBsIiwiY29uc3RydWN0b3IiLCJ0ZXh0Iiwic3VjY2VlZCIsInN5bWJvbCIsImZhaWwiLCJzdGFydCIsInN0b3AiLCJ3YXJuIiwibWVzc2FnZSIsImFzeW5jT3JhIiwiaW5pdGlhbE9yYVZhbHVlIiwiYXN5bmNGbiIsInByb2Nlc3NFeGl0Rm4iLCJwcm9jZXNzIiwiZXhpdCIsImZuT3JhIiwiaW50ZXJhY3RpdmUiLCJQcm9taXNlIiwicmVzb2x2ZSIsInJlamVjdCIsInRoZW4iLCJjYXRjaCIsImVyciIsInN0YWNrIiwiY29uc29sZSIsImVycm9yIiwicmVkIiwiY29sb3JzIiwi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hwb3J0IGRlZmF1bHQgYXN5bmNPcmE7XG4iXX0= |
import 'colors'; | ||
import 'log-symbols'; | ||
import { OraImpl } from './ora-handler'; | ||
@@ -3,0 +4,0 @@ export declare const fakeOra: (name: string) => OraImpl; |
@@ -14,2 +14,4 @@ "use strict"; | ||
require("log-symbols"); | ||
var _ora = _interopRequireDefault(require("ora")); | ||
@@ -21,2 +23,3 @@ | ||
/* eslint "no-console": "off" */ | ||
const d = (0, _debug.default)('electron-forge:async-ora'); | ||
@@ -33,6 +36,3 @@ const useFakeOra = Boolean(process.env.DEBUG && process.env.DEBUG.includes('electron-forge')); | ||
const timing = () => { | ||
if (!startTime) return; | ||
return `-- after ${`${(0, _prettyMs.default)(Date.now() - startTime)}`.cyan}`; | ||
}; | ||
const timing = () => startTime ? `-- after ${`${(0, _prettyMs.default)(Date.now() - startTime)}`.cyan}` : null; | ||
@@ -80,2 +80,2 @@ const fake = { | ||
exports.default = _default; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9vcmEudHMiXSwibmFtZXMiOlsiZCIsInVzZUZha2VPcmEiLCJCb29sZWFuIiwicHJvY2VzcyIsImVudiIsIkRFQlVHIiwiaW5jbHVkZXMiLCJjb25zb2xlIiwid2FybiIsInJlZCIsImZha2VPcmEiLCJuYW1lIiwib3JhTmFtZSIsInN0YXJ0VGltZSIsInRpbWluZyIsIkRhdGUiLCJub3ciLCJjeWFuIiwiZmFrZSIsInN0YXJ0IiwidGV4dCIsImZhaWwiLCJzdWNjZWVkIiwic3RvcCIsIndhcm5pbmciLCJuZXdOYW1lIiwicmVhbE9yYSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7O0FBQ0E7O0FBRUE7O0FBRUE7Ozs7QUFFQSxNQUFNQSxDQUFDLEdBQUcsb0JBQU0sMEJBQU4sQ0FBVjtBQUVBLE1BQU1DLFVBQVUsR0FBR0MsT0FBTyxD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nKTtcbiAgICAgIHJldHVybiBmYWtlO1xuICAgIH0sXG4gICAgc3VjY2VlZDogKCkgPT4ge1xuICAgICAgZCgnUHJvY2VzcyBTdWNjZWVkZWQ6JywgZmFrZS50ZXh0LCB0aW1pbmcoKSk7XG4gICAgICByZXR1cm4gZmFrZTtcbiAgICB9LFxuICAgIHN0b3A6ICgpID0+IHtcbiAgICAgIGQoJ1Byb2Nlc3MgU3RvcHBlZDonLCBmYWtlLnRleHQsIHRpbWluZygpKTtcbiAgICAgIHJldHVybiBmYWtlO1xuICAgIH0sXG4gICAgd2FybjogKHdhcm5pbmc6IHN0cmluZykgPT4ge1xuICAgICAgZCgnUHJvY2VzcyBXYXJuZWQ6Jywgd2FybmluZywgdGltaW5nKCkpO1xuICAgICAgcmV0dXJuIGZha2U7XG4gICAgfSxcbiAgICBnZXQgdGV4dCgpIHtcbiAgICAgIHJldHVybiBvcmFOYW1lO1xuICAgIH0sXG4gICAgc2V0IHRleHQobmV3TmFtZTogc3RyaW5nKSB7XG4gICAgICBkKCdQcm9jZXNzIFJlbmFtZWQ6Jywgb3JhTmFtZSwgJyAtLT4gJywgbmV3TmFtZSk7XG4gICAgICBvcmFOYW1lID0gbmV3TmFtZTtcbiAgICB9LFxuICB9O1xuICByZXR1cm4gZmFrZTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IHVzZUZha2VPcmEgPyBmYWtlT3JhIDogcmVhbE9yYTtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9vcmEudHMiXSwibmFtZXMiOlsiZCIsInVzZUZha2VPcmEiLCJCb29sZWFuIiwicHJvY2VzcyIsImVudiIsIkRFQlVHIiwiaW5jbHVkZXMiLCJjb25zb2xlIiwid2FybiIsInJlZCIsImZha2VPcmEiLCJuYW1lIiwib3JhTmFtZSIsInN0YXJ0VGltZSIsInRpbWluZyIsIkRhdGUiLCJub3ciLCJjeWFuI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4gICAgc3RhcnQ6ICgpID0+IHtcbiAgICAgIHN0YXJ0VGltZSA9IERhdGUubm93KCk7XG4gICAgICBkKCdQcm9jZXNzIFN0YXJ0ZWQ6JywgZmFrZS50ZXh0KTtcbiAgICAgIHJldHVybiBmYWtlO1xuICAgIH0sXG4gICAgZmFpbDogKCkgPT4ge1xuICAgICAgZChgUHJvY2VzcyBGYWlsZWQ6ICR7ZmFrZS50ZXh0fWAucmVkLCB0aW1pbmcpO1xuICAgICAgcmV0dXJuIGZha2U7XG4gICAgfSxcbiAgICBzdWNjZWVkOiAoKSA9PiB7XG4gICAgICBkKCdQcm9jZXNzIFN1Y2NlZWRlZDonLCBmYWtlLnRleHQsIHRpbWluZygpKTtcbiAgICAgIHJldHVybiBmYWtlO1xuICAgIH0sXG4gICAgc3RvcDogKCkgPT4ge1xuICAgICAgZCgnUHJvY2VzcyBTdG9wcGVkOicsIGZha2UudGV4dCwgdGltaW5nKCkpO1xuICAgICAgcmV0dXJuIGZha2U7XG4gICAgfSxcbiAgICB3YXJuOiAod2FybmluZzogc3RyaW5nKSA9PiB7XG4gICAgICBkKCdQcm9jZXNzIFdhcm5lZDonLCB3YXJuaW5nLCB0aW1pbmcoKSk7XG4gICAgICByZXR1cm4gZmFrZTtcbiAgICB9LFxuICAgIGdldCB0ZXh0KCkge1xuICAgICAgcmV0dXJuIG9yYU5hbWU7XG4gICAgfSxcbiAgICBzZXQgdGV4dChuZXdOYW1lOiBzdHJpbmcpIHtcbiAgICAgIGQoJ1Byb2Nlc3MgUmVuYW1lZDonLCBvcmFOYW1lLCAnIC0tPiAnLCBuZXdOYW1lKTtcbiAgICAgIG9yYU5hbWUgPSBuZXdOYW1lO1xuICAgIH0sXG4gIH07XG4gIHJldHVybiBmYWtlO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgdXNlRmFrZU9yYSA/IGZha2VPcmEgOiByZWFsT3JhO1xuIl19 |
{ | ||
"name": "@electron-forge/async-ora", | ||
"version": "6.0.0-beta.34", | ||
"version": "6.0.0-beta.35", | ||
"description": "A helper utility for wrapping async functions in an ora", | ||
@@ -13,5 +13,5 @@ "repository": "https://github.com/electron-userland/electron-forge", | ||
"chai": "4.2.0", | ||
"mocha": "^6.0.0", | ||
"mocha": "^6.1.4", | ||
"proxyquire": "^2.0.1", | ||
"sinon": "^7.1.1" | ||
"sinon": "^7.3.2" | ||
}, | ||
@@ -21,9 +21,9 @@ "dependencies": { | ||
"debug": "^4.1.0", | ||
"log-symbols": "^2.0.0", | ||
"log-symbols": "^3.0.0", | ||
"ora": "^3.0.0", | ||
"pretty-ms": "^4.0.0" | ||
"pretty-ms": "^5.0.0" | ||
}, | ||
"engines": { | ||
"node": ">= 6.0" | ||
"node": ">= 8.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
17033
8
201
+ Addedlog-symbols@3.0.0(transitive)
+ Addedpretty-ms@5.1.0(transitive)
- Removedpretty-ms@4.0.0(transitive)
Updatedlog-symbols@^3.0.0
Updatedpretty-ms@^5.0.0