aws-cdk 2.1000.1 → 2.1000.2

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.
@@ -24850,7 +24850,7 @@ OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHE
24850
24850
 
24851
24851
  ----------------
24852
24852
 
24853
- ** jsonschema@1.5.0 - https://www.npmjs.com/package/jsonschema/v/1.5.0 | MIT
24853
+ ** jsonschema@1.4.1 - https://www.npmjs.com/package/jsonschema/v/1.4.1 | MIT
24854
24854
  jsonschema is licensed under MIT license.
24855
24855
 
24856
24856
  Copyright (C) 2012-2015 Tom de Grunt <tom@degrunt.nl>
package/build-info.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "comment": "Generated at 2025-02-18T20:26:48Z by generate.sh",
3
- "commit": "4d3cdd5"
2
+ "comment": "Generated at 2025-02-19T00:30:29Z by generate.sh",
3
+ "commit": "bc82193"
4
4
  }
package/lib/index.js CHANGED
@@ -212,10 +212,11 @@ var init_assets = __esm({
212
212
  }
213
213
  });
214
214
 
215
- // ../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js
215
+ // ../../node_modules/jsonschema/lib/helpers.js
216
216
  var require_helpers = __commonJS({
217
- "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js"(exports2, module2) {
217
+ "../../node_modules/jsonschema/lib/helpers.js"(exports2, module2) {
218
218
  "use strict";
219
+ var uri = require("url");
219
220
  var ValidationError = exports2.ValidationError = function ValidationError2(message, instance, schema, path27, name, argument) {
220
221
  if (Array.isArray(path27)) {
221
222
  this.path = path27;
@@ -290,7 +291,7 @@ var require_helpers = __commonJS({
290
291
  } });
291
292
  module2.exports.ValidatorResultError = ValidatorResultError;
292
293
  function ValidatorResultError(result2) {
293
- if (typeof Error.captureStackTrace === "function") {
294
+ if (Error.captureStackTrace) {
294
295
  Error.captureStackTrace(this, ValidatorResultError);
295
296
  }
296
297
  this.instance = result2.instance;
@@ -305,9 +306,7 @@ var require_helpers = __commonJS({
305
306
  this.message = msg;
306
307
  this.schema = schema;
307
308
  Error.call(this, msg);
308
- if (typeof Error.captureStackTrace === "function") {
309
- Error.captureStackTrace(this, SchemaError2);
310
- }
309
+ Error.captureStackTrace(this, SchemaError2);
311
310
  };
312
311
  SchemaError.prototype = Object.create(
313
312
  Error.prototype,
@@ -331,12 +330,12 @@ var require_helpers = __commonJS({
331
330
  this.schemas = schemas;
332
331
  };
333
332
  SchemaContext.prototype.resolve = function resolve10(target) {
334
- return (() => resolveUrl(this.base, target))();
333
+ return uri.resolve(this.base, target);
335
334
  };
336
335
  SchemaContext.prototype.makeChild = function makeChild(schema, propertyName) {
337
336
  var path27 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
338
337
  var id = schema.$id || schema.id;
339
- let base = (() => resolveUrl(this.base, id || ""))();
338
+ var base = uri.resolve(this.base, id || "");
340
339
  var ctx = new SchemaContext(schema, this.options, path27, base, Object.create(this.schemas));
341
340
  if (id && !ctx.schemas[base]) {
342
341
  ctx.schemas[base] = schema;
@@ -530,20 +529,12 @@ var require_helpers = __commonJS({
530
529
  exports2.isSchema = function isSchema(val2) {
531
530
  return typeof val2 === "object" && val2 || typeof val2 === "boolean";
532
531
  };
533
- var resolveUrl = exports2.resolveUrl = function resolveUrl2(from, to) {
534
- const resolvedUrl = new URL(to, new URL(from, "resolve://"));
535
- if (resolvedUrl.protocol === "resolve:") {
536
- const { pathname, search, hash } = resolvedUrl;
537
- return pathname + search + hash;
538
- }
539
- return resolvedUrl.toString();
540
- };
541
532
  }
542
533
  });
543
534
 
544
- // ../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/attribute.js
535
+ // ../../node_modules/jsonschema/lib/attribute.js
545
536
  var require_attribute = __commonJS({
546
- "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/attribute.js"(exports2, module2) {
537
+ "../../node_modules/jsonschema/lib/attribute.js"(exports2, module2) {
547
538
  "use strict";
548
539
  var helpers = require_helpers();
549
540
  var ValidatorResult = helpers.ValidatorResult;
@@ -1209,10 +1200,11 @@ var require_attribute = __commonJS({
1209
1200
  }
1210
1201
  });
1211
1202
 
1212
- // ../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/scan.js
1203
+ // ../../node_modules/jsonschema/lib/scan.js
1213
1204
  var require_scan = __commonJS({
1214
- "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/scan.js"(exports2, module2) {
1205
+ "../../node_modules/jsonschema/lib/scan.js"(exports2, module2) {
1215
1206
  "use strict";
1207
+ var urilib = require("url");
1216
1208
  var helpers = require_helpers();
1217
1209
  module2.exports.SchemaScanResult = SchemaScanResult;
1218
1210
  function SchemaScanResult(found, ref) {
@@ -1223,13 +1215,12 @@ var require_scan = __commonJS({
1223
1215
  function scanSchema(baseuri, schema2) {
1224
1216
  if (!schema2 || typeof schema2 != "object") return;
1225
1217
  if (schema2.$ref) {
1226
- let resolvedUri = helpers.resolveUrl(baseuri, schema2.$ref);
1218
+ var resolvedUri = urilib.resolve(baseuri, schema2.$ref);
1227
1219
  ref[resolvedUri] = ref[resolvedUri] ? ref[resolvedUri] + 1 : 0;
1228
1220
  return;
1229
1221
  }
1230
1222
  var id = schema2.$id || schema2.id;
1231
- let resolvedBase = helpers.resolveUrl(baseuri, id);
1232
- var ourBase = id ? resolvedBase : baseuri;
1223
+ var ourBase = id ? urilib.resolve(baseuri, id) : baseuri;
1233
1224
  if (ourBase) {
1234
1225
  if (ourBase.indexOf("#") < 0) ourBase += "#";
1235
1226
  if (found[ourBase]) {
@@ -1277,10 +1268,11 @@ var require_scan = __commonJS({
1277
1268
  }
1278
1269
  });
1279
1270
 
1280
- // ../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/validator.js
1271
+ // ../../node_modules/jsonschema/lib/validator.js
1281
1272
  var require_validator = __commonJS({
1282
- "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/validator.js"(exports2, module2) {
1273
+ "../../node_modules/jsonschema/lib/validator.js"(exports2, module2) {
1283
1274
  "use strict";
1275
+ var urilib = require("url");
1284
1276
  var attribute = require_attribute();
1285
1277
  var helpers = require_helpers();
1286
1278
  var scanSchema = require_scan().scan;
@@ -1345,7 +1337,7 @@ var require_validator = __commonJS({
1345
1337
  options = {};
1346
1338
  }
1347
1339
  var id = schema.$id || schema.id;
1348
- let base = helpers.resolveUrl(options.base, id || "");
1340
+ var base = urilib.resolve(options.base || anonymousBase, id || "");
1349
1341
  if (!ctx) {
1350
1342
  ctx = new SchemaContext(schema, options, [], base, Object.create(this.schemas));
1351
1343
  if (!ctx.schemas[base]) {
@@ -1440,8 +1432,8 @@ var require_validator = __commonJS({
1440
1432
  if (ctx.schemas[switchSchema]) {
1441
1433
  return { subschema: ctx.schemas[switchSchema], switchSchema };
1442
1434
  }
1443
- let parsed = new URL(switchSchema, "thismessage::/");
1444
- let fragment = parsed.hash;
1435
+ var parsed = urilib.parse(switchSchema);
1436
+ var fragment = parsed && parsed.hash;
1445
1437
  var document2 = fragment && fragment.length && switchSchema.substr(0, switchSchema.length - fragment.length);
1446
1438
  if (!document2 || !ctx.schemas[document2]) {
1447
1439
  throw new SchemaError("no such schema <" + switchSchema + ">", schema);
@@ -1499,9 +1491,9 @@ var require_validator = __commonJS({
1499
1491
  }
1500
1492
  });
1501
1493
 
1502
- // ../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/index.js
1494
+ // ../../node_modules/jsonschema/lib/index.js
1503
1495
  var require_lib = __commonJS({
1504
- "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/index.js"(exports2, module2) {
1496
+ "../../node_modules/jsonschema/lib/index.js"(exports2, module2) {
1505
1497
  "use strict";
1506
1498
  var Validator2 = module2.exports.Validator = require_validator();
1507
1499
  module2.exports.ValidatorResult = require_helpers().ValidatorResult;
package/package.json CHANGED
@@ -154,7 +154,7 @@
154
154
  "publishConfig": {
155
155
  "access": "public"
156
156
  },
157
- "version": "2.1000.1",
157
+ "version": "2.1000.2",
158
158
  "types": "lib/index.d.ts",
159
159
  "exports": {
160
160
  "./package.json": "./package.json",
package/release.txt ADDED
@@ -0,0 +1,2 @@
1
+ This file is just here to make this commit count as a change of `aws-cdk`
2
+ and have it be released.