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 10.15.0 to 10.16.0

dist/util/error.spec.d.ts

2

dist/index.d.ts
export declare const version = "[VI]{version}[/VI]";
export * as TypeGuards from './util/type-guards';
export { toValue, TimezoneDate, createTrie, Trie, toPromise, toValueSync, assert, LiquidError, ParseError, RenderError, UndefinedVariableError, TokenizationError, AssertionError } from './util';
export { toValue, createTrie, Trie, toPromise, toValueSync, assert, LiquidError, ParseError, RenderError, UndefinedVariableError, TokenizationError, AssertionError } from './util';
export { Drop } from './drop';

@@ -5,0 +5,0 @@ export { Emitter } from './emitters';

@@ -39,2 +39,4 @@ import { LiquidCache } from './cache';

dateFormat?: string;
/** Default locale, will be used by date filter. Defaults to system locale. */
locale?: string;
/** Strip blank characters (including ` `, `\t`, and `\r`) from the right of tags (`{% %}`) until `\n` (inclusive). Defaults to `false`. */

@@ -133,2 +135,3 @@ trimTagRight?: boolean;

dateFormat: string;
locale: string;
trimTagRight: boolean;

@@ -135,0 +138,0 @@ trimTagLeft: boolean;

@@ -26,3 +26,3 @@ import { FilteredValueToken, TagToken, HTMLToken, HashToken, QuotedToken, LiquidTagToken, OutputToken, ValueToken, Token, RangeToken, FilterToken, TopLevelToken, OperatorToken, LiteralToken, IdentifierToken, NumberToken } from '../tokens';

readHTMLToken(stopStrings: string[]): HTMLToken;
readTagToken(options?: NormalizedFullOptions): TagToken;
readTagToken(options: NormalizedFullOptions): TagToken;
readToDelimiter(delimiter: string, respectQuoted?: boolean): number;

@@ -29,0 +29,0 @@ readOutputToken(options?: NormalizedFullOptions): OutputToken;

@@ -9,3 +9,2 @@ import { Token } from './token';

constructor(input: string, begin: number, end: number, file?: string | undefined);
isNumber(allowSign?: boolean): boolean;
}

@@ -11,3 +11,3 @@ export * from './error';

export * from './liquid-date';
export * from './timezone-date';
export * from './limiter';
export * from './intl';
/**
* The date interface LiquidJS uses.
* Basically a subset of JavaScript Date,
* it's defined abstractly here to allow different implementation
* A date implementation with timezone info, just like Ruby date
*
* Implementation:
* - create a Date offset by it's timezone difference, avoiding overriding a bunch of methods
* - rewrite getTimezoneOffset() to trick strftime
*/
export interface LiquidDate {
export declare class LiquidDate {
private locale;
private timezoneOffset;
private timezoneName;
private date;
private displayDate;
private DateTimeFormat;
timezoneFixed: boolean;
constructor(init: string | number | Date, locale: string, timezone?: number | string);
getTime(): number;

@@ -16,6 +26,28 @@ getMilliseconds(): number;

getFullYear(): number;
toLocaleString(locale?: string, init?: any): string;
toLocaleTimeString(locale?: string): string;
toLocaleDateString(locale?: string): string;
getTimezoneOffset(): number;
getTimezoneName?(): string;
toLocaleTimeString(): string;
toLocaleDateString(): string;
getTimeZoneName(): string | undefined;
getLongMonthName(): string;
getShortMonthName(): string;
getLongWeekdayName(): string;
getShortWeekdayName(): string;
valid(): boolean;
private format;
/**
* Create a Date object fixed to it's declared Timezone. Both
* - 2021-08-06T02:29:00.000Z and
* - 2021-08-06T02:29:00.000+08:00
* will always be displayed as
* - 2021-08-06 02:29:00
* regardless timezoneOffset in JavaScript realm
*
* The implementation hack:
* Instead of calling `.getMonth()`/`.getUTCMonth()` respect to `preserveTimezones`,
* we create a different Date to trick strftime, it's both simpler and more performant.
* Given that a template is expected to be parsed fewer times than rendered.
*/
static createDateFixedToTimezone(dateString: string, locale: string): LiquidDate;
private static getTimezoneOffset;
}
{
"name": "liquidjs",
"version": "10.15.0",
"version": "10.16.0",
"description": "A simple, expressive and safe Shopify / Github Pages compatible template engine in pure JavaScript.",

@@ -5,0 +5,0 @@ "main": "dist/liquid.node.cjs.js",

Sorry, the diff of this file is too big to display

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 too big to display

Sorry, the diff of this file is too big to display

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