@promptbook/utils
Advanced tools
Comparing version 0.85.0-0 to 0.85.0-1
/// <reference types="node" /> | ||
import type fs from 'fs/promises'; | ||
import type fs from 'node:fs/promises'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Container for all the tools needed to manipulate with filesystem |
@@ -14,2 +14,4 @@ import type { IDestroyable } from 'destroyable'; | ||
/** | ||
* TODO: !!!!!!! CORS and security | ||
* TODO: !!!!!!! Allow to pass tokem here | ||
* TODO: [👩🏾🤝🧑🏾] Allow to pass custom fetch function here - PromptbookFetch | ||
@@ -16,0 +18,0 @@ * TODO: Split this file into multiple functions - handler for each request |
@@ -28,8 +28,10 @@ import type { Promisable } from 'type-fest'; | ||
/** | ||
* Path for the Socket.io server to listen | ||
* Root path of the server | ||
* | ||
* @default '/socket.io' | ||
* @example '/promptbook/socket.io' | ||
* Note: This is useful when you reverse proxy the server without changing the path | ||
* | ||
* @default '/' | ||
* @example '/api/promptbook/' | ||
*/ | ||
readonly path: string_uri; | ||
readonly rootPath: string_uri; | ||
} & (AnonymousRemoteServerOptions | ApplicationRemoteServerOptions<TCustomOptions> | (AnonymousRemoteServerOptions & ApplicationRemoteServerOptions<TCustomOptions>)); | ||
@@ -36,0 +38,0 @@ export type AnonymousRemoteServerOptions = { |
{ | ||
"name": "@promptbook/utils", | ||
"version": "0.85.0-0", | ||
"version": "0.85.0-1", | ||
"description": "It's time for a paradigm shift. The future of software in plain English, French or Latin", | ||
@@ -5,0 +5,0 @@ "private": false, |
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
977109
18761