Skip to content

Commit 13785b5

Browse files
committedMar 28, 2021
increment packages
1 parent 0c710b7 commit 13785b5

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed
 

‎.eslintrc.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
2-
"extends": [
3-
"airbnb-base"
4-
],
2+
"extends": [],
53
"env": {
64
"browser": true
75
},
8-
"parser": "babel-eslint",
6+
"parser": "@babel/eslint-parser",
97
"parserOptions": {
10-
"sourceType": "module"
8+
"sourceType": "module",
9+
"requireConfigFile": false
1110
},
1211
"globals": {
1312
"jasmine": false,

‎form-urlencoded.dist.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var _default = function _default(data) {
1818
whitespace = _opts$whitespace === void 0 ? '+' : _opts$whitespace;
1919

2020
var encode = function encode(value) {
21-
return String(value).replace(/(?:[\0-\x1F"-&\+-\}\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g, encodeURIComponent).replace(/ /g, whitespace).replace(/[!'()~*]/g, function (ch) {
21+
return String(value).replace(/(?:(?![ !'-\*~])[\s\S])/g, encodeURIComponent).replace(/ /g, whitespace).replace(/[!'()~*]/g, function (ch) {
2222
return "%".concat(ch.charCodeAt().toString(16).slice(-2).toUpperCase());
2323
});
2424
};

‎package.json

+8-9
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,14 @@
4242
"json encode"
4343
],
4444
"devDependencies": {
45-
"@babel/cli": "^7.10.1",
46-
"@babel/core": "^7.10.1",
47-
"@babel/plugin-transform-unicode-regex": "^7.10.1",
48-
"@babel/preset-env": "^7.10.1",
49-
"babel-eslint": "^10.0.3",
50-
"eslint": "^6.6.0",
51-
"eslint-config-airbnb-base": "^14.0.0",
52-
"eslint-plugin-import": "^2.14.0",
53-
"ava": "^3.8.2"
45+
"@babel/cli": "^7.13.10",
46+
"@babel/core": "^7.13.13",
47+
"@babel/eslint-parser": "7.13.10",
48+
"@babel/plugin-transform-unicode-regex": "^7.12.13",
49+
"@babel/preset-env": "^7.13.12",
50+
"ava": "^3.15.0",
51+
"eslint": "^7.23.0",
52+
"eslint-plugin-import": "^2.14.0"
5453
},
5554
"scripts": {
5655
"test": "ava form-urlencoded.spec.js",

0 commit comments

Comments
 (0)
Please sign in to comment.