Comparing version 1.1.0 to 1.1.1
@@ -31,4 +31,3 @@ (() => { | ||
function cloneStyles(styles) { | ||
const props = Object.values(styles).filter((s) => s !== "transition"); | ||
const entries = props.map((p) => [p, styles[p]]); | ||
const entries = Object.entries(styles).filter(([k]) => !Object.is(parseInt(k), NaN)).map(([, p]) => [p, styles[p]]); | ||
return Object.fromEntries(entries); | ||
@@ -35,0 +34,0 @@ } |
@@ -32,4 +32,3 @@ var __defProp = Object.defineProperty; | ||
function cloneStyles(styles) { | ||
const props = Object.values(styles).filter((s) => s !== "transition"); | ||
const entries = props.map((p) => [p, styles[p]]); | ||
const entries = Object.entries(styles).filter(([k]) => !Object.is(parseInt(k), NaN)).map(([, p]) => [p, styles[p]]); | ||
return Object.fromEntries(entries); | ||
@@ -36,0 +35,0 @@ } |
@@ -6,4 +6,6 @@ import { EASE } from "./generator"; | ||
// CSSStyleDeclaration is actually an array of props! | ||
const props = Object.values(styles).filter((s) => s !== "transition"); | ||
const entries = props.map((p) => [p, styles[p]]); | ||
// on blink, there is also the props as keys, so we filter these out | ||
const entries = Object.entries(styles) | ||
.filter(([k]) => !Object.is(parseInt(k), NaN)) // comparing NaN is never true moment | ||
.map(([, p]) => [p, styles[p]]); | ||
return Object.fromEntries(entries); | ||
@@ -10,0 +12,0 @@ } |
{ | ||
"name": "crossani", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A silky smooth declarative animation library for the web.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
42902
0