@metrichor/epi2me-web
Advanced tools
Comparing version 5.0.5353744 to 5.0.5357219
@@ -43,7 +43,7 @@ "use strict"; | ||
}, | ||
filter({ base, relative }) { | ||
filter({ base, absolute }) { | ||
if (!extensionFilter(base)) { | ||
return false; | ||
} | ||
return filter ? filter(relative) : true; | ||
return filter ? filter(absolute) : true; | ||
}, | ||
@@ -50,0 +50,0 @@ map({ size, base: name, absolute: path, relative }) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FallbackLogger = exports.NoopLogger = exports.NoopLogMethod = void 0; | ||
const NoopLogMethod = (...args) => { | ||
args; | ||
}; | ||
const NoopLogMethod = () => { }; | ||
exports.NoopLogMethod = NoopLogMethod; | ||
exports.NoopLogger = { | ||
debug: exports.NoopLogMethod, | ||
error: exports.NoopLogMethod, | ||
info: exports.NoopLogMethod, | ||
warn: exports.NoopLogMethod, | ||
debug() { }, | ||
error() { }, | ||
info() { }, | ||
warn() { }, | ||
critical() { }, | ||
}; | ||
@@ -27,2 +26,5 @@ exports.FallbackLogger = { | ||
}, | ||
critical(id, reason) { | ||
console.error(`[${new Date().toISOString()}] CRITICAL: ${id}`, reason); | ||
}, | ||
}; |
@@ -19,2 +19,3 @@ "use strict"; | ||
error: ts_runtime_typecheck_1.asFunction(log.error), | ||
critical: ts_runtime_typecheck_1.asFunction(log.critical), | ||
}; | ||
@@ -21,0 +22,0 @@ } |
@@ -38,7 +38,7 @@ import { createInspector } from 'fs-inspect'; | ||
}, | ||
filter({ base, relative }) { | ||
filter({ base, absolute }) { | ||
if (!extensionFilter(base)) { | ||
return false; | ||
} | ||
return filter ? filter(relative) : true; | ||
return filter ? filter(absolute) : true; | ||
}, | ||
@@ -45,0 +45,0 @@ map({ size, base: name, absolute: path, relative }) { |
@@ -1,9 +0,8 @@ | ||
export const NoopLogMethod = (...args) => { | ||
args; | ||
}; | ||
export const NoopLogMethod = () => { }; | ||
export const NoopLogger = { | ||
debug: NoopLogMethod, | ||
error: NoopLogMethod, | ||
info: NoopLogMethod, | ||
warn: NoopLogMethod, | ||
debug() { }, | ||
error() { }, | ||
info() { }, | ||
warn() { }, | ||
critical() { }, | ||
}; | ||
@@ -23,2 +22,5 @@ export const FallbackLogger = { | ||
}, | ||
critical(id, reason) { | ||
console.error(`[${new Date().toISOString()}] CRITICAL: ${id}`, reason); | ||
}, | ||
}; |
@@ -13,2 +13,3 @@ import { FallbackLogger } from './Logger'; | ||
error: asFunction(log.error), | ||
critical: asFunction(log.critical), | ||
}; | ||
@@ -15,0 +16,0 @@ } |
@@ -12,3 +12,3 @@ { | ||
"private": false, | ||
"version": "5.0.5353744", | ||
"version": "5.0.5357219", | ||
"main": "cjs/index-web.js", | ||
@@ -15,0 +15,0 @@ "module": "esm/index-web.js", |
export { GraphQL } from './graphql'; | ||
export type { CriticalErrorId, Logger } from './Logger'; | ||
export * as EPI2ME_RPC from './grpc'; | ||
@@ -3,0 +4,0 @@ export * as Helpers from './helpers'; |
@@ -7,5 +7,7 @@ export declare type LogMethod = (...params: unknown[]) => void; | ||
warn: LogMethod; | ||
critical(id: CriticalErrorId, reason: string): void; | ||
} | ||
export declare const NoopLogMethod: LogMethod; | ||
export declare const NoopLogger: Logger; | ||
export declare type CriticalErrorId = 'UNKNOWN'; | ||
export declare const FallbackLogger: Logger; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2407777
27196