@fjall/util 0.94.1 → 0.96.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/.minified +1 -1
- package/dist/caseConversion.d.ts +6 -0
- package/dist/caseConversion.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/.minified
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
21 files minified at 2026-04-
|
|
1
|
+
21 files minified at 2026-04-27T00:08:06.074Z
|
package/dist/caseConversion.d.ts
CHANGED
|
@@ -22,6 +22,12 @@ export declare function toKebab(str: string): string;
|
|
|
22
22
|
* Hyphens are rejected, so convert them to underscores.
|
|
23
23
|
*/
|
|
24
24
|
export declare function toValidDatabaseName(name: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Convert any case (PascalCase, camelCase, kebab-case, snake_case) to
|
|
27
|
+
* SCREAMING_SNAKE_CASE. Used for environment-variable name derivation.
|
|
28
|
+
* e.g., "MyApp" -> "MY_APP", "data-platform" -> "DATA_PLATFORM".
|
|
29
|
+
*/
|
|
30
|
+
export declare function toScreamingSnake(str: string): string;
|
|
25
31
|
/**
|
|
26
32
|
* Capitalise the first character of a string.
|
|
27
33
|
*/
|
package/dist/caseConversion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function n(e){return e.replace(/[-_](.)/g,(r,a)=>a.toUpperCase()).replace(/^./,r=>r.toUpperCase())}function t(e){return e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z\d])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function o(e){return t(e).replace(/-/g,"_")}function p(e){return t(e).replace(/-/g,"_").toUpperCase()}function c(e){return e.length===0?e:e.charAt(0).toUpperCase()+e.slice(1)}function i(e){return e.split(".").join("")}export{c as capitalise,i as getSafeZoneName,t as toKebab,n as toPascalCase,p as toScreamingSnake,o as toValidDatabaseName};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DNS_APEX, getDomainExportNames, type ManagedDomainExports } from "./domainExports.js";
|
|
2
|
-
export { toPascalCase, toKebab, toValidDatabaseName, capitalise, getSafeZoneName } from "./caseConversion.js";
|
|
2
|
+
export { toPascalCase, toKebab, toValidDatabaseName, toScreamingSnake, capitalise, getSafeZoneName } from "./caseConversion.js";
|
|
3
3
|
export { normaliseError, getErrorMessage, hasErrorCode, getErrorCode, getErrorStack, formatErrorString } from "./errorUtils.js";
|
|
4
4
|
export { singleton } from "./singleton.js";
|
|
5
5
|
export { DANGEROUS_ENV_VARS, filterDangerousEnvVars, maskSensitiveOutput, parseShellArgs } from "./securityHelpers.js";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DNS_APEX as o,getDomainExportNames as t}from"./domainExports.js";import{toPascalCase as i,toKebab as s,toValidDatabaseName as E,
|
|
1
|
+
import{DNS_APEX as o,getDomainExportNames as t}from"./domainExports.js";import{toPascalCase as i,toKebab as s,toValidDatabaseName as E,toScreamingSnake as g,capitalise as m,getSafeZoneName as n}from"./caseConversion.js";import{normaliseError as N,getErrorMessage as S,hasErrorCode as f,getErrorCode as R,getErrorStack as l,formatErrorString as x}from"./errorUtils.js";import{singleton as d}from"./singleton.js";import{DANGEROUS_ENV_VARS as c,filterDangerousEnvVars as v,maskSensitiveOutput as D,parseShellArgs as O}from"./securityHelpers.js";import{sleep as C}from"./sleep.js";import{STANDARD_ENVIRONMENTS as b,STRUCTURAL_ENVIRONMENTS as u,isValidEnvironment as U,ENVIRONMENT_LABELS as I,getEnvironmentLabel as L}from"./environments.js";import{RESOURCE_CATEGORIES as k,categoriseResource as G,getExpectedDuration as h,getFriendlyResourceType as y}from"./resourceCategorisation.js";import{parseGitRemoteUrl as P}from"./gitRemoteParser.js";import{abbreviateRegion as K}from"./regions.js";import{deriveRegionsFromOrgConfig as Z,deriveTargets as j,deriveAllTargets as q,findTarget as w,generateTargetName as z}from"./targets.js";export{c as DANGEROUS_ENV_VARS,o as DNS_APEX,I as ENVIRONMENT_LABELS,k as RESOURCE_CATEGORIES,b as STANDARD_ENVIRONMENTS,u as STRUCTURAL_ENVIRONMENTS,K as abbreviateRegion,m as capitalise,G as categoriseResource,q as deriveAllTargets,Z as deriveRegionsFromOrgConfig,j as deriveTargets,v as filterDangerousEnvVars,w as findTarget,x as formatErrorString,z as generateTargetName,t as getDomainExportNames,L as getEnvironmentLabel,R as getErrorCode,S as getErrorMessage,l as getErrorStack,h as getExpectedDuration,y as getFriendlyResourceType,n as getSafeZoneName,f as hasErrorCode,U as isValidEnvironment,D as maskSensitiveOutput,N as normaliseError,P as parseGitRemoteUrl,O as parseShellArgs,d as singleton,C as sleep,s as toKebab,i as toPascalCase,g as toScreamingSnake,E as toValidDatabaseName};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fjall/util",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.96.0",
|
|
4
4
|
"description": "Common utility methods",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=22.0.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "bfbd3625ab029ba77a6571630e0edb85f9d53380"
|
|
84
84
|
}
|