mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 06:20:38 -07:00
chore(release): 7.2.1 [skip ci]
## [7.2.1](https://github.com/harttle/liquidjs/compare/v7.2.0...v7.2.1) (2019-02-22)
### Bug Fixes
* default length for truncate and truncatewords ([56c7992](https://github.com/harttle/liquidjs/commit/56c7992))
This commit is contained in:
Vendored
+1
-1
@@ -2,5 +2,5 @@ import Token from './token';
|
||||
export default class DelimitedToken extends Token {
|
||||
trimLeft: boolean;
|
||||
trimRight: boolean;
|
||||
constructor(raw: any, value: any, pos: any, input: any, file: any, line: any);
|
||||
constructor(raw: string, value: string, input: string, line: number, pos: number, file?: string);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import Token from './token';
|
||||
export default class HTMLToken extends Token {
|
||||
constructor(str: any, begin: any, input: any, file: any, line: any);
|
||||
constructor(str: string, input: string, line: number, col: number, file?: string);
|
||||
}
|
||||
|
||||
Vendored
+6
-6
@@ -27,9 +27,9 @@ export declare const filter: RegExp;
|
||||
export declare const filterCapture: RegExp;
|
||||
export declare const filterLine: RegExp;
|
||||
export declare const operators: RegExp[];
|
||||
export declare function isInteger(str: any): boolean;
|
||||
export declare function isLiteral(str: any): boolean;
|
||||
export declare function isRange(str: any): boolean;
|
||||
export declare function isVariable(str: any): boolean;
|
||||
export declare function matchValue(str: any): RegExpExecArray;
|
||||
export declare function parseLiteral(str: any): any;
|
||||
export declare function isInteger(str: string): boolean;
|
||||
export declare function isLiteral(str: string): boolean;
|
||||
export declare function isRange(str: string): boolean;
|
||||
export declare function isVariable(str: string): boolean;
|
||||
export declare function matchValue(str: string): RegExpExecArray | null;
|
||||
export declare function parseLiteral(str: string): string | number | boolean;
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import DelimitedToken from './delimited-token';
|
||||
export default class OutputToken extends DelimitedToken {
|
||||
constructor(raw: any, value: any, pos: any, input: any, file: any, line: any);
|
||||
constructor(raw: string, value: string, input: string, line: number, pos: number, file?: string);
|
||||
}
|
||||
|
||||
Vendored
+4
-5
@@ -1,15 +1,14 @@
|
||||
import Token from 'src/parser/token';
|
||||
import ITemplate from 'src/template/itemplate';
|
||||
declare type parseToken = (token: Token, remainTokens: Array<Token>) => ITemplate;
|
||||
declare type eventHandler = ((arg?: Token | ITemplate) => void);
|
||||
declare type ParseToken = ((token: Token, remainTokens: Array<Token>) => ITemplate);
|
||||
export default class ParseStream {
|
||||
private tokens;
|
||||
private handlers;
|
||||
private stopRequested;
|
||||
private parseToken;
|
||||
constructor(tokens: Array<Token>, parseToken: parseToken);
|
||||
on(name: string, cb: eventHandler): this;
|
||||
trigger(event: string, arg?: Token | ITemplate): boolean;
|
||||
constructor(tokens: Array<Token>, parseToken: ParseToken);
|
||||
on<T extends ITemplate | Token | undefined>(name: string, cb: (arg: T) => void): ParseStream;
|
||||
trigger<T extends Token | ITemplate>(event: string, arg?: T): boolean;
|
||||
start(): this;
|
||||
stop(): this;
|
||||
}
|
||||
|
||||
Vendored
+2
-1
@@ -4,10 +4,11 @@ import Token from './token';
|
||||
import Tag from 'src/template/tag/tag';
|
||||
import Output from 'src/template/output';
|
||||
import HTML from 'src/template/html';
|
||||
import ITemplate from 'src/template/itemplate';
|
||||
export default class Parser {
|
||||
liquid: Liquid;
|
||||
constructor(liquid: Liquid);
|
||||
parse(tokens: Array<Token>): any[];
|
||||
parse(tokens: Array<Token>): ITemplate[];
|
||||
parseToken(token: Token, remainTokens: Array<Token>): Tag | Output | HTML;
|
||||
parseStream(tokens: Array<Token>): ParseStream;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -2,5 +2,5 @@ import DelimitedToken from './delimited-token';
|
||||
export default class TagToken extends DelimitedToken {
|
||||
name: string;
|
||||
args: string;
|
||||
constructor(raw: any, value: any, pos: any, input: any, file: any, line: any);
|
||||
constructor(raw: string, value: string, input: string, line: number, pos: number, file?: string);
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -4,7 +4,7 @@ export default class Token {
|
||||
col: number;
|
||||
raw: string;
|
||||
input: string;
|
||||
file: string;
|
||||
file?: string;
|
||||
value: string;
|
||||
constructor(raw: any, col: any, input: any, file: any, line: any);
|
||||
constructor(raw: string, input: string, line: number, col: number, file?: string);
|
||||
}
|
||||
|
||||
Vendored
+2
-1
@@ -1,6 +1,7 @@
|
||||
import Token from './token';
|
||||
import { NormalizedFullOptions } from '../liquid-options';
|
||||
export default class Tokenizer {
|
||||
options: NormalizedFullOptions;
|
||||
constructor(options?: NormalizedFullOptions);
|
||||
tokenize(input: string, file?: string): any[];
|
||||
tokenize(input: string, file?: string): Token[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user