@domain-first/project-structure 2.7.4 → 2.7.5
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/unknown-format-naming.spec.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -222,7 +222,7 @@ class UnknownFormatNaming {
|
|
|
222
222
|
this.camelCase = source.substring(0, 1).toLowerCase() + source.substring(1);
|
|
223
223
|
this.PascalCase = source.substring(0, 1).toUpperCase() + source.substring(1);
|
|
224
224
|
}
|
|
225
|
-
const words = source.split('-');
|
|
225
|
+
const words = source.split('-').filter((word)=>!!word);
|
|
226
226
|
this.camelCase = words.map((word, index)=>0 === index ? word.toLowerCase() : word[0].toUpperCase() + word.slice(1).toLowerCase()).join('');
|
|
227
227
|
this.PascalCase = words.map((word)=>word[0].toUpperCase() + word.slice(1).toLowerCase()).join('');
|
|
228
228
|
}
|
package/dist/index.js
CHANGED
|
@@ -192,7 +192,7 @@ class UnknownFormatNaming {
|
|
|
192
192
|
this.camelCase = source.substring(0, 1).toLowerCase() + source.substring(1);
|
|
193
193
|
this.PascalCase = source.substring(0, 1).toUpperCase() + source.substring(1);
|
|
194
194
|
}
|
|
195
|
-
const words = source.split('-');
|
|
195
|
+
const words = source.split('-').filter((word)=>!!word);
|
|
196
196
|
this.camelCase = words.map((word, index)=>0 === index ? word.toLowerCase() : word[0].toUpperCase() + word.slice(1).toLowerCase()).join('');
|
|
197
197
|
this.PascalCase = words.map((word)=>word[0].toUpperCase() + word.slice(1).toLowerCase()).join('');
|
|
198
198
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|