@xata.io/client 0.0.0-alpha.vfe07d64 → 0.0.0-alpha.vfe4679b

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.
@@ -7,7 +7,7 @@
7
7
  created dist/index.cjs in 1.1s
8
8
  
9
9
  src/index.ts → dist/index.mjs...
10
- created dist/index.mjs in 817ms
10
+ created dist/index.mjs in 976ms
11
11
  
12
12
  src/index.ts → dist/index.d.ts...
13
- created dist/index.d.ts in 5.6s
13
+ created dist/index.d.ts in 5.7s
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @xata.io/client
2
2
 
3
- ## 0.0.0-alpha.vfe07d64
3
+ ## 0.0.0-alpha.vfe4679b
4
4
 
5
5
  ### Patch Changes
6
6
 
package/dist/index.cjs CHANGED
@@ -853,8 +853,10 @@ function parseWorkspacesUrlParts(url) {
853
853
  return null;
854
854
  const regex = /(?:https:\/\/)?([^.]+)(?:\.([^.]+))\.xata\.sh.*/;
855
855
  const regexStaging = /(?:https:\/\/)?([^.]+)\.staging(?:\.([^.]+))\.xatabase\.co.*/;
856
- const regexDev = /(?:https:\/\/)?([^.]+)\.staging(?:\.([^.]+))\.xata\.tech.*/;
857
- const match = url.match(regex) || url.match(regexStaging) || url.match(regexDev);
856
+ const regexDevCloudflare = /(?:https:\/\/)?([^.]+)(?:\.([^.]+))\.dev-xata\.dev.*/;
857
+ const regexStagingCloudflare = /(?:https:\/\/)?([^.]+)(?:\.([^.]+))\.staging-xata\.dev.*/;
858
+ const regexProdCloudflare = /(?:https:\/\/)?([^.]+)(?:\.([^.]+))\.xata\.tech.*/;
859
+ const match = url.match(regex) || url.match(regexStaging) || url.match(regexDevCloudflare) || url.match(regexStagingCloudflare) || url.match(regexProdCloudflare);
858
860
  if (!match)
859
861
  return null;
860
862
  return { workspace: match[1], region: match[2] };