diff --git a/cloudv2/counter-aws.w b/cloudv2/counter-aws.w index 5d478de6..4fbd2aa2 100644 --- a/cloudv2/counter-aws.w +++ b/cloudv2/counter-aws.w @@ -9,7 +9,7 @@ pub interface IAwsCounter { dynamoTableName(): str; } -pub class Counter_tfaws impl counter_types.ICounter, IAwsCounter { +internal class Counter_tfaws impl counter_types.ICounter, IAwsCounter { initial: num; table: tfaws.dynamodbTable.DynamodbTable; hashKey: str; diff --git a/cloudv2/counter-sim.w b/cloudv2/counter-sim.w index 6a7d3478..9f5750f1 100644 --- a/cloudv2/counter-sim.w +++ b/cloudv2/counter-sim.w @@ -47,9 +47,7 @@ inflight class CounterBackend impl sim.IResource { } } -// TODO: internal access modifiers - https://github.com/winglang/wing/issues/4156 - -pub class Counter_sim impl counter_types.ICounter { +internal class Counter_sim impl counter_types.ICounter { initial: num; backend: sim.Resource; defaultKey: str; // TODO: module-level constants - https://github.com/winglang/wing/issues/3606 diff --git a/cloudv2/package-lock.json b/cloudv2/package-lock.json index 3b8f1059..c214f0a2 100644 --- a/cloudv2/package-lock.json +++ b/cloudv2/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/cloudv2", - "version": "0.0.2", + "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/cloudv2", - "version": "0.0.2", + "version": "0.1.0", "license": "MIT", "peerDependencies": { "@aws-sdk/client-dynamodb": "^3.621.0", diff --git a/cloudv2/package.json b/cloudv2/package.json index a9fa32c5..80822664 100644 --- a/cloudv2/package.json +++ b/cloudv2/package.json @@ -5,7 +5,7 @@ "email": "chrisr@wing.cloud", "name": "Chris Rybicki" }, - "version": "0.0.2", + "version": "0.1.0", "repository": { "type": "git", "url": "https://github.com/winglang/winglibs.git", diff --git a/cloudv2/util.w b/cloudv2/util.w index db6e1933..e1ddedf7 100644 --- a/cloudv2/util.w +++ b/cloudv2/util.w @@ -1,13 +1,13 @@ bring "constructs" as constructs; -pub class Util { +internal class Util { // TODO: private constructors - https://github.com/winglang/wing/issues/4377 // TODO: expose ResourceNames class from SDK - pub static friendlyName(c: constructs.IConstruct): str { + internal static friendlyName(c: constructs.IConstruct): str { return nodeof(c).id + Util.shortHash(c); } - pub static shortHash(c: constructs.IConstruct): str { + internal static shortHash(c: constructs.IConstruct): str { let hash = nodeof(c).addr; return hash.substring(hash.length - 8); }