encodeurl 1.0.1 → 1.0.2

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/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ 1.0.2 / 2018-01-21
2
+ ==================
3
+
4
+ * Fix encoding `%` as last character
5
+
1
6
  1.0.1 / 2016-06-09
2
7
  ==================
3
8
 
package/README.md CHANGED
@@ -10,6 +10,10 @@ Encode a URL to a percent-encoded form, excluding already-encoded sequences
10
10
 
11
11
  ## Installation
12
12
 
13
+ This is a [Node.js](https://nodejs.org/en/) module available through the
14
+ [npm registry](https://www.npmjs.com/). Installation is done using the
15
+ [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
16
+
13
17
  ```sh
14
18
  $ npm install encodeurl
15
19
  ```
package/index.js CHANGED
@@ -19,7 +19,7 @@ module.exports = encodeUrl
19
19
  * @private
20
20
  */
21
21
 
22
- var ENCODE_CHARS_REGEXP = /(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]))+/g
22
+ var ENCODE_CHARS_REGEXP = /(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g
23
23
 
24
24
  /**
25
25
  * RegExp to match unmatched surrogate pair.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "encodeurl",
3
3
  "description": "Encode a URL to a percent-encoded form, excluding already-encoded sequences",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "contributors": [
6
6
  "Douglas Christopher Wilson <doug@somethingdoug.com>"
7
7
  ],
@@ -13,11 +13,13 @@
13
13
  ],
14
14
  "repository": "pillarjs/encodeurl",
15
15
  "devDependencies": {
16
- "eslint": "2.11.1",
17
- "eslint-config-standard": "5.3.1",
18
- "eslint-plugin-promise": "1.3.2",
19
- "eslint-plugin-standard": "1.3.2",
20
- "istanbul": "0.4.3",
16
+ "eslint": "3.19.0",
17
+ "eslint-config-standard": "10.2.1",
18
+ "eslint-plugin-import": "2.8.0",
19
+ "eslint-plugin-node": "5.2.1",
20
+ "eslint-plugin-promise": "3.6.0",
21
+ "eslint-plugin-standard": "3.0.1",
22
+ "istanbul": "0.4.5",
21
23
  "mocha": "2.5.3"
22
24
  },
23
25
  "files": [
@@ -30,7 +32,7 @@
30
32
  "node": ">= 0.8"
31
33
  },
32
34
  "scripts": {
33
- "lint": "eslint **/*.js",
35
+ "lint": "eslint .",
34
36
  "test": "mocha --reporter spec --bail --check-leaks test/",
35
37
  "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
36
38
  "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"