Fix many JS vulns, fix tests (#1775)

* fix: lint problem

* fix: ignore malformed JSON file for FlowJS

* fix: add missing @types/jest package

* chore: update TypeScript version

* chore: update all eslint deps

Includes updating and installing missing/wrong peer deps

* chore: update all Jest deps

* chore: replace Jest config with jest.config.ts

* fix: make root Jest tests ignore Example folders

* chore: update css-select dep

* chore: update css-tree to latest 1.x version

2.x broke tests so left a 1.x

* chore: upgrade ansi-regex to close JS vuln

* chore: upgrade ejs to close JS vuln

* chore: upgrade async to close JS vuln

* chore: upgrade simple-plist to close JS vuln
This commit is contained in:
Stephen Pittman
2022-07-15 00:25:55 +10:00
committed by GitHub
parent 1dc42ea8a8
commit 2a44346049
16 changed files with 1689 additions and 1643 deletions

View File

@@ -3,17 +3,8 @@ import { parse } from './transform';
import { NumberProp, TransformedProps, TransformProps } from './types';
function appendTransformProps(props: TransformedProps) {
const {
x,
y,
originX,
originY,
scaleX,
scaleY,
rotation,
skewX,
skewY,
} = props;
const { x, y, originX, originY, scaleX, scaleY, rotation, skewX, skewY } =
props;
appendTransform(
x + originX,
y + originY,