@tinymce/moxiedoc
Advanced tools
Comparing version 0.2.2-rc.20220622065305759.sha4aa7bcb to 0.2.2-rc.20220822235831706.shac683118
@@ -33,6 +33,6 @@ "use strict"; | ||
if (settings.verbose) { | ||
Reporter.setLevel(2 /* INFO */); | ||
Reporter.setLevel(2 /* Reporter.Level.INFO */); | ||
} | ||
if (settings.debug) { | ||
Reporter.setLevel(1 /* DEBUG */); | ||
Reporter.setLevel(1 /* Reporter.Level.DEBUG */); | ||
} | ||
@@ -43,6 +43,6 @@ const result = { errors: 0, warnings: 0 }; | ||
Reporter.addHook((level) => { | ||
if (level === 4 /* ERROR */) { | ||
if (level === 4 /* Reporter.Level.ERROR */) { | ||
result.errors++; | ||
} | ||
else if (level === 3 /* WARN */) { | ||
else if (level === 3 /* Reporter.Level.WARN */) { | ||
result.warnings++; | ||
@@ -49,0 +49,0 @@ } |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { TranscodeEncoding } from 'buffer'; | ||
@@ -3,0 +4,0 @@ import { EventEmitter } from 'events'; |
@@ -5,16 +5,16 @@ "use strict"; | ||
const clc = require("cli-color"); | ||
let currentLevel = 3 /* WARN */; | ||
let currentLevel = 3 /* Level.WARN */; | ||
const hooks = []; | ||
const log = (level, message) => { | ||
switch (level) { | ||
case 1 /* DEBUG */: | ||
case 1 /* Level.DEBUG */: | ||
message = clc.magenta('Debug: ') + message; | ||
break; | ||
case 2 /* INFO */: | ||
case 2 /* Level.INFO */: | ||
message = clc.cyan('Info: ') + message; | ||
break; | ||
case 3 /* WARN */: | ||
case 3 /* Level.WARN */: | ||
message = clc.yellow('Warning: ') + message; | ||
break; | ||
case 4 /* ERROR */: | ||
case 4 /* Level.ERROR */: | ||
message = clc.red('Error: ') + message; | ||
@@ -42,10 +42,10 @@ break; | ||
exports.addHook = addHook; | ||
const debug = createLogFunction(1 /* DEBUG */); | ||
const debug = createLogFunction(1 /* Level.DEBUG */); | ||
exports.debug = debug; | ||
const info = createLogFunction(2 /* INFO */); | ||
const info = createLogFunction(2 /* Level.INFO */); | ||
exports.info = info; | ||
const warn = createLogFunction(3 /* WARN */); | ||
const warn = createLogFunction(3 /* Level.WARN */); | ||
exports.warn = warn; | ||
const error = createLogFunction(4 /* ERROR */); | ||
const error = createLogFunction(4 /* Level.ERROR */); | ||
exports.error = error; | ||
//# sourceMappingURL=reporter.js.map |
{ | ||
"name": "@tinymce/moxiedoc", | ||
"version": "0.2.2-rc.20220622065305759.sha4aa7bcb", | ||
"version": "0.2.2-rc.20220822235831706.shac683118", | ||
"description": "A tool for generating API documentation", | ||
@@ -15,3 +15,3 @@ "author": "Tiny Technologies, Inc", | ||
"prepublishOnly": "yarn build", | ||
"copy-templates": "cd src && rsync -R templates/**/*.handlebars ../dist/ && cd ../", | ||
"copy-templates": "cd src && copyfiles 'templates/**/*.handlebars' ../dist/ && cd ../", | ||
"build": "tsc && yarn copy-templates", | ||
@@ -37,4 +37,4 @@ "lint": "eslint src/**/*.ts", | ||
"devDependencies": { | ||
"@tinymce/beehive-flow": "^0.17.0", | ||
"@tinymce/eslint-plugin": "^1.9.2", | ||
"@tinymce/beehive-flow": "^0.18.0", | ||
"@tinymce/eslint-plugin": "^2.0.1", | ||
"@types/chai": "^4.2.22", | ||
@@ -45,4 +45,5 @@ "@types/cli-color": "^2.0.1", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^14.14.22", | ||
"@types/node": "^18.7.9", | ||
"chai": "^4.3.4", | ||
"copyfiles": "^2.4.1", | ||
"esm": "^3.2.25", | ||
@@ -54,4 +55,4 @@ "js-yaml": "^4.0.0", | ||
"source-map-support": "^0.5.20", | ||
"ts-node": "^10.2.1", | ||
"typescript": "^4.1.3" | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.7.4" | ||
}, | ||
@@ -58,0 +59,0 @@ "license": "MIT", |
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
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
346689
6687
18