@h3ravel/shared 0.23.0 → 0.24.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/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -508,7 +508,7 @@ const packageJsonScript = {
|
|
|
508
508
|
start: "DIST_DIR=dist node -r source-map-support/register dist/server.js",
|
|
509
509
|
lint: "eslint . --ext .ts",
|
|
510
510
|
test: "NODE_NO_WARNINGS=1 NODE_ENV=testing jest --passWithNoTests",
|
|
511
|
-
postinstall: "pnpm
|
|
511
|
+
postinstall: "pnpm prepare"
|
|
512
512
|
};
|
|
513
513
|
|
|
514
514
|
//#endregion
|
package/dist/index.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ import { Edge } from "edge.js";
|
|
|
4
4
|
import { ResponseHeaderMap, TypedHeaders } from "fetchdts";
|
|
5
5
|
import { DotNestedKeys as DotNestedKeys$1, DotNestedValue as DotNestedValue$1 } from "@h3ravel/shared";
|
|
6
6
|
import { Separator } from "@inquirer/prompts";
|
|
7
|
+
import { ChoiceOrSeparatorArray, ChoiceOrSeparatorArray as ChoiceOrSeparatorArray$1 } from "inquirer-autocomplete-standalone";
|
|
7
8
|
import { ChalkInstance } from "chalk";
|
|
8
|
-
import { ChoiceOrSeparatorArray } from "inquirer-autocomplete-standalone";
|
|
9
9
|
|
|
10
10
|
//#region src/Contracts/ObjContract.d.ts
|
|
11
11
|
/**
|
|
@@ -442,6 +442,7 @@ type Choice<Value> = {
|
|
|
442
442
|
disabled?: boolean | string;
|
|
443
443
|
type?: never;
|
|
444
444
|
};
|
|
445
|
+
type ISeparator = Separator;
|
|
445
446
|
type Choices = readonly (string | Separator)[] | readonly (Separator | Choice<string>)[];
|
|
446
447
|
//#endregion
|
|
447
448
|
//#region src/Contracts/Router.d.ts
|
|
@@ -702,7 +703,7 @@ declare class Prompts extends Logger {
|
|
|
702
703
|
/**
|
|
703
704
|
* The source of completions
|
|
704
705
|
*/
|
|
705
|
-
source: string[] | ((input?: string | undefined) => Promise<ChoiceOrSeparatorArray<any>>),
|
|
706
|
+
source: string[] | ((input?: string | undefined) => Promise<ChoiceOrSeparatorArray$1<any>>),
|
|
706
707
|
/**
|
|
707
708
|
* Set a default value
|
|
708
709
|
*/
|
|
@@ -769,4 +770,4 @@ declare class TaskManager {
|
|
|
769
770
|
static advancedTaskRunner<R = any>(info: [[string, string], [string, string]] | [[string, string]], task: (() => Promise<R>) | (() => R)): Promise<R | undefined>;
|
|
770
771
|
}
|
|
771
772
|
//#endregion
|
|
772
|
-
export { Bindings, Choice, Choices, DotFlatten, DotNestedKeys, DotNestedValue, EnvParser, EventHandler, ExtractControllerMethods, FileSystem, GenericWithNullableStringValues, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IRequest, IResponse, IRouter, IServiceProvider, Logger, LoggerChalk, LoggerLog, LoggerParseSignature, PathLoader, Prompts, Resolver, RouteDefinition, RouteEventHandler, RouteMethod, RouterEnd, TaskManager, UseKey, baseTsconfig, mainTsconfig, packageJsonScript };
|
|
773
|
+
export { Bindings, Choice, type ChoiceOrSeparatorArray, Choices, DotFlatten, DotNestedKeys, DotNestedValue, EnvParser, EventHandler, ExtractControllerMethods, FileSystem, GenericWithNullableStringValues, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IRequest, IResponse, IRouter, ISeparator, IServiceProvider, Logger, LoggerChalk, LoggerLog, LoggerParseSignature, PathLoader, Prompts, Resolver, RouteDefinition, RouteEventHandler, RouteMethod, RouterEnd, TaskManager, UseKey, baseTsconfig, mainTsconfig, packageJsonScript };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./app.globals.d.ts" />
|
|
2
2
|
import { ChalkInstance } from "chalk";
|
|
3
|
-
import { ChoiceOrSeparatorArray } from "inquirer-autocomplete-standalone";
|
|
3
|
+
import { ChoiceOrSeparatorArray, ChoiceOrSeparatorArray as ChoiceOrSeparatorArray$1 } from "inquirer-autocomplete-standalone";
|
|
4
4
|
import { Separator } from "@inquirer/prompts";
|
|
5
5
|
import { H3, H3Event, Middleware, MiddlewareOptions, serve } from "h3";
|
|
6
6
|
import { Edge } from "edge.js";
|
|
@@ -442,6 +442,7 @@ type Choice<Value> = {
|
|
|
442
442
|
disabled?: boolean | string;
|
|
443
443
|
type?: never;
|
|
444
444
|
};
|
|
445
|
+
type ISeparator = Separator;
|
|
445
446
|
type Choices = readonly (string | Separator)[] | readonly (Separator | Choice<string>)[];
|
|
446
447
|
//#endregion
|
|
447
448
|
//#region src/Contracts/Router.d.ts
|
|
@@ -702,7 +703,7 @@ declare class Prompts extends Logger {
|
|
|
702
703
|
/**
|
|
703
704
|
* The source of completions
|
|
704
705
|
*/
|
|
705
|
-
source: string[] | ((input?: string | undefined) => Promise<ChoiceOrSeparatorArray<any>>),
|
|
706
|
+
source: string[] | ((input?: string | undefined) => Promise<ChoiceOrSeparatorArray$1<any>>),
|
|
706
707
|
/**
|
|
707
708
|
* Set a default value
|
|
708
709
|
*/
|
|
@@ -769,4 +770,4 @@ declare class TaskManager {
|
|
|
769
770
|
static advancedTaskRunner<R = any>(info: [[string, string], [string, string]] | [[string, string]], task: (() => Promise<R>) | (() => R)): Promise<R | undefined>;
|
|
770
771
|
}
|
|
771
772
|
//#endregion
|
|
772
|
-
export { Bindings, Choice, Choices, DotFlatten, DotNestedKeys, DotNestedValue, EnvParser, EventHandler, ExtractControllerMethods, FileSystem, GenericWithNullableStringValues, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IRequest, IResponse, IRouter, IServiceProvider, Logger, LoggerChalk, LoggerLog, LoggerParseSignature, PathLoader, Prompts, Resolver, RouteDefinition, RouteEventHandler, RouteMethod, RouterEnd, TaskManager, UseKey, baseTsconfig, mainTsconfig, packageJsonScript };
|
|
773
|
+
export { Bindings, Choice, type ChoiceOrSeparatorArray, Choices, DotFlatten, DotNestedKeys, DotNestedValue, EnvParser, EventHandler, ExtractControllerMethods, FileSystem, GenericWithNullableStringValues, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IRequest, IResponse, IRouter, ISeparator, IServiceProvider, Logger, LoggerChalk, LoggerLog, LoggerParseSignature, PathLoader, Prompts, Resolver, RouteDefinition, RouteEventHandler, RouteMethod, RouterEnd, TaskManager, UseKey, baseTsconfig, mainTsconfig, packageJsonScript };
|
package/dist/index.js
CHANGED
|
@@ -477,7 +477,7 @@ const packageJsonScript = {
|
|
|
477
477
|
start: "DIST_DIR=dist node -r source-map-support/register dist/server.js",
|
|
478
478
|
lint: "eslint . --ext .ts",
|
|
479
479
|
test: "NODE_NO_WARNINGS=1 NODE_ENV=testing jest --passWithNoTests",
|
|
480
|
-
postinstall: "pnpm
|
|
480
|
+
postinstall: "pnpm prepare"
|
|
481
481
|
};
|
|
482
482
|
|
|
483
483
|
//#endregion
|