@lilaquadrat/studio 5.6.0 → 5.7.0

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.
@@ -12,27 +12,27 @@ class DockerCompose {
12
12
  this.dockerfile = dockerfile;
13
13
  }
14
14
  up() {
15
- return this.command(`docker-compose -f ${this.dockerfile} up -d --remove-orphans --no-recreate`);
15
+ return this.command(`docker compose -f ${this.dockerfile} up -d --remove-orphans --no-recreate`);
16
16
  }
17
17
  down() {
18
- return this.command(`docker-compose -f ${this.dockerfile} down --remove-orphans`);
18
+ return this.command(`docker compose -f ${this.dockerfile} down --remove-orphans`);
19
19
  }
20
20
  kill(company, project) {
21
- return this.command(`docker-compose -f ${this.dockerfile} rm -f -s -v ${this.containerName(company, project)}`);
21
+ return this.command(`docker compose -f ${this.dockerfile} rm -f -s -v ${this.containerName(company, project)}`);
22
22
  }
23
23
  restart(company, project) {
24
24
  if (company || project) {
25
25
  return this.check(company, project)
26
- .then(() => this.command(`docker-compose -f ${this.dockerfile} restart ${this.containerName(company, project)}`))
26
+ .then(() => this.command(`docker compose -f ${this.dockerfile} restart ${this.containerName(company, project)}`))
27
27
  .catch(() => this.up());
28
28
  }
29
- return this.command(`docker-compose -f ${this.dockerfile} restart`);
29
+ return this.command(`docker compose -f ${this.dockerfile} restart`);
30
30
  }
31
31
  stop(company, project) {
32
- return this.command(`docker-compose -f ${this.dockerfile} stop ${this.containerName(company, project)}`);
32
+ return this.command(`docker compose -f ${this.dockerfile} stop ${this.containerName(company, project)}`);
33
33
  }
34
34
  check(company, project) {
35
- return this.command(`docker-compose -f ${this.dockerfile} ps -q ${this.containerName(company, project)}`)
35
+ return this.command(`docker compose -f ${this.dockerfile} ps -q ${this.containerName(company, project)}`)
36
36
  .then((id) => {
37
37
  if (id.length <= 0)
38
38
  throw new Error('container not running');
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const identity_1 = require("@azure/identity");
7
7
  const AzureVault_1 = __importDefault(require("../AzureVault"));
8
8
  exports.default = async (name, vaultUrl) => {
9
+ console.log('TRY AUTH');
9
10
  const credentials = new identity_1.DefaultAzureCredential();
10
11
  const hostingSecret = await AzureVault_1.default.secrets.get(name, vaultUrl, credentials);
11
12
  if (!hostingSecret.value)
@@ -1 +1 @@
1
- {"version":3,"file":"getSecrets.js","sourceRoot":"","sources":["../../../src/helpers/getSecrets.ts"],"names":[],"mappings":";;;;;AAAA,8CAAyD;AACzD,+DAAuC;AAEvC,kBAAe,KAAK,EAAE,IAAY,EAAE,QAAgB,EAAE,EAAE;IAEtD,MAAM,WAAW,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAEjD,MAAM,aAAa,GAAG,MAAM,oBAAU,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IAChF,IAAI,CAAC,aAAa,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEpC,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAEtE,CAAC,CAAC"}
1
+ {"version":3,"file":"getSecrets.js","sourceRoot":"","sources":["../../../src/helpers/getSecrets.ts"],"names":[],"mappings":";;;;;AAAA,8CAAyD;AACzD,+DAAuC;AAEvC,kBAAe,KAAK,EAAE,IAAY,EAAE,QAAgB,EAAE,EAAE;IAEtD,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAExB,MAAM,WAAW,GAAG,IAAI,iCAAsB,EAAE,CAAC;IAEjD,MAAM,aAAa,GAAG,MAAM,oBAAU,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IAChF,IAAI,CAAC,aAAa,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEpC,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAEtE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lilaquadrat/studio",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "classes and tools for STUDIO",
5
5
  "license": "MIT",
6
6
  "homepage": "https://lilaquadrat.de",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@azure/arm-dns": "^5.0.0",
52
- "@azure/identity": "^3.1.4",
52
+ "@azure/identity": "3.2.2",
53
53
  "@azure/keyvault-certificates": "^4.4.0",
54
54
  "@azure/keyvault-keys": "^4.4.0",
55
55
  "@azure/keyvault-secrets": "^4.4.0",