scorezilla 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API.md +21 -11
- package/CHANGELOG.md +41 -0
- package/README.md +26 -0
- package/dist/errors-DuRShuw9.d.cts +170 -0
- package/dist/errors-maldlTY-.d.ts +170 -0
- package/dist/headless.cjs +882 -0
- package/dist/headless.cjs.map +1 -0
- package/dist/headless.d.cts +59 -0
- package/dist/headless.d.ts +59 -0
- package/dist/headless.js +879 -0
- package/dist/headless.js.map +1 -0
- package/dist/index.cjs +16 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -13
- package/dist/index.d.ts +20 -13
- package/dist/index.js +16 -13
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +4 -2
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +6 -3
- package/dist/server.d.ts +6 -3
- package/dist/server.js +4 -2
- package/dist/server.js.map +1 -1
- package/dist/{errors-CWTmormh.d.cts → types-C6VO4OWP.d.cts} +28 -171
- package/dist/{errors-CWTmormh.d.ts → types-C6VO4OWP.d.ts} +28 -171
- package/package.json +14 -1
package/dist/server.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { F as FetchImpl, g as SecretKeyConfig,
|
|
2
|
-
export { R as RankedEntry,
|
|
1
|
+
import { F as FetchImpl, g as SecretKeyConfig, b as ApiSuccess, c as SubmitScoreResponse, L as LeaderboardResponse, d as PlayerRankResponse, W as WindowAroundResponse } from './types-C6VO4OWP.cjs';
|
|
2
|
+
export { R as RankedEntry, S as ScorezillaErrorCode } from './types-C6VO4OWP.cjs';
|
|
3
|
+
export { S as ScorezillaError } from './errors-DuRShuw9.cjs';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Built-in request verifiers for {@link createScoreSubmitHandler} (#211).
|
|
@@ -321,7 +322,9 @@ declare class Scorezilla {
|
|
|
321
322
|
submitScore(input: SubmitScoreInput): Promise<ApiSuccess<SubmitScoreResponse>>;
|
|
322
323
|
/** Fetch the top-N entries on a board. */
|
|
323
324
|
getLeaderboard(input: GetLeaderboardInput): Promise<ApiSuccess<LeaderboardResponse>>;
|
|
324
|
-
/** Look up a single player's rank on a board.
|
|
325
|
+
/** Look up a single player's rank on a board. "No entry yet" returns
|
|
326
|
+
* `{ ranked: false }` (narrow on `ranked`); `not_found` is thrown only for
|
|
327
|
+
* a missing board. */
|
|
325
328
|
getPlayerRank(input: GetPlayerRankInput): Promise<ApiSuccess<PlayerRankResponse>>;
|
|
326
329
|
/** Fetch the slice of entries surrounding a player. */
|
|
327
330
|
getWindowAround(input: GetWindowAroundInput): Promise<ApiSuccess<WindowAroundResponse>>;
|
package/dist/server.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { F as FetchImpl, g as SecretKeyConfig,
|
|
2
|
-
export { R as RankedEntry,
|
|
1
|
+
import { F as FetchImpl, g as SecretKeyConfig, b as ApiSuccess, c as SubmitScoreResponse, L as LeaderboardResponse, d as PlayerRankResponse, W as WindowAroundResponse } from './types-C6VO4OWP.js';
|
|
2
|
+
export { R as RankedEntry, S as ScorezillaErrorCode } from './types-C6VO4OWP.js';
|
|
3
|
+
export { S as ScorezillaError } from './errors-maldlTY-.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Built-in request verifiers for {@link createScoreSubmitHandler} (#211).
|
|
@@ -321,7 +322,9 @@ declare class Scorezilla {
|
|
|
321
322
|
submitScore(input: SubmitScoreInput): Promise<ApiSuccess<SubmitScoreResponse>>;
|
|
322
323
|
/** Fetch the top-N entries on a board. */
|
|
323
324
|
getLeaderboard(input: GetLeaderboardInput): Promise<ApiSuccess<LeaderboardResponse>>;
|
|
324
|
-
/** Look up a single player's rank on a board.
|
|
325
|
+
/** Look up a single player's rank on a board. "No entry yet" returns
|
|
326
|
+
* `{ ranked: false }` (narrow on `ranked`); `not_found` is thrown only for
|
|
327
|
+
* a missing board. */
|
|
325
328
|
getPlayerRank(input: GetPlayerRankInput): Promise<ApiSuccess<PlayerRankResponse>>;
|
|
326
329
|
/** Fetch the slice of entries surrounding a player. */
|
|
327
330
|
getWindowAround(input: GetWindowAroundInput): Promise<ApiSuccess<WindowAroundResponse>>;
|
package/dist/server.js
CHANGED
|
@@ -857,7 +857,7 @@ var Scorezilla = class _Scorezilla {
|
|
|
857
857
|
* Mirrors the static on the public-key client so consumers can log
|
|
858
858
|
* the running SDK build the same way regardless of which surface
|
|
859
859
|
* they imported. */
|
|
860
|
-
static version = "0.
|
|
860
|
+
static version = "0.5.0";
|
|
861
861
|
#keyId;
|
|
862
862
|
#secret;
|
|
863
863
|
#baseUrl;
|
|
@@ -932,7 +932,9 @@ var Scorezilla = class _Scorezilla {
|
|
|
932
932
|
signal: input.signal
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
|
-
/** Look up a single player's rank on a board.
|
|
935
|
+
/** Look up a single player's rank on a board. "No entry yet" returns
|
|
936
|
+
* `{ ranked: false }` (narrow on `ranked`); `not_found` is thrown only for
|
|
937
|
+
* a missing board. */
|
|
936
938
|
async getPlayerRank(input) {
|
|
937
939
|
return this.#request({
|
|
938
940
|
path: getPlayerRankPath(input.boardId, input.playerId),
|