@stryke/string-format 0.5.2 → 0.5.3
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/constant-case.cjs +1 -1
- package/dist/constant-case.mjs +1 -1
- package/package.json +3 -3
package/dist/constant-case.cjs
CHANGED
|
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.constantCase = constantCase;
|
|
7
7
|
var _snakeCase = require("./snake-case.cjs");
|
|
8
8
|
function constantCase(e) {
|
|
9
|
-
return (0, _snakeCase.snakeCase)(e)?.toUpperCase();
|
|
9
|
+
return e?.toUpperCase()?.replace(/\s+/g, "")?.replaceAll("-", "") === e ? e : (0, _snakeCase.snakeCase)(e)?.toUpperCase();
|
|
10
10
|
}
|
package/dist/constant-case.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{snakeCase as
|
|
1
|
+
import{snakeCase as r}from"./snake-case";export function constantCase(e){return e?.toUpperCase()?.replace(/\s+/g,"")?.replaceAll("-","")===e?e:r(e)?.toUpperCase()}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/string-format",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing utility functions to transform strings into various formats.",
|
|
6
6
|
"repository": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"private": false,
|
|
12
12
|
"publishConfig": { "access": "public" },
|
|
13
|
-
"dependencies": { "@stryke/helpers": "^0.
|
|
13
|
+
"dependencies": { "@stryke/helpers": "^0.7.0", "@stryke/types": "^0.8.6" },
|
|
14
14
|
"devDependencies": {},
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"files": ["dist/**/*"],
|
|
@@ -333,5 +333,5 @@
|
|
|
333
333
|
"main": "./dist/index.cjs",
|
|
334
334
|
"module": "./dist/index.mjs",
|
|
335
335
|
"types": "./dist/index.d.ts",
|
|
336
|
-
"gitHead": "
|
|
336
|
+
"gitHead": "366390ec25211fb6b36feed4bf0cffb7713253cb"
|
|
337
337
|
}
|