projen 0.56.10 → 0.56.13

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 (133) hide show
  1. package/.jsii +3 -3
  2. package/changelog.md +1 -6
  3. package/lib/awscdk/auto-discover.js +5 -5
  4. package/lib/awscdk/awscdk-app-java.js +1 -1
  5. package/lib/awscdk/awscdk-app-py.js +1 -1
  6. package/lib/awscdk/awscdk-app-ts.js +1 -1
  7. package/lib/awscdk/awscdk-construct.js +2 -2
  8. package/lib/awscdk/awscdk-deps-java.js +1 -1
  9. package/lib/awscdk/awscdk-deps-js.js +1 -1
  10. package/lib/awscdk/awscdk-deps.js +1 -1
  11. package/lib/awscdk/cdk-config.js +1 -1
  12. package/lib/awscdk/cdk-tasks.js +1 -1
  13. package/lib/awscdk/integration-test.js +1 -1
  14. package/lib/awscdk/lambda-extension.js +1 -1
  15. package/lib/awscdk/lambda-function.js +2 -2
  16. package/lib/build/build-workflow.js +1 -1
  17. package/lib/cdk/auto-discover-base.js +2 -2
  18. package/lib/cdk/construct-lib.js +1 -1
  19. package/lib/cdk/integration-test-base.js +1 -1
  20. package/lib/cdk/jsii-docgen.js +1 -1
  21. package/lib/cdk/jsii-project.js +10 -2
  22. package/lib/cdk8s/auto-discover.js +2 -2
  23. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  24. package/lib/cdk8s/cdk8s-construct.js +1 -1
  25. package/lib/cdk8s/integration-test.js +1 -1
  26. package/lib/cdktf/cdktf-construct.js +1 -1
  27. package/lib/component.js +1 -1
  28. package/lib/dependencies.js +1 -1
  29. package/lib/dev-env.js +1 -1
  30. package/lib/docker-compose.js +2 -2
  31. package/lib/file.js +1 -1
  32. package/lib/gitattributes.js +1 -1
  33. package/lib/github/auto-approve.js +1 -1
  34. package/lib/github/auto-merge.js +1 -1
  35. package/lib/github/dependabot.js +1 -1
  36. package/lib/github/github-credentials.js +1 -1
  37. package/lib/github/github-project.js +1 -1
  38. package/lib/github/github.js +1 -1
  39. package/lib/github/mergify.js +1 -1
  40. package/lib/github/pr-template.js +1 -1
  41. package/lib/github/pull-request-lint.js +1 -1
  42. package/lib/github/stale.js +1 -1
  43. package/lib/github/task-workflow.js +1 -1
  44. package/lib/github/workflows.js +1 -1
  45. package/lib/gitlab/configuration.js +1 -1
  46. package/lib/gitlab/gitlab-configuration.js +1 -1
  47. package/lib/gitlab/nested-configuration.js +1 -1
  48. package/lib/gitpod.js +1 -1
  49. package/lib/ignore-file.js +1 -1
  50. package/lib/ini.js +1 -1
  51. package/lib/java/java-project.js +1 -1
  52. package/lib/java/junit.js +1 -1
  53. package/lib/java/maven-compile.js +1 -1
  54. package/lib/java/maven-packaging.js +1 -1
  55. package/lib/java/maven-sample.js +1 -1
  56. package/lib/java/pom.js +1 -1
  57. package/lib/java/projenrc.js +1 -1
  58. package/lib/javascript/bundler.js +1 -1
  59. package/lib/javascript/eslint.js +1 -1
  60. package/lib/javascript/jest.js +1 -1
  61. package/lib/javascript/node-package.js +1 -1
  62. package/lib/javascript/node-project.js +1 -1
  63. package/lib/javascript/npm-config.js +1 -1
  64. package/lib/javascript/prettier.js +1 -1
  65. package/lib/javascript/projenrc.js +1 -1
  66. package/lib/javascript/typescript-config.js +1 -1
  67. package/lib/javascript/upgrade-dependencies.js +2 -2
  68. package/lib/json.js +1 -1
  69. package/lib/license.js +1 -1
  70. package/lib/logger.js +1 -1
  71. package/lib/makefile.js +1 -1
  72. package/lib/object-file.js +1 -1
  73. package/lib/project-build.js +1 -1
  74. package/lib/project.js +1 -1
  75. package/lib/projects.js +1 -1
  76. package/lib/projenrc-json.js +1 -1
  77. package/lib/python/pip.js +1 -1
  78. package/lib/python/poetry.js +2 -2
  79. package/lib/python/projenrc.js +1 -1
  80. package/lib/python/pytest-sample.js +1 -1
  81. package/lib/python/pytest.js +1 -1
  82. package/lib/python/python-project.js +1 -1
  83. package/lib/python/python-sample.js +1 -1
  84. package/lib/python/requirements-file.js +1 -1
  85. package/lib/python/setuppy.js +1 -1
  86. package/lib/python/setuptools.js +1 -1
  87. package/lib/python/venv.js +1 -1
  88. package/lib/readme.js +1 -1
  89. package/lib/release/publisher.js +1 -1
  90. package/lib/release/release-trigger.js +1 -1
  91. package/lib/release/release.js +1 -1
  92. package/lib/renovatebot.js +1 -1
  93. package/lib/run-task.js +1813 -1
  94. package/lib/sample-file.js +2 -2
  95. package/lib/semver.js +1 -1
  96. package/lib/source-code.js +1 -1
  97. package/lib/task-runtime.js +1 -1
  98. package/lib/task.js +1 -1
  99. package/lib/tasks.js +1 -1
  100. package/lib/testing.js +1 -1
  101. package/lib/textfile.js +1 -1
  102. package/lib/toml.js +1 -1
  103. package/lib/typescript/projenrc.js +1 -1
  104. package/lib/typescript/typescript-typedoc.js +1 -1
  105. package/lib/typescript/typescript.js +3 -3
  106. package/lib/version.js +1 -1
  107. package/lib/vscode/devcontainer.js +1 -1
  108. package/lib/vscode/launch-config.js +1 -1
  109. package/lib/vscode/vscode.js +1 -1
  110. package/lib/web/next.js +3 -3
  111. package/lib/web/postcss.js +1 -1
  112. package/lib/web/react.js +4 -4
  113. package/lib/web/tailwind.js +1 -1
  114. package/lib/xmlfile.js +1 -1
  115. package/lib/yaml.js +1 -1
  116. package/node_modules/glob/common.js +2 -0
  117. package/node_modules/glob/glob.js +4 -1
  118. package/node_modules/glob/package.json +5 -2
  119. package/node_modules/glob/sync.js +6 -3
  120. package/node_modules/xmlbuilder2/node_modules/@types/node/README.md +1 -1
  121. package/node_modules/xmlbuilder2/node_modules/@types/node/net.d.ts +5 -0
  122. package/node_modules/xmlbuilder2/node_modules/@types/node/package.json +2 -2
  123. package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +4 -5
  124. package/node_modules/yaml/browser/dist/compose/resolve-props.js +0 -4
  125. package/node_modules/yaml/browser/dist/parse/parser.js +12 -14
  126. package/node_modules/yaml/dist/compose/resolve-block-map.js +4 -5
  127. package/node_modules/yaml/dist/compose/resolve-props.d.ts +0 -1
  128. package/node_modules/yaml/dist/compose/resolve-props.js +0 -4
  129. package/node_modules/yaml/dist/parse/parser.js +12 -14
  130. package/node_modules/yaml/package.json +1 -1
  131. package/package.json +5 -2
  132. package/releasetag.txt +1 -1
  133. package/version.txt +1 -1
@@ -285,6 +285,11 @@ declare module 'net' {
285
285
  * @since v0.5.10
286
286
  */
287
287
  readonly remotePort?: number | undefined;
288
+ /**
289
+ * The socket timeout in milliseconds as set by socket.setTimeout(). It is undefined if a timeout has not been set.
290
+ * @since v10.7.0
291
+ */
292
+ readonly timeout?: number | undefined;
288
293
  /**
289
294
  * Half-closes the socket. i.e., it sends a FIN packet. It is possible the
290
295
  * server will still send some data.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.32",
3
+ "version": "17.0.33",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  },
216
216
  "scripts": {},
217
217
  "dependencies": {},
218
- "typesPublisherContentHash": "2dd579d0ba3c1020dfef69325afa6d46fba439ba51eed066862df6bb33a7c2c5",
218
+ "typesPublisherContentHash": "4778882a370648e38e15a0b0d8f0ea68f9f725cd6e3d968321a04ce552542d0f",
219
219
  "typeScriptVersion": "3.9"
220
220
  }
@@ -40,13 +40,12 @@ function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError) {
40
40
  }
41
41
  continue;
42
42
  }
43
- if (keyProps.hasNewlineAfterProp || containsNewline(key)) {
44
- onError(key !== null && key !== void 0 ? key : start[start.length - 1], 'MULTILINE_IMPLICIT_KEY', 'Implicit keys need to be on a single line');
45
- }
46
43
  }
47
- else if (((_a = keyProps.found) === null || _a === void 0 ? void 0 : _a.indent) !== bm.indent) {
44
+ else if (((_a = keyProps.found) === null || _a === void 0 ? void 0 : _a.indent) !== bm.indent)
48
45
  onError(offset, 'BAD_INDENT', startColMsg);
49
- }
46
+ if (implicitKey && containsNewline(key))
47
+ onError(key, // checked by containsNewline()
48
+ 'MULTILINE_IMPLICIT_KEY', 'Implicit keys need to be on a single line');
50
49
  // key value
51
50
  const keyStart = keyProps.end;
52
51
  const keyNode = key
@@ -5,7 +5,6 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnN
5
5
  let comment = '';
6
6
  let commentSep = '';
7
7
  let hasNewline = false;
8
- let hasNewlineAfterProp = false;
9
8
  let reqSpace = false;
10
9
  let anchor = null;
11
10
  let tag = null;
@@ -55,8 +54,6 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnN
55
54
  commentSep += token.source;
56
55
  atNewline = true;
57
56
  hasNewline = true;
58
- if (anchor || tag)
59
- hasNewlineAfterProp = true;
60
57
  hasSpace = true;
61
58
  break;
62
59
  case 'anchor':
@@ -123,7 +120,6 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnN
123
120
  spaceBefore,
124
121
  comment,
125
122
  hasNewline,
126
- hasNewlineAfterProp,
127
123
  anchor,
128
124
  tag,
129
125
  end,
@@ -7,7 +7,7 @@ function includesToken(list, type) {
7
7
  return true;
8
8
  return false;
9
9
  }
10
- function findNonEmptyIndex(list) {
10
+ function includesNonEmpty(list) {
11
11
  for (let i = 0; i < list.length; ++i) {
12
12
  switch (list[i].type) {
13
13
  case 'space':
@@ -15,10 +15,10 @@ function findNonEmptyIndex(list) {
15
15
  case 'newline':
16
16
  break;
17
17
  default:
18
- return i;
18
+ return true;
19
19
  }
20
20
  }
21
- return -1;
21
+ return false;
22
22
  }
23
23
  function isFlowToken(token) {
24
24
  switch (token === null || token === void 0 ? void 0 : token.type) {
@@ -343,7 +343,7 @@ class Parser {
343
343
  !last.sep &&
344
344
  !last.value &&
345
345
  last.start.length > 0 &&
346
- findNonEmptyIndex(last.start) === -1 &&
346
+ !includesNonEmpty(last.start) &&
347
347
  (token.indent === 0 ||
348
348
  last.start.every(st => st.type !== 'comment' || st.indent < token.indent))) {
349
349
  if (top.type === 'document')
@@ -391,7 +391,7 @@ class Parser {
391
391
  return yield* this.lineEnd(doc);
392
392
  switch (this.type) {
393
393
  case 'doc-start': {
394
- if (findNonEmptyIndex(doc.start) !== -1) {
394
+ if (includesNonEmpty(doc.start)) {
395
395
  yield* this.pop();
396
396
  yield* this.step();
397
397
  }
@@ -485,21 +485,17 @@ class Parser {
485
485
  else
486
486
  map.items.push({ start: [this.sourceToken] });
487
487
  }
488
- else if (it.sep) {
488
+ else if (it.sep)
489
489
  it.sep.push(this.sourceToken);
490
- }
491
- else {
490
+ else
492
491
  it.start.push(this.sourceToken);
493
- }
494
492
  return;
495
493
  case 'space':
496
494
  case 'comment':
497
- if (it.value) {
495
+ if (it.value)
498
496
  map.items.push({ start: [this.sourceToken] });
499
- }
500
- else if (it.sep) {
497
+ else if (it.sep)
501
498
  it.sep.push(this.sourceToken);
502
- }
503
499
  else {
504
500
  if (this.atIndentedComment(it.start, map.indent)) {
505
501
  const prev = map.items[map.items.length - 2];
@@ -516,7 +512,9 @@ class Parser {
516
512
  return;
517
513
  }
518
514
  if (this.indent >= map.indent) {
519
- const atNextItem = !this.onKeyLine && this.indent === map.indent && it.sep;
515
+ const atNextItem = !this.onKeyLine &&
516
+ this.indent === map.indent &&
517
+ (it.sep || includesNonEmpty(it.start));
520
518
  // For empty nodes, assign newline-separated not indented empty tokens to following node
521
519
  let start = [];
522
520
  if (atNextItem && it.sep && !it.value) {
@@ -42,13 +42,12 @@ function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError) {
42
42
  }
43
43
  continue;
44
44
  }
45
- if (keyProps.hasNewlineAfterProp || utilContainsNewline.containsNewline(key)) {
46
- onError(key !== null && key !== void 0 ? key : start[start.length - 1], 'MULTILINE_IMPLICIT_KEY', 'Implicit keys need to be on a single line');
47
- }
48
45
  }
49
- else if (((_a = keyProps.found) === null || _a === void 0 ? void 0 : _a.indent) !== bm.indent) {
46
+ else if (((_a = keyProps.found) === null || _a === void 0 ? void 0 : _a.indent) !== bm.indent)
50
47
  onError(offset, 'BAD_INDENT', startColMsg);
51
- }
48
+ if (implicitKey && utilContainsNewline.containsNewline(key))
49
+ onError(key, // checked by containsNewline()
50
+ 'MULTILINE_IMPLICIT_KEY', 'Implicit keys need to be on a single line');
52
51
  // key value
53
52
  const keyStart = keyProps.end;
54
53
  const keyNode = key
@@ -14,7 +14,6 @@ export declare function resolveProps(tokens: SourceToken[], { flow, indicator, n
14
14
  spaceBefore: boolean;
15
15
  comment: string;
16
16
  hasNewline: boolean;
17
- hasNewlineAfterProp: boolean;
18
17
  anchor: SourceToken | null;
19
18
  tag: SourceToken | null;
20
19
  end: number;
@@ -7,7 +7,6 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnN
7
7
  let comment = '';
8
8
  let commentSep = '';
9
9
  let hasNewline = false;
10
- let hasNewlineAfterProp = false;
11
10
  let reqSpace = false;
12
11
  let anchor = null;
13
12
  let tag = null;
@@ -57,8 +56,6 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnN
57
56
  commentSep += token.source;
58
57
  atNewline = true;
59
58
  hasNewline = true;
60
- if (anchor || tag)
61
- hasNewlineAfterProp = true;
62
59
  hasSpace = true;
63
60
  break;
64
61
  case 'anchor':
@@ -125,7 +122,6 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnN
125
122
  spaceBefore,
126
123
  comment,
127
124
  hasNewline,
128
- hasNewlineAfterProp,
129
125
  anchor,
130
126
  tag,
131
127
  end,
@@ -9,7 +9,7 @@ function includesToken(list, type) {
9
9
  return true;
10
10
  return false;
11
11
  }
12
- function findNonEmptyIndex(list) {
12
+ function includesNonEmpty(list) {
13
13
  for (let i = 0; i < list.length; ++i) {
14
14
  switch (list[i].type) {
15
15
  case 'space':
@@ -17,10 +17,10 @@ function findNonEmptyIndex(list) {
17
17
  case 'newline':
18
18
  break;
19
19
  default:
20
- return i;
20
+ return true;
21
21
  }
22
22
  }
23
- return -1;
23
+ return false;
24
24
  }
25
25
  function isFlowToken(token) {
26
26
  switch (token === null || token === void 0 ? void 0 : token.type) {
@@ -347,7 +347,7 @@ class Parser {
347
347
  !last.sep &&
348
348
  !last.value &&
349
349
  last.start.length > 0 &&
350
- findNonEmptyIndex(last.start) === -1 &&
350
+ !includesNonEmpty(last.start) &&
351
351
  (token.indent === 0 ||
352
352
  last.start.every(st => st.type !== 'comment' || st.indent < token.indent))) {
353
353
  if (top.type === 'document')
@@ -395,7 +395,7 @@ class Parser {
395
395
  return yield* this.lineEnd(doc);
396
396
  switch (this.type) {
397
397
  case 'doc-start': {
398
- if (findNonEmptyIndex(doc.start) !== -1) {
398
+ if (includesNonEmpty(doc.start)) {
399
399
  yield* this.pop();
400
400
  yield* this.step();
401
401
  }
@@ -489,21 +489,17 @@ class Parser {
489
489
  else
490
490
  map.items.push({ start: [this.sourceToken] });
491
491
  }
492
- else if (it.sep) {
492
+ else if (it.sep)
493
493
  it.sep.push(this.sourceToken);
494
- }
495
- else {
494
+ else
496
495
  it.start.push(this.sourceToken);
497
- }
498
496
  return;
499
497
  case 'space':
500
498
  case 'comment':
501
- if (it.value) {
499
+ if (it.value)
502
500
  map.items.push({ start: [this.sourceToken] });
503
- }
504
- else if (it.sep) {
501
+ else if (it.sep)
505
502
  it.sep.push(this.sourceToken);
506
- }
507
503
  else {
508
504
  if (this.atIndentedComment(it.start, map.indent)) {
509
505
  const prev = map.items[map.items.length - 2];
@@ -520,7 +516,9 @@ class Parser {
520
516
  return;
521
517
  }
522
518
  if (this.indent >= map.indent) {
523
- const atNextItem = !this.onKeyLine && this.indent === map.indent && it.sep;
519
+ const atNextItem = !this.onKeyLine &&
520
+ this.indent === map.indent &&
521
+ (it.sep || includesNonEmpty(it.start));
524
522
  // For empty nodes, assign newline-separated not indented empty tokens to following node
525
523
  let start = [];
526
524
  if (atNextItem && it.sep && !it.value) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml",
3
- "version": "2.0.1",
3
+ "version": "2.0.0",
4
4
  "license": "ISC",
5
5
  "author": "Eemeli Aro <eemeli@gmail.com>",
6
6
  "repository": "github:eemeli/yaml",
package/package.json CHANGED
@@ -92,7 +92,7 @@
92
92
  "semver": "^7.3.7",
93
93
  "shx": "^0.3.4",
94
94
  "xmlbuilder2": "^2.4.1",
95
- "yaml": "^2.0.1",
95
+ "yaml": "2.0.0",
96
96
  "yargs": "^16.2.0"
97
97
  },
98
98
  "bundledDependencies": [
@@ -122,7 +122,7 @@
122
122
  },
123
123
  "main": "lib/index.js",
124
124
  "license": "Apache-2.0",
125
- "version": "0.56.10",
125
+ "version": "0.56.13",
126
126
  "jest": {
127
127
  "testMatch": [
128
128
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
@@ -187,5 +187,8 @@
187
187
  "rootDir": "src"
188
188
  }
189
189
  },
190
+ "resolutions": {
191
+ "@types/prettier": "2.6.0"
192
+ },
190
193
  "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
191
194
  }
package/releasetag.txt CHANGED
@@ -1 +1 @@
1
- v0.56.10
1
+ v0.56.13
package/version.txt CHANGED
@@ -1 +1 @@
1
- 0.56.10
1
+ 0.56.13