Skip to content

Commit

Permalink
Bump prettier from 2.2.1 to 2.5.0 (#265)
Browse files Browse the repository at this point in the history
* Bump prettier from 2.2.1 to 2.5.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.5.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.2.1...2.5.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* prettify with updated Prettier version

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jeldrik Hanschke <admin@jhanschke.de>
  • Loading branch information
dependabot[bot] and jelhan authored Dec 13, 2021
1 parent 2f4688e commit e544cfe
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,10 @@ module.exports = {
// Add nonce to <script> tag inserted by Ember CLI to assert that test file was loaded.
if (type === 'test-body-footer') {
existingContent.forEach((entry, index) => {
let result = /<script>[\s\S]*?'The tests file was not loaded\. Make sure your tests index\.html includes "assets\/tests\.js"\.'[\s\S]*?<\/script>/.test(
entry
);
let result =
/<script>[\s\S]*?'The tests file was not loaded\. Make sure your tests index\.html includes "assets\/tests\.js"\.'[\s\S]*?<\/script>/.test(
entry
);

if (result) {
existingContent[index] = entry.replace(
Expand Down
3 changes: 2 additions & 1 deletion node-tests/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const path = require('path');
const fs = require('fs');

const CONFIG_PATH = 'config/content-security-policy.js';
const CSP_META_TAG_REG_EXP = /<meta http-equiv="Content-Security-Policy" content="(.*)">/i;
const CSP_META_TAG_REG_EXP =
/<meta http-equiv="Content-Security-Policy" content="(.*)">/i;

function parseExpressions(config) {
return config.replace(/"{{.*}}"/gs, (match) =>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"loader.js": "^4.7.0",
"mocha": "^9.1.3",
"npm-run-all": "^4.1.5",
"prettier": "~2.2.1",
"prettier": "~2.5.0",
"qunit": "^2.14.1",
"qunit-dom": "^2.0.0",
"release-it": "^14.11.8",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9803,10 +9803,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@~2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
prettier@~2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.0.tgz#a6370e2d4594e093270419d9cc47f7670488f893"
integrity sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg==

printf@^0.6.1:
version "0.6.1"
Expand Down

0 comments on commit e544cfe

Please sign in to comment.