cdk-common 2.0.545 → 2.0.546

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.
Files changed (29) hide show
  1. package/.jsii +2 -2
  2. package/lib/main.js +1 -1
  3. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  4. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +9 -1
  5. package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +1 -1
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +17 -4
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +213 -2
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +11 -0
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/module.d.ts +17 -4
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/test.d.ts +213 -2
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/ts4.8/util.d.ts +75 -11
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +75 -11
  16. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  17. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +9 -1
  18. package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +1 -1
  19. package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +17 -4
  20. package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
  21. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +213 -2
  22. package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +11 -0
  23. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/crypto.d.ts +9 -1
  24. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/module.d.ts +17 -4
  25. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/test.d.ts +213 -2
  26. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/tls.d.ts +11 -0
  27. package/node_modules/@types/form-data/node_modules/@types/node/ts4.8/util.d.ts +75 -11
  28. package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +75 -11
  29. package/package.json +2 -2
@@ -1460,32 +1460,72 @@ declare module 'util' {
1460
1460
 
1461
1461
  /**
1462
1462
  * Gets and sets the type portion of the MIME.
1463
+ *
1464
+ * ```js
1465
+ * import { MIMEType } from 'node:util';
1466
+ *
1467
+ * const myMIME = new MIMEType('text/javascript');
1468
+ * console.log(myMIME.type);
1469
+ * // Prints: text
1470
+ * myMIME.type = 'application';
1471
+ * console.log(myMIME.type);
1472
+ * // Prints: application
1473
+ * console.log(String(myMIME));
1474
+ * // Prints: application/javascript
1475
+ * ```
1463
1476
  */
1464
1477
  type: string;
1465
1478
  /**
1466
1479
  * Gets and sets the subtype portion of the MIME.
1480
+ *
1481
+ * ```js
1482
+ * import { MIMEType } from 'node:util';
1483
+ *
1484
+ * const myMIME = new MIMEType('text/ecmascript');
1485
+ * console.log(myMIME.subtype);
1486
+ * // Prints: ecmascript
1487
+ * myMIME.subtype = 'javascript';
1488
+ * console.log(myMIME.subtype);
1489
+ * // Prints: javascript
1490
+ * console.log(String(myMIME));
1491
+ * // Prints: text/javascript
1492
+ * ```
1467
1493
  */
1468
1494
  subtype: string;
1469
1495
  /**
1470
- * Gets the essence of the MIME.
1471
- *
1496
+ * Gets the essence of the MIME. This property is read only.
1472
1497
  * Use `mime.type` or `mime.subtype` to alter the MIME.
1498
+ *
1499
+ * ```js
1500
+ * import { MIMEType } from 'node:util';
1501
+ *
1502
+ * const myMIME = new MIMEType('text/javascript;key=value');
1503
+ * console.log(myMIME.essence);
1504
+ * // Prints: text/javascript
1505
+ * myMIME.type = 'application';
1506
+ * console.log(myMIME.essence);
1507
+ * // Prints: application/javascript
1508
+ * console.log(String(myMIME));
1509
+ * // Prints: application/javascript;key=value
1510
+ * ```
1473
1511
  */
1474
1512
  readonly essence: string;
1475
1513
  /**
1476
- * Gets the `MIMEParams` object representing the parameters of the MIME.
1514
+ * Gets the `MIMEParams` object representing the
1515
+ * parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details.
1477
1516
  */
1478
1517
  readonly params: MIMEParams;
1479
1518
  /**
1480
- * Returns the serialized MIME.
1519
+ * The `toString()` method on the `MIMEType` object returns the serialized MIME.
1481
1520
  *
1482
- * Because of the need for standard compliance, this method
1483
- * does not allow users to customize the serialization process of the MIME.
1521
+ * Because of the need for standard compliance, this method does not allow users
1522
+ * to customize the serialization process of the MIME.
1484
1523
  */
1485
1524
  toString(): string;
1486
1525
  }
1487
1526
  /**
1488
- * @since v18.13.0
1527
+ * The `MIMEParams` API provides read and write access to the parameters of a`MIMEType`.
1528
+ * @since v19.1.0, v18.13.0
1489
1529
  */
1490
1530
  export class MIMEParams {
1491
1531
  /**
@@ -1494,11 +1534,14 @@ declare module 'util' {
1494
1534
  delete(name: string): void;
1495
1535
  /**
1496
1536
  * Returns an iterator over each of the name-value pairs in the parameters.
1537
+ * Each item of the iterator is a JavaScript `Array`. The first item of the array
1538
+ * is the `name`, the second item of the array is the `value`.
1497
1539
  */
1498
1540
  entries(): IterableIterator<[string, string]>;
1499
1541
  /**
1500
- * Returns the value of the first name-value pair whose name is `name`.
1501
- * If there are no such pairs, `null` is returned.
1542
+ * Returns the value of the first name-value pair whose name is `name`. If there
1543
+ * are no such pairs, `null` is returned.
1544
+ * @return or `null` if there is no name-value pair with the given `name`.
1502
1545
  */
1503
1546
  get(name: string): string | null;
1504
1547
  /**
@@ -1507,12 +1550,33 @@ declare module 'util' {
1507
1550
  has(name: string): boolean;
1508
1551
  /**
1509
1552
  * Returns an iterator over the names of each name-value pair.
1553
+ *
1554
+ * ```js
1555
+ * import { MIMEType } from 'node:util';
1556
+ *
1557
+ * const { params } = new MIMEType('text/plain;foo=0;bar=1');
1558
+ * for (const name of params.keys()) {
1559
+ * console.log(name);
1560
+ * }
1561
+ * // Prints:
1562
+ * // foo
1563
+ * // bar
1564
+ * ```
1510
1565
  */
1511
1566
  keys(): IterableIterator<string>;
1512
1567
  /**
1513
- * Sets the value in the `MIMEParams` object associated with `name` to `value`.
1514
- * If there are any pre-existing name-value pairs whose names are `name`,
1568
+ * Sets the value in the `MIMEParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`,
1515
1569
  * set the first such pair's value to `value`.
1570
+ *
1571
+ * ```js
1572
+ * import { MIMEType } from 'node:util';
1573
+ *
1574
+ * const { params } = new MIMEType('text/plain;foo=0;bar=1');
1575
+ * params.set('foo', 'def');
1576
+ * params.set('baz', 'xyz');
1577
+ * console.log(params.toString());
1578
+ * // Prints: foo=def&#x26;bar=1&#x26;baz=xyz
1579
+ * ```
1516
1580
  */
1517
1581
  set(name: string, value: string): void;
1518
1582
  /**
@@ -1460,32 +1460,72 @@ declare module 'util' {
1460
1460
 
1461
1461
  /**
1462
1462
  * Gets and sets the type portion of the MIME.
1463
+ *
1464
+ * ```js
1465
+ * import { MIMEType } from 'node:util';
1466
+ *
1467
+ * const myMIME = new MIMEType('text/javascript');
1468
+ * console.log(myMIME.type);
1469
+ * // Prints: text
1470
+ * myMIME.type = 'application';
1471
+ * console.log(myMIME.type);
1472
+ * // Prints: application
1473
+ * console.log(String(myMIME));
1474
+ * // Prints: application/javascript
1475
+ * ```
1463
1476
  */
1464
1477
  type: string;
1465
1478
  /**
1466
1479
  * Gets and sets the subtype portion of the MIME.
1480
+ *
1481
+ * ```js
1482
+ * import { MIMEType } from 'node:util';
1483
+ *
1484
+ * const myMIME = new MIMEType('text/ecmascript');
1485
+ * console.log(myMIME.subtype);
1486
+ * // Prints: ecmascript
1487
+ * myMIME.subtype = 'javascript';
1488
+ * console.log(myMIME.subtype);
1489
+ * // Prints: javascript
1490
+ * console.log(String(myMIME));
1491
+ * // Prints: text/javascript
1492
+ * ```
1467
1493
  */
1468
1494
  subtype: string;
1469
1495
  /**
1470
- * Gets the essence of the MIME.
1471
- *
1496
+ * Gets the essence of the MIME. This property is read only.
1472
1497
  * Use `mime.type` or `mime.subtype` to alter the MIME.
1498
+ *
1499
+ * ```js
1500
+ * import { MIMEType } from 'node:util';
1501
+ *
1502
+ * const myMIME = new MIMEType('text/javascript;key=value');
1503
+ * console.log(myMIME.essence);
1504
+ * // Prints: text/javascript
1505
+ * myMIME.type = 'application';
1506
+ * console.log(myMIME.essence);
1507
+ * // Prints: application/javascript
1508
+ * console.log(String(myMIME));
1509
+ * // Prints: application/javascript;key=value
1510
+ * ```
1473
1511
  */
1474
1512
  readonly essence: string;
1475
1513
  /**
1476
- * Gets the `MIMEParams` object representing the parameters of the MIME.
1514
+ * Gets the `MIMEParams` object representing the
1515
+ * parameters of the MIME. This property is read-only. See `MIMEParams` documentation for details.
1477
1516
  */
1478
1517
  readonly params: MIMEParams;
1479
1518
  /**
1480
- * Returns the serialized MIME.
1519
+ * The `toString()` method on the `MIMEType` object returns the serialized MIME.
1481
1520
  *
1482
- * Because of the need for standard compliance, this method
1483
- * does not allow users to customize the serialization process of the MIME.
1521
+ * Because of the need for standard compliance, this method does not allow users
1522
+ * to customize the serialization process of the MIME.
1484
1523
  */
1485
1524
  toString(): string;
1486
1525
  }
1487
1526
  /**
1488
- * @since v18.13.0
1527
+ * The `MIMEParams` API provides read and write access to the parameters of a`MIMEType`.
1528
+ * @since v19.1.0, v18.13.0
1489
1529
  */
1490
1530
  export class MIMEParams {
1491
1531
  /**
@@ -1494,11 +1534,14 @@ declare module 'util' {
1494
1534
  delete(name: string): void;
1495
1535
  /**
1496
1536
  * Returns an iterator over each of the name-value pairs in the parameters.
1537
+ * Each item of the iterator is a JavaScript `Array`. The first item of the array
1538
+ * is the `name`, the second item of the array is the `value`.
1497
1539
  */
1498
1540
  entries(): IterableIterator<[name: string, value: string]>;
1499
1541
  /**
1500
- * Returns the value of the first name-value pair whose name is `name`.
1501
- * If there are no such pairs, `null` is returned.
1542
+ * Returns the value of the first name-value pair whose name is `name`. If there
1543
+ * are no such pairs, `null` is returned.
1544
+ * @return or `null` if there is no name-value pair with the given `name`.
1502
1545
  */
1503
1546
  get(name: string): string | null;
1504
1547
  /**
@@ -1507,12 +1550,33 @@ declare module 'util' {
1507
1550
  has(name: string): boolean;
1508
1551
  /**
1509
1552
  * Returns an iterator over the names of each name-value pair.
1553
+ *
1554
+ * ```js
1555
+ * import { MIMEType } from 'node:util';
1556
+ *
1557
+ * const { params } = new MIMEType('text/plain;foo=0;bar=1');
1558
+ * for (const name of params.keys()) {
1559
+ * console.log(name);
1560
+ * }
1561
+ * // Prints:
1562
+ * // foo
1563
+ * // bar
1564
+ * ```
1510
1565
  */
1511
1566
  keys(): IterableIterator<string>;
1512
1567
  /**
1513
- * Sets the value in the `MIMEParams` object associated with `name` to `value`.
1514
- * If there are any pre-existing name-value pairs whose names are `name`,
1568
+ * Sets the value in the `MIMEParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`,
1515
1569
  * set the first such pair's value to `value`.
1570
+ *
1571
+ * ```js
1572
+ * import { MIMEType } from 'node:util';
1573
+ *
1574
+ * const { params } = new MIMEType('text/plain;foo=0;bar=1');
1575
+ * params.set('foo', 'def');
1576
+ * params.set('baz', 'xyz');
1577
+ * console.log(params.toString());
1578
+ * // Prints: foo=def&#x26;bar=1&#x26;baz=xyz
1579
+ * ```
1516
1580
  */
1517
1581
  set(name: string, value: string): void;
1518
1582
  /**
package/package.json CHANGED
@@ -55,7 +55,7 @@
55
55
  "jsii-pacmak": "^1.84.0",
56
56
  "jsii-rosetta": "1.x",
57
57
  "npm-check-updates": "^16",
58
- "projen": "0.71.124",
58
+ "projen": "0.71.125",
59
59
  "standard-version": "^9",
60
60
  "ts-jest": "^27",
61
61
  "typescript": "^4.9"
@@ -87,7 +87,7 @@
87
87
  ],
88
88
  "main": "lib/index.js",
89
89
  "license": "Apache-2.0",
90
- "version": "2.0.545",
90
+ "version": "2.0.546",
91
91
  "jest": {
92
92
  "testMatch": [
93
93
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",