@takeshape/util 7.215.1 → 7.216.1
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/es/strings.js +1 -1
- package/lib/strings.d.ts +1 -1
- package/lib/strings.js +2 -2
- package/package.json +1 -1
package/es/strings.js
CHANGED
|
@@ -3,7 +3,7 @@ import _camelCase from 'lodash/camelCase';
|
|
|
3
3
|
import isEmpty from 'lodash/isEmpty';
|
|
4
4
|
import isString from 'lodash/isString';
|
|
5
5
|
export const camelCase = _camelCase;
|
|
6
|
-
export function
|
|
6
|
+
export function pascalCase(str) {
|
|
7
7
|
return upperFirst(camelCase(str));
|
|
8
8
|
}
|
|
9
9
|
export function isUuid(str) {
|
package/lib/strings.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const camelCase: (str: string | string[]) => string;
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function pascalCase(str: string | string[]): string;
|
|
3
3
|
export declare function isUuid(str: string): boolean;
|
|
4
4
|
export declare function isEmptyString(str: unknown): boolean;
|
|
5
5
|
//# sourceMappingURL=strings.d.ts.map
|
package/lib/strings.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.pascalCase = pascalCase;
|
|
7
7
|
exports.isUuid = isUuid;
|
|
8
8
|
exports.isEmptyString = isEmptyString;
|
|
9
9
|
exports.camelCase = void 0;
|
|
@@ -21,7 +21,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
21
21
|
const camelCase = _camelCase2.default;
|
|
22
22
|
exports.camelCase = camelCase;
|
|
23
23
|
|
|
24
|
-
function
|
|
24
|
+
function pascalCase(str) {
|
|
25
25
|
return (0, _upperFirst.default)(camelCase(str));
|
|
26
26
|
}
|
|
27
27
|
|