server: fix minor type issues
This commit is contained in:
Vendored
+2
-2
@@ -193,7 +193,7 @@ type ChallengeStorage = {
|
||||
/**
|
||||
* - Delete expired challenge tokens
|
||||
*/
|
||||
deleteExpired: () => Promise<string[]>;
|
||||
deleteExpired: () => Promise<void>;
|
||||
};
|
||||
type TokenStorage = {
|
||||
/**
|
||||
@@ -211,7 +211,7 @@ type TokenStorage = {
|
||||
/**
|
||||
* - Delete expired token keys
|
||||
*/
|
||||
deleteExpired: () => Promise<string[]>;
|
||||
deleteExpired: () => Promise<void>;
|
||||
};
|
||||
type StorageHooks = {
|
||||
/**
|
||||
|
||||
+2
-2
@@ -52,7 +52,7 @@
|
||||
* @property {function(string, ChallengeData): Promise<void>} store - Store challenge data
|
||||
* @property {function(string): Promise<ChallengeData|null>} read - Retrieve challenge data
|
||||
* @property {function(string): Promise<void>} delete - Delete challenge data
|
||||
* @property {function(): Promise<string[]>} deleteExpired - Delete expired challenge tokens
|
||||
* @property {function(): Promise<void>} deleteExpired - Delete expired challenge tokens
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -60,7 +60,7 @@
|
||||
* @property {function(string, number): Promise<void>} store - Store token with expiration
|
||||
* @property {function(string): Promise<number|null>} get - Retrieve token expiration
|
||||
* @property {function(string): Promise<void>} delete - Delete token
|
||||
* @property {function(): Promise<string[]>} deleteExpired - Delete expired token keys
|
||||
* @property {function(): Promise<void>} deleteExpired - Delete expired token keys
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cap.js/server",
|
||||
"version": "4.0.0",
|
||||
"version": "4.0.2",
|
||||
"author": "Tiago",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -54,7 +54,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"publish": "bun publish --access public"
|
||||
"publish": "bunx tsc && bun publish --access public"
|
||||
},
|
||||
"type": "commonjs",
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user