Skip to content

Commit 43ebf15

Browse files
committed
ran prettier
1 parent 065465c commit 43ebf15

13 files changed

Lines changed: 27 additions & 24 deletions

.github/workflows/push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
node-version: "24.x"
1717
registry-url: "https://registry.npmjs.org"
1818
- run: npm ci
19-
- run: npm publish --provenance --access public
19+
# - run: npm publish --provenance --access public
2020
env:
2121
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ useRippleEffect(
108108
const data = await response.json();
109109
todoStore.todos.value = data;
110110
},
111-
todoStore // Automatically manages loading and error signals
111+
todoStore, // Automatically manages loading and error signals
112112
);
113113

114114
// Trigger from UI

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/ripple.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
export { computed, effect } from "@preact/signals";
2-
import { RippleFunctionInterface, RippleInterface } from "../interfaces/ripple.interface";
2+
import {
3+
RippleFunctionInterface,
4+
RippleInterface,
5+
} from "../interfaces/ripple.interface";
36
import { ripplePrimitive } from "../utils/ripplePrimitive";
47
import { rippleObject } from "../utils/rippleObject";
58
import { rippleProxy } from "../utils/rippleProxy";
@@ -9,13 +12,13 @@ const ripple = function <T>(initial: T): RippleInterface<T> {
912
} as RippleFunctionInterface;
1013

1114
function isObject(value: unknown): value is object | Array<any> {
12-
return (typeof value === 'object' && value !== null) || Array.isArray(value);
15+
return (typeof value === "object" && value !== null) || Array.isArray(value);
1316
}
1417

1518
Object.assign(ripple, {
1619
proxy: rippleProxy,
1720
primitive: ripplePrimitive,
18-
object: rippleObject
21+
object: rippleObject,
1922
});
2023

2124
export { ripple };

src/core/useRipple.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { RippleInterface } from "../interfaces/ripple.interface";
33

44
export function useRipple<T, S = T>(
55
ripple: RippleInterface<T>,
6-
selector: (value: T) => S = (v) => v as unknown as S
6+
selector: (value: T) => S = (v) => v as unknown as S,
77
): S {
88
return useSyncExternalStore(
99
(cb) => ripple.subscribe(cb, selector),
1010
() => selector(ripple.value),
11-
() => selector(ripple.peek())
11+
() => selector(ripple.peek()),
1212
);
1313
}

src/core/useRippleEffect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { OptionsInterface } from "../interfaces/options.interface";
77
export function useRippleEffect(
88
event: string,
99
handler: HandlerType,
10-
options?: OptionsInterface
10+
options?: OptionsInterface,
1111
) {
1212
const stableHandler = useRef(handler);
1313

src/types/handler.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export type HandlerType = (
22
payload?: any,
3-
tools?: { aborted: () => boolean }
3+
tools?: { aborted: () => boolean },
44
) => void | Promise<any>;

src/types/insex.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ declare function ripple<T>(initial: T): RippleInterface<T>;
22
declare namespace ripple {
33
export function proxy<T extends object>(initial: T): RippleInterface<T>;
44
export function signal<T>(initial: T): RippleInterface<T>;
5-
}
5+
}

src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const RIPPLE_BRAND = Symbol("signal");
22
export let isBatching = false;
3-
export let dirtyStores = new Set<() => void>();
3+
export let dirtyStores = new Set<() => void>();

src/utils/createProxy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { dirtyStores, isBatching, RIPPLE_BRAND } from "./constants";
22

33
export function createProxy<T extends object>(
44
target: T,
5-
notify: () => void
5+
notify: () => void,
66
): T {
77
const proxy = new Proxy(target, {
88
get(obj, key, receiver) {
@@ -44,4 +44,4 @@ export function createProxy<T extends object>(
4444
},
4545
});
4646
return proxy;
47-
}
47+
}

0 commit comments

Comments
 (0)