Socket
Socket
Sign inDemoInstall

liquidjs

Package Overview
Dependencies
Maintainers
1
Versions
206
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.12.0 to 10.13.0

4

dist/filters/date.d.ts
import { FilterImpl } from '../template';
export declare function date(this: FilterImpl, v: string | Date, format?: string, timezoneOffset?: number | string): string | Date;
export declare function date_to_xmlschema(this: FilterImpl, v: string | Date): string | Date;
export declare function date_to_rfc822(this: FilterImpl, v: string | Date): string | Date;
export declare function date_to_string(this: FilterImpl, v: string | Date, type?: string, style?: string): string | Date;
export declare function date_to_long_string(this: FilterImpl, v: string | Date, type?: string, style?: string): string | Date;
export declare function escape(str: string): string;
export declare function xml_escape(str: string): string;
export declare function escape_once(str: string): string;
export declare function newline_to_br(v: string): string;
export declare function strip_html(v: string): string;

20

dist/filters/misc.d.ts
import { identify } from '../util/underscore';
import { FilterImpl } from '../template';
export declare function Default<T1 extends boolean, T2>(this: FilterImpl, value: T1, defaultValue: T2, ...args: Array<[string, any]>): T1 | T2;
export declare function json(value: any, space?: number): string;
export declare const raw: {
raw: boolean;
handler: typeof identify;
declare function defaultFilter<T1 extends boolean, T2>(this: FilterImpl, value: T1, defaultValue: T2, ...args: Array<[string, any]>): T1 | T2;
declare function json(value: any, space?: number): string;
declare function inspect(value: any, space?: number): string;
declare function to_integer(value: any): number;
declare const _default: {
default: typeof defaultFilter;
raw: {
raw: boolean;
handler: typeof identify;
};
jsonify: typeof json;
to_integer: typeof to_integer;
json: typeof json;
inspect: typeof inspect;
};
export default _default;

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

/**
* String related filters
*
* * prefer stringify() to String() since `undefined`, `null` should eval ''
*/
export declare function append(v: string, arg: string): string;

@@ -19,1 +24,4 @@ export declare function prepend(v: string, arg: string): string;

export declare function truncatewords(v: string, words?: number, o?: string): string;
export declare function normalize_whitespace(v: string): string;
export declare function number_of_words(input: string, mode?: 'cjk' | 'auto'): number;
export declare function array_to_sentence_string(array: unknown[], connector?: string): unknown;
export declare const url_decode: (x: string) => string;
export declare const url_encode: (x: string) => string;
export declare const cgi_escape: (x: string) => string;
export declare const uri_escape: (x: string) => string;
declare const rSlugifyReplacers: {
raw: RegExp;
default: RegExp;
pretty: RegExp;
ascii: RegExp;
latin: RegExp;
none: null;
};
export declare function slugify(str: string, mode?: keyof typeof rSlugifyReplacers, cased?: boolean): string;
export {};
{
"name": "liquidjs",
"version": "10.12.0",
"version": "10.13.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