dcl-ops-lib 6.0.16 → 6.0.18

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.
@@ -314,7 +314,7 @@ function createInternalService(config) {
314
314
  executionRoleArn: executionRole === null || executionRole === void 0 ? void 0 : executionRole.arn,
315
315
  taskRoleArn: taskRole === null || taskRole === void 0 ? void 0 : taskRole.arn,
316
316
  tags: { ServiceName: serviceName, Team: team },
317
- containerDefinitions: JSON.stringify([Object.assign(Object.assign({}, containerInfo), { logConfiguration: (0, exports.getDefaultLogs)(serviceName, logGroup) })]),
317
+ containerDefinitions: pulumi.jsonStringify([Object.assign(Object.assign({}, containerInfo), { logConfiguration: (0, exports.getDefaultLogs)(serviceName, logGroup) })]),
318
318
  cpu: (_a = containerInfo.cpu) === null || _a === void 0 ? void 0 : _a.toString(),
319
319
  memory: (_b = containerInfo.memoryReservation) === null || _b === void 0 ? void 0 : _b.toString(),
320
320
  requiresCompatibilities: ["FARGATE"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcl-ops-lib",
3
- "version": "6.0.16",
3
+ "version": "6.0.18",
4
4
  "scripts": {
5
5
  "build": "tsc && cp bin/* . && node test.js",
6
6
  "clean": "rm *.d.ts *.js *.js.map"
package/supra.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  export declare const supra: pulumi.StackReference;
3
- export declare function getDbHostAndPort(): Promise<any>;
4
- export declare function getDbHost(): Promise<any>;
5
- export declare function getDbPort(): Promise<number>;
3
+ export declare function getDbHostAndPort(): pulumi.Output<any>;
4
+ export declare function getDbHost(): pulumi.Output<any>;
5
+ export declare function getDbPort(): pulumi.OutputInstance<number>;
6
6
  export declare function getPublicBastionIp(): pulumi.Output<any>;
7
7
  export declare function getInternalServiceDiscoveryNamespaceId(): pulumi.Output<any>;
package/supra.js CHANGED
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.getInternalServiceDiscoveryNamespaceId = exports.getPublicBastionIp = exports.getDbPort = exports.getDbHost = exports.getDbHostAndPort = exports.supra = void 0;
13
4
  const pulumi = require("@pulumi/pulumi");
@@ -18,8 +9,7 @@ exports.supra = new pulumi.StackReference(`supra-${domain_1.env}`, {
18
9
  const DEFAULT_DB_PORT = 5432;
19
10
  // returns a "db.hostname.com:port" Output<string> for the supra shared database
20
11
  function getDbHostAndPort() {
21
- return __awaiter(this, void 0, void 0, function* () {
22
- const db = yield exports.supra.requireOutputValue("db");
12
+ return exports.supra.requireOutput("db").apply((db) => {
23
13
  if (db.endpoint.includes(":")) {
24
14
  return db.endpoint;
25
15
  }
@@ -31,18 +21,12 @@ function getDbHostAndPort() {
31
21
  exports.getDbHostAndPort = getDbHostAndPort;
32
22
  // returns "db.hostname.com" from "db.hostname.com:port" Output<string> for the supra shared database
33
23
  function getDbHost() {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- const db = yield exports.supra.requireOutputValue("db");
36
- return db.endpoint.split(":")[0];
37
- });
24
+ return exports.supra.requireOutput("db").apply((db) => db.endpoint.split(":")[0]);
38
25
  }
39
26
  exports.getDbHost = getDbHost;
40
27
  // returns "port" from "db.hostname.com:port" Output<string> for the supra shared database
41
28
  function getDbPort() {
42
- return __awaiter(this, void 0, void 0, function* () {
43
- const db = yield exports.supra.requireOutputValue("db");
44
- return parseInt(db.endpoint.split(":")[1] || DEFAULT_DB_PORT);
45
- });
29
+ return exports.supra.requireOutput("db").apply((db) => parseInt(db.endpoint.split(":")[1] || DEFAULT_DB_PORT));
46
30
  }
47
31
  exports.getDbPort = getDbPort;
48
32
  // returns the public IP of the bastion