quasiurl 1.1.6 → 1.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.
Files changed (2) hide show
  1. package/README.md +7 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -11,16 +11,18 @@ Unlike `URL`, `QuasiURL`:
11
11
  - preserves templating characters without URL-encoding them;
12
12
  - doesn't implement the entire `URL` spec.
13
13
 
14
- ```
14
+ ```js
15
+ import { QuasiURL } from "quasiurl";
16
+
15
17
  new URL("/x").href
16
- > TypeError: URL constructor: /x is not a valid URL.
18
+ // TypeError: URL constructor: /x is not a valid URL.
17
19
 
18
20
  new QuasiURL("/x").href
19
- > "/x"
21
+ // "/x"
20
22
 
21
23
  new URL("https://a.aa/x{/:name}").pathname
22
- > "/x%7B/:name%7D"
24
+ // "/x%7B/:name%7D"
23
25
 
24
26
  new QuasiURL("https://a.aa/x{/:name}").pathname
25
- > "/x{/:name}"
27
+ // "/x{/:name}"
26
28
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasiurl",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "URL for templating",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",