Skip to content

Commit f0ae3db

Browse files
authored
Merge pull request #3 from zopiolabs/feat/test-release-pipeline
feat: add validateInput utility function for release pipeline validation
2 parents a60910a + aa5493f commit f0ae3db

File tree

3 files changed

+1350
-26
lines changed

3 files changed

+1350
-26
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"node": ">=18.0.0",
1818
"pnpm": ">=8.0.0"
1919
},
20-
"packageManager": "pnpm@8.15.0",
20+
"packageManager": "pnpm@10.11.0",
2121
"scripts": {
2222
"analyze": "turbo run analyze",
2323
"lint": "turbo run lint",

packages/core/src/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,16 @@ export function log(message: string): void {
55
console.log(`[AICD Core]: ${message}`);
66
}
77

8+
/**
9+
* Test utility function for release pipeline validation
10+
* @param input - The input string to validate
11+
* @returns true if the input is valid, false otherwise
12+
*/
13+
export function validateInput(input: string): boolean {
14+
if (!input || typeof input !== 'string') {
15+
return false;
16+
}
17+
return input.trim().length > 0;
18+
}
19+
820
export * from './types';

0 commit comments

Comments
 (0)