@koine/browser 2.0.0-beta.18 → 2.0.0-beta.19
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/listenUrlSearch.js +2 -1
- package/package.json +3 -3
package/listenUrlSearch.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __values } from "tslib";
|
|
2
|
+
import { isBrowser } from "@koine/utils";
|
|
2
3
|
import { on } from "@koine/dom";
|
|
3
4
|
function extendHistoryMethod(fn, runHandlers, before) {
|
|
4
5
|
return function interceptor() {
|
|
@@ -15,7 +16,7 @@ function extendHistoryMethod(fn, runHandlers, before) {
|
|
|
15
16
|
return result;
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
|
-
var prevSearch = location.search;
|
|
19
|
+
var prevSearch = isBrowser ? location.search : "";
|
|
19
20
|
function runHandlers() {
|
|
20
21
|
var e_1, _a;
|
|
21
22
|
var newSearch = location.search;
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "@koine/browser",
|
|
3
3
|
"sideEffects": false,
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@koine/dom": "2.0.0-beta.
|
|
6
|
-
"@koine/utils": "2.0.0-beta.
|
|
5
|
+
"@koine/dom": "2.0.0-beta.19",
|
|
6
|
+
"@koine/utils": "2.0.0-beta.19"
|
|
7
7
|
},
|
|
8
8
|
"types": "./index.d.ts",
|
|
9
9
|
"type": "module",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {},
|
|
68
|
-
"version": "2.0.0-beta.
|
|
68
|
+
"version": "2.0.0-beta.19"
|
|
69
69
|
}
|