Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 6, 2024
1 parent f79b5ea commit f509c2d
Show file tree
Hide file tree
Showing 7 changed files with 1,250 additions and 1,099 deletions.
4 changes: 2 additions & 2 deletions add-sync-map/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export type WithoutTime<Value extends SyncMapTypes | SyncMapTypes[]> = {
[WITH_TIME]: false
}

export type SyncMapData<Value extends SyncMapValues> = { id: string } & {
export type SyncMapData<Value extends SyncMapValues> = {
[Key in keyof Value]: WithoutTime<Value[Key]> | WithTime<Value[Key]>
}
} & { id: string }

/**
* Add last changed time to value to use in conflict resolution.
Expand Down
4 changes: 2 additions & 2 deletions add-sync-map/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ type TaskValue = {
text: string
}

type TaskRecord = TaskValue & {
type TaskRecord = {
finishedChanged: number
textChanged: number
}
} & TaskValue

let [
createTask,
Expand Down
22 changes: 11 additions & 11 deletions base-server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,25 +466,29 @@ type ActionCallbacks<
TypeAction extends Action,
Data extends object,
Headers extends object
> = (
> = {
finally?: ActionFinally<TypeAction, Data, Headers>
resend?: Resender<TypeAction, Data, Headers>
} & (
| {
access: Authorizer<TypeAction, Data, Headers>
process?: Processor<TypeAction, Data, Headers>
}
| {
accessAndProcess: Processor<TypeAction, Data, Headers>
}
) & {
finally?: ActionFinally<TypeAction, Data, Headers>
resend?: Resender<TypeAction, Data, Headers>
}
)

type ChannelCallbacks<
SubscribeAction extends Action,
Data extends object,
ChannelParams extends object | string[],
Headers extends object
> = (
> = {
filter?: FilterCreator<SubscribeAction, Data, ChannelParams, Headers>
finally?: ChannelFinally<SubscribeAction, Data, ChannelParams, Headers>
unsubscribe?: ChannelUnsubscribe<Data, ChannelParams, Headers>
} & (
| {
access: ChannelAuthorizer<SubscribeAction, Data, ChannelParams, Headers>
load?: ChannelLoader<SubscribeAction, Data, ChannelParams, Headers>
Expand All @@ -497,11 +501,7 @@ type ChannelCallbacks<
Headers
>
}
) & {
filter?: FilterCreator<SubscribeAction, Data, ChannelParams, Headers>
finally?: ChannelFinally<SubscribeAction, Data, ChannelParams, Headers>
unsubscribe?: ChannelUnsubscribe<Data, ChannelParams, Headers>
}
)

interface ActionReporter {
action: Readonly<Action>
Expand Down
8 changes: 4 additions & 4 deletions bind-backend-proxy/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ type RequestOptions = {
path?: string
}

type DataRequest = RequestOptions & {
type DataRequest = {
data: object
string?: undefined
}
} & RequestOptions

type StringRequest = RequestOptions & {
type StringRequest = {
data?: undefined
string: string
}
} & RequestOptions

function request({
data,
Expand Down
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,48 +36,48 @@
"@logux/core": "github:logux/core#next",
"JSONStream": "^1.3.5",
"cookie": "^0.6.0",
"dotenv": "^16.3.1",
"dotenv": "^16.4.5",
"fast-glob": "^3.3.2",
"fastq": "^1.15.0",
"fastq": "^1.17.1",
"nanodelay": "^2.0.2",
"nanoevents": "^9.0.0",
"nanoid": "^5.0.4",
"nanoid": "^5.0.7",
"netmask": "^2.0.2",
"node-fetch": "^3.3.2",
"picocolors": "^1.0.0",
"picocolors": "^1.0.1",
"pino": "8.16.2",
"pino-abstract-transport": "^1.1.0",
"semver": "^7.5.4",
"pino-abstract-transport": "^1.2.0",
"semver": "^7.6.3",
"strip-ansi": "^7.1.0",
"url-pattern": "^1.0.3",
"ws": "^8.14.2",
"ws": "^8.18.0",
"yyyy-mm-dd": "^1.0.2"
},
"devDependencies": {
"@logux/eslint-config": "^52.0.2",
"@types/cross-spawn": "^6.0.6",
"@types/node": "^20.10.3",
"@types/node-fetch": "^2.6.9",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"@vitest/coverage-v8": "^1.0.1",
"check-dts": "^0.7.2",
"clean-publish": "^4.2.0",
"@types/node": "^22.1.0",
"@types/node-fetch": "^2.6.11",
"@types/ws": "^8.5.12",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitest/coverage-v8": "^2.0.5",
"check-dts": "^0.8.0",
"clean-publish": "^5.0.0",
"cross-spawn": "^7.0.3",
"eslint": "^8.55.0",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-node-import": "^1.0.4",
"eslint-plugin-perfectionist": "^2.5.0",
"eslint-plugin-perfectionist": "^2.11.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-promise": "^6.6.0",
"nanospy": "^1.0.0",
"print-snapshots": "^0.4.2",
"typescript": "^5.3.2",
"vite": "^5.0.5",
"vitest": "^1.0.1"
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vitest": "^2.0.5"
},
"prettier": {
"arrowParens": "avoid",
Expand Down
Loading

0 comments on commit f509c2d

Please sign in to comment.