@mmit/logging
Advanced tools
Comparing version 0.1.8 to 0.1.9
import { LogLevel } from './LogLevel'; | ||
export declare type MessageFormatter = (level: LogLevel, timestamp: number, loggerName: string, message: string) => string; | ||
export declare type OptionalFormatter = (obj: unknown) => string | unknown; | ||
export type MessageFormatter = (level: LogLevel, timestamp: number, loggerName: string, message: string) => string; | ||
export type OptionalFormatter = (obj: unknown) => string | unknown; | ||
export interface Formatter { | ||
@@ -5,0 +5,0 @@ format: MessageFormatter; |
257
package.json
{ | ||
"name": "@mmit/logging", | ||
"author": "Mike Mitterer", | ||
"version": "0.1.8", | ||
"description": "Minimal Logging framework", | ||
"keywords": [ | ||
"typescript logging" | ||
], | ||
"license": "MIT", | ||
"type-check": "tsc", | ||
"main": "./lib/index.js", | ||
"typings": "./lib/index.d.ts", | ||
"scripts": { | ||
"clean": "rm -rf lib dist bin && rm -rf node_modules/@types/istanbul-reports && jest --clearCache", | ||
"gen:barrels": "barrelsby --singleQuotes --delete -d src/main -l top -s flat", | ||
"serve": "NODE_ENV=development webpack serve --config webpack.web.js --mode development", | ||
"start": "yarn serve --open", | ||
"tc": "tsc --noEmit", | ||
"tc:watch": "npm run tc -- --watch", | ||
"build": "yarn run clean && yarn run gen:barrels && yarn run build:rup", | ||
"build:rup": "rollup -c", | ||
"build:ts": "tsc --rootDir $(pwd)/src/main --project tsconfig.lib.json --declaration --outDir $(pwd)/lib", | ||
"build:ts:watch": "yarn build:ts --watch", | ||
"build:types": "rm -rf lib && yarn build:ts --emitDeclarationOnly", | ||
"build:js": "rm -rf lib && NODE_ENV=development webpack --config webpack.ts.js --mode development", | ||
"build:js:prod": "rm -rf lib && NODE_ENV=production webpack --config webpack.ts.js --mode production", | ||
"build:babel": "rm -rf lib && REQUIRE_TARGET='browser' babel src/main --out-dir lib --extensions \".ts,.tsx\" --source-maps", | ||
"build:node": "rm -rf bin && NODE_ENV=development webpack --config webpack.node.js --mode development", | ||
"build:node:prod": "NODE_ENV=production webpack --config webpack.node.js --mode production", | ||
"build:web": "rm -rf dist && NODE_ENV=development webpack --config webpack.web.js --mode development", | ||
"build:web:prod": "rm -rf dist && NODE_ENV=production webpack --config webpack.web.js --mode production", | ||
"deploy": "yarn version --new-version patch && yarn publish --access public --non-interactive", | ||
"lint": "tslint --project tsconfig.json", | ||
"test": "yarn run test:unit && yarn run test:e2e", | ||
"test:unit": "jest --colors src/test/unit", | ||
"test:integration": "jest --colors --runInBand --detectOpenHandles src/test/integration", | ||
"test:e2e": "E2E_TEST='true' jest --colors --runInBand --detectOpenHandles src/test/e2e", | ||
"doc": "typedoc --out doc --tsconfig tsconfig.lib.json src/main/index.ts", | ||
"prettier": "onchange './src/**/*.ts' -- prettier --write {{changed}}" | ||
}, | ||
"files": [ | ||
"lib", | ||
"src" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/MikeMitterer/ts-logging" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.14.5", | ||
"@babel/core": "^7.14.6", | ||
"@babel/node": "^7.14.7", | ||
"@babel/plugin-proposal-class-properties": "^7.14.5", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.14.7", | ||
"@babel/plugin-transform-runtime": "^7.14.5", | ||
"@babel/preset-env": "^7.14.7", | ||
"@babel/preset-typescript": "^7.14.5", | ||
"@babel/runtime": "^7.14.6", | ||
"@mmit/styles": "^0.1.23", | ||
"@rollup/plugin-commonjs": "^19.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"@rollup/plugin-replace": "^2.4.2", | ||
"@rollup/plugin-typescript": "^8.2.1", | ||
"@types/core-js": "^2.5.4", | ||
"@types/expect-puppeteer": "4.4.5", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^15.12.5", | ||
"@types/puppeteer": "^5.4.3", | ||
"@types/qunit": "^2.11.1", | ||
"@types/shelljs": "^0.8.8", | ||
"@types/ws": "^7.4.5", | ||
"autoprefixer": "^10.2.6", | ||
"awesome-typescript-loader": "^5.2.1", | ||
"babel-jest": "^27.0.6", | ||
"babel-loader": "^8.2.2", | ||
"babel-plugin-transform-inline-environment-variables": "^0.4.3", | ||
"babel-preset-modern-browsers": "^15.0.2", | ||
"barrelsby": "^2.2.0", | ||
"beautify-html-webpack-plugin": "^1.0.3", | ||
"clean-webpack-plugin": "^4.0.0-alpha.0", | ||
"copy-webpack-plugin": "^9.0.1", | ||
"css-loader": "^5.2.6", | ||
"ejs-compiled-loader": "^3.1.0", | ||
"file-loader": "^6.2.0", | ||
"html-beautify-webpack-plugin": "^1.0.5", | ||
"html-loader": "^2.1.2", | ||
"html-webpack-plugin": "^5.3.2", | ||
"html-webpack-string-replace-plugin": "^1.1.0", | ||
"jest": "^27.0.6", | ||
"jest-cli": "^27.0.6", | ||
"jest-extended": "^0.11.5", | ||
"jest-haste-map": "^27.0.6", | ||
"jest-puppeteer": "^5.0.4", | ||
"jest-resolve": "^27.0.6", | ||
"mini-css-extract-plugin": "^1.6.2", | ||
"moment": "^2.29.1", | ||
"postcss": "^8.3.5", | ||
"postcss-loader": "^6.1.0", | ||
"puppeteer": "^10.1.0", | ||
"qunit": "^2.16.0", | ||
"rollup": "^2.52.4", | ||
"sass": "^1.35.1", | ||
"sass-loader": "12.1.0", | ||
"semver": "^7.3.5", | ||
"shelljs": "^0.8.4", | ||
"source-map-loader": "^3.0.0", | ||
"style-loader": "^3.0.0", | ||
"ts-jest": "^27.0.3", | ||
"ts-loader": "^9.2.3", | ||
"ts-node": "^10.0.0", | ||
"tslint": "^6.1.3", | ||
"tslint-consistent-codestyle": "^1.16.0", | ||
"tslint-loader": "^3.5.4", | ||
"tslint-override": "^1.0.1", | ||
"typedoc": "^0.21.2", | ||
"typescript": "^4.3.4", | ||
"url-loader": "^4.1.1", | ||
"webpack": "^5.41.1", | ||
"webpack-cli": "^4.7.2", | ||
"webpack-dev-server": "^3.11.2", | ||
"webpack-livereload-plugin": "^3.0.1", | ||
"webpack-node-externals": "^3.0.0" | ||
} | ||
"name": "@mmit/logging", | ||
"author": "Mike Mitterer", | ||
"version": "0.1.9", | ||
"description": "Minimal Logging framework", | ||
"keywords": [ | ||
"typescript logging" | ||
], | ||
"license": "MIT", | ||
"type-check": "tsc", | ||
"main": "./lib/index.js", | ||
"typings": "./lib/index.d.ts", | ||
"scripts": { | ||
"clean": "rm -rf lib dist bin && rm -rf node_modules/@types/istanbul-reports && jest --clearCache", | ||
"update:browser": "browserslist --update-db", | ||
"gen:barrels": "barrelsby --singleQuotes --delete -d src/main -l top -s flat", | ||
"serve": "NODE_ENV=development webpack serve --config webpack.web.js --mode development", | ||
"start": "yarn serve --open", | ||
"tc": "tsc --noEmit", | ||
"tc:watch": "npm run tc -- --watch", | ||
"build": "yarn run clean && yarn run gen:barrels && yarn run build:rup", | ||
"build:rup": "rollup -c", | ||
"build:ts": "tsc --rootDir $(pwd)/src/main --project tsconfig.lib.json --declaration --outDir $(pwd)/lib", | ||
"build:ts:watch": "yarn build:ts --watch", | ||
"build:types": "rm -rf lib && yarn build:ts --emitDeclarationOnly", | ||
"build:js": "rm -rf lib && NODE_ENV=development webpack --config webpack.ts.js --mode development", | ||
"build:js:prod": "rm -rf lib && NODE_ENV=production webpack --config webpack.ts.js --mode production", | ||
"build:babel": "rm -rf lib && REQUIRE_TARGET='browser' babel src/main --out-dir lib --extensions \".ts,.tsx\" --source-maps", | ||
"build:node": "rm -rf bin && NODE_ENV=development webpack --config webpack.node.js --mode development", | ||
"build:node:prod": "NODE_ENV=production webpack --config webpack.node.js --mode production", | ||
"build:web": "rm -rf dist && NODE_ENV=development webpack --config webpack.web.js --mode development", | ||
"build:web:prod": "rm -rf dist && NODE_ENV=production webpack --config webpack.web.js --mode production", | ||
"deploy": "yarn version --new-version patch && yarn publish --access public --non-interactive", | ||
"lint": "tslint --project tsconfig.json", | ||
"test": "yarn run test:unit && yarn run test:e2e", | ||
"test:unit": "jest --colors src/test/unit", | ||
"test:integration": "jest --colors --runInBand --detectOpenHandles src/test/integration", | ||
"test:e2e": "E2E_TEST='true' jest --colors --runInBand --detectOpenHandles src/test/e2e", | ||
"doc": "typedoc --out doc --tsconfig tsconfig.lib.json src/main/index.ts", | ||
"prettier": "onchange './src/**/*.ts' -- prettier --write {{changed}}" | ||
}, | ||
"files": [ | ||
"lib", | ||
"src" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/MikeMitterer/ts-logging" | ||
}, | ||
"dependencies": { | ||
"process": "^0.11.10" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.14.5", | ||
"@babel/core": "^7.14.6", | ||
"@babel/node": "^7.14.7", | ||
"@babel/plugin-proposal-class-properties": "^7.14.5", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.14.7", | ||
"@babel/plugin-transform-runtime": "^7.14.5", | ||
"@babel/preset-env": "^7.14.7", | ||
"@babel/preset-typescript": "^7.14.5", | ||
"@babel/runtime": "^7.14.6", | ||
"@mmit/muni": "^0.0.2", | ||
"@mmit/styles": "^0.1.33", | ||
"@rollup/plugin-commonjs": "^24.1.0", | ||
"@rollup/plugin-image": "^3.0.2", | ||
"@rollup/plugin-node-resolve": "^15.0.2", | ||
"@rollup/plugin-replace": "^5.0.2", | ||
"@rollup/plugin-typescript": "^11.1.0", | ||
"@types/chai": "^4.3.5", | ||
"@types/core-js": "^2.5.4", | ||
"@types/expect-puppeteer": "4.4.5", | ||
"@types/jest": "^26.0.23", | ||
"@types/shelljs": "^0.8.8", | ||
"@types/ws": "^7.4.5", | ||
"autoprefixer": "^10.2.6", | ||
"babel-jest": "^29.5.0", | ||
"babel-loader": "^8.2.2", | ||
"babel-plugin-transform-inline-environment-variables": "^0.4.3", | ||
"babel-preset-modern-browsers": "^15.0.2", | ||
"barrelsby": "^2.2.0", | ||
"beautify-html-webpack-plugin": "^1.0.3", | ||
"browserify-zlib": "^0.2.0", | ||
"buffer": "^6.0.3", | ||
"chai": "^4.3.7", | ||
"clean-webpack-plugin": "^4.0.0", | ||
"copy-webpack-plugin": "^11.0.0", | ||
"crypto-browserify": "^3.12.0", | ||
"css-loader": "^5.2.6", | ||
"ejs-compiled-loader": "^3.1.0", | ||
"file-loader": "^6.2.0", | ||
"html-loader": "^2.1.2", | ||
"html-webpack-plugin": "^5.3.2", | ||
"html-webpack-string-replace-plugin": "^1.1.0", | ||
"https-browserify": "^1.0.0", | ||
"jest": "^29.5.0", | ||
"jest-cli": "^29.5.0", | ||
"jest-extended": "^3.2.4", | ||
"jest-haste-map": "^29.5.0", | ||
"jest-puppeteer": "^8.0.6", | ||
"jest-resolve": "^29.5.0", | ||
"json5": "^2.2.0", | ||
"mini-css-extract-plugin": "^2.1.0", | ||
"moment": "^2.29.1", | ||
"path-browserify": "^1.0.1", | ||
"postcss": "^8.3.5", | ||
"postcss-loader": "^6.1.1", | ||
"puppeteer": "^20.1.1", | ||
"qunit": "^2.16.0", | ||
"rollup": "^3.21.6", | ||
"rollup-plugin-styles": "^4.0.0", | ||
"sass": "^1.35.1", | ||
"sass-loader": "^12.1.0", | ||
"semver": "^7.3.5", | ||
"shelljs": "^0.8.4", | ||
"source-map-loader": "^4.0.1", | ||
"stream-browserify": "^3.0.0", | ||
"stream-http": "^3.2.0", | ||
"style-loader": "^3.0.0", | ||
"ts-jest": "^29.1.0", | ||
"ts-loader": "^9.2.3", | ||
"tslint": "^6.1.3", | ||
"tslint-consistent-codestyle": "^1.16.0", | ||
"tslint-loader": "^3.5.4", | ||
"tslint-override": "^1.0.1", | ||
"typedoc": "^0.24.7", | ||
"typedoc-plugin-markdown": "^3.10.2", | ||
"typescript": "^5.0.4", | ||
"url-loader": "^4.1.1", | ||
"webpack": "^5.72.1", | ||
"webpack-cli": "^5.1.1", | ||
"webpack-dev-server": "^4.15.0", | ||
"webpack-livereload-plugin": "^3.0.2", | ||
"webpack-node-externals": "^3.0.0" | ||
} | ||
} |
@@ -1,6 +0,6 @@ | ||
import * as qu from 'qunit'; | ||
import { LoggerFactory } from '../main/logging/LoggerFactory'; | ||
import { LogLevel } from '../main/logging/LogLevel'; | ||
import lambi from '../site/images/lambi.png'; | ||
import { testQUnit } from './test/qunit.test'; | ||
import * as muni from '@mmit/muni' | ||
import {testMUnit} from "./test/muni.e2e.test"; | ||
@@ -28,3 +28,3 @@ const query = (selector: string): HTMLElement => document.querySelector(selector) as HTMLElement; | ||
export function main(): void { | ||
export async function main(): Promise<void> { | ||
// const test = QUnit.test; | ||
@@ -54,11 +54,12 @@ // const describe = QUnit.module; | ||
qu.config.testTimeout = 30000; | ||
muni.resetIndicator() | ||
qu.test('add two numbers', (assert): void => { | ||
assert.equal(1 + 1, 2); | ||
}); | ||
await Promise.all([ | ||
await testMUnit(), | ||
]) | ||
testQUnit(); | ||
muni.setIndicatorTo(muni.errors === 0, { onError: (): void => { | ||
logger.error(`Unit-Tests failed with #${muni.errors} error(s)!`) | ||
}}) | ||
qu.start(); | ||
@@ -65,0 +66,0 @@ // logger.info(`Done!!!! ${os.platform()}`); |
@@ -10,2 +10,4 @@ // Styles für die gesamte Web-App | ||
logger.info(`everythingIsReady!`); | ||
// noinspection JSIgnoredPromiseFromCall | ||
main(); | ||
@@ -12,0 +14,0 @@ } |
@@ -48,5 +48,5 @@ import 'jest-extended'; | ||
const title = await page.title(); | ||
expect(title).toStartWith('✔ Title'); | ||
expect(title).toStartWith('✔'); | ||
}, 100000); | ||
}); |
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
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
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
1346368
1
81
61
1052
+ Addedprocess@^0.11.10
+ Addedprocess@0.11.10(transitive)