shepherd-plugin-interfaces
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -21,2 +21,3 @@ import { Readable } from "stream" | ||
| 'noop' // no operation | ||
| 'retry' // clean up and retry | ||
| (string & {}) | ||
@@ -23,0 +24,0 @@ err_message?: string // optional error message |
import col from 'ansi-colors' | ||
import { EOL } from 'os' | ||
import fs from 'fs' | ||
export const logger = (...args: any[]) => { | ||
/* print single objects as json text */ | ||
if(args.length === 1 && typeof args[0] === 'object'){ | ||
console.log(JSON.stringify(args[0])) | ||
return; | ||
} | ||
let prefix = '[logger]' | ||
@@ -14,8 +19,2 @@ if(args.length > 1){ | ||
// //outputs a csv file | ||
// fs.appendFile( | ||
// 'shepherd.log', | ||
// "\"" + new Date().toUTCString() + '\",' + prefix + ',' + args.join(',') + EOL, | ||
// ()=>{} | ||
// ) | ||
} |
{ | ||
"name": "shepherd-plugin-interfaces", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.ts", |
@@ -43,3 +43,3 @@ /** | ||
export interface StateRecord { | ||
pname: ('indexer_pass1' | 'indexer_pass2' | 'seed_position') | ||
pname: 'indexer_pass1' | 'indexer_pass2' | 'seed_position' | (string & {}) | ||
value: number | ||
@@ -46,0 +46,0 @@ } |
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
31022
6
115