@zenstackhq/orm 3.5.0-beta.5 → 3.5.1
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -9191,7 +9191,7 @@ var ClientImpl = class _ClientImpl {
|
|
|
9191
9191
|
return newClient;
|
|
9192
9192
|
}
|
|
9193
9193
|
$setAuth(auth) {
|
|
9194
|
-
if (auth !== void 0 && typeof auth !== "object") {
|
|
9194
|
+
if (auth !== void 0 && (typeof auth !== "object" || auth === null || Array.isArray(auth))) {
|
|
9195
9195
|
throw new Error("Invalid auth object");
|
|
9196
9196
|
}
|
|
9197
9197
|
const newClient = new _ClientImpl(this.schema, this.$options, this);
|