Skip to content

Commit 8919fbf

Browse files
Run Prettier
1 parent ea02406 commit 8919fbf

File tree

6 files changed

+19
-14
lines changed

6 files changed

+19
-14
lines changed

docs/guides/credentials.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ To limit the Serverless Framework’s access your AWS account, follow these step
4747

4848
2. Click on **Users** and then **Add user**. Enter a name in the first field to remind you this User is related to the Service you are deploying with the Serverless Framework, like `serverless-servicename-agent`. Enable **Programmatic access** by clicking the checkbox. Click **Next** to go through to the Permissions page. Click on **Create policy**. Select the **JSON** tab, and add a JSON file. You can use [this gist](https://gist.github.com/ServerlessBot/7618156b8671840a539f405dea2704c8) as a guide.
4949

50-
When you are finished, select **Review policy**. You can assign this policy a **Name** and **Description**, then choose **Create Policy**. Check to make sure everything looks good and click **Create user**. Later, you can create different IAM Users for different apps and different stages of those apps. That is, if you don't use separate AWS accounts for stages/apps, which is most common.
50+
When you are finished, select **Review policy**. You can assign this policy a **Name** and **Description**, then choose **Create Policy**. Check to make sure everything looks good and click **Create user**. Later, you can create different IAM Users for different apps and different stages of those apps. That is, if you don't use separate AWS accounts for stages/apps, which is most common.
5151

5252
3. View and copy the **API Key** & **Secret** to a temporary place. These are your AWS access keys.
5353

lib/cli/resolve-input.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ module.exports = memoizee((commandsSchema = require('./commands-schema')) => {
5353
}
5454
}
5555

56-
if (
57-
options.help ||
58-
options.version ||
59-
command === 'help'
60-
) {
56+
if (options.help || options.version || command === 'help') {
6157
result.isHelpRequest = true;
6258
}
6359

lib/plugins/aws/deploy/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ class AwsDeploy {
9494
log.notice(
9595
`Deploying ${this.serverless.service.service} to stage ${this.serverless
9696
.getProvider('aws')
97-
.getStage()} ${style.aside(
98-
`(${this.serverless.getProvider('aws').getRegion()})`
99-
)}`
97+
.getStage()} ${style.aside(`(${this.serverless.getProvider('aws').getRegion()})`)}`
10098
);
10199
log.info(); // Ensure gap between verbose logging
102100

lib/plugins/aws/invoke-local/index.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,17 @@ class AwsInvokeLocal {
253253
);
254254
}
255255

256-
if (['python3.7', 'python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12', 'python3.13'].includes(runtime)) {
256+
if (
257+
[
258+
'python3.7',
259+
'python3.8',
260+
'python3.9',
261+
'python3.10',
262+
'python3.11',
263+
'python3.12',
264+
'python3.13',
265+
].includes(runtime)
266+
) {
257267
const handlerComponents = handler.split(/\./);
258268
const handlerPath = handlerComponents.slice(0, -1).join('.');
259269
const handlerName = handlerComponents.pop();

lib/utils/standalone.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ const arch = (() => {
3131
module.exports = {
3232
resolveLatestTag: async () => {
3333
const response = await fetch(
34-
'https://api.github.com/repos/serverless/serverless/releases/latest'
34+
'https://api.github.com/repos/serverless/serverless/releases/latest'
3535
);
3636
const data = await response.json();
3737
return data.tag_name;
3838
},
3939
resolveUrl: (tagName) => {
40-
return `https://github.com/serverless/serverless/releases/download/${tagName}/` +
41-
`serverless-${platform}-${arch}`;
40+
return (
41+
`https://github.com/serverless/serverless/releases/download/${tagName}/` +
42+
`serverless-${platform}-${arch}`
43+
);
4244
},
4345
path: `${os.homedir()}/.serverless/bin/serverless`,
4446
};

test/unit/lib/cli/handle-error.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ describe('test/unit/lib/cli/handle-error.test.js', () => {
2828
const output = await observeOutput(() => handleError(handleError('NON-ERROR')));
2929
expect(output).to.have.string('NON-ERROR');
3030
});
31-
3231
});

0 commit comments

Comments
 (0)