fix: break/continue omitting output before them, #123

BREAKING CHANGE: remove default export, now should be used like import
{Liquid} from 'liquidjs'
This commit is contained in:
harttle
2019-08-26 10:15:43 -05:00
committed by Jun Yang
parent 854e12ba53
commit ae45c4622e
99 changed files with 373 additions and 407 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { AssertionError } from './error'
export default function<T> (predicate: T | null | undefined, message?: string) {
export function assert <T> (predicate: T | null | undefined, message?: string) {
if (!predicate) {
message = message || `expect ${predicate} to be true`
throw new AssertionError(message)
+2 -2
View File
@@ -1,6 +1,6 @@
import * as _ from './underscore'
import Token from '../parser/token'
import ITemplate from '../template/itemplate'
import { Token } from '../parser/token'
import { ITemplate } from '../template/itemplate'
abstract class LiquidError extends Error {
private token: Token