Skip to content

Commit

Permalink
chore: update prettier with its changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeistrich committed Sep 17, 2024
1 parent 3d87b62 commit c973717
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"json": "^11.0.0",
"ksuid": "^3.0.0",
"next": "^14",
"prettier": "^3.2.5",
"prettier": "3.3.3",
"react": "18.3.1",
"react-native": "^0.74.1",
"react-native-mmkv": "^2.12.2",
Expand Down Expand Up @@ -137,4 +137,4 @@
"@commitlint/config-conventional"
]
}
}
}
2 changes: 1 addition & 1 deletion src/ObservableObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ function updateNodesAndNotify(
isPrim && isRoot ? node : childNode,
newValue,
prevValue,
level ?? prevValue === undefined ? -1 : hasADiff ? 0 : 1,
(level ?? prevValue === undefined) ? -1 : hasADiff ? 0 : 1,
whenOptimizedOnlyIf,
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/react/Show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function Show<T>({ if: if_, ifReady, else: else_, $value, wrap, children
? isFunction(children)
? () => children($value ? $value.get() : value)
: (children as any)
: else_ ?? null,
: (else_ ?? null),
{ skipCheck: true },
);

Expand Down
2 changes: 1 addition & 1 deletion src/sync-plugins/crud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export function syncedCrud<TRemote extends object, TLocal = TRemote, TAsOption e
if (asType === 'value') {
return transformed.length > 0
? transformed[0]
: (((isLastSyncMode && lastSync) || fieldDeleted) && value) ?? null;
: ((((isLastSyncMode && lastSync) || fieldDeleted) && value) ?? null);
} else {
return resultsToOutType(transformed);
}
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
# bun ./bun.lockb --hash: 1837E919E7D1188F-7f3af4e7580c7a62-CF4244ECA989D61C-246ffc5ea39d408d
# bun ./bun.lockb --hash: C929D573C179AADC-936fc6c230d9dbe1-9EC1A7C38F22C50D-aed46933371b88ab


"@aashutoshrathi/word-wrap@^1.2.3":
Expand Down Expand Up @@ -13232,10 +13232,10 @@ prettier@^2.8.3:
resolved "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==

prettier@^3.2.5:
version "3.2.5"
resolved "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz"
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==
prettier@^3.3.3:
version "3.3.3"
resolved "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz"
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==

pretty-format@^26.6.2:
version "26.6.2"
Expand Down

0 comments on commit c973717

Please sign in to comment.