@deepkit/logger
Advanced tools
Comparing version 1.0.1-alpha.65 to 1.0.1-alpha.72
@@ -8,2 +8,6 @@ "use strict"; | ||
const { __ΩClassType } = require('@deepkit/core'); | ||
function __assignType(fn, args) { | ||
fn.__type = args; | ||
return fn; | ||
} | ||
/* | ||
@@ -81,3 +85,3 @@ * Deepkit Framework | ||
if (message.message.includes('<')) { | ||
message.message = message.message.replace(/<(\/)?([a-zA-Z]+)>/g, Object.assign(function (a, end, color) { | ||
message.message = message.message.replace(/<(\/)?([a-zA-Z]+)>/g, __assignType(function (a, end, color) { | ||
if (!ansi_styles_1.default[color]) | ||
@@ -88,3 +92,3 @@ return a; | ||
return ansi_styles_1.default[color].open; | ||
}, { __type: ['a', 'end', 'color', '', 'P"2!"2""2#"/$'] })); | ||
}, ['a', 'end', 'color', '', 'P"2!"2""2#"/$'])); | ||
} | ||
@@ -121,5 +125,5 @@ } | ||
if (message.message.includes('<')) { | ||
message.message = message.message.replace(/<(\/)?([a-zA-Z]+)>/g, Object.assign(function (a, end, color) { | ||
message.message = message.message.replace(/<(\/)?([a-zA-Z]+)>/g, __assignType(function (a, end, color) { | ||
return ''; | ||
}, { __type: ['a', 'end', 'color', '', 'P"2!"2""2#"/$'] })); | ||
}, ['a', 'end', 'color', '', 'P"2!"2""2#"/$'])); | ||
} | ||
@@ -126,0 +130,0 @@ } |
import { __ΩClassType as __ΩClassType } from '@deepkit/core'; | ||
function __assignType(fn, args) { | ||
fn.__type = args; | ||
return fn; | ||
} | ||
/* | ||
@@ -72,3 +76,3 @@ * Deepkit Framework | ||
if (message.message.includes('<')) { | ||
message.message = message.message.replace(/<(\/)?([a-zA-Z]+)>/g, Object.assign(function (a, end, color) { | ||
message.message = message.message.replace(/<(\/)?([a-zA-Z]+)>/g, __assignType(function (a, end, color) { | ||
if (!style[color]) | ||
@@ -79,3 +83,3 @@ return a; | ||
return style[color].open; | ||
}, { __type: ['a', 'end', 'color', '', 'P"2!"2""2#"/$'] })); | ||
}, ['a', 'end', 'color', '', 'P"2!"2""2#"/$'])); | ||
} | ||
@@ -111,5 +115,5 @@ } | ||
if (message.message.includes('<')) { | ||
message.message = message.message.replace(/<(\/)?([a-zA-Z]+)>/g, Object.assign(function (a, end, color) { | ||
message.message = message.message.replace(/<(\/)?([a-zA-Z]+)>/g, __assignType(function (a, end, color) { | ||
return ''; | ||
}, { __type: ['a', 'end', 'color', '', 'P"2!"2""2#"/$'] })); | ||
}, ['a', 'end', 'color', '', 'P"2!"2""2#"/$'])); | ||
} | ||
@@ -116,0 +120,0 @@ } |
{ | ||
"name": "@deepkit/logger", | ||
"version": "1.0.1-alpha.65", | ||
"version": "1.0.1-alpha.72", | ||
"description": "Deepkit logger", | ||
@@ -34,3 +34,3 @@ "type": "commonjs", | ||
"devDependencies": { | ||
"@deepkit/core": "^1.0.1-alpha.65" | ||
"@deepkit/core": "^1.0.1-alpha.72" | ||
}, | ||
@@ -46,3 +46,3 @@ "jest": { | ||
}, | ||
"gitHead": "dde15533a9c43e6d46d84469f1b753a9d13212b2" | ||
"gitHead": "9444890634da58eb79450d19a2992cb27e8c1e71" | ||
} |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
102485
29
1177