Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

liquidjs

Package Overview
Dependencies
Maintainers
1
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liquidjs - npm Package Compare versions

Comparing version 7.3.0 to 7.3.1

dist/drop/blank-drop.d.ts

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [7.3.1](https://github.com/harttle/liquidjs/compare/v7.3.0...v7.3.1) (2019-02-25)
### Bug Fixes
* **#108:** remove absolute path in emitted d.ts ([53a835a](https://github.com/harttle/liquidjs/commit/53a835a)), closes [#108](https://github.com/harttle/liquidjs/issues/108)
# [7.3.0](https://github.com/harttle/liquidjs/compare/v7.2.2...v7.3.0) (2019-02-24)

@@ -2,0 +9,0 @@

2

dist/builtin/filters/string.d.ts

@@ -1,2 +0,2 @@

import { FilterImpl } from 'src/template/filter/filter-impl';
import { FilterImpl } from '../../template/filter/filter-impl';
declare const _default: {

@@ -3,0 +3,0 @@ [key: string]: FilterImpl;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,2 +0,2 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const tags: {

@@ -3,0 +3,0 @@ [key: string]: ITagImplOptions;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -1,3 +0,3 @@

import ITagImplOptions from 'src/template/tag/itag-impl-options';
import ITagImplOptions from '../../template/tag/itag-impl-options';
declare const _default: ITagImplOptions;
export default _default;

@@ -31,3 +31,3 @@ export interface LiquidOptions {

}
export interface NormalizedOptions extends LiquidOptions {
interface NormalizedOptions extends LiquidOptions {
root?: string[];

@@ -54,1 +54,2 @@ }

export declare function applyDefault(options?: NormalizedOptions): NormalizedFullOptions;
export {};
export declare const quoted: RegExp;
export declare const quoteBalanced: RegExp;
export declare const integer: RegExp;
export declare const number: RegExp;

@@ -17,4 +16,2 @@ export declare const bool: RegExp;

export declare const tagLine: RegExp;
export declare const literalLine: RegExp;
export declare const variableLine: RegExp;
export declare const numberLine: RegExp;

@@ -24,14 +21,3 @@ export declare const boolLine: RegExp;

export declare const rangeLine: RegExp;
export declare const integerLine: RegExp;
export declare const valueDeclaration: RegExp;
export declare const valueList: RegExp;
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: 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;

@@ -1,3 +0,3 @@

import Token from 'src/parser/token';
import ITemplate from 'src/template/itemplate';
import Token from '../parser/token';
import ITemplate from '../template/itemplate';
declare type ParseToken = ((token: Token, remainTokens: Array<Token>) => ITemplate);

@@ -4,0 +4,0 @@ export default class ParseStream {

@@ -1,8 +0,8 @@

import Liquid from 'src/liquid';
import Liquid from '../liquid';
import ParseStream from './parse-stream';
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';
import Tag from '../template/tag/tag';
import Output from '../template/output';
import HTML from '../template/html';
import ITemplate from '../template/itemplate';
export default class Parser {

@@ -9,0 +9,0 @@ liquid: Liquid;

@@ -1,3 +0,3 @@

import Token from 'src/parser/token';
import { NormalizedFullOptions } from 'src/liquid-options';
import Token from '../parser/token';
import { NormalizedFullOptions } from '../liquid-options';
export default function whiteSpaceCtrl(tokens: Token[], options: NormalizedFullOptions): void;

@@ -1,5 +0,5 @@

import Scope from 'src/scope/scope';
import ITemplate from 'src/template/itemplate';
import Scope from '../scope/scope';
import ITemplate from '../template/itemplate';
export default class Render {
renderTemplates(templates: ITemplate[], scope: Scope): Promise<string>;
}

@@ -1,5 +0,6 @@

import Scope from 'src/scope/scope';
export declare function evalExp(exp: string, scope: Scope): any;
import Scope from '../scope/scope';
export declare function parseExp(exp: string, scope: Scope): any;
export declare function evalExp(str: string, scope: Scope): any;
export declare function evalValue(str: string, scope: Scope): any;
export declare function isTruthy(val: any): boolean;
export declare function isFalsy(val: any): boolean;
import { NormalizedFullOptions } from '../liquid-options';
import BlockMode from './block-mode';
import IContext from './icontext';
export declare type Context = {
[key: string]: any;
liquid_method_missing?: (key: string) => any;
to_liquid?: () => any;
toLiquid?: () => any;
};
export default class Scope {
opts: NormalizedFullOptions;
contexts: Array<IContext>;
contexts: Array<Context>;
blocks: object;

@@ -13,3 +18,3 @@ groups: {

constructor(ctx?: object, opts?: NormalizedFullOptions);
getAll(): IContext;
getAll(): Context;
get(path: string): any;

@@ -20,5 +25,5 @@ set(path: string, v: any): void;

pop(ctx?: object): object | undefined;
findContextFor(key: string, filter?: ((conttext: object) => boolean)): IContext | null;
findContextFor(key: string, filter?: ((conttext: object) => boolean)): Context | null;
private readProperty;
propertyAccessSeq(str: string): string[];
}

@@ -1,2 +0,2 @@

import Scope from 'src/scope/scope';
import Scope from '../../scope/scope';
import { FilterImpl } from './filter-impl';

@@ -8,4 +8,3 @@ export default class Filter {

private static impls;
constructor(str: string, strictFilters?: boolean);
parseArgs(argList: string): string[];
constructor(name: string, args: string[], strictFilters: boolean);
render(value: any, scope: Scope): any;

@@ -12,0 +11,0 @@ static register(name: string, filter: FilterImpl): void;

@@ -1,4 +0,4 @@

import Template from 'src/template/template';
import ITemplate from 'src/template/itemplate';
import HTMLToken from 'src/parser/html-token';
import Template from '../template/template';
import ITemplate from '../template/itemplate';
import HTMLToken from '../parser/html-token';
export default class extends Template<HTMLToken> implements ITemplate {

@@ -5,0 +5,0 @@ str: string;

@@ -1,3 +0,3 @@

import Scope from 'src/scope/scope';
import Token from 'src/parser/token';
import Scope from '../scope/scope';
import Token from '../parser/token';
export default interface ITemplate {

@@ -4,0 +4,0 @@ token: Token;

import Value from './value';
import Template from 'src/template/template';
import ITemplate from 'src/template/itemplate';
import Scope from 'src/scope/scope';
import OutputToken from 'src/parser/output-token';
import Template from '../template/template';
import ITemplate from '../template/itemplate';
import Scope from '../scope/scope';
import OutputToken from '../parser/output-token';
export default class Output extends Template<OutputToken> implements ITemplate {
value: Value;
constructor(token: OutputToken, strictFilters?: boolean);
constructor(token: OutputToken, strictFilters: boolean);
render(scope: Scope): Promise<string>;
}

@@ -1,2 +0,2 @@

import Scope from 'src/scope/scope';
import Scope from '../../scope/scope';
/**

@@ -3,0 +3,0 @@ * Key-Value Pairs Representing Tag Arguments

@@ -1,5 +0,5 @@

import Scope from 'src/scope/scope';
import TagToken from 'src/parser/tag-token';
import Token from 'src/parser/token';
import Hash from 'src/template/tag/hash';
import Scope from '../../scope/scope';
import TagToken from '../../parser/tag-token';
import Token from '../../parser/token';
import Hash from '../../template/tag/hash';
import ITagImpl from './itag-impl';

@@ -6,0 +6,0 @@ export default interface ITagImplOptions {

@@ -1,2 +0,2 @@

import Liquid from 'src/liquid';
import Liquid from '../../liquid';
import ITagImplOptions from './itag-impl-options';

@@ -3,0 +3,0 @@ export default interface ITagImpl extends ITagImplOptions {

@@ -1,8 +0,8 @@

import Scope from 'src/scope/scope';
import Scope from '../../scope/scope';
import ITagImplOptions from './itag-impl-options';
import Liquid from 'src/liquid';
import Template from 'src/template/template';
import ITemplate from 'src/template/itemplate';
import TagToken from 'src/parser/tag-token';
import Token from 'src/parser/token';
import Liquid from '../../liquid';
import Template from '../../template/template';
import ITemplate from '../../template/itemplate';
import TagToken from '../../parser/tag-token';
import Token from '../../parser/token';
export default class Tag extends Template<TagToken> implements ITemplate {

@@ -9,0 +9,0 @@ name: string;

import Filter from './filter/filter';
import Scope from 'src/scope/scope';
import Scope from '../scope/scope';
export default class {
initial: any;
filters: Array<Filter>;
constructor(str: string, strictFilters?: boolean);
/**
* @param str value string, like: "i have a dream | truncate: 3
*/
constructor(str: string, strictFilters: boolean);
value(scope: Scope): any;
}

@@ -1,3 +0,3 @@

import Token from 'src/parser/token';
import ITemplate from 'src/template/itemplate';
import Token from '../parser/token';
import ITemplate from '../template/itemplate';
declare abstract class LiquidError extends Error {

@@ -4,0 +4,0 @@ private token;

@@ -1,3 +0,3 @@

export declare function isString(value: any): boolean;
export declare function isFunction(value: any): boolean;
export declare function isString(value: any): value is string;
export declare function isFunction(value: any): value is Function;
export declare function promisify<T1, T2>(fn: (arg1: T1, cb: (err: Error | null, result: T2) => void) => void): (arg1: T1) => Promise<T2>;

@@ -8,4 +8,3 @@ export declare function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, cb: (err: Error | null, result: T3) => void) => void): (arg1: T1, arg2: T2) => Promise<T3>;

export declare function isNil(value: any): boolean;
export declare function isArray(value: any): boolean;
export declare function isError(value: any): boolean;
export declare function isArray(value: any): value is any[];
export declare function forOwn<T>(object: {

@@ -20,4 +19,4 @@ [key: string]: T;

export declare function last(arr: string): string;
export declare function isObject(value: any): boolean;
export declare function isObject(value: any): value is object;
export declare function range(start: number, stop?: number, step?: number): number[];
export declare function padStart(str: any, length: number, ch?: string): any;
{
"name": "liquidjs",
"version": "7.3.0",
"version": "7.3.1",
"description": "Liquid template engine by pure JavaScript: compatible to shopify, easy to extend.",

@@ -11,9 +11,10 @@ "main": "dist/liquid.common.js",

"unit": "mocha 'test/unit/**/*.ts'",
"integration": "mocha 'test/integration/**/*.ts'",
"e2e": "npm run build && mocha 'test/e2e/**/*.ts'",
"test": "npm run unit && npm run e2e",
"test": "npm run build && mocha 'test/**/*.ts'",
"benchmark": "ts-node --require tsconfig-paths/register benchmark",
"coverage-html": "nyc --reporter=html npm run unit",
"coverage-coveralls": "nyc npm run unit && nyc report --reporter=text-lcov | coveralls",
"coverage-html": "nyc --reporter=html mocha 'test/{unit,integration}/**/*.ts'",
"coverage-coveralls": "nyc mocha 'test/{unit,integration}/**/*.ts' && nyc report --reporter=text-lcov | coveralls",
"build": "rollup -c rollup.config.ts && ls -lh dist",
"version": "npm run build && git add -A dist"
"version": "npm run build"
},

@@ -79,3 +80,3 @@ "repository": {

"rollup": "^1.1.2",
"rollup-plugin-shim": "^1.0.0",
"rollup-plugin-alias": "^1.5.1",
"rollup-plugin-typescript2": "^0.19.2",

@@ -88,3 +89,2 @@ "rollup-plugin-uglify": "^6.0.2",

"ts-node": "^8.0.2",
"tsconfig-paths": "^3.8.0",
"tslib": "^1.9.3",

@@ -91,0 +91,0 @@ "typescript": "^3.3.3"

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc