Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit 41824bb

Browse files
author
Scott
committed
Fix events type (Bump to alpha.13)
1 parent 251df7c commit 41824bb

File tree

5 files changed

+35
-36
lines changed

5 files changed

+35
-36
lines changed

lib/api/endpoints/friends.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ const confirm = (userId: number) => request.post(`/friendships/${userId}/confirm
1212

1313
const remove = (userId: number) => request.delete(`/friendships/${userId}`);
1414

15-
const boop = (userId: number) => request.post('/poke', { userId });
15+
const ping = (userId: number) => request.post('/poke', { userId });
1616

17-
export { list, requests, add, confirm, remove, boop };
17+
export { list, requests, add, confirm, remove, ping };

lib/api/events.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ import EventEmitter from 'events';
22
import TypedEmitter from 'typed-emitter';
33
import { GameMessageEvent } from 'lib/types';
44

5-
const events: TypedEmitter<GameMessageEvent> = new EventEmitter();
6-
7-
export { events, TypedEmitter, GameMessageEvent };
5+
export const events: TypedEmitter<GameMessageEvent> =
6+
new EventEmitter() as TypedEmitter<GameMessageEvent>;

lib/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export * as rooms from './endpoints/servers';
88
export * as servers from './endpoints/servers';
99
export * as profile from './endpoints/profile';
1010
export * as users from './endpoints/users';
11-
export * from './events';
11+
export { events } from './events';
1212

1313
export { getState as getInternalState };
1414

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sonar-tools/sonar.js",
3-
"version": "0.1.0-alpha.12",
3+
"version": "0.1.0-alpha.13",
44
"main": "./build/index.js",
55
"author": "@sonar-tools",
66
"contributors": [

yarn.lock

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@
141141
"@typescript-eslint/typescript-estree" "3.10.1"
142142
eslint-visitor-keys "^1.1.0"
143143

144-
"@typescript-eslint/parser@^4.20.1-alpha.7":
145-
version "4.20.1-alpha.9"
146-
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.20.1-alpha.9.tgz#e2d07a303044bde48a8f430da452d6025ee8d4ed"
147-
integrity sha512-XQo6ggwJgsZRv2VP8JmSF9SE/QIu9BRl2TntuOI9/vFJUK1/LKUATkYdcAtDBy46ipR1ghIrOWb5xpmNkfMM3w==
148-
dependencies:
149-
"@typescript-eslint/scope-manager" "4.20.1-alpha.9+b1b26c48"
150-
"@typescript-eslint/types" "4.20.1-alpha.9+b1b26c48"
151-
"@typescript-eslint/typescript-estree" "4.20.1-alpha.9+b1b26c48"
144+
"@typescript-eslint/parser@^4.20.1-alpha.2":
145+
version "4.22.0"
146+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.22.0.tgz#e1637327fcf796c641fe55f73530e90b16ac8fe8"
147+
integrity sha512-z/bGdBJJZJN76nvAY9DkJANYgK3nlRstRRi74WHm3jjgf2I8AglrSY+6l7ogxOmn55YJ6oKZCLLy+6PW70z15Q==
148+
dependencies:
149+
"@typescript-eslint/scope-manager" "4.22.0"
150+
"@typescript-eslint/types" "4.22.0"
151+
"@typescript-eslint/typescript-estree" "4.22.0"
152152
debug "^4.1.1"
153153

154154
"@typescript-eslint/[email protected]":
@@ -159,13 +159,13 @@
159159
"@typescript-eslint/types" "4.20.0"
160160
"@typescript-eslint/visitor-keys" "4.20.0"
161161

162-
"@typescript-eslint/scope-manager@4.20.1-alpha.9+b1b26c48":
163-
version "4.20.1-alpha.9"
164-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.20.1-alpha.9.tgz#6477f6fa69cea2303ef6be6789a1e55c1cfed905"
165-
integrity sha512-UhazE+DAvKmloMwLLR8JC8R/QNpEKjo6+0ACxFY7bg8tmXKSjPllnNwnwMFWXdr1L8in3jB4RNJKR+kv7NtVfw==
162+
"@typescript-eslint/scope-manager@4.22.0":
163+
version "4.22.0"
164+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.22.0.tgz#ed411545e61161a8d702e703a4b7d96ec065b09a"
165+
integrity sha512-OcCO7LTdk6ukawUM40wo61WdeoA7NM/zaoq1/2cs13M7GyiF+T4rxuA4xM+6LeHWjWbss7hkGXjFDRcKD4O04Q==
166166
dependencies:
167-
"@typescript-eslint/types" "4.20.1-alpha.9+b1b26c48"
168-
"@typescript-eslint/visitor-keys" "4.20.1-alpha.9+b1b26c48"
167+
"@typescript-eslint/types" "4.22.0"
168+
"@typescript-eslint/visitor-keys" "4.22.0"
169169

170170
"@typescript-eslint/[email protected]":
171171
version "3.10.1"
@@ -177,10 +177,10 @@
177177
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.20.0.tgz#c6cf5ef3c9b1c8f699a9bbdafb7a1da1ca781225"
178178
integrity sha512-cYY+1PIjei1nk49JAPnH1VEnu7OYdWRdJhYI5wiKOUMhLTG1qsx5cQxCUTuwWCmQoyriadz3Ni8HZmGSofeC+w==
179179

180-
"@typescript-eslint/types@4.20.1-alpha.9+b1b26c48":
181-
version "4.20.1-alpha.9"
182-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.20.1-alpha.9.tgz#834be87c2ac0407d48b6fe662ece653fa221286e"
183-
integrity sha512-CrPRY7+4x/lSaFpqkdrFWd1W04qaLhBHdJuoXijx5YkcGnbEHlYLSRG+4Rh6djYEozLvCGUUdZRTvhQN/vUHvQ==
180+
"@typescript-eslint/types@4.22.0":
181+
version "4.22.0"
182+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.22.0.tgz#0ca6fde5b68daf6dba133f30959cc0688c8dd0b6"
183+
integrity sha512-sW/BiXmmyMqDPO2kpOhSy2Py5w6KvRRsKZnV0c4+0nr4GIcedJwXAq+RHNK4lLVEZAJYFltnnk1tJSlbeS9lYA==
184184

185185
"@typescript-eslint/[email protected]":
186186
version "3.10.1"
@@ -209,13 +209,13 @@
209209
semver "^7.3.2"
210210
tsutils "^3.17.1"
211211

212-
"@typescript-eslint/typescript-estree@4.20.1-alpha.9+b1b26c48":
213-
version "4.20.1-alpha.9"
214-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.20.1-alpha.9.tgz#7448d9823b7c616c8d7a678504ea9364a3165eab"
215-
integrity sha512-gqFxbWvpyC6UVL6fz27evQ+6A4eKIhcSd+yfDRKxa51rIPi6ADjY8qUVcDjnYFaCi7tCKQ0EH2VY/MYw2QPZyg==
212+
"@typescript-eslint/typescript-estree@4.22.0":
213+
version "4.22.0"
214+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.22.0.tgz#b5d95d6d366ff3b72f5168c75775a3e46250d05c"
215+
integrity sha512-TkIFeu5JEeSs5ze/4NID+PIcVjgoU3cUQUIZnH3Sb1cEn1lBo7StSV5bwPuJQuoxKXlzAObjYTilOEKRuhR5yg==
216216
dependencies:
217-
"@typescript-eslint/types" "4.20.1-alpha.9+b1b26c48"
218-
"@typescript-eslint/visitor-keys" "4.20.1-alpha.9+b1b26c48"
217+
"@typescript-eslint/types" "4.22.0"
218+
"@typescript-eslint/visitor-keys" "4.22.0"
219219
debug "^4.1.1"
220220
globby "^11.0.1"
221221
is-glob "^4.0.1"
@@ -237,12 +237,12 @@
237237
"@typescript-eslint/types" "4.20.0"
238238
eslint-visitor-keys "^2.0.0"
239239

240-
"@typescript-eslint/visitor-keys@4.20.1-alpha.9+b1b26c48":
241-
version "4.20.1-alpha.9"
242-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.20.1-alpha.9.tgz#3416e26417db1bfcaff81805050cf070ea436eb2"
243-
integrity sha512-BOwTP3ynG6y3Jb/KVDNg/HPf2J3yQeNMOP+GT3g3/Rm1tGj2rxYb0P1IlzBO+sfEgMr/KjxTI0k1GXYF+d+/xQ==
240+
"@typescript-eslint/visitor-keys@4.22.0":
241+
version "4.22.0"
242+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.22.0.tgz#169dae26d3c122935da7528c839f42a8a42f6e47"
243+
integrity sha512-nnMu4F+s4o0sll6cBSsTeVsT4cwxB7zECK3dFxzEjPBii9xLpq4yqqsy/FU5zMfan6G60DKZSCXAa3sHJZrcYw==
244244
dependencies:
245-
"@typescript-eslint/types" "4.20.1-alpha.9+b1b26c48"
245+
"@typescript-eslint/types" "4.22.0"
246246
eslint-visitor-keys "^2.0.0"
247247

248248
acorn-jsx@^5.2.0, acorn-jsx@^5.3.1:

0 commit comments

Comments
 (0)