@promptbook/core 0.39.0 → 0.39.2
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/esm/index.es.js
CHANGED
|
@@ -423,7 +423,7 @@ function removeContentComments(content) {
|
|
|
423
423
|
/**
|
|
424
424
|
* The version of the Promptbook library
|
|
425
425
|
*/
|
|
426
|
-
var PROMPTBOOK_VERSION = '0.
|
|
426
|
+
var PROMPTBOOK_VERSION = '0.39.1';
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
429
|
* Execution type describes the way how the block is executed
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Promisable } from 'type-fest';
|
|
1
2
|
import type { Prompt } from '../types/Prompt';
|
|
2
3
|
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
|
|
3
4
|
import type { string_promptbook_url } from '../types/typeAliases';
|
|
@@ -10,13 +11,13 @@ export type PromptbookLibrary = {
|
|
|
10
11
|
/**
|
|
11
12
|
* Gets all promptbooks in the library
|
|
12
13
|
*/
|
|
13
|
-
listPromptbooks(): Array<string_promptbook_url
|
|
14
|
+
listPromptbooks(): Promisable<Array<string_promptbook_url>>;
|
|
14
15
|
/**
|
|
15
16
|
* Gets promptbook by its URL
|
|
16
17
|
*
|
|
17
18
|
* Note: This is not a direct fetching from the URL, but a lookup in the library
|
|
18
19
|
*/
|
|
19
|
-
getPromptbookByUrl(url: string_promptbook_url): PromptbookJson
|
|
20
|
+
getPromptbookByUrl(url: string_promptbook_url): Promisable<PromptbookJson>;
|
|
20
21
|
/**
|
|
21
22
|
* Checks whether given prompt was defined in any promptbook in the library
|
|
22
23
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Promisable } from 'type-fest';
|
|
1
2
|
import type { Prompt } from '../types/Prompt';
|
|
2
3
|
import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
|
|
3
4
|
import type { string_promptbook_url } from '../types/typeAliases';
|
|
@@ -10,13 +11,13 @@ export type PromptbookLibrary = {
|
|
|
10
11
|
/**
|
|
11
12
|
* Gets all promptbooks in the library
|
|
12
13
|
*/
|
|
13
|
-
listPromptbooks(): Array<string_promptbook_url
|
|
14
|
+
listPromptbooks(): Promisable<Array<string_promptbook_url>>;
|
|
14
15
|
/**
|
|
15
16
|
* Gets promptbook by its URL
|
|
16
17
|
*
|
|
17
18
|
* Note: This is not a direct fetching from the URL, but a lookup in the library
|
|
18
19
|
*/
|
|
19
|
-
getPromptbookByUrl(url: string_promptbook_url): PromptbookJson
|
|
20
|
+
getPromptbookByUrl(url: string_promptbook_url): Promisable<PromptbookJson>;
|
|
20
21
|
/**
|
|
21
22
|
* Checks whether given prompt was defined in any promptbook in the library
|
|
22
23
|
*/
|