bare-url 2.4.0 → 2.4.1

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/binding.c CHANGED
@@ -8,8 +8,6 @@
8
8
  #include <utf.h>
9
9
  #include <utf/string.h>
10
10
 
11
- static js_type_tag_t bare_url__tag = {0x6f1fd92f476698b0, 0x93b59c349143ee50};
12
-
13
11
  static js_value_t *
14
12
  bare_url_parse (js_env_t *env, js_callback_info_t *info) {
15
13
  int err;
@@ -145,9 +145,11 @@ class URLSearchParams {
145
145
 
146
146
  this._params = new Map()
147
147
 
148
- for (const sequence of input.split('&')) {
148
+ for (let sequence of input.split('&')) {
149
149
  if (sequence.length === 0) continue
150
150
 
151
+ sequence = sequence.replace(/\+/g, ' ')
152
+
151
153
  let i = sequence.indexOf('=')
152
154
  if (i === -1) i = sequence.length
153
155
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-url",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "WHATWG URL implementation for JavaScript",
5
5
  "exports": {
6
6
  "./package": "./package.json",
@@ -26,7 +26,9 @@
26
26
  ],
27
27
  "addon": true,
28
28
  "scripts": {
29
- "test": "prettier . --check && bare test.js"
29
+ "format": "prettier --write . && lunte --fix",
30
+ "lint": "prettier --check . && lunte",
31
+ "test": "brittle-bare --coverage test.js"
30
32
  },
31
33
  "repository": {
32
34
  "type": "git",
@@ -45,6 +47,7 @@
45
47
  "brittle": "^3.3.2",
46
48
  "cmake-bare": "^1.1.6",
47
49
  "cmake-fetch": "^1.0.0",
50
+ "lunte": "^1.6.0",
48
51
  "prettier": "^3.3.3",
49
52
  "prettier-config-holepunch": "^2.0.0"
50
53
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file