@pineliner/odb-client 1.1.0 → 1.1.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.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/core/http-client.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -680,7 +680,7 @@ var __webpack_exports__ = {};
|
|
|
680
680
|
}
|
|
681
681
|
async ensureNamespaces(namespaces) {
|
|
682
682
|
if (!this.config.databaseId) throw new ConnectionError('No database ID configured. Use setDatabase() first.');
|
|
683
|
-
const url = `${this.config.baseUrl}/
|
|
683
|
+
const url = `${this.config.baseUrl}/api/tenant/databases/${this.config.databaseId}/namespaces`;
|
|
684
684
|
const body = {
|
|
685
685
|
namespaces
|
|
686
686
|
};
|
package/dist/index.js
CHANGED
|
@@ -620,7 +620,7 @@ class HTTPClient {
|
|
|
620
620
|
}
|
|
621
621
|
async ensureNamespaces(namespaces) {
|
|
622
622
|
if (!this.config.databaseId) throw new ConnectionError('No database ID configured. Use setDatabase() first.');
|
|
623
|
-
const url = `${this.config.baseUrl}/
|
|
623
|
+
const url = `${this.config.baseUrl}/api/tenant/databases/${this.config.databaseId}/namespaces`;
|
|
624
624
|
const body = {
|
|
625
625
|
namespaces
|
|
626
626
|
};
|
package/package.json
CHANGED
package/src/core/http-client.ts
CHANGED
|
@@ -264,7 +264,7 @@ export class HTTPClient {
|
|
|
264
264
|
throw new ConnectionError('No database ID configured. Use setDatabase() first.')
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
const url = `${this.config.baseUrl}/
|
|
267
|
+
const url = `${this.config.baseUrl}/api/tenant/databases/${this.config.databaseId}/namespaces`
|
|
268
268
|
const body = { namespaces }
|
|
269
269
|
|
|
270
270
|
try {
|