@pristine-ts/common 2.0.7 → 2.0.8

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.
@@ -69,4 +69,11 @@ export declare class Request {
69
69
  * @param name The name of the header.
70
70
  */
71
71
  getHeader(name: string): string | undefined;
72
+ /**
73
+ * Returns just the path portion of `url`, with any query string stripped. Across the
74
+ * mappers that build a `Request` (Node HTTP, Express, AWS REST/HTTP API), `url` is
75
+ * either a bare path (`/products`) or a path with a query string (`/products?q=1`) —
76
+ * never a full URL with scheme/host — so this is a query-string strip, not a URL parse.
77
+ */
78
+ getPath(): string;
72
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pristine-ts/common",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "",
5
5
  "module": "dist/lib/esm/common.module.js",
6
6
  "main": "dist/lib/cjs/common.module.js",
@@ -63,5 +63,5 @@
63
63
  "src/*.{js,ts}"
64
64
  ]
65
65
  },
66
- "gitHead": "8788c711f72b7ebdcec76bc8f6a56d51af143087"
66
+ "gitHead": "c760fc252d427fec8d98dfadf06e36db232bc8c9"
67
67
  }