Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ctx-core/logger

Package Overview
Dependencies
Maintainers
1
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ctx-core/logger - npm Package Compare versions

Comparing version 6.0.11 to 6.1.0

6

CHANGELOG.md
# @ctx-core/logger
## 6.1.0
### Minor Changes
- "noImplicitAny": true
## 6.0.11

@@ -4,0 +10,0 @@

2

package.json
{
"name": "@ctx-core/logger",
"version": "6.0.11",
"version": "6.1.0",
"description": "ctx-core logger",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,1 +0,1 @@

export declare function _console(fn: Function, log_ctx: object): (...arg_a1: any[]) => any;
export declare function _console(fn: Function, log_ctx: Record<keyof Console, any>): (...arg_a1: any[]) => any;
export function _console(fn, log_ctx) {
return (...arg_a1) => {
for (let key in log_ctx) {
let key;
for (key in log_ctx) {
console[key](log_ctx[key]);

@@ -5,0 +6,0 @@ }

@@ -1,5 +0,6 @@

export function _console(fn: Function, log_ctx: object) {
return (...arg_a1) => {
for (let key in log_ctx) {
console[key](log_ctx[key])
export function _console(fn:Function, log_ctx:Record<keyof Console, any>) {
return (...arg_a1:any[])=>{
let key:keyof Console
for (key in log_ctx) {
console[key as keyof Console](log_ctx[key as keyof Console])
}

@@ -6,0 +7,0 @@ return fn(...arg_a1)

import { log } from './log'
export function _log(message: any, fn: Function) {
return (...arg_a1) => {
return (...arg_a1:any[]) => {
log(message)

@@ -5,0 +5,0 @@ return fn(...arg_a1)

let chalk;
const use_chalk = chalk && typeof window === 'undefined' && typeof require === 'function';
const use_chalk = !!(typeof window === 'undefined' && typeof require === 'function');
export function init_chalk() {

@@ -4,0 +4,0 @@ chalk = _chalk();

@@ -1,54 +0,57 @@

let chalk
const use_chalk = chalk && typeof window === 'undefined' && typeof require === 'function'
import type { Chalk } from 'chalk'
let chalk:Chalk
const use_chalk = !!(
typeof window === 'undefined' && typeof require === 'function'
)
export function init_chalk() {
chalk = _chalk()
}
export function chalk_debug(...arg_a1) {
export function chalk_debug(...arg_a1:any[]) {
return (console.debug || console.info).apply(console, _debug_chalk_a1(...arg_a1))
}
export function chalk_log(...arg_a1) {
export function chalk_log(...arg_a1:any[]) {
return console.log.apply(console, _log_chalk_a1(...arg_a1))
}
export function chalk_info(...arg_a1) {
export function chalk_info(...arg_a1:any[]) {
return console.info.apply(console, _info_chalk_a1(...arg_a1))
}
export function chalk_warn(...arg_a1) {
export function chalk_warn(...arg_a1:any[]) {
return console.warn.apply(console, _warn_chalk_a1(...arg_a1))
}
export function chalk_error(...arg_a1) {
export function chalk_error(...arg_a1:any[]) {
return console.error.apply(console, _error_chalk_a1(...arg_a1))
}
function _debug_chalk_a1(...arg_a1) {
function _debug_chalk_a1(...arg_a1:any[]) {
return (
use_chalk
? [chalk.white(...arg_a1)]
: arg_a1
? [chalk.white(...arg_a1)]
: arg_a1
)
}
function _log_chalk_a1(...arg_a1) {
function _log_chalk_a1(...arg_a1:any[]) {
return (
use_chalk
? [chalk.grey(...arg_a1)]
: arg_a1
? [chalk.grey(...arg_a1)]
: arg_a1
)
}
function _info_chalk_a1(...arg_a1) {
function _info_chalk_a1(...arg_a1:any[]) {
return (
use_chalk
? [chalk.green(...arg_a1)]
: arg_a1
? [chalk.green(...arg_a1)]
: arg_a1
)
}
function _warn_chalk_a1(...arg_a1) {
function _warn_chalk_a1(...arg_a1:any[]) {
return (
use_chalk
? [chalk.red(...arg_a1)]
: arg_a1
? [chalk.red(...arg_a1)]
: arg_a1
)
}
function _error_chalk_a1(...arg_a1) {
function _error_chalk_a1(...arg_a1:any[]) {
return (
use_chalk
? [chalk.red.bold(...arg_a1)]
: arg_a1
? [chalk.red.bold(...arg_a1)]
: arg_a1
)

@@ -60,3 +63,3 @@ }

} else {
return function chalk(...arg_a1) {
return function chalk(...arg_a1:any[]) {
return arg_a1

@@ -63,0 +66,0 @@ }

{
"compileOnSave": true,
"compilerOptions": {
"target": "es2018",
"target": "ES2020",
"composite": true,

@@ -12,3 +12,3 @@ "declaration": true,

"esModuleInterop": true,
"noImplicitAny": false,
"noImplicitAny": true,
"resolveJsonModule": true,

@@ -27,3 +27,4 @@ "allowSyntheticDefaultImports": true,

"lib": [
"dom"
"dom",
"ES2020"
],

@@ -37,2 +38,2 @@ "importsNotUsedAsValues": "error",

"references": []
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc