This commit is contained in:
harttle
2018-10-08 10:39:08 +08:00
parent 6af631b77b
commit b73ff69592
8 changed files with 128 additions and 118 deletions
+7 -2
View File
@@ -1,5 +1,5 @@
/* /*
* liquidjs@6.0.1, https://github.com/liquidjs * liquidjs@6.1.0, https://github.com/liquidjs
* (c) 2016-2018 harttle * (c) 2016-2018 harttle
* Released under the MIT License. * Released under the MIT License.
*/ */
@@ -3334,7 +3334,12 @@ var filters = {
'upcase': function upcase(str) { 'upcase': function upcase(str) {
return stringify$1(str).toUpperCase(); return stringify$1(str).toUpperCase();
}, },
'url_encode': encodeURIComponent 'url_decode': function url_decode(x) {
return x.split('+').map(decodeURIComponent).join(' ');
},
'url_encode': function url_encode(x) {
return x.split(' ').map(encodeURIComponent).join('+');
}
}; };
function escape(str) { function escape(str) {
+1 -1
View File
File diff suppressed because one or more lines are too long
+7 -2
View File
@@ -1,5 +1,5 @@
/* /*
* liquidjs@6.0.1, https://github.com/liquidjs * liquidjs@6.1.0, https://github.com/liquidjs
* (c) 2016-2018 harttle * (c) 2016-2018 harttle
* Released under the MIT License. * Released under the MIT License.
*/ */
@@ -3280,7 +3280,12 @@
'upcase': function upcase(str) { 'upcase': function upcase(str) {
return stringify$1(str).toUpperCase(); return stringify$1(str).toUpperCase();
}, },
'url_encode': encodeURIComponent 'url_decode': function url_decode(x) {
return x.split('+').map(decodeURIComponent).join(' ');
},
'url_encode': function url_encode(x) {
return x.split(' ').map(encodeURIComponent).join('+');
}
}; };
function escape(str) { function escape(str) {
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "liquidjs", "name": "liquidjs",
"version": "6.0.1", "version": "6.1.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "liquidjs", "name": "liquidjs",
"version": "6.0.1", "version": "6.1.0",
"description": "Liquid template engine by pure JavaScript: compatible to shopify, easy to extend.", "description": "Liquid template engine by pure JavaScript: compatible to shopify, easy to extend.",
"main": "dist/liquid.common.js", "main": "dist/liquid.common.js",
"module": "src/index.js", "module": "src/index.js",