@evolu/common 1.0.12 → 1.0.13
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/src/Platform.d.ts +1 -1
- package/dist/src/Platform.js +1 -1
- package/package.json +1 -1
- package/src/Platform.ts +1 -1
package/dist/src/Platform.d.ts
CHANGED
|
@@ -30,5 +30,5 @@ export declare const AppState: Context.Tag<AppState, AppState>;
|
|
|
30
30
|
* To detect whether DOM can be used.
|
|
31
31
|
* https://github.com/facebook/fbjs/blob/main/packages/fbjs/src/core/ExecutionEnvironment.js
|
|
32
32
|
*/
|
|
33
|
-
export declare const
|
|
33
|
+
export declare const canUseDom: boolean;
|
|
34
34
|
//# sourceMappingURL=Platform.d.ts.map
|
package/dist/src/Platform.js
CHANGED
|
@@ -19,6 +19,6 @@ export const AppState = Context.Tag("evolu/AppState");
|
|
|
19
19
|
* To detect whether DOM can be used.
|
|
20
20
|
* https://github.com/facebook/fbjs/blob/main/packages/fbjs/src/core/ExecutionEnvironment.js
|
|
21
21
|
*/
|
|
22
|
-
export const
|
|
22
|
+
export const canUseDom = !!(typeof window !== "undefined" &&
|
|
23
23
|
window.document &&
|
|
24
24
|
window.document.createElement);
|
package/package.json
CHANGED
package/src/Platform.ts
CHANGED
|
@@ -66,7 +66,7 @@ export const AppState = Context.Tag<AppState>("evolu/AppState");
|
|
|
66
66
|
* To detect whether DOM can be used.
|
|
67
67
|
* https://github.com/facebook/fbjs/blob/main/packages/fbjs/src/core/ExecutionEnvironment.js
|
|
68
68
|
*/
|
|
69
|
-
export const
|
|
69
|
+
export const canUseDom = !!(
|
|
70
70
|
typeof window !== "undefined" &&
|
|
71
71
|
window.document &&
|
|
72
72
|
window.document.createElement
|