@awsless/awsless 0.0.616 → 0.0.617

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.
package/dist/bin.js CHANGED
@@ -333,7 +333,7 @@ var createCloudFrontKvsProvider = ({ credentials, region }) => {
333
333
  };
334
334
 
335
335
  // src/formation/cloudfront.ts
336
- import { CloudFrontClient, CreateInvalidationCommand } from "@aws-sdk/client-cloudfront";
336
+ import { CloudFrontClient, CreateInvalidationForDistributionTenantCommand } from "@aws-sdk/client-cloudfront";
337
337
  import { createCustomProvider as createCustomProvider2, createCustomResourceClass as createCustomResourceClass2 } from "@terraforge/core";
338
338
  import { z as z2 } from "zod";
339
339
  var Invalidation = createCustomResourceClass2(
@@ -349,12 +349,9 @@ var createCloudFrontProvider = ({ credentials, region }) => {
349
349
  distributionId: z2.string(),
350
350
  paths: z2.string().array().min(1)
351
351
  }).parse(props.proposedState);
352
- console.log("");
353
- console.log("state.distributionId", state2.distributionId);
354
- console.log("");
355
352
  const result = await cloudFront.send(
356
- new CreateInvalidationCommand({
357
- DistributionId: state2.distributionId,
353
+ new CreateInvalidationForDistributionTenantCommand({
354
+ Id: state2.distributionId,
358
355
  InvalidationBatch: {
359
356
  Paths: {
360
357
  Quantity: state2.paths.length,
@@ -5148,9 +5145,9 @@ var siteFeature = defineFeature({
5148
5145
  }
5149
5146
  const instance = Bun.spawn(buildProps.command.split(" "), {
5150
5147
  cwd,
5151
- env,
5152
- stdout: "inherit",
5153
- stderr: "inherit"
5148
+ env
5149
+ // stdout: 'inherit',
5150
+ // stderr: 'inherit',
5154
5151
  });
5155
5152
  await instance.exited;
5156
5153
  if (instance.exitCode !== null && instance.exitCode > 0) {
@@ -10093,7 +10090,7 @@ var parseJsonLog = (message) => {
10093
10090
  };
10094
10091
 
10095
10092
  // src/cli/command/image/clear-cache.ts
10096
- import { CloudFrontClient as CloudFrontClient2, CreateInvalidationCommand as CreateInvalidationCommand2 } from "@aws-sdk/client-cloudfront";
10093
+ import { CloudFrontClient as CloudFrontClient2, CreateInvalidationForDistributionTenantCommand as CreateInvalidationForDistributionTenantCommand2 } from "@aws-sdk/client-cloudfront";
10097
10094
  import { DeleteObjectsCommand, ListObjectsV2Command, S3Client as S3Client3 } from "@aws-sdk/client-s3";
10098
10095
  import { Cancelled as Cancelled3, log as log28, prompt as prompt14 } from "@awsless/clui";
10099
10096
  import { randomUUID } from "crypto";
@@ -10200,8 +10197,8 @@ var clearCache = (program2) => {
10200
10197
  }
10201
10198
  }
10202
10199
  await cloudFrontClient.send(
10203
- new CreateInvalidationCommand2({
10204
- DistributionId: distributionId,
10200
+ new CreateInvalidationForDistributionTenantCommand2({
10201
+ Id: distributionId,
10205
10202
  InvalidationBatch: {
10206
10203
  CallerReference: randomUUID(),
10207
10204
  Paths: {
@@ -10226,7 +10223,7 @@ var image = (program2) => {
10226
10223
  };
10227
10224
 
10228
10225
  // src/cli/command/icon/clear-cache.ts
10229
- import { CloudFrontClient as CloudFrontClient3, CreateInvalidationCommand as CreateInvalidationCommand3 } from "@aws-sdk/client-cloudfront";
10226
+ import { CloudFrontClient as CloudFrontClient3, CreateInvalidationForDistributionTenantCommand as CreateInvalidationForDistributionTenantCommand3 } from "@aws-sdk/client-cloudfront";
10230
10227
  import { DeleteObjectsCommand as DeleteObjectsCommand2, ListObjectsV2Command as ListObjectsV2Command2, S3Client as S3Client4 } from "@aws-sdk/client-s3";
10231
10228
  import { Cancelled as Cancelled4, log as log29, prompt as prompt15 } from "@awsless/clui";
10232
10229
  import { randomUUID as randomUUID2 } from "crypto";
@@ -10333,8 +10330,8 @@ var clearCache2 = (program2) => {
10333
10330
  }
10334
10331
  }
10335
10332
  await cloudFrontClient.send(
10336
- new CreateInvalidationCommand3({
10337
- DistributionId: distributionId,
10333
+ new CreateInvalidationForDistributionTenantCommand3({
10334
+ Id: distributionId,
10338
10335
  InvalidationBatch: {
10339
10336
  CallerReference: randomUUID2(),
10340
10337
  Paths: {
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.616",
3
+ "version": "0.0.617",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -35,27 +35,27 @@
35
35
  "peerDependencies": {
36
36
  "@awsless/big-float": "^0.1.5",
37
37
  "@awsless/clui": "^0.0.8",
38
- "@awsless/cloudwatch": "^0.0.1",
39
38
  "@awsless/duration": "^0.0.4",
39
+ "@awsless/cloudwatch": "^0.0.1",
40
40
  "@awsless/dynamodb": "^0.3.8",
41
- "@awsless/json": "^0.0.10",
42
- "@awsless/iot": "^0.0.3",
43
41
  "@awsless/lambda": "^0.0.35",
44
- "@awsless/mqtt": "^0.0.2",
42
+ "@awsless/iot": "^0.0.3",
43
+ "@awsless/json": "^0.0.10",
45
44
  "@awsless/open-search": "^0.0.21",
45
+ "@awsless/mqtt": "^0.0.2",
46
+ "@awsless/validate": "^0.1.3",
46
47
  "@awsless/redis": "^0.0.14",
47
48
  "@awsless/s3": "^0.0.21",
48
49
  "@awsless/sns": "^0.0.10",
49
- "@awsless/validate": "^0.1.3",
50
- "@awsless/ssm": "^0.0.7",
51
50
  "@awsless/sqs": "^0.0.16",
52
- "@awsless/weak-cache": "^0.0.1"
51
+ "@awsless/weak-cache": "^0.0.1",
52
+ "@awsless/ssm": "^0.0.7"
53
53
  },
54
54
  "dependencies": {
55
55
  "@arcanyx/cidr-slicer": "^0.3.0",
56
56
  "@aws-appsync/utils": "^1.5.0",
57
57
  "@aws-sdk/client-cloudformation": "^3.369.0",
58
- "@aws-sdk/client-cloudfront": "^3.425.0",
58
+ "@aws-sdk/client-cloudfront": "^3.991.0",
59
59
  "@aws-sdk/client-cloudfront-keyvaluestore": "^3.817.0",
60
60
  "@aws-sdk/client-cloudwatch-logs": "^3.806.0",
61
61
  "@aws-sdk/client-cognito-identity-provider": "^3.840.0",
@@ -141,13 +141,13 @@
141
141
  "zod-to-json-schema": "^3.24.3",
142
142
  "@awsless/big-float": "^0.1.5",
143
143
  "@awsless/cloudwatch": "^0.0.1",
144
- "@awsless/json": "^0.0.10",
145
- "@awsless/scheduler": "^0.0.4",
146
144
  "@awsless/duration": "^0.0.4",
147
- "@awsless/size": "^0.0.2",
148
- "@awsless/validate": "^0.1.3",
149
145
  "@awsless/graphql": "^0.0.9",
150
146
  "@awsless/clui": "^0.0.8",
147
+ "@awsless/json": "^0.0.10",
148
+ "@awsless/size": "^0.0.2",
149
+ "@awsless/validate": "^0.1.3",
150
+ "@awsless/scheduler": "^0.0.4",
151
151
  "@awsless/ts-file-cache": "^0.0.12"
152
152
  },
153
153
  "devDependencies": {