virtua 0.34.1 → 0.34.2
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/lib/svelte/utils.js +1 -2
- package/package.json +1 -1
package/lib/svelte/utils.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { afterUpdate, beforeUpdate } from "svelte";
|
|
2
|
-
import { NULL } from "../core/utils";
|
|
3
2
|
export const onUpdate = (cb, before) => {
|
|
4
3
|
(before ? beforeUpdate : afterUpdate)(() => {
|
|
5
4
|
cb();
|
|
@@ -8,7 +7,7 @@ export const onUpdate = (cb, before) => {
|
|
|
8
7
|
export const styleToString = (obj) => {
|
|
9
8
|
return Object.keys(obj).reduce((acc, k) => {
|
|
10
9
|
const value = obj[k];
|
|
11
|
-
if (value ==
|
|
10
|
+
if (value == null) {
|
|
12
11
|
return acc;
|
|
13
12
|
}
|
|
14
13
|
return acc + `${k}:${value};`;
|
package/package.json
CHANGED