8000 build(deps-dev): bump prettier from 2.8.3 to 3.1.0 by dependabot[bot] · Pull Request #105 · ably-labs/models · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

build(deps-dev): bump prettier from 2.8.3 to 3.1.0 #105

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

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"eslint-plugin-security": "^1.7.1",
"husky": "^8.0.0",
"mock-socket": "^9.1.5",
"prettier": "^2.8.3",
"prettier": "^3.1.0",
"typedoc": "^0.25.3",
"typescript": "^5.1.6",
"vitest": "^0.34.1"
Expand Down
5 changes: 4 additions & 1 deletion src/EventQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export default class EventQueue {

private readonly baseLogContext: Partial<{ scope: string; action: string }>;

constructor(private readonly logger: Logger, private eventHandler: EventHandler) {
constructor(
private readonly logger: Logger,
private eventHandler: EventHandler,
) {
this.baseLogContext = { scope: `EventQueue` };
}

Expand Down
6 changes: 5 additions & 1 deletion src/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ export default class Model<S extends SyncFuncConstraint> extends EventEmitter<Re
* @param {ModelOptions} options - Options used to configure this model instance.
* @template S - The type of the sync function that is used to synchronise the model state with your backend.
*/
constructor(readonly name: string, registration: Registration<S>, readonly options: ModelOptions) {
constructor(
readonly name: string,
registration: Registration<S>,
readonly options: ModelOptions,
) {
super();
this.logger = this.options.logger;
this.baseLogContext = { scope: `Model:${name}` };
Expand Down
5 changes: 4 additions & 1 deletion src/MutationsRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export type MutationCallbacks = {
* The MutationsRegistry class encapsulates the processing of optimistic events that can be executed on a given model.
*/
export default class MutationsRegistry {
constructor(readonly callbacks: MutationCallbacks, readonly options?: Partial<OptimisticEventOptions>) {}
constructor(
readonly callbacks: MutationCallbacks,
readonly options?: Partial<OptimisticEventOptions>,
) {}

/**
* Processes optimistic events and waits for them to be applied before returning.
Expand Down
0