@uniqu/url 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder.cjs +1 -1
- package/dist/builder.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/builder.cjs
CHANGED
|
@@ -80,7 +80,7 @@ function serializeComparison(field, op, value) {
|
|
|
80
80
|
const WORD_RE = /^[A-Za-z0-9_.]+$/u;
|
|
81
81
|
const NUMBER_RE = /^-?(?:0|[1-9]\d*)(?:\.\d+)?$/u;
|
|
82
82
|
function quote(str) {
|
|
83
|
-
return `'${str.replace(/\\/g, "\\\\").replace(/'/g, "\\'").replace(/%/g, "%25")}'`;
|
|
83
|
+
return `'${str.replace(/\\/g, "\\\\").replace(/'/g, "\\'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/\t/g, "%09").replace(/\n/g, "%0A").replace(/\r/g, "%0D")}'`;
|
|
84
84
|
}
|
|
85
85
|
function serializeValue(value) {
|
|
86
86
|
if (value === null) return "null";
|
package/dist/builder.mjs
CHANGED
|
@@ -79,7 +79,7 @@ function serializeComparison(field, op, value) {
|
|
|
79
79
|
const WORD_RE = /^[A-Za-z0-9_.]+$/u;
|
|
80
80
|
const NUMBER_RE = /^-?(?:0|[1-9]\d*)(?:\.\d+)?$/u;
|
|
81
81
|
function quote(str) {
|
|
82
|
-
return `'${str.replace(/\\/g, "\\\\").replace(/'/g, "\\'").replace(/%/g, "%25")}'`;
|
|
82
|
+
return `'${str.replace(/\\/g, "\\\\").replace(/'/g, "\\'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/\t/g, "%09").replace(/\n/g, "%0A").replace(/\r/g, "%0D")}'`;
|
|
83
83
|
}
|
|
84
84
|
function serializeValue(value) {
|
|
85
85
|
if (value === null) return "null";
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniqu/url",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "URL query string parser producing the Uniqu canonical query format",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Artem Maltsev",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dist"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@uniqu/core": "^0.1.
|
|
48
|
+
"@uniqu/core": "^0.1.7"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"pub": "pnpm publish --access public",
|