Skip to content

Commit

Permalink
make exports internal as appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBoyle committed Oct 7, 2020
1 parent 5d5d7c3 commit 27efe13
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
10 changes: 9 additions & 1 deletion sdk/nodejs/tests/automation/localWorkspace.spec.ts
Expand Up @@ -16,7 +16,7 @@ import * as assert from "assert";
import * as upath from "upath";

import { Config } from "../../index";
import { ConfigMap, normalizeConfigKey } from "../../x/automation/config";
import { ConfigMap } from "../../x/automation/config";
import { LocalWorkspace } from "../../x/automation/localWorkspace";
import { ProjectSettings } from "../../x/automation/projectSettings";
import { Stack } from "../../x/automation/stack";
Expand Down Expand Up @@ -239,3 +239,11 @@ describe("LocalWorkspace", () => {
const getTestSuffix = () => {
return Math.floor(100000 + Math.random() * 900000);
};

const normalizeConfigKey = (key: string, projectName: string) => {
const parts = key.split(":");
if (parts.length < 2) {
return `${projectName}:${key}`;
}
return "";
};
1 change: 1 addition & 0 deletions sdk/nodejs/x/automation/cmd.ts
Expand Up @@ -38,6 +38,7 @@ export class CommandResult {

const unknownErrCode = -2;

/** @internal */
export function runPulumiCmd(
args: string[],
cwd: string,
Expand Down
9 changes: 0 additions & 9 deletions sdk/nodejs/x/automation/config.ts
Expand Up @@ -18,12 +18,3 @@ export type ConfigValue = {
};

export type ConfigMap = { [key: string]: ConfigValue };

// TODO we should provide some layer to do this automatically when getting/setting config
export const normalizeConfigKey = (key: string, projectName: string) => {
const parts = key.split(":");
if (parts.length < 2) {
return `${projectName}:${key}`;
}
return "";
};
2 changes: 2 additions & 0 deletions sdk/nodejs/x/automation/index.ts
Expand Up @@ -12,7 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

export * from "./cmd";
export * from "./config";
export * from "./errors";
export * from "./stack";
export * from "./stackSettings";
export * from "./projectSettings";
Expand Down
2 changes: 2 additions & 0 deletions sdk/nodejs/x/automation/server.ts
Expand Up @@ -21,8 +21,10 @@ const langproto = require("../../proto/language_pb.js");
const plugproto = require("../../proto/plugin_pb.js");

// maxRPCMessageSize raises the gRPC Max Message size from `4194304` (4mb) to `419430400` (400mb)
/** @internal */
export const maxRPCMessageSize: number = 1024 * 1024 * 400;

/** @internal */
export class LanguageServer<T> implements grpc.UntypedServiceImplementation {
readonly program: () => Promise<T>;
readonly result: Promise<T>;
Expand Down

0 comments on commit 27efe13

Please sign in to comment.