@stacksjs/utils 0.75.520 → 0.75.522
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/colors.d.ts +38 -39
- package/dist/debounce.d.ts +1 -0
- package/dist/equal.d.ts +1 -0
- package/dist/find.d.ts +1 -0
- package/dist/macroable.d.ts +1 -0
- package/dist/pipeline.d.ts +4 -0
- package/package.json +13 -13
package/dist/colors.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
declare function createColorFn(code: string, endCode?: string): ColorFn;
|
|
2
1
|
// Strip colors from text
|
|
3
2
|
export declare function stripColors(text: string): string;
|
|
4
3
|
// Check if colors are supported
|
|
@@ -52,51 +51,51 @@ declare const colors: {
|
|
|
52
51
|
strikethrough: unknown
|
|
53
52
|
};
|
|
54
53
|
// Color functions
|
|
55
|
-
export declare const black:
|
|
56
|
-
export declare const red:
|
|
57
|
-
export declare const green:
|
|
58
|
-
export declare const yellow:
|
|
59
|
-
export declare const blue:
|
|
60
|
-
export declare const magenta:
|
|
61
|
-
export declare const cyan:
|
|
62
|
-
export declare const white:
|
|
63
|
-
export declare const gray:
|
|
54
|
+
export declare const black: ColorFn;
|
|
55
|
+
export declare const red: ColorFn;
|
|
56
|
+
export declare const green: ColorFn;
|
|
57
|
+
export declare const yellow: ColorFn;
|
|
58
|
+
export declare const blue: ColorFn;
|
|
59
|
+
export declare const magenta: ColorFn;
|
|
60
|
+
export declare const cyan: ColorFn;
|
|
61
|
+
export declare const white: ColorFn;
|
|
62
|
+
export declare const gray: ColorFn;
|
|
64
63
|
export declare const grey: unknown;
|
|
65
64
|
// Bright colors
|
|
66
|
-
export declare const lightRed:
|
|
67
|
-
export declare const lightGreen:
|
|
68
|
-
export declare const lightYellow:
|
|
69
|
-
export declare const lightBlue:
|
|
70
|
-
export declare const lightMagenta:
|
|
71
|
-
export declare const lightCyan:
|
|
72
|
-
export declare const lightGray:
|
|
65
|
+
export declare const lightRed: ColorFn;
|
|
66
|
+
export declare const lightGreen: ColorFn;
|
|
67
|
+
export declare const lightYellow: ColorFn;
|
|
68
|
+
export declare const lightBlue: ColorFn;
|
|
69
|
+
export declare const lightMagenta: ColorFn;
|
|
70
|
+
export declare const lightCyan: ColorFn;
|
|
71
|
+
export declare const lightGray: ColorFn;
|
|
73
72
|
export declare const lightGrey: unknown;
|
|
74
73
|
// Background colors
|
|
75
|
-
export declare const bgBlack:
|
|
76
|
-
export declare const bgRed:
|
|
77
|
-
export declare const bgGreen:
|
|
78
|
-
export declare const bgYellow:
|
|
79
|
-
export declare const bgBlue:
|
|
80
|
-
export declare const bgMagenta:
|
|
81
|
-
export declare const bgCyan:
|
|
82
|
-
export declare const bgWhite:
|
|
74
|
+
export declare const bgBlack: ColorFn;
|
|
75
|
+
export declare const bgRed: ColorFn;
|
|
76
|
+
export declare const bgGreen: ColorFn;
|
|
77
|
+
export declare const bgYellow: ColorFn;
|
|
78
|
+
export declare const bgBlue: ColorFn;
|
|
79
|
+
export declare const bgMagenta: ColorFn;
|
|
80
|
+
export declare const bgCyan: ColorFn;
|
|
81
|
+
export declare const bgWhite: ColorFn;
|
|
83
82
|
// Bright background colors
|
|
84
|
-
export declare const bgLightRed:
|
|
85
|
-
export declare const bgLightGreen:
|
|
86
|
-
export declare const bgLightYellow:
|
|
87
|
-
export declare const bgLightBlue:
|
|
88
|
-
export declare const bgLightMagenta:
|
|
89
|
-
export declare const bgLightCyan:
|
|
83
|
+
export declare const bgLightRed: ColorFn;
|
|
84
|
+
export declare const bgLightGreen: ColorFn;
|
|
85
|
+
export declare const bgLightYellow: ColorFn;
|
|
86
|
+
export declare const bgLightBlue: ColorFn;
|
|
87
|
+
export declare const bgLightMagenta: ColorFn;
|
|
88
|
+
export declare const bgLightCyan: ColorFn;
|
|
90
89
|
// Text formatting
|
|
91
|
-
export declare const bold:
|
|
92
|
-
export declare const dim:
|
|
93
|
-
export declare const italic:
|
|
94
|
-
export declare const underline:
|
|
95
|
-
export declare const inverse:
|
|
96
|
-
export declare const hidden:
|
|
97
|
-
export declare const strikethrough:
|
|
90
|
+
export declare const bold: ColorFn;
|
|
91
|
+
export declare const dim: ColorFn;
|
|
92
|
+
export declare const italic: ColorFn;
|
|
93
|
+
export declare const underline: ColorFn;
|
|
94
|
+
export declare const inverse: ColorFn;
|
|
95
|
+
export declare const hidden: ColorFn;
|
|
96
|
+
export declare const strikethrough: ColorFn;
|
|
98
97
|
// Reset
|
|
99
|
-
export declare const reset:
|
|
98
|
+
export declare const reset: ColorFn;
|
|
100
99
|
declare const __dtsx_default_export__: {
|
|
101
100
|
black: typeof black;
|
|
102
101
|
red: typeof red;
|
package/dist/debounce.d.ts
CHANGED
|
@@ -31,3 +31,4 @@ declare type Callback = (...args: any[]) => any;
|
|
|
31
31
|
declare type ControlledCall<T extends Callback> = (this: ThisParameterType<T>, ...args: Parameters<T>) => ReturnType<T> | undefined;
|
|
32
32
|
export type DebouncedFunction<T extends Callback> = ControlledCall<T> & { cancel: () => void, flush: () => ReturnType<T> | undefined }
|
|
33
33
|
export type ThrottledFunction<T extends Callback> = ControlledCall<T> & { cancel: () => void }
|
|
34
|
+
export {};
|
package/dist/equal.d.ts
CHANGED
package/dist/find.d.ts
CHANGED
package/dist/macroable.d.ts
CHANGED
package/dist/pipeline.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ declare interface PipeClass<T> {
|
|
|
4
4
|
declare type PipeFunction<T> = (data: T, next: (data: T) => T) => T;
|
|
5
5
|
declare type Pipe<T> = PipeFunction<T> | PipeClass<T>;
|
|
6
6
|
export declare class Pipeline<T> {
|
|
7
|
+
private passable;
|
|
8
|
+
private pipes;
|
|
9
|
+
private method;
|
|
7
10
|
static send<T>(passable: T): Pipeline<T>;
|
|
8
11
|
through(pipes: readonly Pipe<T>[]): this;
|
|
9
12
|
pipe(...pipes: Pipe<T>[]): this;
|
|
@@ -11,3 +14,4 @@ export declare class Pipeline<T> {
|
|
|
11
14
|
then(destination: (data: T) => T): T;
|
|
12
15
|
thenReturn(): T;
|
|
13
16
|
}
|
|
17
|
+
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/utils",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.522",
|
|
6
6
|
"description": "The Stacks helper functions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -62,20 +62,20 @@
|
|
|
62
62
|
"size": "bun scripts/export-size.ts"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@stacksjs/browser": "0.75.
|
|
66
|
-
"@stacksjs/cli": "0.75.
|
|
67
|
-
"@stacksjs/config": "0.75.
|
|
68
|
-
"@stacksjs/enums": "0.75.
|
|
69
|
-
"@stacksjs/error-handling": "0.75.
|
|
70
|
-
"@stacksjs/logging": "0.75.
|
|
71
|
-
"@stacksjs/path": "0.75.
|
|
72
|
-
"@stacksjs/storage": "0.75.
|
|
73
|
-
"@stacksjs/strings": "0.75.
|
|
74
|
-
"@stacksjs/types": "0.75.
|
|
65
|
+
"@stacksjs/browser": "0.75.522",
|
|
66
|
+
"@stacksjs/cli": "0.75.522",
|
|
67
|
+
"@stacksjs/config": "0.75.522",
|
|
68
|
+
"@stacksjs/enums": "0.75.522",
|
|
69
|
+
"@stacksjs/error-handling": "0.75.522",
|
|
70
|
+
"@stacksjs/logging": "0.75.522",
|
|
71
|
+
"@stacksjs/path": "0.75.522",
|
|
72
|
+
"@stacksjs/storage": "0.75.522",
|
|
73
|
+
"@stacksjs/strings": "0.75.522",
|
|
74
|
+
"@stacksjs/types": "0.75.522"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@stacksjs/arrays": "0.75.
|
|
78
|
-
"@stacksjs/lint": "0.75.
|
|
77
|
+
"@stacksjs/arrays": "0.75.522",
|
|
78
|
+
"@stacksjs/lint": "0.75.522",
|
|
79
79
|
"better-dx": "^0.2.24",
|
|
80
80
|
"filesize": "^11.0.25",
|
|
81
81
|
"markdown-table": "^3.0.4"
|