@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/.turbo/turbo-add-version.log +1 -1
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +7 -3
- package/README.md +1 -274
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/Usage.md +0 -451
package/dist/index.mjs
CHANGED
@@ -299,7 +299,7 @@ function generateUUID() {
|
|
299
299
|
});
|
300
300
|
}
|
301
301
|
|
302
|
-
const VERSION = "0.
|
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
|
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] };
|