Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: implement EngineData parsing #43

Merged
merged 7 commits into from
Aug 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix SyntaxError: Unexpected token '&&=' on Node 14
Lucas Czaplinski committed Aug 3, 2022

Unverified

No user is associated with the committer email.
commit 66d81f6aa8a92051ccef56f45f3d1ca4b16c022b
7 changes: 5 additions & 2 deletions packages/psd/src/engineData/validator.ts
Original file line number Diff line number Diff line change
@@ -30,8 +30,11 @@ export function validateEngineData(
for (const key of REQUIRED_KEYS) {
if (hasOwnProperty(engineData, key)) {
const value = engineData[key];
ok &&=
typeof value === "object" && !Array.isArray(value) && Boolean(value);
ok =
ok &&
typeof value === "object" &&
!Array.isArray(value) &&
Boolean(value);
} else {
return false;
}