mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user