projen 0.65.48 → 0.65.50

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 (152) hide show
  1. package/.jsii +27 -10
  2. package/docs/api/API.md +8 -0
  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-py.js +1 -1
  11. package/lib/awscdk/awscdk-deps.js +1 -1
  12. package/lib/awscdk/cdk-config.js +1 -1
  13. package/lib/awscdk/cdk-tasks.js +1 -1
  14. package/lib/awscdk/integration-test.js +1 -1
  15. package/lib/awscdk/lambda-extension.js +1 -1
  16. package/lib/awscdk/lambda-function.js +2 -2
  17. package/lib/build/build-workflow.js +1 -1
  18. package/lib/cdk/auto-discover-base.js +2 -2
  19. package/lib/cdk/construct-lib.js +1 -1
  20. package/lib/cdk/integration-test-base.js +1 -1
  21. package/lib/cdk/jsii-docgen.js +1 -1
  22. package/lib/cdk/jsii-project.js +1 -1
  23. package/lib/cdk8s/auto-discover.js +2 -2
  24. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  25. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  26. package/lib/cdk8s/cdk8s-construct.js +1 -1
  27. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  28. package/lib/cdk8s/cdk8s-deps.js +1 -1
  29. package/lib/cdk8s/integration-test.js +1 -1
  30. package/lib/cdktf/cdktf-construct.js +1 -1
  31. package/lib/circleci/circleci.js +1 -1
  32. package/lib/component.js +1 -1
  33. package/lib/dependencies.js +1 -1
  34. package/lib/dev-env.js +1 -1
  35. package/lib/docker-compose.js +2 -2
  36. package/lib/file.js +1 -1
  37. package/lib/gitattributes.js +1 -1
  38. package/lib/github/auto-approve.js +1 -1
  39. package/lib/github/auto-merge.js +1 -1
  40. package/lib/github/dependabot.js +1 -1
  41. package/lib/github/github-credentials.js +1 -1
  42. package/lib/github/github-project.js +1 -1
  43. package/lib/github/github.js +1 -1
  44. package/lib/github/mergify.js +1 -1
  45. package/lib/github/pr-template.js +1 -1
  46. package/lib/github/pull-request-lint.js +1 -1
  47. package/lib/github/stale.js +1 -1
  48. package/lib/github/task-workflow.js +1 -1
  49. package/lib/github/workflows.js +1 -1
  50. package/lib/gitlab/configuration.js +1 -1
  51. package/lib/gitlab/gitlab-configuration.js +1 -1
  52. package/lib/gitlab/nested-configuration.js +1 -1
  53. package/lib/gitpod.js +1 -1
  54. package/lib/ignore-file.js +1 -1
  55. package/lib/ini.js +1 -1
  56. package/lib/java/java-project.js +1 -1
  57. package/lib/java/junit.js +1 -1
  58. package/lib/java/maven-compile.js +1 -1
  59. package/lib/java/maven-packaging.js +1 -1
  60. package/lib/java/maven-sample.js +1 -1
  61. package/lib/java/pom.js +1 -1
  62. package/lib/java/projenrc.js +1 -1
  63. package/lib/javascript/bundler.js +1 -1
  64. package/lib/javascript/eslint.js +6 -4
  65. package/lib/javascript/jest.js +1 -1
  66. package/lib/javascript/node-package.js +1 -1
  67. package/lib/javascript/node-project.js +1 -1
  68. package/lib/javascript/npm-config.js +1 -1
  69. package/lib/javascript/prettier.js +1 -1
  70. package/lib/javascript/projenrc.js +1 -1
  71. package/lib/javascript/typescript-config.js +1 -1
  72. package/lib/javascript/upgrade-dependencies.js +2 -2
  73. package/lib/json-patch.js +1 -1
  74. package/lib/json.d.ts +1 -1
  75. package/lib/json.js +3 -3
  76. package/lib/license.js +1 -1
  77. package/lib/logger.js +1 -1
  78. package/lib/makefile.js +1 -1
  79. package/lib/object-file.js +1 -1
  80. package/lib/project-build.js +1 -1
  81. package/lib/project.js +1 -1
  82. package/lib/projects.js +1 -1
  83. package/lib/projenrc-json.js +1 -1
  84. package/lib/python/pip.js +1 -1
  85. package/lib/python/poetry.js +2 -2
  86. package/lib/python/projenrc.js +1 -1
  87. package/lib/python/pytest-sample.js +1 -1
  88. package/lib/python/pytest.js +1 -1
  89. package/lib/python/python-project.js +1 -1
  90. package/lib/python/python-sample.js +1 -1
  91. package/lib/python/requirements-file.js +1 -1
  92. package/lib/python/setuppy.js +1 -1
  93. package/lib/python/setuptools.js +1 -1
  94. package/lib/python/venv.js +1 -1
  95. package/lib/readme.js +1 -1
  96. package/lib/release/publisher.js +1 -1
  97. package/lib/release/release-trigger.js +1 -1
  98. package/lib/release/release.js +1 -1
  99. package/lib/renovatebot.js +1 -1
  100. package/lib/sample-file.js +2 -2
  101. package/lib/semver.js +1 -1
  102. package/lib/source-code.js +1 -1
  103. package/lib/task-runtime.js +1 -1
  104. package/lib/task.js +1 -1
  105. package/lib/tasks.js +1 -1
  106. package/lib/testing.js +1 -1
  107. package/lib/textfile.js +1 -1
  108. package/lib/toml.js +1 -1
  109. package/lib/typescript/projenrc.js +1 -1
  110. package/lib/typescript/typescript-typedoc.js +1 -1
  111. package/lib/typescript/typescript.js +3 -3
  112. package/lib/util/synth.d.ts +6 -0
  113. package/lib/util/synth.js +33 -5
  114. package/lib/version.js +1 -1
  115. package/lib/vscode/devcontainer.js +1 -1
  116. package/lib/vscode/extensions.js +1 -1
  117. package/lib/vscode/launch-config.js +1 -1
  118. package/lib/vscode/settings.js +1 -1
  119. package/lib/vscode/vscode.js +1 -1
  120. package/lib/web/next.js +3 -3
  121. package/lib/web/postcss.js +1 -1
  122. package/lib/web/react.js +4 -4
  123. package/lib/web/tailwind.js +1 -1
  124. package/lib/xmlfile.js +1 -1
  125. package/lib/yaml.js +1 -1
  126. package/node_modules/array-timsort/LICENSE +21 -0
  127. package/node_modules/array-timsort/README.md +288 -0
  128. package/node_modules/array-timsort/package.json +55 -0
  129. package/node_modules/array-timsort/src/index.js +1080 -0
  130. package/node_modules/comment-json/LICENSE +21 -0
  131. package/node_modules/comment-json/README.md +580 -0
  132. package/node_modules/comment-json/index.d.ts +97 -0
  133. package/node_modules/comment-json/package.json +68 -0
  134. package/node_modules/comment-json/src/array.js +288 -0
  135. package/node_modules/comment-json/src/common.js +181 -0
  136. package/node_modules/comment-json/src/index.js +13 -0
  137. package/node_modules/comment-json/src/parse.js +451 -0
  138. package/node_modules/comment-json/src/stringify.js +366 -0
  139. package/node_modules/core-util-is/LICENSE +19 -0
  140. package/node_modules/core-util-is/README.md +3 -0
  141. package/node_modules/core-util-is/lib/util.js +107 -0
  142. package/node_modules/core-util-is/package.json +38 -0
  143. package/node_modules/has-own-prop/index.d.ts +17 -0
  144. package/node_modules/has-own-prop/index.js +4 -0
  145. package/node_modules/has-own-prop/license +9 -0
  146. package/node_modules/has-own-prop/package.json +33 -0
  147. package/node_modules/has-own-prop/readme.md +30 -0
  148. package/node_modules/repeat-string/LICENSE +21 -0
  149. package/node_modules/repeat-string/README.md +136 -0
  150. package/node_modules/repeat-string/index.js +70 -0
  151. package/node_modules/repeat-string/package.json +77 -0
  152. package/package.json +3 -1
@@ -0,0 +1,136 @@
1
+ # repeat-string [![NPM version](https://img.shields.io/npm/v/repeat-string.svg?style=flat)](https://www.npmjs.com/package/repeat-string) [![NPM monthly downloads](https://img.shields.io/npm/dm/repeat-string.svg?style=flat)](https://npmjs.org/package/repeat-string) [![NPM total downloads](https://img.shields.io/npm/dt/repeat-string.svg?style=flat)](https://npmjs.org/package/repeat-string) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/repeat-string.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/repeat-string)
2
+
3
+ > Repeat the given string n times. Fastest implementation for repeating a string.
4
+
5
+ ## Install
6
+
7
+ Install with [npm](https://www.npmjs.com/):
8
+
9
+ ```sh
10
+ $ npm install --save repeat-string
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ### [repeat](index.js#L41)
16
+
17
+ Repeat the given `string` the specified `number` of times.
18
+
19
+ **Example:**
20
+
21
+ **Example**
22
+
23
+ ```js
24
+ var repeat = require('repeat-string');
25
+ repeat('A', 5);
26
+ //=> AAAAA
27
+ ```
28
+
29
+ **Params**
30
+
31
+ * `string` **{String}**: The string to repeat
32
+ * `number` **{Number}**: The number of times to repeat the string
33
+ * `returns` **{String}**: Repeated string
34
+
35
+ ## Benchmarks
36
+
37
+ Repeat string is significantly faster than the native method (which is itself faster than [repeating](https://github.com/sindresorhus/repeating)):
38
+
39
+ ```sh
40
+ # 2x
41
+ repeat-string █████████████████████████ (26,953,977 ops/sec)
42
+ repeating █████████ (9,855,695 ops/sec)
43
+ native ██████████████████ (19,453,895 ops/sec)
44
+
45
+ # 3x
46
+ repeat-string █████████████████████████ (19,445,252 ops/sec)
47
+ repeating ███████████ (8,661,565 ops/sec)
48
+ native ████████████████████ (16,020,598 ops/sec)
49
+
50
+ # 10x
51
+ repeat-string █████████████████████████ (23,792,521 ops/sec)
52
+ repeating █████████ (8,571,332 ops/sec)
53
+ native ███████████████ (14,582,955 ops/sec)
54
+
55
+ # 50x
56
+ repeat-string █████████████████████████ (23,640,179 ops/sec)
57
+ repeating █████ (5,505,509 ops/sec)
58
+ native ██████████ (10,085,557 ops/sec)
59
+
60
+ # 250x
61
+ repeat-string █████████████████████████ (23,489,618 ops/sec)
62
+ repeating ████ (3,962,937 ops/sec)
63
+ native ████████ (7,724,892 ops/sec)
64
+
65
+ # 2000x
66
+ repeat-string █████████████████████████ (20,315,172 ops/sec)
67
+ repeating ████ (3,297,079 ops/sec)
68
+ native ███████ (6,203,331 ops/sec)
69
+
70
+ # 20000x
71
+ repeat-string █████████████████████████ (23,382,915 ops/sec)
72
+ repeating ███ (2,980,058 ops/sec)
73
+ native █████ (5,578,808 ops/sec)
74
+ ```
75
+
76
+ **Run the benchmarks**
77
+
78
+ Install dev dependencies:
79
+
80
+ ```sh
81
+ npm i -d && node benchmark
82
+ ```
83
+
84
+ ## About
85
+
86
+ ### Related projects
87
+
88
+ [repeat-element](https://www.npmjs.com/package/repeat-element): Create an array by repeating the given value n times. | [homepage](https://github.com/jonschlinkert/repeat-element "Create an array by repeating the given value n times.")
89
+
90
+ ### Contributing
91
+
92
+ Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
93
+
94
+ ### Contributors
95
+
96
+ | **Commits** | **Contributor**<br/> |
97
+ | --- | --- |
98
+ | 51 | [jonschlinkert](https://github.com/jonschlinkert) |
99
+ | 2 | [LinusU](https://github.com/LinusU) |
100
+ | 2 | [tbusser](https://github.com/tbusser) |
101
+ | 1 | [doowb](https://github.com/doowb) |
102
+ | 1 | [wooorm](https://github.com/wooorm) |
103
+
104
+ ### Building docs
105
+
106
+ _(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
107
+
108
+ To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
109
+
110
+ ```sh
111
+ $ npm install -g verb verb-generate-readme && verb
112
+ ```
113
+
114
+ ### Running tests
115
+
116
+ Install dev dependencies:
117
+
118
+ ```sh
119
+ $ npm install -d && npm test
120
+ ```
121
+
122
+ ### Author
123
+
124
+ **Jon Schlinkert**
125
+
126
+ * [github/jonschlinkert](https://github.com/jonschlinkert)
127
+ * [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
128
+
129
+ ### License
130
+
131
+ Copyright © 2016, [Jon Schlinkert](http://github.com/jonschlinkert).
132
+ Released under the [MIT license](https://github.com/jonschlinkert/repeat-string/blob/master/LICENSE).
133
+
134
+ ***
135
+
136
+ _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on October 23, 2016._
@@ -0,0 +1,70 @@
1
+ /*!
2
+ * repeat-string <https://github.com/jonschlinkert/repeat-string>
3
+ *
4
+ * Copyright (c) 2014-2015, Jon Schlinkert.
5
+ * Licensed under the MIT License.
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ /**
11
+ * Results cache
12
+ */
13
+
14
+ var res = '';
15
+ var cache;
16
+
17
+ /**
18
+ * Expose `repeat`
19
+ */
20
+
21
+ module.exports = repeat;
22
+
23
+ /**
24
+ * Repeat the given `string` the specified `number`
25
+ * of times.
26
+ *
27
+ * **Example:**
28
+ *
29
+ * ```js
30
+ * var repeat = require('repeat-string');
31
+ * repeat('A', 5);
32
+ * //=> AAAAA
33
+ * ```
34
+ *
35
+ * @param {String} `string` The string to repeat
36
+ * @param {Number} `number` The number of times to repeat the string
37
+ * @return {String} Repeated string
38
+ * @api public
39
+ */
40
+
41
+ function repeat(str, num) {
42
+ if (typeof str !== 'string') {
43
+ throw new TypeError('expected a string');
44
+ }
45
+
46
+ // cover common, quick use cases
47
+ if (num === 1) return str;
48
+ if (num === 2) return str + str;
49
+
50
+ var max = str.length * num;
51
+ if (cache !== str || typeof cache === 'undefined') {
52
+ cache = str;
53
+ res = '';
54
+ } else if (res.length >= max) {
55
+ return res.substr(0, max);
56
+ }
57
+
58
+ while (max > res.length && num > 1) {
59
+ if (num & 1) {
60
+ res += str;
61
+ }
62
+
63
+ num >>= 1;
64
+ str += str;
65
+ }
66
+
67
+ res += str;
68
+ res = res.substr(0, max);
69
+ return res;
70
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "repeat-string",
3
+ "description": "Repeat the given string n times. Fastest implementation for repeating a string.",
4
+ "version": "1.6.1",
5
+ "homepage": "https://github.com/jonschlinkert/repeat-string",
6
+ "author": "Jon Schlinkert (http://github.com/jonschlinkert)",
7
+ "contributors": [
8
+ "Brian Woodward <brian.woodward@gmail.com> (https://github.com/doowb)",
9
+ "Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)",
10
+ "Linus Unnebäck <linus@folkdatorn.se> (http://linus.unnebäck.se)",
11
+ "Thijs Busser <tbusser@gmail.com> (http://tbusser.net)",
12
+ "Titus <tituswormer@gmail.com> (wooorm.com)"
13
+ ],
14
+ "repository": "jonschlinkert/repeat-string",
15
+ "bugs": {
16
+ "url": "https://github.com/jonschlinkert/repeat-string/issues"
17
+ },
18
+ "license": "MIT",
19
+ "files": [
20
+ "index.js"
21
+ ],
22
+ "main": "index.js",
23
+ "engines": {
24
+ "node": ">=0.10"
25
+ },
26
+ "scripts": {
27
+ "test": "mocha"
28
+ },
29
+ "devDependencies": {
30
+ "ansi-cyan": "^0.1.1",
31
+ "benchmarked": "^0.2.5",
32
+ "gulp-format-md": "^0.1.11",
33
+ "isobject": "^2.1.0",
34
+ "mocha": "^3.1.2",
35
+ "repeating": "^3.0.0",
36
+ "text-table": "^0.2.0",
37
+ "yargs-parser": "^4.0.2"
38
+ },
39
+ "keywords": [
40
+ "fast",
41
+ "fastest",
42
+ "fill",
43
+ "left",
44
+ "left-pad",
45
+ "multiple",
46
+ "pad",
47
+ "padding",
48
+ "repeat",
49
+ "repeating",
50
+ "repetition",
51
+ "right",
52
+ "right-pad",
53
+ "string",
54
+ "times"
55
+ ],
56
+ "verb": {
57
+ "toc": false,
58
+ "layout": "default",
59
+ "tasks": [
60
+ "readme"
61
+ ],
62
+ "plugins": [
63
+ "gulp-format-md"
64
+ ],
65
+ "related": {
66
+ "list": [
67
+ "repeat-element"
68
+ ]
69
+ },
70
+ "helpers": [
71
+ "./benchmark/helper.js"
72
+ ],
73
+ "reflinks": [
74
+ "verb"
75
+ ]
76
+ }
77
+ }
package/package.json CHANGED
@@ -84,6 +84,7 @@
84
84
  "@iarna/toml": "^2.2.5",
85
85
  "case": "^1.6.3",
86
86
  "chalk": "^4.1.2",
87
+ "comment-json": "4.2.2",
87
88
  "conventional-changelog-config-spec": "^2.1.0",
88
89
  "fast-json-patch": "^3.1.1",
89
90
  "fs-extra": "^9.1.0",
@@ -100,6 +101,7 @@
100
101
  "@iarna/toml",
101
102
  "case",
102
103
  "chalk",
104
+ "comment-json",
103
105
  "conventional-changelog-config-spec",
104
106
  "fast-json-patch",
105
107
  "fs-extra",
@@ -125,7 +127,7 @@
125
127
  },
126
128
  "main": "lib/index.js",
127
129
  "license": "Apache-2.0",
128
- "version": "0.65.48",
130
+ "version": "0.65.50",
129
131
  "jest": {
130
132
  "maxWorkers": "50%",
131
133
  "testMatch": [