@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 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}/namespaces/${this.config.databaseId}`;
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}/namespaces/${this.config.databaseId}`;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pineliner/odb-client",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Isomorphic client for ODB-Lite with postgres.js-like template string SQL support",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -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}/namespaces/${this.config.databaseId}`
267
+ const url = `${this.config.baseUrl}/api/tenant/databases/${this.config.databaseId}/namespaces`
268
268
  const body = { namespaces }
269
269
 
270
270
  try {