@cdklabs/cdk-ssm-documents 0.0.39 → 0.0.41
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/.jsii +2 -2
- package/lib/construct/synth-utils.js +1 -1
- package/lib/document/automation-document.js +1 -1
- package/lib/document/command-document.js +1 -1
- package/lib/document/document-builder.js +2 -2
- package/lib/document/ssm-document.js +1 -1
- package/lib/domain/aws-service.js +1 -1
- package/lib/domain/choice.js +1 -1
- package/lib/domain/data-type.js +1 -1
- package/lib/domain/enum/install-action.js +2 -2
- package/lib/domain/enum/install-uninstall-repair.js +2 -2
- package/lib/domain/enum/installation-type.js +2 -2
- package/lib/domain/enum/package-name.js +2 -2
- package/lib/domain/input.js +1 -1
- package/lib/domain/operation.js +1 -1
- package/lib/domain/platform.js +1 -1
- package/lib/domain/precondition.js +1 -1
- package/lib/incident-response/incident-response.js +3 -3
- package/lib/interface/approve-hook.js +2 -2
- package/lib/interface/auth-method.js +3 -3
- package/lib/interface/aws-invoker.js +2 -2
- package/lib/interface/downloadable-content.js +8 -8
- package/lib/interface/environment.js +3 -3
- package/lib/interface/execute-automation-hook/api-execute-automation-hook.js +1 -1
- package/lib/interface/observer.js +1 -1
- package/lib/interface/on-failure.js +6 -6
- package/lib/interface/pause-hook.js +2 -2
- package/lib/interface/run-command-hook/api-run-command-hook.js +1 -1
- package/lib/interface/run-document-location.js +2 -2
- package/lib/interface/sleep-hook.js +2 -2
- package/lib/interface/step-ref.js +1 -1
- package/lib/interface/variables/boolean-variable.js +2 -2
- package/lib/interface/variables/map-list-variable.js +2 -2
- package/lib/interface/variables/number-variable.js +2 -2
- package/lib/interface/variables/secure-string-variable.js +4 -4
- package/lib/interface/variables/string-list-variable.js +2 -2
- package/lib/interface/variables/string-map-variable.js +2 -2
- package/lib/interface/variables/string-variable.js +4 -4
- package/lib/interface/variables/variable.js +2 -2
- package/lib/interface/webhook.js +1 -1
- package/lib/parent-steps/automation/approve-step.js +1 -1
- package/lib/parent-steps/automation/assert-aws-resource-step.js +1 -1
- package/lib/parent-steps/automation/aws-api-step.js +1 -1
- package/lib/parent-steps/automation/branch-step.js +1 -1
- package/lib/parent-steps/automation/change-instance-state-step.js +3 -3
- package/lib/parent-steps/automation/copy-image-step.js +1 -1
- package/lib/parent-steps/automation/create-image-step.js +1 -1
- package/lib/parent-steps/automation/create-stack-step.js +3 -3
- package/lib/parent-steps/automation/create-tags-step.js +3 -3
- package/lib/parent-steps/automation/delete-image-step.js +1 -1
- package/lib/parent-steps/automation/delete-stack-step.js +1 -1
- package/lib/parent-steps/automation/execute-automation-step.js +1 -1
- package/lib/parent-steps/automation/execute-script-step.js +5 -5
- package/lib/parent-steps/automation/execute-state-machine-step.js +1 -1
- package/lib/parent-steps/automation/invoke-lambda-function-step.js +1 -1
- package/lib/parent-steps/automation/invoke-webhook-step.js +1 -1
- package/lib/parent-steps/automation/pause-step.js +1 -1
- package/lib/parent-steps/automation/run-command-step.js +3 -3
- package/lib/parent-steps/automation/run-instance-step.js +1 -1
- package/lib/parent-steps/automation/sleep-step.js +1 -1
- package/lib/parent-steps/automation/wait-for-resource-step.js +1 -1
- package/lib/parent-steps/automation-step.js +1 -1
- package/lib/parent-steps/command/applications-step.js +1 -1
- package/lib/parent-steps/command/configure-docker-step.js +1 -1
- package/lib/parent-steps/command/configure-package-step.js +1 -1
- package/lib/parent-steps/command/domain-join-step.js +1 -1
- package/lib/parent-steps/command/download-content-step.js +1 -1
- package/lib/parent-steps/command/ps-module-step.js +1 -1
- package/lib/parent-steps/command/run-docker-action-step.js +1 -1
- package/lib/parent-steps/command/run-document-step.js +1 -1
- package/lib/parent-steps/command/run-powershell-script-step.js +1 -1
- package/lib/parent-steps/command/run-shell-script-step.js +1 -1
- package/lib/parent-steps/command/software-inventory-step.js +1 -1
- package/lib/parent-steps/command/update-agent-step.js +1 -1
- package/lib/parent-steps/command/update-ssm-agent-step.js +1 -1
- package/lib/parent-steps/command-step.js +1 -1
- package/lib/parent-steps/step.js +1 -1
- package/lib/patterns/automation/composite-step.js +2 -2
- package/lib/patterns/automation/reboot-instance-and-wait.js +1 -1
- package/lib/patterns/automation/string-step.js +1 -1
- package/lib/patterns/document/string-document.js +1 -1
- package/lib/patterns/document/timed-document.js +1 -1
- package/lib/samples/hello-world.js +1 -1
- package/lib/simulation/automation/approve-simulation.js +1 -1
- package/lib/simulation/automation/assert-aws-resource-simulation.js +1 -1
- package/lib/simulation/automation/automation-simulation-base.js +1 -1
- package/lib/simulation/automation/aws-api-simulation.js +1 -1
- package/lib/simulation/automation/branch-simulation.js +1 -1
- package/lib/simulation/automation/change-instance-state-simulation.js +1 -1
- package/lib/simulation/automation/copy-image-simulation.js +1 -1
- package/lib/simulation/automation/create-image-simulation.js +1 -1
- package/lib/simulation/automation/create-stack-simulation.js +1 -1
- package/lib/simulation/automation/create-tags-simulation.js +1 -1
- package/lib/simulation/automation/delete-image-simulation.js +1 -1
- package/lib/simulation/automation/delete-stack-simulation.js +1 -1
- package/lib/simulation/automation/execute-script-simulation.js +1 -1
- package/lib/simulation/automation/execute-state-machine-simulation.js +1 -1
- package/lib/simulation/automation/invoke-lambda-function-simulation.js +1 -1
- package/lib/simulation/automation/invoke-webhook-simulation.js +1 -1
- package/lib/simulation/automation/pause-simulation.js +1 -1
- package/lib/simulation/automation/run-command-simulation.js +1 -1
- package/lib/simulation/automation/run-instance-simulation.js +1 -1
- package/lib/simulation/automation/sleep-simulation.js +1 -1
- package/lib/simulation/automation/wait-for-resource-simulation.js +1 -1
- package/lib/simulation/automation-step-simulation.js +1 -1
- package/lib/simulation/command/command-simulation-base.js +1 -1
- package/lib/simulation/command/ps-module-simulation.js +1 -1
- package/lib/simulation/command/run-powershell-script-simulation.js +1 -1
- package/lib/simulation/command/run-shell-script-simulation.js +1 -1
- package/lib/simulation/command-step-simulation.js +1 -1
- package/lib/simulation/document/automation-simulation.js +1 -1
- package/lib/simulation/document/command-simulation.js +1 -1
- package/lib/simulation/simulation.js +1 -1
- package/node_modules/word-wrap/LICENSE +1 -1
- package/node_modules/word-wrap/README.md +48 -29
- package/node_modules/word-wrap/index.d.ts +2 -2
- package/node_modules/word-wrap/index.js +18 -3
- package/node_modules/word-wrap/package.json +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> Wrap words to a specified length.
|
|
4
4
|
|
|
5
|
+
Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
|
|
6
|
+
|
|
5
7
|
## Install
|
|
6
8
|
|
|
7
9
|
Install with [npm](https://www.npmjs.com/):
|
|
@@ -50,7 +52,7 @@ wrap(str, {width: 60});
|
|
|
50
52
|
|
|
51
53
|
Type: `String`
|
|
52
54
|
|
|
53
|
-
Default: `` (
|
|
55
|
+
Default: `` (none)
|
|
54
56
|
|
|
55
57
|
The string to use at the beginning of each line.
|
|
56
58
|
|
|
@@ -123,31 +125,26 @@ wrap(str, {cut: true});
|
|
|
123
125
|
|
|
124
126
|
## About
|
|
125
127
|
|
|
126
|
-
|
|
128
|
+
<details>
|
|
129
|
+
<summary><strong>Contributing</strong></summary>
|
|
127
130
|
|
|
128
|
-
|
|
129
|
-
* [shuffle-words](https://www.npmjs.com/package/shuffle-words): Shuffle the words in a string and optionally the letters in each word using the… [more](https://github.com/jonschlinkert/shuffle-words) | [homepage](https://github.com/jonschlinkert/shuffle-words "Shuffle the words in a string and optionally the letters in each word using the Fisher-Yates algorithm. Useful for creating test fixtures, benchmarking samples, etc.")
|
|
130
|
-
* [unique-words](https://www.npmjs.com/package/unique-words): Return the unique words in a string or array. | [homepage](https://github.com/jonschlinkert/unique-words "Return the unique words in a string or array.")
|
|
131
|
-
* [wordcount](https://www.npmjs.com/package/wordcount): Count the words in a string. Support for english, CJK and Cyrillic. | [homepage](https://github.com/jonschlinkert/wordcount "Count the words in a string. Support for english, CJK and Cyrillic.")
|
|
131
|
+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
</details>
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
<details>
|
|
136
|
+
<summary><strong>Running Tests</strong></summary>
|
|
136
137
|
|
|
137
|
-
|
|
138
|
+
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
|
139
|
+
|
|
140
|
+
```sh
|
|
141
|
+
$ npm install && npm test
|
|
142
|
+
```
|
|
138
143
|
|
|
139
|
-
|
|
140
|
-
| --- | --- |
|
|
141
|
-
| 43 | [jonschlinkert](https://github.com/jonschlinkert) |
|
|
142
|
-
| 2 | [lordvlad](https://github.com/lordvlad) |
|
|
143
|
-
| 2 | [hildjj](https://github.com/hildjj) |
|
|
144
|
-
| 1 | [danilosampaio](https://github.com/danilosampaio) |
|
|
145
|
-
| 1 | [2fd](https://github.com/2fd) |
|
|
146
|
-
| 1 | [toddself](https://github.com/toddself) |
|
|
147
|
-
| 1 | [wolfgang42](https://github.com/wolfgang42) |
|
|
148
|
-
| 1 | [zachhale](https://github.com/zachhale) |
|
|
144
|
+
</details>
|
|
149
145
|
|
|
150
|
-
|
|
146
|
+
<details>
|
|
147
|
+
<summary><strong>Building docs</strong></summary>
|
|
151
148
|
|
|
152
149
|
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
|
153
150
|
|
|
@@ -157,26 +154,48 @@ To generate the readme, run the following command:
|
|
|
157
154
|
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
|
158
155
|
```
|
|
159
156
|
|
|
160
|
-
|
|
157
|
+
</details>
|
|
161
158
|
|
|
162
|
-
|
|
159
|
+
### Related projects
|
|
163
160
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
You might also be interested in these projects:
|
|
162
|
+
|
|
163
|
+
* [common-words](https://www.npmjs.com/package/common-words): Updated list (JSON) of the 100 most common words in the English language. Useful for… [more](https://github.com/jonschlinkert/common-words) | [homepage](https://github.com/jonschlinkert/common-words "Updated list (JSON) of the 100 most common words in the English language. Useful for excluding these words from arrays.")
|
|
164
|
+
* [shuffle-words](https://www.npmjs.com/package/shuffle-words): Shuffle the words in a string and optionally the letters in each word using the… [more](https://github.com/jonschlinkert/shuffle-words) | [homepage](https://github.com/jonschlinkert/shuffle-words "Shuffle the words in a string and optionally the letters in each word using the Fisher-Yates algorithm. Useful for creating test fixtures, benchmarking samples, etc.")
|
|
165
|
+
* [unique-words](https://www.npmjs.com/package/unique-words): Returns an array of unique words, or the number of occurrences of each word in… [more](https://github.com/jonschlinkert/unique-words) | [homepage](https://github.com/jonschlinkert/unique-words "Returns an array of unique words, or the number of occurrences of each word in a string or list.")
|
|
166
|
+
* [wordcount](https://www.npmjs.com/package/wordcount): Count the words in a string. Support for english, CJK and Cyrillic. | [homepage](https://github.com/jonschlinkert/wordcount "Count the words in a string. Support for english, CJK and Cyrillic.")
|
|
167
|
+
|
|
168
|
+
### Contributors
|
|
169
|
+
|
|
170
|
+
| **Commits** | **Contributor** |
|
|
171
|
+
| --- | --- |
|
|
172
|
+
| 47 | [jonschlinkert](https://github.com/jonschlinkert) |
|
|
173
|
+
| 7 | [OlafConijn](https://github.com/OlafConijn) |
|
|
174
|
+
| 2 | [aashutoshrathi](https://github.com/aashutoshrathi) |
|
|
175
|
+
| 2 | [doowb](https://github.com/doowb) |
|
|
176
|
+
| 2 | [lordvlad](https://github.com/lordvlad) |
|
|
177
|
+
| 2 | [hildjj](https://github.com/hildjj) |
|
|
178
|
+
| 1 | [danilosampaio](https://github.com/danilosampaio) |
|
|
179
|
+
| 1 | [2fd](https://github.com/2fd) |
|
|
180
|
+
| 1 | [leonard-thieu](https://github.com/leonard-thieu) |
|
|
181
|
+
| 1 | [mohd-akram](https://github.com/mohd-akram) |
|
|
182
|
+
| 1 | [toddself](https://github.com/toddself) |
|
|
183
|
+
| 1 | [wolfgang42](https://github.com/wolfgang42) |
|
|
184
|
+
| 1 | [zachhale](https://github.com/zachhale) |
|
|
167
185
|
|
|
168
186
|
### Author
|
|
169
187
|
|
|
170
188
|
**Jon Schlinkert**
|
|
171
189
|
|
|
172
|
-
* [
|
|
173
|
-
* [
|
|
190
|
+
* [GitHub Profile](https://github.com/jonschlinkert)
|
|
191
|
+
* [Twitter Profile](https://twitter.com/jonschlinkert)
|
|
192
|
+
* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
|
|
174
193
|
|
|
175
194
|
### License
|
|
176
195
|
|
|
177
|
-
Copyright ©
|
|
196
|
+
Copyright © 2023, [Jon Schlinkert](https://github.com/jonschlinkert).
|
|
178
197
|
Released under the [MIT License](LICENSE).
|
|
179
198
|
|
|
180
199
|
***
|
|
181
200
|
|
|
182
|
-
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.
|
|
201
|
+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on July 18, 2023._
|
|
@@ -16,7 +16,7 @@ declare namespace wrap {
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* The string to use at the beginning of each line.
|
|
19
|
-
* @default
|
|
19
|
+
* @default ´´ (none)
|
|
20
20
|
*/
|
|
21
21
|
indent?: string;
|
|
22
22
|
|
|
@@ -47,4 +47,4 @@ declare namespace wrap {
|
|
|
47
47
|
*/
|
|
48
48
|
cut?: boolean;
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* word-wrap <https://github.com/jonschlinkert/word-wrap>
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c) 2014-
|
|
4
|
+
* Copyright (c) 2014-2023, Jon Schlinkert.
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
function trimEnd(str) {
|
|
9
|
+
let lastCharPos = str.length - 1;
|
|
10
|
+
let lastChar = str[lastCharPos];
|
|
11
|
+
while(lastChar === ' ' || lastChar === '\t') {
|
|
12
|
+
lastChar = str[--lastCharPos];
|
|
13
|
+
}
|
|
14
|
+
return str.substring(0, lastCharPos + 1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function trimTabAndSpaces(str) {
|
|
18
|
+
const lines = str.split('\n');
|
|
19
|
+
const trimmedLines = lines.map((line) => trimEnd(line));
|
|
20
|
+
return trimmedLines.join('\n');
|
|
21
|
+
}
|
|
22
|
+
|
|
8
23
|
module.exports = function(str, options) {
|
|
9
24
|
options = options || {};
|
|
10
25
|
if (str == null) {
|
|
@@ -14,7 +29,7 @@ module.exports = function(str, options) {
|
|
|
14
29
|
var width = options.width || 50;
|
|
15
30
|
var indent = (typeof options.indent === 'string')
|
|
16
31
|
? options.indent
|
|
17
|
-
: '
|
|
32
|
+
: '';
|
|
18
33
|
|
|
19
34
|
var newline = options.newline || '\n' + indent;
|
|
20
35
|
var escape = typeof options.escape === 'function'
|
|
@@ -36,7 +51,7 @@ module.exports = function(str, options) {
|
|
|
36
51
|
}).join(newline);
|
|
37
52
|
|
|
38
53
|
if (options.trim === true) {
|
|
39
|
-
result = result
|
|
54
|
+
result = trimTabAndSpaces(result);
|
|
40
55
|
}
|
|
41
56
|
return result;
|
|
42
57
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "word-wrap",
|
|
3
3
|
"description": "Wrap words to a specified length.",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.4",
|
|
5
5
|
"homepage": "https://github.com/jonschlinkert/word-wrap",
|
|
6
6
|
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
7
|
"contributors": [
|