@major-tech/resource-client 0.2.1 → 0.2.3

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
 
@@ -159,6 +160,7 @@ function addResource(resourceId, name, type, description, applicationId) {
159
160
  if (!validTypes.includes(type)) {
160
161
  console.error(`❌ Invalid type: ${type}`);
161
162
  console.log(` Valid types: ${validTypes.join(', ')}`);
163
+ console.log(` Your resource-client version might be out of date. Try running 'pnpm update @major-tech/resource-client'`)
162
164
  process.exit(1);
163
165
  }
164
166
 
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.3",
4
4
  "description": "TypeScript client library for invoking Major resources (PostgreSQL, Custom APIs, HubSpot, S3)",
5
5
  "type": "module",
6
6
  "sideEffects": false,