@major-tech/resource-client 0.2.1 → 0.2.2

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.
@@ -112,6 +112,7 @@ function toCamelCase(str) {
112
112
  return str
113
113
  .toLowerCase()
114
114
  .replace(/[^a-z0-9]+(.)/g, (_, char) => char.toUpperCase())
115
+ .replace(/[^a-z0-9]+$/, '') // Remove trailing non-alphanumerics
115
116
  .replace(/^[^a-z]+/, ''); // Remove leading non-letters
116
117
  }
117
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@major-tech/resource-client",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript client library for invoking Major resources (PostgreSQL, Custom APIs, HubSpot, S3)",
5
5
  "type": "module",
6
6
  "sideEffects": false,