searchsocket 0.2.0 → 0.3.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.
- package/README.md +120 -42
- package/dist/cli.js +348 -111
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/index.cjs +367 -104
- package/dist/index.d.cts +20 -3
- package/dist/index.d.ts +20 -3
- package/dist/index.js +365 -103
- package/dist/sveltekit.cjs +350 -104
- package/dist/sveltekit.d.cts +8 -2
- package/dist/sveltekit.d.ts +8 -2
- package/dist/sveltekit.js +349 -102
- package/dist/{types-D1K46vwd.d.cts → types-DAXk6A3Y.d.cts} +25 -13
- package/dist/{types-D1K46vwd.d.ts → types-DAXk6A3Y.d.ts} +25 -13
- package/package.json +3 -3
- package/dist/cli.js.map +0 -1
- package/dist/client.cjs.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/sveltekit.cjs.map +0 -1
- package/dist/sveltekit.js.map +0 -1
package/dist/sveltekit.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ResolvedSearchSocketConfig } from './types-
|
|
1
|
+
import { R as ResolvedSearchSocketConfig, b as SearchSocketConfig } from './types-DAXk6A3Y.cjs';
|
|
2
2
|
|
|
3
3
|
interface SearchSocketHandleOptions {
|
|
4
4
|
configPath?: string;
|
|
@@ -7,6 +7,12 @@ interface SearchSocketHandleOptions {
|
|
|
7
7
|
maxBodyBytes?: number;
|
|
8
8
|
/** Pass a pre-resolved config object to avoid filesystem loading at runtime. */
|
|
9
9
|
config?: ResolvedSearchSocketConfig;
|
|
10
|
+
/**
|
|
11
|
+
* Pass a partial config object (same shape as `searchsocket.config.ts`).
|
|
12
|
+
* Resolved via `mergeConfig()` at startup — avoids jiti/filesystem config loading,
|
|
13
|
+
* making this the recommended option for serverless deployments (Vercel, Netlify, etc.).
|
|
14
|
+
*/
|
|
15
|
+
rawConfig?: SearchSocketConfig;
|
|
10
16
|
}
|
|
11
17
|
declare function searchsocketHandle(options?: SearchSocketHandleOptions): ({ event, resolve }: {
|
|
12
18
|
event: any;
|
|
@@ -34,4 +40,4 @@ interface SearchSocketAutoIndexOptions {
|
|
|
34
40
|
declare function searchsocketViteConfig(): MinimalVitePlugin;
|
|
35
41
|
declare function searchsocketVitePlugin(options?: SearchSocketAutoIndexOptions): MinimalVitePlugin;
|
|
36
42
|
|
|
37
|
-
export { type SearchSocketAutoIndexOptions, searchsocketHandle, searchsocketViteConfig, searchsocketVitePlugin };
|
|
43
|
+
export { type SearchSocketAutoIndexOptions, type SearchSocketHandleOptions, searchsocketHandle, searchsocketViteConfig, searchsocketVitePlugin };
|
package/dist/sveltekit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ResolvedSearchSocketConfig } from './types-
|
|
1
|
+
import { R as ResolvedSearchSocketConfig, b as SearchSocketConfig } from './types-DAXk6A3Y.js';
|
|
2
2
|
|
|
3
3
|
interface SearchSocketHandleOptions {
|
|
4
4
|
configPath?: string;
|
|
@@ -7,6 +7,12 @@ interface SearchSocketHandleOptions {
|
|
|
7
7
|
maxBodyBytes?: number;
|
|
8
8
|
/** Pass a pre-resolved config object to avoid filesystem loading at runtime. */
|
|
9
9
|
config?: ResolvedSearchSocketConfig;
|
|
10
|
+
/**
|
|
11
|
+
* Pass a partial config object (same shape as `searchsocket.config.ts`).
|
|
12
|
+
* Resolved via `mergeConfig()` at startup — avoids jiti/filesystem config loading,
|
|
13
|
+
* making this the recommended option for serverless deployments (Vercel, Netlify, etc.).
|
|
14
|
+
*/
|
|
15
|
+
rawConfig?: SearchSocketConfig;
|
|
10
16
|
}
|
|
11
17
|
declare function searchsocketHandle(options?: SearchSocketHandleOptions): ({ event, resolve }: {
|
|
12
18
|
event: any;
|
|
@@ -34,4 +40,4 @@ interface SearchSocketAutoIndexOptions {
|
|
|
34
40
|
declare function searchsocketViteConfig(): MinimalVitePlugin;
|
|
35
41
|
declare function searchsocketVitePlugin(options?: SearchSocketAutoIndexOptions): MinimalVitePlugin;
|
|
36
42
|
|
|
37
|
-
export { type SearchSocketAutoIndexOptions, searchsocketHandle, searchsocketViteConfig, searchsocketVitePlugin };
|
|
43
|
+
export { type SearchSocketAutoIndexOptions, type SearchSocketHandleOptions, searchsocketHandle, searchsocketViteConfig, searchsocketVitePlugin };
|