Skip to content

Commit

Permalink
chore: update winglibs for Wing v0.81.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr committed Aug 2, 2024
1 parent 26f339c commit 8d70abc
Show file tree
Hide file tree
Showing 87 changed files with 1,834 additions and 221 deletions.
2 changes: 1 addition & 1 deletion bedrock/bedrock.w
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub class Model impl a.IModel {
// in case of running on sim interactively (in development mode), use AWS version
this.inner = new t.Model_tfaws(modelId) as "tf-aws";
}
} elif target == "tf-aws" {
} else if target == "tf-aws" {
this.inner = new t.Model_tfaws(modelId) as "tf-aws";
} else {
throw "Unsupported target {target}";
Expand Down
4 changes: 2 additions & 2 deletions bedrock/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bedrock/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@winglibs/bedrock",
"description": "A Wing library for Amazon Bedrock",
"version": "0.0.8",
"version": "0.0.9",
"author": {
"name": "Eyal Keren",
"email": "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions budget/budget-shared.w
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ pub class Util {
pub static timeUnitToStr(timeUnit: TimeUnit): str {
if timeUnit == TimeUnit.DAILY {
return "DAILY";
} elif timeUnit == TimeUnit.MONTHLY {
} else if timeUnit == TimeUnit.MONTHLY {
return "MONTHLY";
} elif timeUnit == TimeUnit.ANNUALLY {
} else if timeUnit == TimeUnit.ANNUALLY {
return "ANNUALLY";
}
}
Expand Down
2 changes: 1 addition & 1 deletion budget/budget.w
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub class Alert {
new(props: shared.AlertProps) {
if util.env("WING_TARGET") == "tf-aws" {
this.platform = new tfaws.AlertTfAws(props);
} elif util.env("WING_TARGET") == "sim" {
} else if util.env("WING_TARGET") == "sim" {
this.platform = new sim.AlertSim(props);
} else {
throw "unknown platform";
Expand Down
4 changes: 2 additions & 2 deletions budget/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion budget/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@winglibs/budget",
"version": "0.1.4",
"version": "0.1.5",
"description": "AWS Budget",
"keywords": [
"AWS",
Expand Down
4 changes: 2 additions & 2 deletions checks/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion checks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@winglibs/checks",
"version": "0.0.15",
"version": "0.0.16",
"description": "Cloud checks",
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion cloudv2/counter.w
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub class Counter impl counter_types.ICounter {
this.initial = props.initial ?? 0;
if target == "sim" {
this.inner = new counter_sim.Counter_sim(props) as id;
} elif target == "tf-aws" {
} else if target == "tf-aws" {
this.inner = new counter_aws.Counter_tfaws(props) as id;
} else {
throw "Unsupported target: " + target;
Expand Down
4 changes: 2 additions & 2 deletions cloudv2/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cloudv2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"email": "[email protected]",
"name": "Chris Rybicki"
},
"version": "0.0.1",
"version": "0.0.2",
"repository": {
"type": "git",
"url": "https://github.com/winglang/winglibs.git",
Expand Down
2 changes: 1 addition & 1 deletion cognito/lib.w
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub class Cognito impl types.ICognito {
this.clientId = "sim-client-id";
this.userPoolId = "sim-user-pool-id";
this.identityPoolId = "sim-identity-pool-id";
} elif target == "tf-aws" {
} else if target == "tf-aws" {
let auth = new tfaws.Cognito_tfaws(api, props) as "tf-aws";
this.clientId = auth.clientId;
this.userPoolId = auth.userPoolId;
Expand Down
4 changes: 2 additions & 2 deletions cognito/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cognito/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@winglibs/cognito",
"version": "0.0.13",
"version": "0.0.14",
"description": "A wing library to work with AWS Cognito",
"author": {
"name": "Elad Cohen",
Expand Down
4 changes: 2 additions & 2 deletions cognito/platform/sim.w
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pub class Cognito_sim impl types.ICognito {
status: () => {
if authType == types.AuthenticationType.COGNITO_USER_POOLS {
return 401;
} elif authType == types.AuthenticationType.AWS_IAM {
} else if authType == types.AuthenticationType.AWS_IAM {
return 403;
}
}(),
Expand All @@ -148,7 +148,7 @@ pub class Cognito_sim impl types.ICognito {
body: "Unauthorized"
};
}
} elif authType == types.AuthenticationType.AWS_IAM {
} else if authType == types.AuthenticationType.AWS_IAM {
if !authHeader!.contains("AWS4-HMAC-SHA256 Credential=sim-access") {
return {
status: 403,
Expand Down
2 changes: 1 addition & 1 deletion cognito/platform/tfaws.w
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub class Cognito_tfaws impl types.ICognito {
]
}
};
} elif props?.authenticationType == types.AuthenticationType.AWS_IAM {
} else if props?.authenticationType == types.AuthenticationType.AWS_IAM {
cognitoDefinition = {
"type": "apiKey",
"name": "Authorization",
Expand Down
4 changes: 2 additions & 2 deletions containers/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion containers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@winglibs/containers",
"version": "0.1.4",
"version": "0.1.5",
"description": "Container support for Wing",
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions dynamodb/dynamodb-client.w
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ pub inflight class Client impl dynamodb_types.IClient {
transactItems.push({
ConditionCheck: Json.deepCopy(input),
});
} elif let operation = item.Delete {
} else if let operation = item.Delete {
let input: MutJson = operation;
input.set("TableName", this.tableName);
transactItems.push({
Delete: Json.deepCopy(input),
});
} elif let operation = item.Put {
} else if let operation = item.Put {
let input: MutJson = operation;
input.set("TableName", this.tableName);
transactItems.push({
Put: Json.deepCopy(input),
});
} elif let operation = item.Update {
} else if let operation = item.Update {
let input: MutJson = operation;
input.set("TableName", this.tableName);
transactItems.push({
Expand Down
2 changes: 1 addition & 1 deletion dynamodb/dynamodb.w
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub class Table impl dynamodb_types.ITable {
this.tableName = sim.tableName;
this.implementation = sim;
nodeof(sim).hidden = true;
} elif target == "tf-aws" {
} else if target == "tf-aws" {
let tfaws = new dynamodb_tfaws.Table_tfaws(props);
this.connection = tfaws.connection;
this.tableName = tfaws.tableName;
Expand Down
4 changes: 2 additions & 2 deletions dynamodb/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dynamodb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@winglibs/dynamodb",
"version": "0.2.0",
"version": "0.2.1",
"description": "DynamoDB library for Wing",
"author": {
"name": "Cristian Pallarés",
Expand Down
4 changes: 2 additions & 2 deletions eventbridge/lib.w
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ pub class Bus impl types.IBus {
let target = util.env("WING_TARGET");
if target == "sim" {
this.inner = new sim.Bus(props) as "sim";
} elif target == "tf-aws" {
} else if target == "tf-aws" {
this.inner = new aws.Bus(props) as "tf-aws";
} elif target == "awscdk" {
} else if target == "awscdk" {
this.inner = new awscdk.Bus(props) as "awscdk";
} else {
throw "Unsupported target {target}";
Expand Down
4 changes: 2 additions & 2 deletions eventbridge/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion eventbridge/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@winglibs/eventbridge",
"description": "Amazon EventBridge library for Wing",
"version": "0.1.5",
"version": "0.1.6",
"repository": {
"type": "git",
"url": "https://github.com/winglang/winglibs.git",
Expand Down
2 changes: 1 addition & 1 deletion fifoqueue/fifo-queue.w
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub class FifoQueue impl api.IFifoQueue {
let target = util.env("WING_TARGET");
if target == "sim" {
this.inner = new sim.FifoQueue_sim() as "sim";
} elif target == "tf-aws" {
} else if target == "tf-aws" {
this.inner = new aws.FifoQueue_aws(props) as "tf-aws";
} else {
throw "Unsupported target {target}";
Expand Down
4 changes: 2 additions & 2 deletions fifoqueue/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fifoqueue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@winglibs/fifoqueue",
"version": "0.0.9",
"version": "0.0.10",
"description": "A wing library to work with FIFO (first-in first-out) Queues",
"author": {
"name": "Elad Cohen",
Expand Down
4 changes: 2 additions & 2 deletions github/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion github/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@winglibs/github",
"description": "A Wing library for GitHub Probot",
"version": "0.0.13",
"version": "0.0.14",
"author": {
"name": "Elad Cohen",
"email": "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion jwt/lib.w
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub class Util {
};
let decoded = JwtUtil._jwt().verify(token, getKey, options.options);
return decoded;
} elif let jwksUri = options.jwksUri {
} else if let jwksUri = options.jwksUri {
let client = JwtUtil._jwt().jwksClient(jwksUri: jwksUri);
let getKey = inflight (header: JwtHeader, callback: inflight (str, str): void) => {
try {
Expand Down
4 changes: 2 additions & 2 deletions jwt/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jwt/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@winglibs/jwt",
"description": "Wing library for JWT authentication",
"version": "0.0.6",
"version": "0.0.7",
"repository": {
"type": "git",
"url": "https://github.com/winglang/winglibs.git",
Expand Down
Loading

0 comments on commit 8d70abc

Please sign in to comment.