@xata.io/client 0.0.0-alpha.vf20a10c → 0.0.0-alpha.vf217b0e

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.mjs CHANGED
@@ -299,7 +299,7 @@ function generateUUID() {
299
299
  });
300
300
  }
301
301
 
302
- const VERSION = "0.21.6";
302
+ const VERSION = "0.22.0";
303
303
 
304
304
  class ErrorWithCause extends Error {
305
305
  constructor(message, options) {
@@ -842,7 +842,8 @@ function parseWorkspacesUrlParts(url) {
842
842
  return null;
843
843
  const regex = /(?:https:\/\/)?([^.]+)(?:\.([^.]+))\.xata\.sh.*/;
844
844
  const regexStaging = /(?:https:\/\/)?([^.]+)\.staging(?:\.([^.]+))\.xatabase\.co.*/;
845
- const match = url.match(regex) || url.match(regexStaging);
845
+ const regexDev = /(?:https:\/\/)?([^.]+)\.staging(?:\.([^.]+))\.xata\.tech.*/;
846
+ const match = url.match(regex) || url.match(regexStaging) || url.match(regexDev);
846
847
  if (!match)
847
848
  return null;
848
849
  return { workspace: match[1], region: match[2] };