@unboundcx/sdk-internal 1.0.3 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +8 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -52,6 +52,14 @@ export class InternalSDK {
52
52
  this[method] = (...args) => this.sdk[method](...args);
53
53
  }
54
54
  });
55
+
56
+ // Explicitly proxy critical methods that might be missed
57
+ const criticalMethods = ['setToken', 'setNamespace', 'use', 'extend'];
58
+ criticalMethods.forEach(method => {
59
+ if (typeof this.sdk[method] === 'function' && !this[method]) {
60
+ this[method] = (...args) => this.sdk[method](...args);
61
+ }
62
+ });
55
63
  }
56
64
 
57
65
  // Master auth method - only available in Node.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unboundcx/sdk-internal",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Internal SDK extension for Unbound - Provides access to internal APIs and administrative functions",
5
5
  "main": "index.js",
6
6
  "type": "module",