cdk-assets 4.3.5 → 4.3.6

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/bin/cdk-assets.js CHANGED
@@ -4008,7 +4008,7 @@ var require_semver2 = __commonJS({
4008
4008
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
4009
4009
  var require_cli_version = __commonJS({
4010
4010
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
4011
- module2.exports = { version: "2.1106.0" };
4011
+ module2.exports = { version: "2.1106.1" };
4012
4012
  }
4013
4013
  });
4014
4014
 
@@ -6137,20 +6137,21 @@ var init_manifest = __esm({
6137
6137
  `${VERSION_MISMATCH}: Maximum schema version supported is ${maxSupported}.x.x, but found ${actual}${cliWarning}`
6138
6138
  );
6139
6139
  }
6140
- const validator = new jsonschema.Validator();
6141
- const result = validator.validate(manifest, schema, {
6142
- // does exist but is not in the TypeScript definitions
6143
- nestedErrors: true,
6144
- allowUnknownAttributes: false,
6145
- preValidateProperty: _Manifest.validateAssumeRoleAdditionalOptions
6146
- });
6147
- let errors = result.errors;
6148
- if (options?.skipEnumCheck) {
6149
- errors = stripEnumErrors(errors);
6150
- }
6151
- if (errors.length > 0) {
6152
- throw new Error(`Invalid assembly manifest:
6140
+ if (options?.validateSchema ?? process.env.TESTING_CDK === "1") {
6141
+ const validator = new jsonschema.Validator();
6142
+ const result = validator.validate(manifest, schema, {
6143
+ nestedErrors: true,
6144
+ allowUnknownAttributes: false,
6145
+ preValidateProperty: _Manifest.validateAssumeRoleAdditionalOptions
6146
+ });
6147
+ let errors = result.errors;
6148
+ if (options?.skipEnumCheck) {
6149
+ errors = stripEnumErrors(errors);
6150
+ }
6151
+ if (errors.length > 0) {
6152
+ throw new Error(`Invalid assembly manifest:
6153
6153
  ${errors.map((e4) => e4.stack).join("\n")}`);
6154
+ }
6154
6155
  }
6155
6156
  }
6156
6157
  static saveManifest(manifest, filePath, schema, preprocess) {
@@ -4055,7 +4055,7 @@ var require_semver2 = __commonJS({
4055
4055
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
4056
4056
  var require_cli_version = __commonJS({
4057
4057
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
4058
- module2.exports = { version: "2.1106.0" };
4058
+ module2.exports = { version: "2.1106.1" };
4059
4059
  }
4060
4060
  });
4061
4061
 
@@ -6184,20 +6184,21 @@ var init_manifest = __esm({
6184
6184
  `${VERSION_MISMATCH}: Maximum schema version supported is ${maxSupported}.x.x, but found ${actual}${cliWarning}`
6185
6185
  );
6186
6186
  }
6187
- const validator = new jsonschema.Validator();
6188
- const result = validator.validate(manifest, schema, {
6189
- // does exist but is not in the TypeScript definitions
6190
- nestedErrors: true,
6191
- allowUnknownAttributes: false,
6192
- preValidateProperty: _Manifest.validateAssumeRoleAdditionalOptions
6193
- });
6194
- let errors = result.errors;
6195
- if (options?.skipEnumCheck) {
6196
- errors = stripEnumErrors(errors);
6197
- }
6198
- if (errors.length > 0) {
6199
- throw new Error(`Invalid assembly manifest:
6187
+ if (options?.validateSchema ?? process.env.TESTING_CDK === "1") {
6188
+ const validator = new jsonschema.Validator();
6189
+ const result = validator.validate(manifest, schema, {
6190
+ nestedErrors: true,
6191
+ allowUnknownAttributes: false,
6192
+ preValidateProperty: _Manifest.validateAssumeRoleAdditionalOptions
6193
+ });
6194
+ let errors = result.errors;
6195
+ if (options?.skipEnumCheck) {
6196
+ errors = stripEnumErrors(errors);
6197
+ }
6198
+ if (errors.length > 0) {
6199
+ throw new Error(`Invalid assembly manifest:
6200
6200
  ${errors.map((e4) => e4.stack).join("\n")}`);
6201
+ }
6201
6202
  }
6202
6203
  }
6203
6204
  static saveManifest(manifest, filePath, schema, preprocess) {
package/package.json CHANGED
@@ -35,7 +35,7 @@
35
35
  "organization": true
36
36
  },
37
37
  "devDependencies": {
38
- "@aws-cdk/cloud-assembly-schema": "52.0.0",
38
+ "@aws-cdk/cloud-assembly-schema": "52.1.0",
39
39
  "@aws-sdk/client-s3": "^3.953.0",
40
40
  "@cdklabs/eslint-plugin": "^1.3.5",
41
41
  "@stylistic/eslint-plugin": "^3",
@@ -61,7 +61,7 @@
61
61
  "prettier": "^2.8",
62
62
  "ts-jest": "^29.4.6",
63
63
  "typescript": "5.9",
64
- "@aws-cdk/cdk-assets-lib": "^1.2.2",
64
+ "@aws-cdk/cdk-assets-lib": "^1.2.3",
65
65
  "yargs": "^17.7.2"
66
66
  },
67
67
  "dependencies": {},
@@ -78,7 +78,7 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "version": "4.3.5",
81
+ "version": "4.3.6",
82
82
  "types": "lib/index.d.ts",
83
83
  "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
84
84
  }