Comparing version 0.0.30 to 0.0.31
@@ -23,2 +23,5 @@ /// <reference types="node" /> | ||
log: (...args: any[]) => void; | ||
emerg: (...args: any[]) => void; | ||
alert: (...args: any[]) => void; | ||
critical: (...args: any[]) => void; | ||
fatal: (...args: any[]) => void; | ||
@@ -28,2 +31,3 @@ error: (...args: any[]) => void; | ||
warn: (...args: any[]) => void; | ||
notice: (...args: any[]) => void; | ||
debug: (...args: any[]) => void; | ||
@@ -41,15 +45,22 @@ trace: (...args: any[]) => void; | ||
alwaysDiff: boolean; | ||
systemd: boolean; | ||
level: DebugLevel; | ||
} | ||
export declare enum DebugLevel { | ||
ALL = 0, | ||
TRACE = 0, | ||
DEBUG = 1, | ||
INFO = 2, | ||
WARN = 3, | ||
ERROR = 4, | ||
FATAL = 5, | ||
OFF = 6 | ||
OFF = -1, | ||
EMERG = 0, | ||
FATAL = 1, | ||
ALERT = 1, | ||
CRITICAL = 2, | ||
ERROR = 3, | ||
WARN = 4, | ||
WARNING = 4, | ||
NOTICE = 5, | ||
TIME = 6, | ||
INFO = 6, | ||
DEBUG = 7, | ||
ALL = 8, | ||
TRACE = 8 | ||
} | ||
export declare type DebugLevelType = 'ALL' | 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'FATAL' | 'OFF'; | ||
export declare type DebugLevelType = 'OFF' | 'EMERG' | 'FATAL' | 'ALERT' | 'CRITICAL' | 'ERROR' | 'WARN' | 'NOTICE' | 'TIME' | 'INFO' | 'DEBUG' | 'ALL' | 'TRACE'; | ||
/** | ||
@@ -86,8 +97,11 @@ * Create a debugger with the given `namespace`. | ||
var isBellow: (ofLevel: DebugLevel) => boolean; | ||
var setLevel: (toLevel: DebugLevel | "ALL" | "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL" | "OFF") => void; | ||
var setLevel: (toLevel: DebugLevel | "OFF" | "EMERG" | "FATAL" | "ALERT" | "CRITICAL" | "ERROR" | "WARN" | "NOTICE" | "TIME" | "INFO" | "DEBUG" | "ALL" | "TRACE") => void; | ||
var logIcon: string; | ||
var fatalIcon: string; | ||
var emergIcon: string; | ||
var alertIcon: string; | ||
var criticalIcon: string; | ||
var errorIcon: string; | ||
var infoIcon: string; | ||
var warnIcon: string; | ||
var warningIcon: string; | ||
var noticeIcon: string; | ||
var debugIcon: string; | ||
@@ -99,6 +113,10 @@ var traceIcon: string; | ||
var log: (...args: any[]) => void; | ||
var emerg: (...args: any[]) => void; | ||
var fatal: (...args: any[]) => void; | ||
var alert: (...args: any[]) => void; | ||
var critical: (...args: any[]) => void; | ||
var error: (...args: any[]) => void; | ||
var warn: (...args: any[]) => void; | ||
var notice: (...args: any[]) => void; | ||
var info: (...args: any[]) => void; | ||
var warn: (...args: any[]) => void; | ||
var debug: (...args: any[]) => void; | ||
@@ -105,0 +123,0 @@ var trace: (...args: any[]) => void; |
149
lib/debug.js
@@ -7,10 +7,16 @@ "use strict"; | ||
(function (DebugLevel) { | ||
DebugLevel[DebugLevel["ALL"] = 0] = "ALL"; | ||
DebugLevel[DebugLevel["TRACE"] = 0] = "TRACE"; | ||
DebugLevel[DebugLevel["DEBUG"] = 1] = "DEBUG"; | ||
DebugLevel[DebugLevel["INFO"] = 2] = "INFO"; | ||
DebugLevel[DebugLevel["WARN"] = 3] = "WARN"; | ||
DebugLevel[DebugLevel["ERROR"] = 4] = "ERROR"; | ||
DebugLevel[DebugLevel["FATAL"] = 5] = "FATAL"; | ||
DebugLevel[DebugLevel["OFF"] = 6] = "OFF"; | ||
DebugLevel[DebugLevel["OFF"] = -1] = "OFF"; | ||
DebugLevel[DebugLevel["EMERG"] = 0] = "EMERG"; | ||
DebugLevel[DebugLevel["FATAL"] = 1] = "FATAL"; | ||
DebugLevel[DebugLevel["ALERT"] = 1] = "ALERT"; | ||
DebugLevel[DebugLevel["CRITICAL"] = 2] = "CRITICAL"; | ||
DebugLevel[DebugLevel["ERROR"] = 3] = "ERROR"; | ||
DebugLevel[DebugLevel["WARN"] = 4] = "WARN"; | ||
DebugLevel[DebugLevel["WARNING"] = 4] = "WARNING"; | ||
DebugLevel[DebugLevel["NOTICE"] = 5] = "NOTICE"; | ||
DebugLevel[DebugLevel["TIME"] = 6] = "TIME"; | ||
DebugLevel[DebugLevel["INFO"] = 6] = "INFO"; | ||
DebugLevel[DebugLevel["DEBUG"] = 7] = "DEBUG"; | ||
DebugLevel[DebugLevel["ALL"] = 8] = "ALL"; | ||
DebugLevel[DebugLevel["TRACE"] = 8] = "TRACE"; | ||
})(DebugLevel = exports.DebugLevel || (exports.DebugLevel = {})); | ||
@@ -107,2 +113,5 @@ /** | ||
const logFn = (this === Debug.log || | ||
this === Debug.emerg || | ||
this === Debug.alert || | ||
this === Debug.critical || | ||
this === Debug.fatal || | ||
@@ -112,2 +121,3 @@ this === Debug.error || | ||
this === Debug.warn || | ||
this === Debug.notice || | ||
this === Debug.debug || | ||
@@ -132,6 +142,10 @@ this === Debug.trace || | ||
debug.log = debug.bind(Debug.log); | ||
debug.emerg = debug.bind(Debug.emerg); | ||
debug.alert = debug.bind(Debug.alert); | ||
debug.fatal = debug.bind(Debug.fatal); | ||
debug.critical = debug.bind(Debug.critical); | ||
debug.error = debug.bind(Debug.error); | ||
debug.warn = debug.bind(Debug.warn); | ||
debug.notice = debug.bind(Debug.notice); | ||
debug.info = debug.bind(Debug.info); | ||
debug.warn = debug.bind(Debug.warn); | ||
debug.debug = debug.bind(Debug.debug); | ||
@@ -158,10 +172,33 @@ debug.trace = debug.bind(Debug.trace); | ||
let z = fun && fun.name || ''; | ||
if (z === 'timeEnd') | ||
z = 'time'; | ||
if (z === 'detail') | ||
z = 'debug'; | ||
if (z === 'log') | ||
z = ''; | ||
switch (z) { | ||
case 'log': | ||
z = ''; | ||
break; | ||
case 'detail': | ||
z = 'debug'; | ||
break; | ||
case 'fatal': | ||
z = 'alert'; | ||
break; | ||
case 'warn': | ||
z = 'warning'; | ||
break; | ||
case 'time': | ||
z = 'time'; | ||
break; | ||
case 'timeEnd': | ||
z = 'time'; | ||
break; | ||
case 'end': | ||
z = 'time'; | ||
break; | ||
} | ||
let level = z.toUpperCase(); | ||
if (this.useColors) { | ||
if (Debug.inspectOpts.systemd) { | ||
let num = DebugLevel[level || 'INFO']; | ||
if (num === 8) | ||
num = 7; | ||
level = `<${num}>`; | ||
} | ||
else if (this.useColors) { | ||
z = Debug[`${z}Icon`]; | ||
@@ -174,12 +211,33 @@ level = z ? (z + ' ') : level; | ||
const msg = trace ? trace.replace('Trace:', args[0] !== '' ? 'Trace: ' + args[0] : 'Trace:') : args[0]; | ||
if (useColors) { | ||
const date = getDate(); | ||
if (Debug.inspectOpts.systemd) { | ||
args[0] = level + date + name + ' ' + timer + (args.length ? msg : ''); | ||
if (Debug.alwaysDiff()) | ||
args.push('+' + Debug.humanize(this.diff)); | ||
let line = util.format.call(util, ...args); | ||
// TODO Escape new lines | ||
line = line.split('\n').join('\n' + level + date + name + ' '); | ||
args[0] = line; | ||
args.length = 1; | ||
} | ||
else if (useColors) { | ||
const c = this.color; | ||
const colorCode = "\x1B[3" + (c < 8 ? c : '8;5;' + c); | ||
const prefix = "".concat(colorCode, ";1m").concat(name, " \x1B[0m"); | ||
args[0] = level + prefix + timer + msg.split('\n').join('\n' + level + prefix); | ||
args[0] = level + prefix + timer + (args.length ? msg : ''); | ||
args.push(colorCode + 'm+' + Debug.humanize(this.diff) + "\x1B[0m"); | ||
let line = util.format.call(util, ...args); | ||
line = line.split('\n').join('\n' + level + prefix); | ||
args[0] = line; | ||
args.length = 1; | ||
} | ||
else { | ||
args[0] = getDate() + level + name + ' ' + timer + (args.length ? msg : '') | ||
+ (Debug.alwaysDiff() ? ' +' + Debug.humanize(this.diff) : ''); | ||
args[0] = date + level + name + ' ' + timer + (args.length ? msg : ''); | ||
if (Debug.alwaysDiff()) | ||
args.push('+' + Debug.humanize(this.diff)); | ||
let line = util.format.call(util, ...args); | ||
// TODO Escape new lines | ||
line = line.split('\n').join('\n' + date + level + name + ' '); | ||
args[0] = line; | ||
args.length = 1; | ||
} | ||
@@ -234,7 +292,7 @@ // return util.format.call(util, ...args); | ||
Debug.inspectOpts = Object.keys(process.env) | ||
.filter(key => /^debug_/i.test(key)) | ||
.filter(key => /^(debug_|log_)/i.test(key)) | ||
.reduce((obj, key) => { | ||
// Camel-case | ||
// Coerce string value into JS value | ||
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase()); | ||
const prop = key.replace(/^(debug_|log_)/i, '').toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase()); | ||
let val = process.env[key]; | ||
@@ -413,3 +471,3 @@ // console.log(prop, val); | ||
Debug.isBellow = function isBellow(ofLevel) { | ||
return Debug.level() > ofLevel; | ||
return ofLevel > Debug.level(); | ||
}; | ||
@@ -431,6 +489,9 @@ Debug.setLevel = function setLevel(toLevel) { | ||
Debug.logIcon = ''; | ||
Debug.fatalIcon = '🛑'; | ||
Debug.emergIcon = '🛑'; | ||
Debug.alertIcon = '🛑'; | ||
Debug.criticalIcon = '🛑'; | ||
Debug.errorIcon = '❗'; | ||
Debug.infoIcon = 'ℹ️'; | ||
Debug.warnIcon = '⚠️'; | ||
Debug.warningIcon = '⚠️'; | ||
Debug.noticeIcon = '⚠️'; | ||
Debug.debugIcon = '🔹'; | ||
@@ -449,7 +510,22 @@ Debug.traceIcon = '🔸'; | ||
}; | ||
Debug.emerg = function emerg(...args) { | ||
if (Debug.isBellow(DebugLevel.EMERG)) | ||
return; | ||
Debug.useConsole() ? console.error(...args) : process.stderr.write(util.format.call(util, ...args) + '\n'); | ||
}; | ||
Debug.fatal = function fatal(...args) { | ||
if (Debug.isBellow(DebugLevel.FATAL)) | ||
if (Debug.isBellow(DebugLevel.ALERT)) | ||
return; | ||
Debug.useConsole() ? console.error(...args) : process.stderr.write(util.format.call(util, ...args) + '\n'); | ||
}; | ||
Debug.alert = function alert(...args) { | ||
if (Debug.isBellow(DebugLevel.ALERT)) | ||
return; | ||
Debug.useConsole() ? console.error(...args) : process.stderr.write(util.format.call(util, ...args) + '\n'); | ||
}; | ||
Debug.critical = function critical(...args) { | ||
if (Debug.isBellow(DebugLevel.CRITICAL)) | ||
return; | ||
Debug.useConsole() ? console.error(...args) : process.stderr.write(util.format.call(util, ...args) + '\n'); | ||
}; | ||
Debug.error = function error(...args) { | ||
@@ -460,2 +536,12 @@ if (Debug.isBellow(DebugLevel.ERROR)) | ||
}; | ||
Debug.warn = function warn(...args) { | ||
if (Debug.isBellow(DebugLevel.WARNING)) | ||
return; | ||
Debug.useConsole() ? console.warn(...args) : process.stdout.write(util.format.call(util, ...args) + '\n'); | ||
}; | ||
Debug.notice = function notice(...args) { | ||
if (Debug.isBellow(DebugLevel.NOTICE)) | ||
return; | ||
Debug.useConsole() ? console.warn(...args) : process.stdout.write(util.format.call(util, ...args) + '\n'); | ||
}; | ||
Debug.info = function info(...args) { | ||
@@ -466,7 +552,2 @@ if (Debug.isBellow(DebugLevel.INFO)) | ||
}; | ||
Debug.warn = function warn(...args) { | ||
if (Debug.isBellow(DebugLevel.WARN)) | ||
return; | ||
Debug.useConsole() ? console.warn(...args) : process.stdout.write(util.format.call(util, ...args) + '\n'); | ||
}; | ||
Debug.debug = function detail(...args) { | ||
@@ -483,3 +564,3 @@ if (Debug.isBellow(DebugLevel.DEBUG)) | ||
Debug.time = function time(...args) { | ||
if (Debug.isBellow(DebugLevel.INFO)) | ||
if (Debug.isBellow(DebugLevel.TIME)) | ||
return void null; | ||
@@ -490,3 +571,3 @@ Debug.useConsole() ? console.info(...args) : process.stdout.write(util.format.call(util, ...args) + '\n'); | ||
Debug.end = function end(...args) { | ||
if (Debug.isBellow(DebugLevel.INFO)) | ||
if (Debug.isBellow(DebugLevel.TIME)) | ||
return void null; | ||
@@ -496,3 +577,3 @@ Debug.useConsole() ? console.info(...args) : process.stdout.write(util.format.call(util, ...args) + '\n'); | ||
Debug.timeEnd = function timeEnd(...args) { | ||
if (Debug.isBellow(DebugLevel.INFO)) | ||
if (Debug.isBellow(DebugLevel.TIME)) | ||
return void null; | ||
@@ -499,0 +580,0 @@ Debug.useConsole() ? console.info(...args) : process.stdout.write(util.format.call(util, ...args) + '\n'); |
@@ -500,25 +500,26 @@ /// <reference types="node" /> | ||
mergeWith(object: any, ...otherArgs: any[]): any; | ||
omit<T_225 extends object, K_1 extends keyof T_225>(object: T_225, ...paths: lo.Many<K_1>[]): Pick<T_225, Exclude<keyof T_225, K_1>>; | ||
omit<T_226 extends object>(object: T_226, ...paths: lo.Many<string | number | symbol>[]): Partial<T_226>; | ||
omitBy<T_227>(object: lo.Dictionary<T_227>, predicate?: lo.ValueKeyIteratee<T_227>): lo.Dictionary<T_227>; | ||
omitBy<T_228>(object: lo.NumericDictionary<T_228>, predicate?: lo.ValueKeyIteratee<T_228>): lo.NumericDictionary<T_228>; | ||
omitBy<T_229 extends object>(object: T_229, predicate: lo.ValueKeyIteratee<T_229[keyof T_229]>): Partial<T_229>; | ||
pick<T_230 extends object, U_4 extends keyof T_230>(object: T_230, ...props: lo.Many<U_4>[]): Pick<T_230, U_4>; | ||
pick<T_231>(object: T_231, ...props: lo.Many<string | number | symbol>[]): Partial<T_231>; | ||
pickBy<T_232, S_6 extends T_232>(object: lo.Dictionary<T_232>, predicate: lo.ValueKeyIterateeTypeGuard<T_232, S_6>): lo.Dictionary<S_6>; | ||
pickBy<T_233, S_7 extends T_233>(object: lo.NumericDictionary<T_233>, predicate: lo.ValueKeyIterateeTypeGuard<T_233, S_7>): lo.NumericDictionary<S_7>; | ||
pickBy<T_234>(object: lo.Dictionary<T_234>, predicate?: lo.ValueKeyIteratee<T_234>): lo.Dictionary<T_234>; | ||
pickBy<T_235>(object: lo.NumericDictionary<T_235>, predicate?: lo.ValueKeyIteratee<T_235>): lo.NumericDictionary<T_235>; | ||
pickBy<T_236 extends object>(object: T_236, predicate?: lo.ValueKeyIteratee<T_236[keyof T_236]>): Partial<T_236>; | ||
omit<T_225 extends object, K_1 extends (string | number | symbol)[]>(object: T_225, ...paths: K_1): Pick<T_225, Exclude<keyof T_225, K_1[number]>>; | ||
omit<T_226 extends object, K_2 extends keyof T_226>(object: T_226, ...paths: lo.Many<K_2>[]): Pick<T_226, Exclude<keyof T_226, K_2>>; | ||
omit<T_227 extends object>(object: T_227, ...paths: lo.Many<string | number | symbol>[]): Partial<T_227>; | ||
omitBy<T_228>(object: lo.Dictionary<T_228>, predicate?: lo.ValueKeyIteratee<T_228>): lo.Dictionary<T_228>; | ||
omitBy<T_229>(object: lo.NumericDictionary<T_229>, predicate?: lo.ValueKeyIteratee<T_229>): lo.NumericDictionary<T_229>; | ||
omitBy<T_230 extends object>(object: T_230, predicate: lo.ValueKeyIteratee<T_230[keyof T_230]>): Partial<T_230>; | ||
pick<T_231 extends object, U_4 extends keyof T_231>(object: T_231, ...props: lo.Many<U_4>[]): Pick<T_231, U_4>; | ||
pick<T_232>(object: T_232, ...props: lo.Many<string | number | symbol>[]): Partial<T_232>; | ||
pickBy<T_233, S_6 extends T_233>(object: lo.Dictionary<T_233>, predicate: lo.ValueKeyIterateeTypeGuard<T_233, S_6>): lo.Dictionary<S_6>; | ||
pickBy<T_234, S_7 extends T_234>(object: lo.NumericDictionary<T_234>, predicate: lo.ValueKeyIterateeTypeGuard<T_234, S_7>): lo.NumericDictionary<S_7>; | ||
pickBy<T_235>(object: lo.Dictionary<T_235>, predicate?: lo.ValueKeyIteratee<T_235>): lo.Dictionary<T_235>; | ||
pickBy<T_236>(object: lo.NumericDictionary<T_236>, predicate?: lo.ValueKeyIteratee<T_236>): lo.NumericDictionary<T_236>; | ||
pickBy<T_237 extends object>(object: T_237, predicate?: lo.ValueKeyIteratee<T_237[keyof T_237]>): Partial<T_237>; | ||
result<TResult_35>(object: any, path: lo.Many<string | number | symbol>, defaultValue?: TResult_35 | ((...args: any[]) => TResult_35)): TResult_35; | ||
set<T_237 extends object>(object: T_237, path: lo.Many<string | number | symbol>, value: any): T_237; | ||
set<T_238 extends object>(object: T_238, path: lo.Many<string | number | symbol>, value: any): T_238; | ||
set<TResult_36>(object: object, path: lo.Many<string | number | symbol>, value: any): TResult_36; | ||
setWith<T_238 extends object>(object: T_238, path: lo.Many<string | number | symbol>, value: any, customizer?: lo.SetWithCustomizer<T_238>): T_238; | ||
setWith<T_239 extends object, TResult_37>(object: T_239, path: lo.Many<string | number | symbol>, value: any, customizer?: lo.SetWithCustomizer<T_239>): TResult_37; | ||
toPairs<T_240>(object?: lo.Dictionary<T_240> | lo.NumericDictionary<T_240>): [string, T_240][]; | ||
setWith<T_239 extends object>(object: T_239, path: lo.Many<string | number | symbol>, value: any, customizer?: lo.SetWithCustomizer<T_239>): T_239; | ||
setWith<T_240 extends object, TResult_37>(object: T_240, path: lo.Many<string | number | symbol>, value: any, customizer?: lo.SetWithCustomizer<T_240>): TResult_37; | ||
toPairs<T_241>(object?: lo.Dictionary<T_241> | lo.NumericDictionary<T_241>): [string, T_241][]; | ||
toPairs(object?: object): [string, any][]; | ||
toPairsIn<T_241>(object?: lo.Dictionary<T_241> | lo.NumericDictionary<T_241>): [string, T_241][]; | ||
toPairsIn<T_242>(object?: lo.Dictionary<T_242> | lo.NumericDictionary<T_242>): [string, T_242][]; | ||
toPairsIn(object?: object): [string, any][]; | ||
transform<T_242, TResult_38>(object: T_242[], iteratee: lo.MemoVoidArrayIterator<T_242, TResult_38>, accumulator?: TResult_38): TResult_38; | ||
transform<T_243, TResult_39>(object: lo.Dictionary<T_243>, iteratee: lo.MemoVoidDictionaryIterator<T_243, TResult_39>, accumulator?: TResult_39): TResult_39; | ||
transform<T_243, TResult_38>(object: T_243[], iteratee: lo.MemoVoidArrayIterator<T_243, TResult_38>, accumulator?: TResult_38): TResult_38; | ||
transform<T_244, TResult_39>(object: lo.Dictionary<T_244>, iteratee: lo.MemoVoidDictionaryIterator<T_244, TResult_39>, accumulator?: TResult_39): TResult_39; | ||
transform(object: any[]): any[]; | ||
@@ -528,21 +529,21 @@ transform(object: object): lo.Dictionary<any>; | ||
update(object: object, path: lo.Many<string | number | symbol>, updater: (value: any) => any): any; | ||
updateWith<T_244 extends object>(object: T_244, path: lo.Many<string | number | symbol>, updater: (oldValue: any) => any, customizer?: lo.SetWithCustomizer<T_244>): T_244; | ||
updateWith<T_245 extends object, TResult_40>(object: T_245, path: lo.Many<string | number | symbol>, updater: (oldValue: any) => any, customizer?: lo.SetWithCustomizer<T_245>): TResult_40; | ||
values<T_246>(object: lo.Dictionary<T_246> | lo.NumericDictionary<T_246> | lo.List<T_246>): T_246[]; | ||
values<T_247 extends object>(object: T_247): T_247[keyof T_247][]; | ||
updateWith<T_245 extends object>(object: T_245, path: lo.Many<string | number | symbol>, updater: (oldValue: any) => any, customizer?: lo.SetWithCustomizer<T_245>): T_245; | ||
updateWith<T_246 extends object, TResult_40>(object: T_246, path: lo.Many<string | number | symbol>, updater: (oldValue: any) => any, customizer?: lo.SetWithCustomizer<T_246>): TResult_40; | ||
values<T_247>(object: lo.Dictionary<T_247> | lo.NumericDictionary<T_247> | lo.List<T_247>): T_247[]; | ||
values<T_248 extends object>(object: T_248): T_248[keyof T_248][]; | ||
values(object: any): any[]; | ||
valuesIn<T_248>(object: lo.Dictionary<T_248> | lo.NumericDictionary<T_248> | lo.List<T_248>): T_248[]; | ||
valuesIn<T_249 extends object>(object: T_249): T_249[keyof T_249][]; | ||
valuesIn<T_249>(object: lo.Dictionary<T_249> | lo.NumericDictionary<T_249> | lo.List<T_249>): T_249[]; | ||
valuesIn<T_250 extends object>(object: T_250): T_250[keyof T_250][]; | ||
chain<TrapAny extends { | ||
__lodashAnyHack: any; | ||
}>(value: TrapAny): lo.CollectionChain<any> & lo.FunctionChain<any> & lo.ObjectChain<any> & lo.PrimitiveChain<any> & lo.StringChain; | ||
chain<T_250 extends null>(value: T_250): lo.PrimitiveChain<T_250>; | ||
chain<T_251 extends null>(value: T_251): lo.PrimitiveChain<T_251>; | ||
chain(value: string): lo.StringChain; | ||
chain(value: string): lo.StringNullableChain; | ||
chain<T_251 extends (...args: any[]) => any>(value: T_251): lo.FunctionChain<T_251>; | ||
chain<T_252 = any>(value: lo.List<T_252>): lo.CollectionChain<T_252>; | ||
chain<T_253 extends object>(value: T_253): lo.ObjectChain<T_253>; | ||
chain<T_254>(value: T_254): lo.PrimitiveChain<T_254>; | ||
tap<T_255>(value: T_255, interceptor: (value: T_255) => void): T_255; | ||
thru<T_256, TResult_41>(value: T_256, interceptor: (value: T_256) => TResult_41): TResult_41; | ||
chain<T_252 extends (...args: any[]) => any>(value: T_252): lo.FunctionChain<T_252>; | ||
chain<T_253 = any>(value: lo.List<T_253>): lo.CollectionChain<T_253>; | ||
chain<T_254 extends object>(value: T_254): lo.ObjectChain<T_254>; | ||
chain<T_255>(value: T_255): lo.PrimitiveChain<T_255>; | ||
tap<T_256>(value: T_256, interceptor: (value: T_256) => void): T_256; | ||
thru<T_257, TResult_41>(value: T_257, interceptor: (value: T_257) => TResult_41): TResult_41; | ||
camelCase(string?: string): string; | ||
@@ -585,8 +586,8 @@ capitalize(string?: string): string; | ||
attempt<TResult_42>(func: (...args: any[]) => TResult_42, ...args: any[]): Error | TResult_42; | ||
bindAll<T_257>(object: T_257, ...methodNames: lo.Many<string>[]): T_257; | ||
cond<T_258, R>(pairs: lo.CondPair<T_258, R>[]): (Target: T_258) => R; | ||
conforms<T_259>(source: lo.ConformsPredicateObject<T_259>): (value: T_259) => boolean; | ||
constant<T_260>(value: T_260): () => T_260; | ||
defaultTo<T_261>(value: T_261, defaultValue: T_261): T_261; | ||
defaultTo<T_262, TDefault_6>(value: T_262, defaultValue: TDefault_6): T_262 | TDefault_6; | ||
bindAll<T_258>(object: T_258, ...methodNames: lo.Many<string>[]): T_258; | ||
cond<T_259, R>(pairs: lo.CondPair<T_259, R>[]): (Target: T_259) => R; | ||
conforms<T_260>(source: lo.ConformsPredicateObject<T_260>): (value: T_260) => boolean; | ||
constant<T_261>(value: T_261): () => T_261; | ||
defaultTo<T_262>(value: T_262, defaultValue: T_262): T_262; | ||
defaultTo<T_263, TDefault_6>(value: T_263, defaultValue: TDefault_6): T_263 | TDefault_6; | ||
flow<A extends any[], R1, R2, R3, R4, R5, R6, R7>(f1: (...args: A) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (...args: A) => R7; | ||
@@ -607,10 +608,10 @@ flow<A_1 extends any[], R1_1, R2_1, R3_1, R4_1, R5_1, R6_1, R7_1>(f1: (...args: A_1) => R1_1, f2: (a: R1_1) => R2_1, f3: (a: R2_1) => R3_1, f4: (a: R3_1) => R4_1, f5: (a: R4_1) => R5_1, f6: (a: R5_1) => R6_1, f7: (a: R6_1) => R7_1, ...func: lo.Many<(a: any) => any>[]): (...args: A_1) => any; | ||
flowRight(...func: lo.Many<(...args: any[]) => any>[]): (...args: any[]) => any; | ||
identity<T_263>(value: T_263): T_263; | ||
identity<T_264>(value: T_264): T_264; | ||
identity(): undefined; | ||
iteratee<TFunction extends (...args: any[]) => any>(func: TFunction): TFunction; | ||
iteratee(func: string | object): (...args: any[]) => any; | ||
matches<T_264>(source: T_264): (value: any) => boolean; | ||
matches<T_265, V>(source: T_265): (value: V) => boolean; | ||
matchesProperty<T_266>(path: lo.Many<string | number | symbol>, srcValue: T_266): (value: any) => boolean; | ||
matchesProperty<T_267, V_1>(path: lo.Many<string | number | symbol>, srcValue: T_267): (value: V_1) => boolean; | ||
matches<T_265>(source: T_265): (value: any) => boolean; | ||
matches<T_266, V>(source: T_266): (value: V) => boolean; | ||
matchesProperty<T_267>(path: lo.Many<string | number | symbol>, srcValue: T_267): (value: any) => boolean; | ||
matchesProperty<T_268, V_1>(path: lo.Many<string | number | symbol>, srcValue: T_268): (value: V_1) => boolean; | ||
method(path: lo.Many<string | number | symbol>, ...args: any[]): (object: any) => any; | ||
@@ -624,6 +625,8 @@ methodOf(object: object, ...args: any[]): (path: lo.Many<string | number | symbol>) => any; | ||
over<TResult_44>(...iteratees: lo.Many<(...args: any[]) => TResult_44>[]): (...args: any[]) => TResult_44[]; | ||
overEvery<T_268>(...predicates: lo.Many<(...args: T_268[]) => boolean>[]): (...args: T_268[]) => boolean; | ||
overSome<T_269>(...predicates: lo.Many<(...args: T_269[]) => boolean>[]): (...args: T_269[]) => boolean; | ||
overEvery<T_269, Result1 extends T_269, Result2 extends T_269>(predicates_0: (arg: T_269) => arg is Result1, predicates_1: (arg: T_269) => arg is Result2): (arg: T_269) => arg is Result1 & Result2; | ||
overEvery<T_270>(...predicates: lo.Many<(...args: T_270[]) => boolean>[]): (...args: T_270[]) => boolean; | ||
overSome<T_271, Result1_1 extends T_271, Result2_1 extends T_271>(predicates_0: (arg: T_271) => arg is Result1_1, predicates_1: (arg: T_271) => arg is Result2_1): (arg: T_271) => arg is Result1_1 | Result2_1; | ||
overSome<T_272>(...predicates: lo.Many<(...args: T_272[]) => boolean>[]): (...args: T_272[]) => boolean; | ||
property<TObj, TResult_45>(path: lo.Many<string | number | symbol>): (obj: TObj) => TResult_45; | ||
propertyOf<T_270 extends {}>(object: T_270): (path: lo.Many<string | number | symbol>) => any; | ||
propertyOf<T_273 extends {}>(object: T_273): (path: lo.Many<string | number | symbol>) => any; | ||
range(start: number, end?: number, step?: number): number[]; | ||
@@ -630,0 +633,0 @@ range(end: number, index: string | number, guard: object): number[]; |
{ | ||
"name": "exer", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "Utils in TypeScript, Debug, NanoTimer ...", | ||
@@ -44,7 +44,7 @@ "author": "kbajalc@gmail.com", | ||
"@types/chance": "^1.0.7", | ||
"@types/lodash": "^4.14.146", | ||
"@types/node": "^10.17.5", | ||
"@types/lodash": "^4.14.149", | ||
"@types/node": "^10.17.6", | ||
"@types/uuid": "^3.4.6", | ||
"chance": "^1.1.3", | ||
"ts-node": "^8.5.0", | ||
"ts-node": "^8.5.2", | ||
"tslint": "^5.20.1", | ||
@@ -51,0 +51,0 @@ "tslint-config-airbnb": "^5.11.2", |
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
185828
2516