@ffflorian/icanhazdadjoke 2.5.0 → 2.6.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.
|
@@ -6,7 +6,6 @@ export declare class ICanHazDadJokeAPI {
|
|
|
6
6
|
constructor(apiClient: APIClient, options: ClientOptions);
|
|
7
7
|
/**
|
|
8
8
|
* Fetch a dad joke by ID.
|
|
9
|
-
* @see https://icanhazdadjoke.com/api#fetch-a-dad-joke
|
|
10
9
|
*/
|
|
11
10
|
getById(id: string, options: {
|
|
12
11
|
withImage: true;
|
|
@@ -14,7 +13,6 @@ export declare class ICanHazDadJokeAPI {
|
|
|
14
13
|
getById(id: string, options?: RequestOptions): Promise<JokeResult>;
|
|
15
14
|
/**
|
|
16
15
|
* Fetch a dad joke by ID.
|
|
17
|
-
* @see https://icanhazdadjoke.com/api#fetch-a-dad-joke
|
|
18
16
|
*/
|
|
19
17
|
getByID(id: string, options: {
|
|
20
18
|
withImage: true;
|
|
@@ -22,7 +20,6 @@ export declare class ICanHazDadJokeAPI {
|
|
|
22
20
|
getByID(id: string, options?: RequestOptions): Promise<JokeResult>;
|
|
23
21
|
/**
|
|
24
22
|
* Fetch a random dad joke.
|
|
25
|
-
* @see https://icanhazdadjoke.com/api#fetch-a-random-dad-joke
|
|
26
23
|
*/
|
|
27
24
|
getRandom(options: {
|
|
28
25
|
withImage: true;
|
|
@@ -30,18 +27,15 @@ export declare class ICanHazDadJokeAPI {
|
|
|
30
27
|
getRandom(options?: RequestOptions): Promise<JokeResult>;
|
|
31
28
|
/**
|
|
32
29
|
* Fetch a random dad joke as a Slack message.
|
|
33
|
-
* @see https://icanhazdadjoke.com/api#fetch-a-random-dad-joke-as-a-slack-message
|
|
34
30
|
*/
|
|
35
31
|
getSlack(): Promise<SlackJokeResult>;
|
|
36
32
|
/**
|
|
37
33
|
* Execute a GraphQL query.
|
|
38
|
-
* @see https://icanhazdadjoke.com/api#graphql
|
|
39
34
|
*/
|
|
40
35
|
graphql(query: string): Promise<GraphQLResponse>;
|
|
41
36
|
/**
|
|
42
37
|
* Search for dad jokes.
|
|
43
38
|
* @param options Search options (default: list all jokes)
|
|
44
|
-
* @see https://icanhazdadjoke.com/api#search-for-dad-jokes
|
|
45
39
|
*/
|
|
46
40
|
search(options: SearchOptions): Promise<JokeSearchResult>;
|
|
47
41
|
search(query: string, options?: Omit<SearchOptions, 'term'>): Promise<JokeSearchResult>;
|
|
@@ -42,7 +42,6 @@ class ICanHazDadJokeAPI {
|
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Fetch a random dad joke as a Slack message.
|
|
45
|
-
* @see https://icanhazdadjoke.com/api#fetch-a-random-dad-joke-as-a-slack-message
|
|
46
45
|
*/
|
|
47
46
|
getSlack() {
|
|
48
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -52,7 +51,6 @@ class ICanHazDadJokeAPI {
|
|
|
52
51
|
}
|
|
53
52
|
/**
|
|
54
53
|
* Execute a GraphQL query.
|
|
55
|
-
* @see https://icanhazdadjoke.com/api#graphql
|
|
56
54
|
*/
|
|
57
55
|
graphql(query) {
|
|
58
56
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"rimraf": "6.1.3",
|
|
13
13
|
"tsx": "4.21.0",
|
|
14
14
|
"typedoc": "0.28.19",
|
|
15
|
-
"typescript": "6.0.
|
|
16
|
-
"vitest": "4.1.
|
|
15
|
+
"typescript": "6.0.3",
|
|
16
|
+
"vitest": "4.1.5"
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">= 21"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"start": "tsx src/cli.ts",
|
|
42
42
|
"test": "vitest"
|
|
43
43
|
},
|
|
44
|
-
"version": "2.
|
|
44
|
+
"version": "2.6.0"
|
|
45
45
|
}
|