matchstick-as
Advanced tools
Comparing version 0.0.53 to 0.1.3
import { Address, ethereum } from "@graphprotocol/graph-ts"; | ||
import { log } from "./log"; | ||
import { critical } from "./log"; | ||
@@ -7,3 +7,3 @@ export { clearStore, logStore } from "./store"; | ||
export { assert } from "./assert"; | ||
export { log } from "./log"; | ||
export { critical, success, error, info, debug, warning } from "./log"; | ||
@@ -33,3 +33,3 @@ const CLASS_IN_FINISHED_STATE_ERROR_MESSAGE = | ||
signature: string; | ||
args: ethereum.Value[]; | ||
args: ethereum.Value[] = []; | ||
@@ -46,3 +46,3 @@ constructor(contractAddress: Address, fnName: string, fnSignature: string) { | ||
} else { | ||
log.critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE); | ||
critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE); | ||
} | ||
@@ -64,3 +64,3 @@ return this; | ||
} else { | ||
log.critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE); | ||
critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE); | ||
} | ||
@@ -81,3 +81,3 @@ } | ||
} else { | ||
log.critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE); | ||
critical(CLASS_IN_FINISHED_STATE_ERROR_MESSAGE); | ||
} | ||
@@ -84,0 +84,0 @@ } |
@@ -6,35 +6,33 @@ export declare namespace log { | ||
export namespace log { | ||
export enum Level { | ||
CRITICAL = 0, | ||
ERROR = 1, | ||
WARNING = 2, | ||
INFO = 3, | ||
DEBUG = 4, | ||
SUCCESS = 5 | ||
} | ||
export enum Level { | ||
CRITICAL = 0, | ||
ERROR = 1, | ||
WARNING = 2, | ||
INFO = 3, | ||
DEBUG = 4, | ||
SUCCESS = 5 | ||
} | ||
export function critical(msg: string): void { | ||
log(Level.CRITICAL, msg); | ||
} | ||
export function critical(msg: string): void { | ||
log.log(Level.CRITICAL, msg); | ||
} | ||
export function error(msg: string): void { | ||
log(Level.ERROR, msg); | ||
} | ||
export function error(msg: string): void { | ||
log.log(Level.ERROR, msg); | ||
} | ||
export function warning(msg: string): void { | ||
log(Level.WARNING, msg); | ||
} | ||
export function warning(msg: string): void { | ||
log.log(Level.WARNING, msg); | ||
} | ||
export function info(msg: string): void { | ||
log(Level.INFO, msg); | ||
} | ||
export function info(msg: string): void { | ||
log.log(Level.INFO, msg); | ||
} | ||
export function debug(msg: string): void { | ||
log(Level.DEBUG, msg); | ||
} | ||
export function debug(msg: string): void { | ||
log.log(Level.DEBUG, msg); | ||
} | ||
export function success(msg: string): void { | ||
log(Level.SUCCESS, msg); | ||
} | ||
export function success(msg: string): void { | ||
log.log(Level.SUCCESS, msg); | ||
} |
{ | ||
"name": "matchstick-as", | ||
"version": "0.0.53", | ||
"version": "0.1.3", | ||
"description": "Helper library for writing subgraph unit tests in Assemblyscript", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
7833
209