@mmit/validate
Advanced tools
Comparing version 0.2.17 to 0.2.18
@@ -65,3 +65,5 @@ "use strict"; | ||
notNull(expression); | ||
// tslint:disable-next-line | ||
// TS complains with: Property 'hasOwnProperty' does not exist on type 'T'.... | ||
// @ts-ignore | ||
// tslint:disable-next-line:no-any | ||
if (expression.hasOwnProperty('length') && expression.length === 0) { | ||
@@ -68,0 +70,0 @@ throw new exception_1.ArgumentError(message()); |
{ | ||
"name": "@mmit/validate", | ||
"author": "Mike Mitterer", | ||
"version": "0.2.17", | ||
"version": "0.2.18", | ||
"description": "Object validation for/in TS", | ||
@@ -20,3 +20,3 @@ "keywords": [ | ||
"tc": "tsc --noEmit", | ||
"build": "rm -rf lib && yarn run build:ts", | ||
"build": "rm -rf lib && yarn run gen:barrels && yarn run build:ts", | ||
"build:ts": "tsc --rootDir $(pwd)/src/main --project tsconfig.lib.json --declaration --outDir $(pwd)/lib", | ||
@@ -31,2 +31,3 @@ "build:ts:watch": "yarn build:ts --watch", | ||
"deploy": "yarn version --new-version patch && yarn publish --access public --non-interactive", | ||
"lint": "tslint --project tsconfig.json", | ||
"test": "jest", | ||
@@ -37,4 +38,3 @@ "test:unit": "jest --colors src/test/unit", | ||
"clean": "rm -rf lib dist bin doc && jest --clearCache", | ||
"prettier": "onchange './src/**/*.ts' -- prettier --write {{changed}}", | ||
"lint": "tslint --project tsconfig.json" | ||
"prettier": "onchange './src/**/*.ts' -- prettier --write {{changed}}" | ||
}, | ||
@@ -50,5 +50,3 @@ "files": [ | ||
"dependencies": { | ||
"moment": "^2.24.0", | ||
"source-map-loader": "^0.2.4", | ||
"typescript-logging": "^0.6.3" | ||
"@mmit/logging": "^0.1.3" | ||
}, | ||
@@ -67,3 +65,3 @@ "devDependencies": { | ||
"@types/jest": "^24.0.13", | ||
"@types/node": "^12.0.2", | ||
"@types/node": "^12.0.4", | ||
"@types/shelljs": "^0.8.5", | ||
@@ -76,3 +74,3 @@ "@types/ws": "^6.0.1", | ||
"barrelsby": "^2.1.1", | ||
"clean-webpack-plugin": "^2.0.2", | ||
"clean-webpack-plugin": "^3.0.0", | ||
"copy-webpack-plugin": "^5.0.3", | ||
@@ -88,3 +86,4 @@ "css-loader": "^2.1.1", | ||
"jest-extended": "^0.11.1", | ||
"mini-css-extract-plugin": "^0.6.0", | ||
"mini-css-extract-plugin": "^0.7.0", | ||
"moment": "^2.24.0", | ||
"node-sass": "^4.12.0", | ||
@@ -95,9 +94,10 @@ "onchange": "^6.0.0", | ||
"sass-loader": "^7.1.0", | ||
"semver": "^6.1.0", | ||
"semver": "^6.1.1", | ||
"shelljs": "^0.8.3", | ||
"source-map-loader": "^0.2.4", | ||
"style-loader": "^0.23.1", | ||
"ts-jest": "^24.0.2", | ||
"ts-loader": "^6.0.1", | ||
"ts-node": "^8.1.0", | ||
"tslint": "^5.16.0", | ||
"ts-loader": "^6.0.2", | ||
"ts-node": "^8.2.0", | ||
"tslint": "^5.17.0", | ||
"tslint-consistent-codestyle": "^1.15.1", | ||
@@ -107,3 +107,3 @@ "tslint-loader": "^3.5.4", | ||
"typedoc": "^0.14.2", | ||
"typescript": "^3.4.5", | ||
"typescript": "^3.5.1", | ||
"url-loader": "^1.1.2", | ||
@@ -110,0 +110,0 @@ "webpack": "^4.32.2", |
@@ -0,3 +1,3 @@ | ||
import { LoggerFactory } from '@mmit/logging'; | ||
import lambi from '../site/images/lambi.png'; | ||
import { loggerFactory } from './config/ConfigLog4j'; | ||
@@ -10,3 +10,3 @@ const query = (selector: string): HTMLElement => document.querySelector(selector) as HTMLElement; | ||
// This logger will fall in the first LogGroupRule from above. | ||
const logger = loggerFactory.getLogger('main'); | ||
const logger = LoggerFactory.getLogger('main'); | ||
@@ -13,0 +13,0 @@ query('#tstest').onclick = (event: MouseEvent): void => { |
// Styles für die gesamte Web-App | ||
import { LoggerFactory } from '@mmit/logging'; | ||
import '../site/styles/main.scss'; | ||
import { main } from './app'; | ||
import { loggerFactory } from './config/ConfigLog4j'; | ||
function everythingIsReady(): void { | ||
const logger = loggerFactory.getLogger('done'); | ||
const logger = LoggerFactory.getLogger('done'); | ||
@@ -15,3 +15,3 @@ logger.info(`everythingIsReady!`); | ||
function domIsReady(): void { | ||
const logger = loggerFactory.getLogger('done'); | ||
const logger = LoggerFactory.getLogger('done'); | ||
@@ -18,0 +18,0 @@ logger.info(`domIsReady!`); |
@@ -87,3 +87,5 @@ import { ArgumentError } from '../exception'; | ||
// tslint:disable-next-line | ||
// TS complains with: Property 'hasOwnProperty' does not exist on type 'T'.... | ||
// @ts-ignore | ||
// tslint:disable-next-line:no-any | ||
if (expression.hasOwnProperty('length') && (expression as any).length === 0) { | ||
@@ -90,0 +92,0 @@ throw new ArgumentError(message()); |
@@ -0,4 +1,4 @@ | ||
import { LoggerFactory } from '@mmit/logging'; | ||
import * as fs from 'fs'; | ||
import * as process from 'process'; | ||
import { loggerFactory } from './config/ConfigLog4j'; | ||
@@ -9,3 +9,3 @@ // import sayMyName from './fs-part'; | ||
const pwd = process.cwd(); | ||
const logger = loggerFactory.getLogger('main'); | ||
const logger = LoggerFactory.getLogger('main'); | ||
@@ -12,0 +12,0 @@ logger.info(pkg.toString()); |
@@ -233,2 +233,4 @@ // import { loggerFactory } from '../../main/config/ConfigLog4j'; | ||
'https://www.site.com:8008', | ||
'https://www.site.com:8008/test.html', | ||
'https://www.site.com:8008/test.jpg', | ||
'https://localhost', | ||
@@ -235,0 +237,0 @@ 'http://localhost:8080', |
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
1
1361927
56
52
1416
+ Added@mmit/logging@^0.1.3
+ Added@mmit/logging@0.1.15(transitive)
- Removedmoment@^2.24.0
- Removedsource-map-loader@^0.2.4
- Removedtypescript-logging@^0.6.3
- Removedasync@2.6.4(transitive)
- Removedbig.js@5.2.2(transitive)
- Removedemojis-list@3.0.0(transitive)
- Removederror-stack-parser@1.3.6(transitive)
- Removedjson5@1.0.2(transitive)
- Removedloader-utils@1.4.2(transitive)
- Removedlodash@4.17.21(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmoment@2.30.1(transitive)
- Removedsource-map@0.5.6(transitive)
- Removedsource-map-loader@0.2.4(transitive)
- Removedstack-generator@1.1.0(transitive)
- Removedstackframe@0.3.11.3.4(transitive)
- Removedstacktrace-gps@2.4.4(transitive)
- Removedstacktrace-js@1.3.1(transitive)
- Removedtypescript-logging@0.6.4(transitive)