@koine/browser 1.0.99 → 1.0.101

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/navigateToHash.js CHANGED
@@ -8,6 +8,6 @@ import navigateToUrl from "./navigateToUrl";
8
8
  export function navigateToHash(hash) {
9
9
  if (hash === void 0) { hash = ""; }
10
10
  var pathname = location.pathname, search = location.search;
11
- navigateToUrl(pathname + (search ? "?" + search : "") + "#" + hash, true);
11
+ navigateToUrl(pathname + (search ? "?" + search : "") + (hash ? "#" + hash : ""), true);
12
12
  }
13
13
  export default navigateToHash;
@@ -12,7 +12,7 @@ var navigateToUrl_1 = tslib_1.__importDefault(require("./navigateToUrl"));
12
12
  function navigateToHash(hash) {
13
13
  if (hash === void 0) { hash = ""; }
14
14
  var pathname = location.pathname, search = location.search;
15
- (0, navigateToUrl_1.default)(pathname + (search ? "?" + search : "") + "#" + hash, true);
15
+ (0, navigateToUrl_1.default)(pathname + (search ? "?" + search : "") + (hash ? "#" + hash : ""), true);
16
16
  }
17
17
  exports.navigateToHash = navigateToHash;
18
18
  exports.default = navigateToHash;
@@ -34,9 +34,11 @@ var storageClient = function (useSessionStorage) {
34
34
  }
35
35
  catch (_e) {
36
36
  value = stored;
37
- if (process.env["NODE_ENV"] !== "production") {
38
- console.warn("[@koine/utils:storage]: 'get' failed to parse stored value as JSON. Plain '".concat(stored, "' value is returned."));
39
- }
37
+ // if (process.env["NODE_ENV"] !== "production") {
38
+ // console.warn(
39
+ // `[@koine/utils:storage]: 'get' failed to parse stored value as JSON. Plain '${stored}' value is returned.`
40
+ // );
41
+ // }
40
42
  }
41
43
  }
42
44
  }
package/package.json CHANGED
@@ -4,14 +4,14 @@
4
4
  "main": "./node/index.js",
5
5
  "typings": "./index.d.ts",
6
6
  "dependencies": {
7
- "@koine/utils": "1.0.99",
7
+ "@koine/utils": "1.0.101",
8
8
  "ts-debounce": "^4.0.0",
9
- "@koine/dom": "1.0.99",
9
+ "@koine/dom": "1.0.101",
10
10
  "date-fns-tz": "^1.3.7",
11
11
  "tslib": "^2.4.0"
12
12
  },
13
13
  "peerDependencies": {},
14
- "version": "1.0.99",
14
+ "version": "1.0.101",
15
15
  "module": "./index.js",
16
16
  "types": "./index.d.ts"
17
17
  }
package/storageClient.js CHANGED
@@ -31,9 +31,11 @@ export var storageClient = function (useSessionStorage) {
31
31
  }
32
32
  catch (_e) {
33
33
  value = stored;
34
- if (process.env["NODE_ENV"] !== "production") {
35
- console.warn("[@koine/utils:storage]: 'get' failed to parse stored value as JSON. Plain '".concat(stored, "' value is returned."));
36
- }
34
+ // if (process.env["NODE_ENV"] !== "production") {
35
+ // console.warn(
36
+ // `[@koine/utils:storage]: 'get' failed to parse stored value as JSON. Plain '${stored}' value is returned.`
37
+ // );
38
+ // }
37
39
  }
38
40
  }
39
41
  }