@uniqu/url 0.0.4 → 0.0.6

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/dist/index.cjs CHANGED
@@ -17,7 +17,7 @@ let _uniqu_core = require("@uniqu/core");
17
17
  type: "string"
18
18
  },
19
19
  {
20
- r: /^-?(?:0(?!\d)|[1-9]\d*)(?:\.\d+)?(?!\d)/u,
20
+ r: /^-?(?:0(?!\d)|[1-9]\d*)(?:\.\d+)?(?!\w)/u,
21
21
  type: "number"
22
22
  },
23
23
  {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
- import { Uniquery, UniqueryInsights } from '@uniqu/core';
1
+ import { Uniquery, FilterExpr, UniqueryControls, UniqueryInsights } from '@uniqu/core';
2
2
 
3
- /** Result of parsing a URL query string. Narrows `Uniquery.insights` from optional to required (eagerly computed during parsing). */
3
+ /** Result of parsing a URL query string. Narrows optional fields to required (always produced by the parser). */
4
4
  interface UrlQuery extends Uniquery {
5
+ filter: FilterExpr;
6
+ controls: UniqueryControls;
5
7
  insights: UniqueryInsights;
6
8
  }
7
9
  /**
package/dist/index.mjs CHANGED
@@ -16,7 +16,7 @@ import { isPrimitive } from "@uniqu/core";
16
16
  type: "string"
17
17
  },
18
18
  {
19
- r: /^-?(?:0(?!\d)|[1-9]\d*)(?:\.\d+)?(?!\d)/u,
19
+ r: /^-?(?:0(?!\d)|[1-9]\d*)(?:\.\d+)?(?!\w)/u,
20
20
  type: "number"
21
21
  },
22
22
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniqu/url",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "URL query string parser producing the Uniqu canonical query format",
5
5
  "license": "MIT",
6
6
  "author": "Artem Maltsev",
@@ -28,7 +28,7 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
- "@uniqu/core": "^0.0.4"
31
+ "@uniqu/core": "^0.0.6"
32
32
  },
33
33
  "scripts": {
34
34
  "pub": "pnpm publish --access public",