@hubspot/local-dev-lib 3.5.4 → 3.5.5-beta.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/lib/text.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export declare function commaSeparatedValues(arr: Array<string>, conjunction?: null | string, ifempty?: string): string;
2
- export declare function toKebabCase(str: string): string;
2
+ export declare function toKebabCase(str: string | null | undefined): string;
package/lib/text.js CHANGED
@@ -15,6 +15,9 @@ function commaSeparatedValues(arr, conjunction = 'and', ifempty = '') {
15
15
  }
16
16
  exports.commaSeparatedValues = commaSeparatedValues;
17
17
  function toKebabCase(str) {
18
+ if (!str) {
19
+ return '';
20
+ }
18
21
  return (str
19
22
  .replace(/[.,/#!$%^&*;:{}=\-_'"`~()]/g, '')
20
23
  .match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g) || [])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "3.5.4",
3
+ "version": "3.5.5-beta.0",
4
4
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
5
5
  "repository": {
6
6
  "type": "git",