@fibery/url-utils 2.5.0 → 2.5.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.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +2 -1
package/lib/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { parseLocator, parseScrollLocator } from "./locator-utils.js";
2
2
  import { publicParamName, publicUrlPrefix, sharingParamName } from "./url-constants.js";
3
3
  import { getAuxMatch, getPageMatch, safeDecodeURIComponent } from "./parse-page-location.js";
4
+ import { isEmptyObject } from "@fibery/helpers/src/object";
4
5
  //#region src/index.ts
5
6
  const appendQueryFlag = (url, key) => {
6
7
  const [location, ...hash] = url.split("#");
@@ -119,7 +120,7 @@ const createPureFiberyEntityUrlMatcher = ({ ownHost }) => (originalUrl, matchUse
119
120
  publicId,
120
121
  typeName,
121
122
  scrollLocator: pageMatch.params.scrollLocator,
122
- scrollLocatorParams: Object.keys(scrollLocatorParams).length ? scrollLocatorParams : void 0,
123
+ scrollLocatorParams: !isEmptyObject(scrollLocatorParams) ? scrollLocatorParams : void 0,
123
124
  context
124
125
  };
125
126
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/url-utils",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "lib"
@@ -20,6 +20,7 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
+ "@fibery/helpers": "6.0.0",
23
24
  "lodash": "4.18.1",
24
25
  "path-to-regexp": "3.0.0",
25
26
  "react-router-dom": "5.3.4"