liquidless
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -5,3 +5,8 @@ "use strict"; | ||
exports.defaultFilters = { | ||
upcase: (value) => value.toUpperCase() | ||
upcase: (value) => value.toUpperCase(), | ||
downcase: (value) => value.toLowerCase(), | ||
capitalize: (value) => value.charAt(0).toUpperCase() + value.slice(1), | ||
toInt: (value) => parseInt(value), | ||
toFloat: (value) => parseFloat(value), | ||
toString: (value) => value.toString(), | ||
}; |
@@ -25,5 +25,3 @@ "use strict"; | ||
if (args.length > 0) { | ||
parsedArgs = args[0].split(',') | ||
.map(arg => arg.trim()) | ||
.map(arg => isNaN(parseInt(arg)) ? arg : parseInt(arg)); | ||
parsedArgs = args[0].split(',').map(arg => arg.trim()); | ||
} | ||
@@ -30,0 +28,0 @@ variableValue = combinedFilters[filterMethod] |
{ | ||
"name": "liquidless", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Shopify's Liquid template engine, but less powerful", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -77,1 +77,5 @@ # liquidless | ||
- `upcase` - converts each character of a string to uppercase | ||
- `downcase` - each character of a string to lowercase | ||
- `toInt` - converts a value to Int | ||
- `toFloat` - converts a value to Float | ||
- `toString` - converts a value to String |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
6401
79
81