@promptbook/node
Advanced tools
Comparing version 0.81.0-11 to 0.81.0-12
@@ -71,2 +71,3 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version'; | ||
import { isValidEmail } from '../utils/validators/email/isValidEmail'; | ||
import { isPathRoot } from '../utils/validators/filePath/isPathRoot'; | ||
import { isValidFilePath } from '../utils/validators/filePath/isValidFilePath'; | ||
@@ -151,2 +152,3 @@ import { isValidJavascriptName } from '../utils/validators/javascriptName/isValidJavascriptName'; | ||
export { isValidEmail }; | ||
export { isPathRoot }; | ||
export { isValidFilePath }; | ||
@@ -153,0 +155,0 @@ export { isValidJavascriptName }; |
@@ -1,2 +0,1 @@ | ||
import type { PipelineCollection } from '../../collection/PipelineCollection'; | ||
import type { string_formfactor_name } from '../../formfactors/_common/string_formfactor_name'; | ||
@@ -10,3 +9,3 @@ import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson'; | ||
*/ | ||
export declare let templatesPipelineCollection: PipelineCollection | null; | ||
export declare let pipelines: Array<PipelineJson> | null; | ||
/** | ||
@@ -17,7 +16,6 @@ * Get template for new book | ||
*/ | ||
export declare function getBookTemplate(formfactorName: string_formfactor_name): PipelineJson; | ||
export declare function getBookTemplate(formfactorName: string_formfactor_name): ReadonlyArray<PipelineJson>; | ||
/** | ||
* TODO: !!!!!! Test | ||
* TODO: Unit test | ||
* TODO: [๐ง ] Which is the best place for this function | ||
* TODO: !!!!!! `book string template notation | ||
*/ |
@@ -8,1 +8,4 @@ import type { PromptbookFetch } from '../../../execution/PromptbookFetch'; | ||
export declare const scraperFetch: PromptbookFetch; | ||
/** | ||
* TODO: [๐ง ] Maybe rename because it is not used only for scrapers but also in `$getCompiledBook` | ||
*/ |
@@ -12,3 +12,4 @@ import type { really_any } from '../../../utils/organization/really_any'; | ||
/** | ||
* TODO: Probbably remove in favour of `keepImported` | ||
* TODO: !! [1] This maybe does memory leak | ||
*/ |
@@ -10,1 +10,4 @@ import type { string_filename } from '../../../types/typeAliases'; | ||
export declare function isValidFilePath(filename: really_unknown): filename is string_filename; | ||
/** | ||
* TODO: [๐] Implement for MacOs | ||
*/ |
import { Promisable } from 'type-fest'; | ||
import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson'; | ||
import type { ExecutionTools } from '../execution/ExecutionTools'; | ||
import type { PipelineExecutorResult } from '../execution/PipelineExecutorResult'; | ||
import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson'; | ||
import type { PipelineString } from '../pipeline/PipelineString'; | ||
@@ -26,3 +26,3 @@ import type { TaskProgress } from '../types/TaskProgress'; | ||
*/ | ||
getExecutionTools(): Promise<ExecutionTools>; | ||
getExecutionTools(): Promise<Required<Pick<ExecutionTools, 'fs' | 'fetch'>>>; | ||
/** | ||
@@ -38,3 +38,3 @@ * TODO: Make standalone function from this exported from node and used here and in `ptbk run` | ||
*/ | ||
getPipeline(pipelineSource: string_filename | string_pipeline_url | PipelineString): Promise<PipelineJson>; | ||
getCompiledBook(pipelineSource: string_filename | string_pipeline_url | PipelineString): Promise<PipelineJson>; | ||
} | ||
@@ -41,0 +41,0 @@ /** |
{ | ||
"name": "@promptbook/node", | ||
"version": "0.81.0-11", | ||
"version": "0.81.0-12", | ||
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin", | ||
@@ -57,3 +57,3 @@ "--note-0": " <- [๐]", | ||
"peerDependencies": { | ||
"@promptbook/core": "0.81.0-11" | ||
"@promptbook/core": "0.81.0-12" | ||
}, | ||
@@ -60,0 +60,0 @@ "dependencies": { |
@@ -262,3 +262,3 @@ <!-- โ ๏ธ WARNING: This code has been generated so that any manual changes will be overwritten --> | ||
- **[@promptbook/types](https://www.npmjs.com/package/@promptbook/types)** - Just typescript types used in the library | ||
- **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks | ||
- โญ **[@promptbook/cli](https://www.npmjs.com/package/@promptbook/cli)** - Command line interface utilities for promptbooks | ||
@@ -265,0 +265,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
2228072
645
34433
20