File tree Expand file tree Collapse file tree 6 files changed +21
-26
lines changed
Expand file tree Collapse file tree 6 files changed +21
-26
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,10 @@ Parses the input url.
1010#### Params
1111
1212- ** String** ` url ` : The input url.
13- - ** Boolean|Object** ` normalize ` : Whether to normalize the url or not. Default is ` false ` . If ` true ` , the url will
14- be normalized. If an object, it will be the
15- options object sent to [ ` normalize-url ` ] ( https://github.com/sindresorhus/normalize-url ) .
16-
17- For SSH urls, normalize won't work.
13+ - ** Boolean|Object** ` normalize ` : Whether to normalize the url or not. Default is ` false ` . If ` true ` , the url will be normalized. If an object,
14+ it will be the options object sent to
15+ [ ` normalize-url ` ] ( https://github.com/sindresorhus/normalize-url ) . For
16+ SSH urls, normalize won't work.
1817
1918#### Return
2019- ** Object** An object containing the following fields:
Original file line number Diff line number Diff line change @@ -162,11 +162,10 @@ Parses the input url.
162162#### Params
163163
164164- ** String** ` url ` : The input url.
165- - ** Boolean|Object** ` normalize ` : Whether to normalize the url or not. Default is ` false ` . If ` true ` , the url will
166- be normalized. If an object, it will be the
167- options object sent to [ ` normalize-url ` ] ( https://github.com/sindresorhus/normalize-url ) .
168-
169- For SSH urls, normalize won't work.
165+ - ** Boolean|Object** ` normalize ` : Whether to normalize the url or not. Default is ` false ` . If ` true ` , the url will be normalized. If an object,
166+ it will be the options object sent to
167+ [ ` normalize-url ` ] ( https://github.com/sindresorhus/normalize-url ) . For
168+ SSH urls, normalize won't work.
170169
171170#### Return
172171- ** Object** An object containing the following fields:
Original file line number Diff line number Diff line change @@ -205,11 +205,10 @@ function normalizeUrl(urlString, options) {
205205 * @function
206206 * @param {String } url The input url.
207207 * @param {Boolean|Object } normalize Whether to normalize the url or not.
208- * Default is `false`. If `true`, the url will
209- * be normalized. If an object, it will be the
210- * options object sent to [`normalize-url`](https://github.com/sindresorhus/normalize-url).
211- *
212- * For SSH urls, normalize won't work.
208+ * Default is `false`. If `true`, the url will be normalized. If an object,
209+ * it will be the options object sent to
210+ * [`normalize-url`](https://github.com/sindresorhus/normalize-url). For
211+ * SSH urls, normalize won't work.
213212 *
214213 * @return {Object } An object containing the following fields:
215214 *
Original file line number Diff line number Diff line change @@ -203,11 +203,10 @@ function normalizeUrl(urlString, options) {
203203 * @function
204204 * @param {String } url The input url.
205205 * @param {Boolean|Object } normalize Whether to normalize the url or not.
206- * Default is `false`. If `true`, the url will
207- * be normalized. If an object, it will be the
208- * options object sent to [`normalize-url`](https://github.com/sindresorhus/normalize-url).
209- *
210- * For SSH urls, normalize won't work.
206+ * Default is `false`. If `true`, the url will be normalized. If an object,
207+ * it will be the options object sent to
208+ * [`normalize-url`](https://github.com/sindresorhus/normalize-url). For
209+ * SSH urls, normalize won't work.
211210 *
212211 * @return {Object } An object containing the following fields:
213212 *
Original file line number Diff line number Diff line change 2121 },
2222 "scripts" : {
2323 "test" : " node test/index.mjs && tsd" ,
24- "build" : " pkgroll"
24+ "build" : " pkgroll && sed -i '' 's|/ \\ *!|/**|g' dist/index.js "
2525 },
2626 "repository" : {
2727 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -13,11 +13,10 @@ import parsePath from "parse-path";
1313 * @function
1414 * @param {String } url The input url.
1515 * @param {Boolean|Object } normalize Whether to normalize the url or not.
16- * Default is `false`. If `true`, the url will
17- * be normalized. If an object, it will be the
18- * options object sent to [`normalize-url`](https://github.com/sindresorhus/normalize-url).
19- *
20- * For SSH urls, normalize won't work.
16+ * Default is `false`. If `true`, the url will be normalized. If an object,
17+ * it will be the options object sent to
18+ * [`normalize-url`](https://github.com/sindresorhus/normalize-url). For
19+ * SSH urls, normalize won't work.
2120 *
2221 * @return {Object } An object containing the following fields:
2322 *
You can’t perform that action at this time.
0 commit comments