-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency dot-prop to v7 (#5737)
* fix(deps): update dependency dot-prop to v8 * Revert "fix(deps): update dependency dot-prop to v8" This reverts commit 81afc51. * fix(deps): update dependency dot-prop to v7 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Tschinder <231804+danez@users.noreply.github.com>
- Loading branch information
1 parent
e41bd63
commit 82abf15
Showing
13 changed files
with
95 additions
and
105 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,18 @@ | ||
import dotProp from 'dot-prop' | ||
|
||
import { chalk } from '../utils/command-helpers.mjs' | ||
|
||
const RED_BACKGROUND = chalk.red('-background') | ||
const [PRO, BUSINESS, ENTERPRISE] = ['Pro', 'Business', 'Enterprise'].map((plan) => chalk.magenta(plan)) | ||
const BACKGROUND_FUNCTIONS_WARNING = `A serverless function ending in \`${RED_BACKGROUND}\` was detected. | ||
export const BACKGROUND_FUNCTIONS_WARNING = `A serverless function ending in \`${RED_BACKGROUND}\` was detected. | ||
Your team’s current plan doesn’t support Background Functions, which have names ending in \`${RED_BACKGROUND}\`. | ||
To be able to deploy this function successfully either: | ||
- change the function name to remove \`${RED_BACKGROUND}\` and execute it synchronously | ||
- upgrade your team plan to a level that supports Background Functions (${PRO}, ${BUSINESS}, or ${ENTERPRISE}) | ||
` | ||
const MISSING_AWS_SDK_WARNING = `A function has thrown an error due to a missing dependency: ${chalk.yellow('aws-sdk')}. | ||
export const MISSING_AWS_SDK_WARNING = `A function has thrown an error due to a missing dependency: ${chalk.yellow( | ||
'aws-sdk', | ||
)}. | ||
You should add this module to the project's dependencies, using your package manager of choice: | ||
${chalk.yellow('npm install aws-sdk --save')} or ${chalk.yellow('yarn add aws-sdk')} | ||
For more information, see https://ntl.fyi/cli-aws-sdk.` | ||
|
||
const messages = { | ||
functions: { | ||
backgroundNotSupported: BACKGROUND_FUNCTIONS_WARNING, | ||
missingAwsSdk: MISSING_AWS_SDK_WARNING, | ||
}, | ||
} | ||
|
||
export const getLogMessage = (key) => dotProp.get(messages, key, 'Missing Log Message Key') |
Oops, something went wrong.
82abf15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📊 Benchmark results