dxfl 0.2.0 → 0.2.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ - fix: actually display the warning added in v0.2.0 for deprecated website names
2
+
1
3
  # v0.2.0
2
4
 
3
5
  - hint towards new website names (XXX.web.deuxfleurs.fr), following an overhaul in website name handling in deuxfleurs
package/dist/guichet.js CHANGED
@@ -36,9 +36,10 @@ export class GuichetApi {
36
36
  }
37
37
  getWebsite(vhost) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
+ var _a;
39
40
  try {
40
41
  const websiteInfo = yield this.api.getWebsite({ vhost });
41
- if (websiteInfo.vhost == `${vhost}.web.deuxfleurs.fr`) {
42
+ if (((_a = websiteInfo.vhost) === null || _a === void 0 ? void 0 : _a.name) == `${vhost}.web.deuxfleurs.fr`) {
42
43
  // This means that `vhost` is a website name from before
43
44
  // the migration of websites *.web.deuxfleurs.fr to bucket
44
45
  // names with the full domain name.
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { login, logout } from "./auth.js";
5
5
  import { deploy } from "./deploy.js";
6
6
  import { empty } from "./empty.js";
7
7
  import { vhostsList } from "./vhosts.js";
8
- program.name("dxfl").description("Deuxfleurs CLI tool").version("0.2.0");
8
+ program.name("dxfl").description("Deuxfleurs CLI tool").version("0.2.1");
9
9
  program
10
10
  .command("login")
11
11
  .description("Link your Deuxfleurs account with this tool.")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dxfl",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "",
5
5
  "license": "EUPL-1.2",
6
6
  "author": "Deuxfleurs Team <coucou@deuxfleurs.fr>",