@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.
- package/index.js +8 -0
- 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