@stacksjs/utils 0.70.73 → 0.70.75
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 +94 -44
- package/dist/index.js +7 -7
- package/package.json +14 -12
package/dist/colors.d.ts
CHANGED
|
@@ -1,7 +1,56 @@
|
|
|
1
|
+
declare function createColorFn(code: string, endCode?: string): ColorFn;
|
|
1
2
|
// Strip colors from text
|
|
2
3
|
export declare function stripColors(text: string): string;
|
|
3
4
|
// Check if colors are supported
|
|
4
5
|
export declare function supportsColor(): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Terminal colors and formatting (kolorist replacement)
|
|
8
|
+
*
|
|
9
|
+
* Lightweight terminal color library with zero dependencies
|
|
10
|
+
*/
|
|
11
|
+
declare const isColorSupported: unknown;
|
|
12
|
+
declare const colors: {
|
|
13
|
+
reset: unknown;
|
|
14
|
+
black: unknown;
|
|
15
|
+
red: unknown;
|
|
16
|
+
green: unknown;
|
|
17
|
+
yellow: unknown;
|
|
18
|
+
blue: unknown;
|
|
19
|
+
magenta: unknown;
|
|
20
|
+
cyan: unknown;
|
|
21
|
+
white: unknown;
|
|
22
|
+
gray: unknown;
|
|
23
|
+
grey: unknown;
|
|
24
|
+
lightRed: unknown;
|
|
25
|
+
lightGreen: unknown;
|
|
26
|
+
lightYellow: unknown;
|
|
27
|
+
lightBlue: unknown;
|
|
28
|
+
lightMagenta: unknown;
|
|
29
|
+
lightCyan: unknown;
|
|
30
|
+
lightGray: unknown;
|
|
31
|
+
lightGrey: unknown;
|
|
32
|
+
bgBlack: unknown;
|
|
33
|
+
bgRed: unknown;
|
|
34
|
+
bgGreen: unknown;
|
|
35
|
+
bgYellow: unknown;
|
|
36
|
+
bgBlue: unknown;
|
|
37
|
+
bgMagenta: unknown;
|
|
38
|
+
bgCyan: unknown;
|
|
39
|
+
bgWhite: unknown;
|
|
40
|
+
bgLightRed: unknown;
|
|
41
|
+
bgLightGreen: unknown;
|
|
42
|
+
bgLightYellow: unknown;
|
|
43
|
+
bgLightBlue: unknown;
|
|
44
|
+
bgLightMagenta: unknown;
|
|
45
|
+
bgLightCyan: unknown;
|
|
46
|
+
bold: unknown;
|
|
47
|
+
dim: unknown;
|
|
48
|
+
italic: unknown;
|
|
49
|
+
underline: unknown;
|
|
50
|
+
inverse: unknown;
|
|
51
|
+
hidden: unknown;
|
|
52
|
+
strikethrough: unknown
|
|
53
|
+
};
|
|
5
54
|
// Color functions
|
|
6
55
|
export declare const black: unknown;
|
|
7
56
|
export declare const red: unknown;
|
|
@@ -48,49 +97,50 @@ export declare const hidden: unknown;
|
|
|
48
97
|
export declare const strikethrough: unknown;
|
|
49
98
|
// Reset
|
|
50
99
|
export declare const reset: unknown;
|
|
100
|
+
declare const __dtsx_default_export__: {
|
|
101
|
+
black: typeof black;
|
|
102
|
+
red: typeof red;
|
|
103
|
+
green: typeof green;
|
|
104
|
+
yellow: typeof yellow;
|
|
105
|
+
blue: typeof blue;
|
|
106
|
+
magenta: typeof magenta;
|
|
107
|
+
cyan: typeof cyan;
|
|
108
|
+
white: typeof white;
|
|
109
|
+
gray: typeof gray;
|
|
110
|
+
grey: typeof grey;
|
|
111
|
+
lightRed: typeof lightRed;
|
|
112
|
+
lightGreen: typeof lightGreen;
|
|
113
|
+
lightYellow: typeof lightYellow;
|
|
114
|
+
lightBlue: typeof lightBlue;
|
|
115
|
+
lightMagenta: typeof lightMagenta;
|
|
116
|
+
lightCyan: typeof lightCyan;
|
|
117
|
+
lightGray: typeof lightGray;
|
|
118
|
+
lightGrey: typeof lightGrey;
|
|
119
|
+
bgBlack: typeof bgBlack;
|
|
120
|
+
bgRed: typeof bgRed;
|
|
121
|
+
bgGreen: typeof bgGreen;
|
|
122
|
+
bgYellow: typeof bgYellow;
|
|
123
|
+
bgBlue: typeof bgBlue;
|
|
124
|
+
bgMagenta: typeof bgMagenta;
|
|
125
|
+
bgCyan: typeof bgCyan;
|
|
126
|
+
bgWhite: typeof bgWhite;
|
|
127
|
+
bgLightRed: typeof bgLightRed;
|
|
128
|
+
bgLightGreen: typeof bgLightGreen;
|
|
129
|
+
bgLightYellow: typeof bgLightYellow;
|
|
130
|
+
bgLightBlue: typeof bgLightBlue;
|
|
131
|
+
bgLightMagenta: typeof bgLightMagenta;
|
|
132
|
+
bgLightCyan: typeof bgLightCyan;
|
|
133
|
+
bold: typeof bold;
|
|
134
|
+
dim: typeof dim;
|
|
135
|
+
italic: typeof italic;
|
|
136
|
+
underline: typeof underline;
|
|
137
|
+
inverse: typeof inverse;
|
|
138
|
+
hidden: typeof hidden;
|
|
139
|
+
strikethrough: typeof strikethrough;
|
|
140
|
+
reset: typeof reset;
|
|
141
|
+
stripColors: typeof stripColors;
|
|
142
|
+
supportsColor: typeof supportsColor
|
|
143
|
+
};
|
|
51
144
|
declare type ColorFn = (_text: string | number) => string;
|
|
52
145
|
// Default export
|
|
53
|
-
export default
|
|
54
|
-
black,
|
|
55
|
-
red,
|
|
56
|
-
green,
|
|
57
|
-
yellow,
|
|
58
|
-
blue,
|
|
59
|
-
magenta,
|
|
60
|
-
cyan,
|
|
61
|
-
white,
|
|
62
|
-
gray,
|
|
63
|
-
grey,
|
|
64
|
-
lightRed,
|
|
65
|
-
lightGreen,
|
|
66
|
-
lightYellow,
|
|
67
|
-
lightBlue,
|
|
68
|
-
lightMagenta,
|
|
69
|
-
lightCyan,
|
|
70
|
-
lightGray,
|
|
71
|
-
lightGrey,
|
|
72
|
-
bgBlack,
|
|
73
|
-
bgRed,
|
|
74
|
-
bgGreen,
|
|
75
|
-
bgYellow,
|
|
76
|
-
bgBlue,
|
|
77
|
-
bgMagenta,
|
|
78
|
-
bgCyan,
|
|
79
|
-
bgWhite,
|
|
80
|
-
bgLightRed,
|
|
81
|
-
bgLightGreen,
|
|
82
|
-
bgLightYellow,
|
|
83
|
-
bgLightBlue,
|
|
84
|
-
bgLightMagenta,
|
|
85
|
-
bgLightCyan,
|
|
86
|
-
bold,
|
|
87
|
-
dim,
|
|
88
|
-
italic,
|
|
89
|
-
underline,
|
|
90
|
-
inverse,
|
|
91
|
-
hidden,
|
|
92
|
-
strikethrough,
|
|
93
|
-
reset,
|
|
94
|
-
stripColors,
|
|
95
|
-
supportsColor,
|
|
96
|
-
};
|
|
146
|
+
export default __dtsx_default_export__;
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{path as L}from"@stacksjs/path";async function S$(){await Bun.$`rm -rf ${L.projectPath("bun.lock")}`,await Bun.$`rm -rf ${L.projectPath("yarn.lock")}`,await Bun.$`rm -rf ${L.projectPath("node_modules/")}`,await Bun.$`rm -rf ${L.frameworkPath("dist")}`,await Bun.$`rm -rf ${L.frameworkPath("node_modules")}`,await Bun.$`rm -rf ${L.frameworkPath("**/dist")}`,await Bun.$`rm -rf ${L.frameworkPath("**/node_modules")}`,await Bun.$`rm -rf ${L.frameworkCloudPath("cdk.out/")}`,await Bun.$`rm -rf ${L.frameworkCloudPath("cdk.context.json")}`,await Bun.$`rm -rf ${L.cloudPath("dist.zip")}`}import{defineApp as p$,defineCache as g$,defineCdn as b$,defineChat as m$,defineCli as d$,defineDatabase as u$,defineDependencies as c$,defineDns as n$,defineEmail as i$,defineEmailConfig as s$,defineGit as r$,defineHashing as a$,defineLibrary as o$,defineNotification as l$,definePayment as t$,defineQueue as e$,defineSearchEngine as $T,defineServices as TT,defineSms as fT,defineFilesystems as HT,defineUi as QT}from"@stacksjs/config";import{getTypeName as S}from"@stacksjs/types";function v($,T,f=new WeakMap){if($===T)return!0;if(typeof $==="number"&&typeof T==="number"&&Number.isNaN($)&&Number.isNaN(T))return!0;let H=S($),Q=S(T);if(H!==Q)return!1;if($&&typeof $==="object"){if(f.get($)===T)return!0;f.set($,T)}if(H==="array"){if($.length!==T.length)return!1;return $.every((X,_)=>v(X,T[_],f))}if(H==="object"){let X=Object.keys($);if(X.length!==Object.keys(T).length)return!1;return X.every((_)=>v($[_],T[_],f))}return Object.is($,T)}function $$($){if($ instanceof Error)return $.message;if(typeof $==="string")return $;if(typeof $==="number"||typeof $==="boolean")return String($);if($&&typeof $==="object"&&"message"in $&&typeof $.message==="string")return $.message;if($==null)return"Unknown error";try{return String($)}catch{return"Unknown error"}}function qT($){if($ instanceof Error)return $.stack;if($&&typeof $==="object"&&"stack"in $&&typeof $.stack==="string")return $.stack;return}function VT($){if($&&typeof $==="object"&&"code"in $&&typeof $.code==="string")return $.code;return}function _T($){if(!$||typeof $!=="object")return;let T=$;if(typeof T.statusCode==="number"&&Number.isFinite(T.statusCode))return T.statusCode;if(typeof T.status==="number"&&Number.isFinite(T.status))return T.status;return}function PT($){if($ instanceof Error)return $;return Error($$($),{cause:$})}import{stat as T$}from"fs/promises";var C=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],p=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];function
|
|
3
|
-
`).filter(Boolean)){let Q=H.replace($,"").replace(/^\//,"");T.push({name:Q,path:H})}}catch{}return T}function X$($){return Math.floor($*0.3)}function Z$($){return Math.floor($*0.25)}function OT($){if($.exports.length===0)return"No exports found";let T=["Export Sizes:",""],f=Math.max(...$.exports.map((H)=>H.name.length));for(let H of $.exports){let Q=H.name.padEnd(f," ");T.push(` ${Q} ${H.readable}`)}return T.push(""),T.push(`Total: ${$.totalReadable}`),T.push(`Estimated gzipped: ${
|
|
4
|
-
`)}import g from"fs/promises";import D from"os";import b from"path";import{italic as R}from"@stacksjs/cli";import{log as z}from"@stacksjs/logging";var q$="buddy",m=["node_modules","dist","vendor","storage/framework",/.*out.*/,/.*\/\..*/],V$=[`${D.homedir()}/Documents`,`${D.homedir()}/Pictures`,`${D.homedir()}/Library`,`${D.homedir()}/.Trash`];async function zT($,T){let f=!!$;$=$||D.homedir();let H=f?m:[...m,...V$];if(!T?.quiet)z.info(`Searching for Stacks projects in: ${R($)}`),z.info("This may take a few moments..."),console.log(""),console.log(R(" Please note, while Stacks is searching for projects on your machine,")),console.log(R(" you may be asked for permissions to scan certain directories.")),console.log(""),z.debug(`Excluding directories: ${H.join(", ")}`);let Q=await d($,H);if(!Q)throw Error("No Stacks projects found");return Q}async function d($,T){let f=[];if(T.some((P)=>typeof P==="string"?$.includes(P):P.test($)))return f;let Q;try{Q=await g.readdir($,{withFileTypes:!0})}catch(P){return console.error(`Error reading directory ${$}:`,P),f}let X=!1,_=!1;for(let P of Q){if(P.isFile()&&P.name===q$)X=!0;if(P.isDirectory()){let B=b.join($,P.name);if(P.name==="storage"){let G=b.join(B,"framework/core/buddy");try{await g.access(G),_=!0}catch{}}let J=await d(B,T);f.push(...J)}}if(X&&_)f.push($);return f}import{execSync as _$}from"child_process";import{handleError as P$}from"@stacksjs/error-handling";function hT(){try{return _$("git diff-index --quiet HEAD --"),!0}catch($){return P$($),!1}}import{config as B$}from"@stacksjs/config";import{log as u}from"@stacksjs/logging";import{path as M}from"@stacksjs/path";import{hashPaths as E}from"@stacksjs/storage";function CT(){try{return E(M.cloudPath("src/edge"))}catch($){u.error("Are we in a Docker container? Failed to hash paths. Error below:"),u.error($);return}}function pT(){let $=[M.projectPath("docs"),M.frameworkPath("docs/dist")],T=[M.projectPath("resources/views"),M.projectPath("resources/assets"),M.projectPath("resources/lang"),M.projectPath("resources/functions"),M.projectPath("resources/components"),M.projectPath("resources/modules"),M.projectPath("resources/stores"),M.frameworkPath("views/web")];return B$.app.docMode===!0?E($):E(T)}function gT(){let $=[M.projectPath("docs"),M.frameworkPath("docs/dist")];return E($)}import{runAction as G$}from"@stacksjs/actions";import{log as c,runCommand as J$}from"@stacksjs/cli";import{app as s,ui as n}from"@stacksjs/config";import{Action as U$}from"@stacksjs/enums";import{err as r,handleError as x,ok as Y$}from"@stacksjs/error-handling";import{frameworkPath as h,projectPath as
|
|
5
|
-
`).find((H)=>H.startsWith("APP_KEY="));return!!(f&&f.length>16)}function eT($){if($===void 0&&n.reset)$=n.reset;if($===null)return[];let H={tailwind:'import { tailwindPreflight as reset } from "@cwcss/crosswind"',preflight:'import { tailwindPreflight as reset } from "@cwcss/crosswind"',forms:'import { tailwindFormsPreflight as reset } from "@cwcss/crosswind"'}[$??"tailwind"];return H?[H]:[]}function O$($){return $&&typeof $==="object"&&w($.name)&&w($.version)&&w($.description)}function w($){let T=typeof $;return $===null||T==="undefined"||T==="string"}async function $f($,T){let f=await o(
|
|
2
|
+
import{path as L}from"@stacksjs/path";async function S$(){await Bun.$`rm -rf ${L.projectPath("bun.lock")}`,await Bun.$`rm -rf ${L.projectPath("yarn.lock")}`,await Bun.$`rm -rf ${L.projectPath("node_modules/")}`,await Bun.$`rm -rf ${L.frameworkPath("dist")}`,await Bun.$`rm -rf ${L.frameworkPath("node_modules")}`,await Bun.$`rm -rf ${L.frameworkPath("**/dist")}`,await Bun.$`rm -rf ${L.frameworkPath("**/node_modules")}`,await Bun.$`rm -rf ${L.frameworkCloudPath("cdk.out/")}`,await Bun.$`rm -rf ${L.frameworkCloudPath("cdk.context.json")}`,await Bun.$`rm -rf ${L.cloudPath("dist.zip")}`}import{defineApp as p$,defineCache as g$,defineCdn as b$,defineChat as m$,defineCli as d$,defineDatabase as u$,defineDependencies as c$,defineDns as n$,defineEmail as i$,defineEmailConfig as s$,defineGit as r$,defineHashing as a$,defineLibrary as o$,defineNotification as l$,definePayment as t$,defineQueue as e$,defineSearchEngine as $T,defineServices as TT,defineSms as fT,defineFilesystems as HT,defineUi as QT}from"@stacksjs/config";import{getTypeName as S}from"@stacksjs/types";function v($,T,f=new WeakMap){if($===T)return!0;if(typeof $==="number"&&typeof T==="number"&&Number.isNaN($)&&Number.isNaN(T))return!0;let H=S($),Q=S(T);if(H!==Q)return!1;if($&&typeof $==="object"){if(f.get($)===T)return!0;f.set($,T)}if(H==="array"){if($.length!==T.length)return!1;return $.every((X,_)=>v(X,T[_],f))}if(H==="object"){let X=Object.keys($);if(X.length!==Object.keys(T).length)return!1;return X.every((_)=>v($[_],T[_],f))}return Object.is($,T)}function $$($){if($ instanceof Error)return $.message;if(typeof $==="string")return $;if(typeof $==="number"||typeof $==="boolean")return String($);if($&&typeof $==="object"&&"message"in $&&typeof $.message==="string")return $.message;if($==null)return"Unknown error";try{return String($)}catch{return"Unknown error"}}function qT($){if($ instanceof Error)return $.stack;if($&&typeof $==="object"&&"stack"in $&&typeof $.stack==="string")return $.stack;return}function VT($){if($&&typeof $==="object"&&"code"in $&&typeof $.code==="string")return $.code;return}function _T($){if(!$||typeof $!=="object")return;let T=$;if(typeof T.statusCode==="number"&&Number.isFinite(T.statusCode))return T.statusCode;if(typeof T.status==="number"&&Number.isFinite(T.status))return T.status;return}function PT($){if($ instanceof Error)return $;return Error($$($),{cause:$})}import{stat as T$}from"fs/promises";var C=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],p=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];function I($,T={}){let{precision:f=1,binary:H=!1,space:Q=!0,locale:X="en-US",minimumFractionDigits:_=0,maximumFractionDigits:P=f}=T;if(!Number.isFinite($))throw TypeError(`Expected a finite number, got ${typeof $}: ${$}`);let B=$<0,J=B?"-":"";if(B)$=-$;if($<1){let e=$.toLocaleString(X,{minimumFractionDigits:_,maximumFractionDigits:P});return`${J}${e}${Q?" ":""}B`}let G=H?1024:1000,Y=H?p:C,U=Math.min(Math.floor(Math.log($)/Math.log(G)),Y.length-1),O=($/G**U).toLocaleString(X,{minimumFractionDigits:_,maximumFractionDigits:P}),W=Y[U];return`${J}${O}${Q?" ":""}${W}`}function y($){let T=$.match(/^(-?[\d.]+)\s*([A-Za-z]+)?$/);if(!T)throw Error(`Invalid byte string: ${$}`);let[,f,H="B"]=T;if(f===void 0)throw Error(`Invalid byte string: ${$}`);let Q=Number.parseFloat(f);if(!Number.isFinite(Q))throw Error(`Invalid number in byte string: ${f}`);let X=H.toUpperCase(),_=X.endsWith("IB"),P=_?1024:1000,B=0,J=_?p:C;for(let G=0;G<J.length;G++)if(J[G]?.toUpperCase()===X){B=G;break}return Q*P**B}function GT($,T){let f=typeof $==="string"?y($):$,H=typeof T==="string"?y(T):T;return f-H}var JT=I,UT=I;async function f$($){try{return(await T$($)).size}catch{return 0}}async function H$($){let T=[],f=0;try{let H=await Q$($);for(let Q of H){let X=await f$(Q.path);f+=X,T.push({name:Q.name,size:X,readable:I(X)})}}catch(H){}return{totalSize:f,totalReadable:I(f),exports:T.sort((H,Q)=>Q.size-H.size)}}async function Q$($){let T=[];try{let f=await Bun.$.throws(!1)`find ${$} -type f \\( -name "*.js" -o -name "*.mjs" -o -name "*.cjs" \\)`.text();for(let H of f.split(`
|
|
3
|
+
`).filter(Boolean)){let Q=H.replace($,"").replace(/^\//,"");T.push({name:Q,path:H})}}catch{}return T}function X$($){return Math.floor($*0.3)}function Z$($){return Math.floor($*0.25)}function OT($){if($.exports.length===0)return"No exports found";let T=["Export Sizes:",""],f=Math.max(...$.exports.map((H)=>H.name.length));for(let H of $.exports){let Q=H.name.padEnd(f," ");T.push(` ${Q} ${H.readable}`)}return T.push(""),T.push(`Total: ${$.totalReadable}`),T.push(`Estimated gzipped: ${I(X$($.totalSize))}`),T.push(`Estimated brotli: ${I(Z$($.totalSize))}`),T.join(`
|
|
4
|
+
`)}import g from"fs/promises";import D from"os";import b from"path";import{italic as R}from"@stacksjs/cli";import{log as z}from"@stacksjs/logging";var q$="buddy",m=["node_modules","dist","vendor","storage/framework",/.*out.*/,/.*\/\..*/],V$=[`${D.homedir()}/Documents`,`${D.homedir()}/Pictures`,`${D.homedir()}/Library`,`${D.homedir()}/.Trash`];async function zT($,T){let f=!!$;$=$||D.homedir();let H=f?m:[...m,...V$];if(!T?.quiet)z.info(`Searching for Stacks projects in: ${R($)}`),z.info("This may take a few moments..."),console.log(""),console.log(R(" Please note, while Stacks is searching for projects on your machine,")),console.log(R(" you may be asked for permissions to scan certain directories.")),console.log(""),z.debug(`Excluding directories: ${H.join(", ")}`);let Q=await d($,H);if(!Q)throw Error("No Stacks projects found");return Q}async function d($,T){let f=[];if(T.some((P)=>typeof P==="string"?$.includes(P):P.test($)))return f;let Q;try{Q=await g.readdir($,{withFileTypes:!0})}catch(P){return console.error(`Error reading directory ${$}:`,P),f}let X=!1,_=!1;for(let P of Q){if(P.isFile()&&P.name===q$)X=!0;if(P.isDirectory()){let B=b.join($,P.name);if(P.name==="storage"){let G=b.join(B,"framework/core/buddy");try{await g.access(G),_=!0}catch{}}let J=await d(B,T);f.push(...J)}}if(X&&_)f.push($);return f}import{execSync as _$}from"child_process";import{handleError as P$}from"@stacksjs/error-handling";function hT(){try{return _$("git diff-index --quiet HEAD --"),!0}catch($){return P$($),!1}}import{config as B$}from"@stacksjs/config";import{log as u}from"@stacksjs/logging";import{path as M}from"@stacksjs/path";import{hashPaths as E}from"@stacksjs/storage";function CT(){try{return E(M.cloudPath("src/edge"))}catch($){u.error("Are we in a Docker container? Failed to hash paths. Error below:"),u.error($);return}}function pT(){let $=[M.projectPath("docs"),M.frameworkPath("docs/dist")],T=[M.projectPath("resources/views"),M.projectPath("resources/assets"),M.projectPath("resources/lang"),M.projectPath("resources/functions"),M.projectPath("resources/components"),M.projectPath("resources/modules"),M.projectPath("resources/stores"),M.frameworkPath("views/web")];return B$.app.docMode===!0?E($):E(T)}function gT(){let $=[M.projectPath("docs"),M.frameworkPath("docs/dist")];return E($)}import{runAction as G$}from"@stacksjs/actions";import{log as c,runCommand as J$}from"@stacksjs/cli";import{app as s,ui as n}from"@stacksjs/config";import{Action as U$}from"@stacksjs/enums";import{err as r,handleError as x,ok as Y$}from"@stacksjs/error-handling";import{frameworkPath as h,projectPath as k}from"@stacksjs/path";import{fs as A,readJsonFile as K$,readPackageJson as a,readTextFile as o,writeTextFile as M$}from"@stacksjs/storage";async function rT(){let{packageManager:$}=await a(h("package.json"));return $}async function aT(){if(s.env!=="production")c.info("Project not yet initialized, generating application key...");else x("Please run `buddy key:generate` to generate an application key");let $=await G$(U$.KeyGenerate,{cwd:k()});if($.isErr)return r(x($.error));return c.info("Application key generated."),Y$($.value)}async function oT(){if(A.existsSync(k(".env")))return await i();if(A.existsSync(k(".env.example")))A.copyFileSync(k(".env.example"),k(".env"));else console.error("no .env.example file found");return await i()}async function lT(){}async function tT(){return(await a(h("package.json"))).version}async function i(){let f=(await o(".env",k())).data.split(`
|
|
5
|
+
`).find((H)=>H.startsWith("APP_KEY="));return!!(f&&f.length>16)}function eT($){if($===void 0&&n.reset)$=n.reset;if($===null)return[];let H={tailwind:'import { tailwindPreflight as reset } from "@cwcss/crosswind"',preflight:'import { tailwindPreflight as reset } from "@cwcss/crosswind"',forms:'import { tailwindFormsPreflight as reset } from "@cwcss/crosswind"'}[$??"tailwind"];return H?[H]:[]}function O$($){return $&&typeof $==="object"&&w($.name)&&w($.version)&&w($.description)}function w($){let T=typeof $;return $===null||T==="undefined"||T==="string"}async function $f($,T){let f=await o(k(".env")),H=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Q=new RegExp(`^${H}=.*$`,"m"),X=`${$}=${T}`,_=Q.test(f.data)?f.data.replace(Q,X):`${f.data}${f.data.endsWith(`
|
|
6
6
|
`)?"":`
|
|
7
7
|
`}${X}
|
|
8
|
-
`;await M$({path:
|
|
8
|
+
`;await M$({path:k(".env"),data:_})}async function Tf($,T){let{data:f}=await K$("package.json",h());if(O$(f)&&L$(f,$))return await J$(`bun run ${$}`,T);return r(x(`The ${$} script does not exist in the package.json file.`))}function L$($,T){let f=$.scripts;if(f&&typeof f==="object")return Boolean(f[T]);return!1}function ff($){return Bun.YAML.parse($)}function Hf($){if($?.verbose===!0)return!0;return s.debug===!0}function Qf($){return $.family==="IPv6"||$.family===6}function Xf($){let T=Bun.YAML;if(typeof T.stringify==="function")return T.stringify($);return JSON.stringify($,null,2)}function Zf($){return Bun.YAML.parse($)}class k${static macros=new Map;static macro($,T,f=!1){if(this.macros.has($)&&!f)throw Error(`Macro "${$}" is already registered`);this.macros.set($,T),Object.defineProperty(this.prototype,$,{value:T,writable:!0,configurable:!0,enumerable:!1})}static mixin($,T=!0){let f=Object.getOwnPropertyNames($);for(let H of f){if(H==="constructor")continue;if(this.macros.has(H)&&!T)continue;let Q=Object.getOwnPropertyDescriptor($,H);if(Q&&typeof Q.value==="function")this.macro(H,Q.value,T)}}static hasMacro($){return this.macros.has($)}static flushMacros(){for(let $ of this.macros.keys())delete this.prototype[$];this.macros.clear()}static getMacros(){return Array.from(this.macros.keys())}callMacro($,...T){let f=this.constructor.macros.get($);if(!f)throw Error(`Macro "${$}" is not registered`);return f.apply(this,T)}}function Vf($=class{}){return class extends ${static macros=new Map;static macro(T,f,H=!1){if(this.macros.has(T)&&!H)throw Error(`Macro "${T}" is already registered`);this.macros.set(T,f),Object.defineProperty(this.prototype,T,{value:f,writable:!0,configurable:!0,enumerable:!1})}static mixin(T,f=!0){let H=Object.getOwnPropertyNames(T);for(let Q of H){if(Q==="constructor")continue;if(this.macros.has(Q)&&!f)continue;let X=Object.getOwnPropertyDescriptor(T,Q);if(X&&typeof X.value==="function")this.macro(Q,X.value,f)}}static hasMacro(T){return this.macros.has(T)}static flushMacros(){for(let T of this.macros.keys())delete this.prototype[T];this.macros.clear()}static getMacros(){return Array.from(this.macros.keys())}}}function _f($){let T=new Map;return $.macro=function(f,H,Q=!1){if(T.has(f)&&!Q)throw Error(`Macro "${f}" is already registered`);T.set(f,H),Object.defineProperty($.prototype,f,{value:H,writable:!0,configurable:!0,enumerable:!1})},$.mixin=function(f,H=!0){let Q=Object.getOwnPropertyNames(f);for(let X of Q){if(X==="constructor")continue;if(T.has(X)&&!H)continue;let _=Object.getOwnPropertyDescriptor(f,X);if(_&&typeof _.value==="function")$.macro(X,_.value,H)}},$.hasMacro=function(f){return T.has(f)},$.flushMacros=function(){for(let f of T.keys())delete $.prototype[f];T.clear()},$.getMacros=function(){return Array.from(T.keys())},$}function Jf($,T){if(typeof $!=="string"||$.length===0)return T;try{return JSON.parse($)}catch{return T}}function Uf($){if(typeof $!=="string")return{ok:!1,reason:"not-string"};if($.length===0)return{ok:!1,reason:"empty"};try{return{ok:!0,value:JSON.parse($)}}catch(T){return{ok:!1,reason:"malformed",error:T}}}function Yf($,T){let f=new WeakSet;return JSON.stringify($,(H,Q)=>{if(typeof Q==="bigint")return Q.toString();if(Q&&typeof Q==="object"){if(f.has(Q))return"[Circular]";f.add(Q)}return Q},T)}var W$="0.70.75";var Lf=Bun.semver;function kf($,T){return Bun.semver.order($,T)===1}function If($,T){return Bun.semver.order($,T)===-1}function Wf($,T){return Bun.semver.order($,T)===0}function Df($,T){return Bun.semver.order($,T)>=0}function Ef($,T){return Bun.semver.order($,T)<=0}import*as i0 from"@stacksjs/browser";import{clamp as r0,notNullish as a0,retry as o0,useOnline as l0}from"@stacksjs/browser";function N(...$){let T={};for(let f of $){if(!f||typeof f!=="object")continue;for(let H in f){let Q=f[H],X=T[H];if(Q===void 0)continue;if(Array.isArray(Q))T[H]=Array.isArray(X)?[...X,...Q]:[...Q];else if(Q&&typeof Q==="object"&&!E$(Q))T[H]=N(X||{},Q);else T[H]=Q}}return T}function Rf($){return(...T)=>{return N($,...T)}}function D$($,...T){return N({},...T,$)}function E$($){if($ instanceof Date)return!0;if($ instanceof RegExp)return!0;if($ instanceof Error)return!0;if($ instanceof Promise)return!0;if($ instanceof Map)return!0;if($ instanceof Set)return!0;if($ instanceof WeakMap)return!0;if($ instanceof WeakSet)return!0;if(ArrayBuffer.isView($))return!0;return!1}var zf=D$,Af=N;function xf($){let T=$.split(`
|
|
9
9
|
`),f=[];for(let P of T){if(!P.trim())continue;let B=P.match(/^(\s+)/);if(B&&B[1]!==void 0)f.push(B[1])}if(f.length===0)return{amount:0,type:null,indent:""};let H=new Map;for(let P of f)H.set(P,(H.get(P)||0)+1);let Q="",X=0;for(let[P,B]of H)if(B>X)X=B,Q=P;if(Q.includes("\t"))return{amount:Q.length,type:"tab",indent:Q};return{amount:Q.length,type:"space",indent:Q}}function N$($){if(!$)return null;if($.includes(`\r
|
|
10
10
|
`))return`\r
|
|
11
11
|
`;if($.includes(`
|
|
12
12
|
`))return`
|
|
13
13
|
`;if($.includes("\r"))return"\r";return null}function hf($,T=`
|
|
14
14
|
`){return N$($)||T}function Ff($,T=`
|
|
15
|
-
`){return $.replace(/\r\n|\r|\n/g,T)}function jf($){let T=($.match(/\r\n/g)||[]).length,f=($.match(/\r(?!\n)/g)||[]).length,H=($.match(/(?<!\r)\n/g)||[]).length;return{crlf:T,lf:H,cr:f,total:T+H+f}}function vf($,T=0,f={}){let{leading:H=!1,trailing:Q=!0}=f,X=null,_=null,P=null,B,J=()=>{if(_)B=$.apply(P,_),_=null,P=null;return B},G=()=>{if(X)clearTimeout(X),X=null;_=null,P=null},Y=()=>{if(X)return clearTimeout(X),X=null,J();return B},U=function(...K){_=K,P=this;let O=H&&!X;if(X)clearTimeout(X);if(X=setTimeout(()=>{if(X=null,Q&&_)J()},T),O)return J();return B};return U.cancel=G,U.flush=Y,U}function yf($,T=0){let f=null,H=0,Q=null,X=null,_=()=>{if(Q)$.apply(X,Q),Q=null,X=null,H=Date.now()},P=()=>{if(f)clearTimeout(f),f=null;Q=null,X=null},B=function(...J){Q=J,X=this;let Y=Date.now()-H;if(Y>=T)_();else if(!f)f=setTimeout(()=>{f=null,_()},T-Y)};return B.cancel=P,B}function Cf($){return new Promise((T)=>setTimeout(T,$))}var Z=!process.env.NO_COLOR&&(process.env.FORCE_COLOR||process.stdout?.isTTY),q={reset:Z?"\x1B[0m":"",black:Z?"\x1B[30m":"",red:Z?"\x1B[31m":"",green:Z?"\x1B[32m":"",yellow:Z?"\x1B[33m":"",blue:Z?"\x1B[34m":"",magenta:Z?"\x1B[35m":"",cyan:Z?"\x1B[36m":"",white:Z?"\x1B[37m":"",gray:Z?"\x1B[90m":"",grey:Z?"\x1B[90m":"",lightRed:Z?"\x1B[91m":"",lightGreen:Z?"\x1B[92m":"",lightYellow:Z?"\x1B[93m":"",lightBlue:Z?"\x1B[94m":"",lightMagenta:Z?"\x1B[95m":"",lightCyan:Z?"\x1B[96m":"",lightGray:Z?"\x1B[37m":"",lightGrey:Z?"\x1B[37m":"",bgBlack:Z?"\x1B[40m":"",bgRed:Z?"\x1B[41m":"",bgGreen:Z?"\x1B[42m":"",bgYellow:Z?"\x1B[43m":"",bgBlue:Z?"\x1B[44m":"",bgMagenta:Z?"\x1B[45m":"",bgCyan:Z?"\x1B[46m":"",bgWhite:Z?"\x1B[47m":"",bgLightRed:Z?"\x1B[101m":"",bgLightGreen:Z?"\x1B[102m":"",bgLightYellow:Z?"\x1B[103m":"",bgLightBlue:Z?"\x1B[104m":"",bgLightMagenta:Z?"\x1B[105m":"",bgLightCyan:Z?"\x1B[106m":"",bold:Z?"\x1B[1m":"",dim:Z?"\x1B[2m":"",italic:Z?"\x1B[3m":"",underline:Z?"\x1B[4m":"",inverse:Z?"\x1B[7m":"",hidden:Z?"\x1B[8m":"",strikethrough:Z?"\x1B[9m":""};function V($,T=q.reset){return(f)=>{if(!Z)return String(f);return`${$}${f}${T}`}}var gf=V(q.black),bf=V(q.red),mf=V(q.green),df=V(q.yellow),uf=V(q.blue),cf=V(q.magenta),nf=V(q.cyan),sf=V(q.white),R$=V(q.gray),rf=R$,af=V(q.lightRed),of=V(q.lightGreen),lf=V(q.lightYellow),tf=V(q.lightBlue),ef=V(q.lightMagenta),$
|
|
16
|
-
`)}function F($,T,f,H,Q,X){let _=$.map((J,G)=>{let Y=T[G]??0;return J.padEnd(Y," ")}),P=f?" ":"",B=_.map((J)=>`${P}${J}${P}`).join(H);if(Q)B=H+B;if(X)B=B+H;return B}function w$($,T,f){let H=T==="center"?3:T?2:1;if($<H)$=H;let Q=f.repeat($);if(T==="left")Q=`:${Q.slice(1)}`;else if(T==="right")Q=Q.slice(0,-1)+":";else if(T==="center")Q=`:${Q.slice(2)}:`;return Q}function x$($){if(!$)return null;switch($){case"l":case"left":return"left";case"c":case"center":return"center";case"r":case"right":return"right";default:return null}}function
|
|
15
|
+
`){return $.replace(/\r\n|\r|\n/g,T)}function jf($){let T=($.match(/\r\n/g)||[]).length,f=($.match(/\r(?!\n)/g)||[]).length,H=($.match(/(?<!\r)\n/g)||[]).length;return{crlf:T,lf:H,cr:f,total:T+H+f}}function vf($,T=0,f={}){let{leading:H=!1,trailing:Q=!0}=f,X=null,_=null,P=null,B,J=()=>{if(_)B=$.apply(P,_),_=null,P=null;return B},G=()=>{if(X)clearTimeout(X),X=null;_=null,P=null},Y=()=>{if(X)return clearTimeout(X),X=null,J();return B},U=function(...K){_=K,P=this;let O=H&&!X;if(X)clearTimeout(X);if(X=setTimeout(()=>{if(X=null,Q&&_)J()},T),O)return J();return B};return U.cancel=G,U.flush=Y,U}function yf($,T=0){let f=null,H=0,Q=null,X=null,_=()=>{if(Q)$.apply(X,Q),Q=null,X=null,H=Date.now()},P=()=>{if(f)clearTimeout(f),f=null;Q=null,X=null},B=function(...J){Q=J,X=this;let Y=Date.now()-H;if(Y>=T)_();else if(!f)f=setTimeout(()=>{f=null,_()},T-Y)};return B.cancel=P,B}function Cf($){return new Promise((T)=>setTimeout(T,$))}var Z=!process.env.NO_COLOR&&(process.env.FORCE_COLOR||process.stdout?.isTTY),q={reset:Z?"\x1B[0m":"",black:Z?"\x1B[30m":"",red:Z?"\x1B[31m":"",green:Z?"\x1B[32m":"",yellow:Z?"\x1B[33m":"",blue:Z?"\x1B[34m":"",magenta:Z?"\x1B[35m":"",cyan:Z?"\x1B[36m":"",white:Z?"\x1B[37m":"",gray:Z?"\x1B[90m":"",grey:Z?"\x1B[90m":"",lightRed:Z?"\x1B[91m":"",lightGreen:Z?"\x1B[92m":"",lightYellow:Z?"\x1B[93m":"",lightBlue:Z?"\x1B[94m":"",lightMagenta:Z?"\x1B[95m":"",lightCyan:Z?"\x1B[96m":"",lightGray:Z?"\x1B[37m":"",lightGrey:Z?"\x1B[37m":"",bgBlack:Z?"\x1B[40m":"",bgRed:Z?"\x1B[41m":"",bgGreen:Z?"\x1B[42m":"",bgYellow:Z?"\x1B[43m":"",bgBlue:Z?"\x1B[44m":"",bgMagenta:Z?"\x1B[45m":"",bgCyan:Z?"\x1B[46m":"",bgWhite:Z?"\x1B[47m":"",bgLightRed:Z?"\x1B[101m":"",bgLightGreen:Z?"\x1B[102m":"",bgLightYellow:Z?"\x1B[103m":"",bgLightBlue:Z?"\x1B[104m":"",bgLightMagenta:Z?"\x1B[105m":"",bgLightCyan:Z?"\x1B[106m":"",bold:Z?"\x1B[1m":"",dim:Z?"\x1B[2m":"",italic:Z?"\x1B[3m":"",underline:Z?"\x1B[4m":"",inverse:Z?"\x1B[7m":"",hidden:Z?"\x1B[8m":"",strikethrough:Z?"\x1B[9m":""};function V($,T=q.reset){return(f)=>{if(!Z)return String(f);return`${$}${f}${T}`}}var gf=V(q.black),bf=V(q.red),mf=V(q.green),df=V(q.yellow),uf=V(q.blue),cf=V(q.magenta),nf=V(q.cyan),sf=V(q.white),R$=V(q.gray),rf=R$,af=V(q.lightRed),of=V(q.lightGreen),lf=V(q.lightYellow),tf=V(q.lightBlue),ef=V(q.lightMagenta),$0=V(q.lightCyan),z$=V(q.lightGray),T0=z$,f0=V(q.bgBlack),H0=V(q.bgRed),Q0=V(q.bgGreen),X0=V(q.bgYellow),Z0=V(q.bgBlue),q0=V(q.bgMagenta),V0=V(q.bgCyan),_0=V(q.bgWhite),P0=V(q.bgLightRed),B0=V(q.bgLightGreen),G0=V(q.bgLightYellow),J0=V(q.bgLightBlue),U0=V(q.bgLightMagenta),Y0=V(q.bgLightCyan),K0=V(q.bold),M0=V(q.dim),O0=V(q.italic),L0=V(q.underline),k0=V(q.inverse),I0=V(q.hidden),W0=V(q.strikethrough),D0=V(q.reset,"");function E0($){return $.replace(/\x1B\[\d+m/g,"")}function N0(){return!!Z}function A$($,T={}){let{align:f=[],padding:H=!0,delimiter:Q="|",delimiterStart:X=!0,delimiterEnd:_=!0,alignDelimiter:P="-"}=T;if(!$||$.length===0)return"";let B=$.map((U)=>U.map((K)=>{if(K===null||K===void 0)return"";return String(K)})),J=Math.max(...B.map((U)=>U.length)),G=Array.from({length:J}).fill(0);for(let U of B)for(let K=0;K<U.length;K++){let O=U[K]?.length??0;if(O>(G[K]??0))G[K]=O}let Y=[];if(B.length>0){let U=B[0]??[];Y.push(F(U,G,H,Q,X,_));let K=G.map((O,W)=>{let j=x$(f[W]);return w$(O,j,P)});Y.push(F(K,G,H,Q,X,_));for(let O=1;O<B.length;O++){let W=B[O]??[];Y.push(F(W,G,H,Q,X,_))}}return Y.join(`
|
|
16
|
+
`)}function F($,T,f,H,Q,X){let _=$.map((J,G)=>{let Y=T[G]??0;return J.padEnd(Y," ")}),P=f?" ":"",B=_.map((J)=>`${P}${J}${P}`).join(H);if(Q)B=H+B;if(X)B=B+H;return B}function w$($,T,f){let H=T==="center"?3:T?2:1;if($<H)$=H;let Q=f.repeat($);if(T==="left")Q=`:${Q.slice(1)}`;else if(T==="right")Q=Q.slice(0,-1)+":";else if(T==="center")Q=`:${Q.slice(2)}:`;return Q}function x$($){if(!$)return null;switch($){case"l":case"left":return"left";case"c":case"center":return"center";case"r":case"right":return"right";default:return null}}function z0($,T={}){if(!$||$.length===0)return"";let f=Array.from(new Set($.flatMap((Q)=>Object.keys(Q)))),H=[f,...$.map((Q)=>f.map((X)=>Q[X]))];return A$(H,T)}function h$(){return typeof window<"u"&&"ResizeObserver"in window}function l(){if(h$())return window.ResizeObserver;return class{callback;observedElements=new Set;rafId=null;constructor(T){this.callback=T}observe(T){if(!this.observedElements.has(T))this.observedElements.add(T),this.scheduleCheck()}unobserve(T){if(this.observedElements.delete(T),this.observedElements.size===0&&this.rafId!==null)(typeof cancelAnimationFrame<"u"?cancelAnimationFrame:clearTimeout)(this.rafId),this.rafId=null}disconnect(){if(this.observedElements.clear(),this.rafId!==null)(typeof cancelAnimationFrame<"u"?cancelAnimationFrame:clearTimeout)(this.rafId),this.rafId=null}scheduleCheck(){if(this.rafId!==null)return;let T=typeof requestAnimationFrame<"u"?requestAnimationFrame:setTimeout;this.rafId=T(()=>{if(this.check(),this.rafId=null,this.observedElements.size>0)this.scheduleCheck()})}check(){let T=[];for(let f of this.observedElements){let H=f.getBoundingClientRect(),Q={target:f,contentRect:H,borderBoxSize:[{inlineSize:H.width,blockSize:H.height}],contentBoxSize:[{inlineSize:H.width,blockSize:H.height}],devicePixelContentBoxSize:[{inlineSize:H.width,blockSize:H.height}]};T.push(Q)}if(T.length>0)this.callback(T,this)}}}function F$($,T){let H=new(l())($),Q=Array.isArray(T)?T:[T];for(let X of Q)H.observe(X);return()=>{H.disconnect()}}function w0($,T){return F$((f)=>{let H=f.find((Q)=>Q.target===$);if(H)T(H)},$)}var x0=l();class t{passable;pipes=[];method="handle";static send($){let T=new t;return T.passable=$,T}through($){return this.pipes=$,this}pipe(...$){return this.pipes.push(...$),this}via($){return this.method=$,this}then($){return this.pipes.reduceRight((f,H)=>{return(Q)=>{if(typeof H==="function")return H(Q,f);let X=H[this.method];if(typeof X==="function")return X.call(H,Q,f);return f(Q)}},$)(this.passable)}thenReturn(){return this.then(($)=>$)}}export{df as yellow,sf as white,pT as websiteSourceHash,W$ as version,l0 as useOnline,L0 as underline,PT as toError,yf as throttle,N0 as supportsColor,E0 as stripColors,W0 as strikethrough,$f as setEnvValue,Lf as semver,Yf as safeJsonStringify,Uf as safeJsonParseResult,Jf as safeJsonParse,Tf as runNpmScript,o0 as retry,D0 as reset,bf as red,UT as readableSize,JT as prettyBytes,ff as parseYaml,y as parseBytes,rT as packageManager,CT as originRequestFunctionHash,w0 as observeElementSize,a0 as notNullish,Ff as normalizeNewlines,D$ as mergeDefaults,N as merge,z0 as markdownTableFromObjects,A$ as markdownTable,cf as magenta,_f as macroable,Zf as loadYaml,lf as lightYellow,af as lightRed,ef as lightMagenta,T0 as lightGrey,of as lightGreen,z$ as lightGray,$0 as lightCyan,tf as lightBlue,O0 as italic,Ef as isVersionLessThanOrEqual,If as isVersionLessThan,Df as isVersionGreaterThanOrEqual,kf as isVersionGreaterThan,Wf as isVersionEqual,h$ as isResizeObserverSupported,w as isOptionalString,O$ as isManifest,Qf as isIpv6,hT as isGitClean,v as isDeepEqual,i as isAppKeySet,k0 as inverse,lT as installIfVersionMismatch,aT as initProject,I0 as hidden,L$ as hasScript,rf as grey,mf as green,R$ as gray,l as getResizeObserver,f$ as getFileSize,H$ as getExportsSize,_T as getErrorStatusCode,qT as getErrorStack,$$ as getErrorMessage,VT as getErrorCode,tT as frameworkVersion,OT as formatExportSizes,I as formatBytes,zT as findStacksProjects,X$ as estimateGzipSize,Z$ as estimateBrotliSize,oT as ensureProjectIsInitialized,Xf as dumpYaml,gT as docsSourceHash,M0 as dim,eT as determineResetPreset,Hf as determineDebugLevel,hf as detectNewlineGraceful,N$ as detectNewline,xf as detectIndent,Cf as delay,Af as defuArrayFn,zf as defu,QT as defineUi,fT as defineSms,TT as defineServices,$T as defineSearchEngine,e$ as defineQueue,t$ as definePayment,l$ as defineNotification,o$ as defineLibrary,a$ as defineHashing,r$ as defineGit,HT as defineFilesystems,s$ as defineEmailConfig,i$ as defineEmail,n$ as defineDns,c$ as defineDependencies,u$ as defineDatabase,d$ as defineCli,m$ as defineChat,b$ as defineCdn,g$ as defineCache,p$ as defineApp,vf as debounce,nf as cyan,F$ as createResizeObserver,Rf as createMerger,Vf as createMacroable,jf as countNewlines,GT as compareBytes,S$ as cleanProject,r0 as clamp,i0 as browserUtils,K0 as bold,uf as blue,gf as black,X0 as bgYellow,_0 as bgWhite,H0 as bgRed,q0 as bgMagenta,G0 as bgLightYellow,P0 as bgLightRed,U0 as bgLightMagenta,B0 as bgLightGreen,Y0 as bgLightCyan,J0 as bgLightBlue,Q0 as bgGreen,V0 as bgCyan,Z0 as bgBlue,f0 as bgBlack,x0 as ResizeObserver,t as Pipeline,k$ as Macroable};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.75",
|
|
5
5
|
"description": "The Stacks helper functions.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -57,18 +57,20 @@
|
|
|
57
57
|
"size": "bun scripts/export-size.ts"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@stacksjs/browser": "0.70.
|
|
60
|
+
"@stacksjs/browser": "0.70.75"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@stacksjs/actions": "0.70.
|
|
64
|
-
"@stacksjs/arrays": "0.70.
|
|
65
|
-
"@stacksjs/cli": "0.70.
|
|
66
|
-
"@stacksjs/config": "0.70.
|
|
67
|
-
"better-dx": "^0.2.
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"@stacksjs/
|
|
71
|
-
"@stacksjs/
|
|
72
|
-
"@stacksjs/
|
|
63
|
+
"@stacksjs/actions": "0.70.75",
|
|
64
|
+
"@stacksjs/arrays": "0.70.75",
|
|
65
|
+
"@stacksjs/cli": "0.70.75",
|
|
66
|
+
"@stacksjs/config": "0.70.75",
|
|
67
|
+
"better-dx": "^0.2.16",
|
|
68
|
+
"filesize": "^11.0.22",
|
|
69
|
+
"markdown-table": "^3.0.4",
|
|
70
|
+
"@stacksjs/lint": "0.70.75",
|
|
71
|
+
"@stacksjs/path": "0.70.75",
|
|
72
|
+
"@stacksjs/storage": "0.70.75",
|
|
73
|
+
"@stacksjs/strings": "0.70.75",
|
|
74
|
+
"@stacksjs/types": "0.70.75"
|
|
73
75
|
}
|
|
74
76
|
}
|