Comparing version 1.176.1 to 1.176.2
@@ -28,3 +28,8 @@ "use strict"; | ||
function camelToSnake(s) { | ||
return (0, case_anything_1.snakeCase)(s).toUpperCase(); | ||
return (s | ||
// any number or little-char -> big char | ||
.replace(/[a-z0-9]([A-Z])/g, (m) => m[0] + "_" + m[1]) | ||
// any multiple big char -> next word | ||
.replace(/[A-Z]([A-Z][a-z])/g, (m) => m[0] + "_" + m.substring(1)) | ||
.toUpperCase()); | ||
} | ||
@@ -31,0 +36,0 @@ exports.camelToSnake = camelToSnake; |
{ | ||
"name": "ts-proto", | ||
"version": "1.176.1", | ||
"version": "1.176.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/plugin.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
395669
6840