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

liquidless

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liquidless - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

3

dist/filters.js

@@ -13,5 +13,6 @@ "use strict";

const QUOTED_STRING_REGEX = /^(["'])(?<string>.+)\1$/;
const splitPattern = /,(?![^{}]*})/g;
const parseArgs = (args) => args.length > 0
? args
.split(',')
.split(splitPattern)
.map((arg) => arg.trim())

@@ -18,0 +19,0 @@ .map((arg) => QUOTED_STRING_REGEX.test(arg) ? arg.slice(1, -1) : JSON.parse(arg))

@@ -20,3 +20,4 @@ "use strict";

expressions[i] = filters.reduce((variableValue, filter) => {
const [filterMethod, args] = filter.split(':');
const splitPattern = /:(?![^{}]*})/g;
const [filterMethod, args] = filter.split(splitPattern);
const parsedArgs = (0, filters_1.parseArgs)(args ?? '');

@@ -23,0 +24,0 @@ return combinedFilters[filterMethod]

{
"name": "liquidless",
"version": "1.3.1",
"version": "1.3.2",
"description": "Shopify's Liquid template engine, but less powerful",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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