Skip to content

Commit 82ce9d5

Browse files
authored
Merge pull request #3357 from cdr/oxy/update-prettier
chore(deps-dev): bump prettier to 2.3.0
2 parents 74fbb42 + adc9b57 commit 82ce9d5

File tree

2 files changed

+15
-49
lines changed

2 files changed

+15
-49
lines changed

test/unit/register.test.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe("register", () => {
99

1010
beforeAll(() => {
1111
const { window } = new JSDOM()
12-
global.window = (window as unknown) as Window & typeof globalThis
12+
global.window = window as unknown as Window & typeof globalThis
1313
global.document = window.document
1414
global.navigator = window.navigator
1515
global.location = window.location
@@ -35,10 +35,10 @@ describe("register", () => {
3535
jest.restoreAllMocks()
3636

3737
// We don't want these to stay around because it can affect other tests
38-
global.window = (undefined as unknown) as Window & typeof globalThis
39-
global.document = (undefined as unknown) as Document & typeof globalThis
40-
global.navigator = (undefined as unknown) as Navigator & typeof globalThis
41-
global.location = (undefined as unknown) as Location & typeof globalThis
38+
global.window = undefined as unknown as Window & typeof globalThis
39+
global.document = undefined as unknown as Document & typeof globalThis
40+
global.navigator = undefined as unknown as Navigator & typeof globalThis
41+
global.location = undefined as unknown as Location & typeof globalThis
4242
})
4343

4444
it("test should have access to browser globals from beforeAll", () => {
@@ -110,7 +110,7 @@ describe("register", () => {
110110
origin: "http://localhost:8080",
111111
}
112112
const { window } = new JSDOM()
113-
global.window = (window as unknown) as Window & typeof globalThis
113+
global.window = window as unknown as Window & typeof globalThis
114114
global.document = window.document
115115
global.navigator = window.navigator
116116
global.location = location as Location
@@ -131,10 +131,10 @@ describe("register", () => {
131131
jest.restoreAllMocks()
132132

133133
// We don't want these to stay around because it can affect other tests
134-
global.window = (undefined as unknown) as Window & typeof globalThis
135-
global.document = (undefined as unknown) as Document & typeof globalThis
136-
global.navigator = (undefined as unknown) as Navigator & typeof globalThis
137-
global.location = (undefined as unknown) as Location & typeof globalThis
134+
global.window = undefined as unknown as Window & typeof globalThis
135+
global.document = undefined as unknown as Document & typeof globalThis
136+
global.navigator = undefined as unknown as Navigator & typeof globalThis
137+
global.location = undefined as unknown as Location & typeof globalThis
138138
})
139139
it("should register when options.base is undefined", async () => {
140140
// Mock getElementById

yarn.lock

+5-39
Original file line numberDiff line numberDiff line change
@@ -1250,14 +1250,6 @@
12501250
"@typescript-eslint/typescript-estree" "4.23.0"
12511251
debug "^4.1.1"
12521252

1253-
"@typescript-eslint/[email protected]":
1254-
version "4.22.1"
1255-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.22.1.tgz#5bb357f94f9cd8b94e6be43dd637eb73b8f355b4"
1256-
integrity sha512-d5bAiPBiessSmNi8Amq/RuLslvcumxLmyhf1/Xa9IuaoFJ0YtshlJKxhlbY7l2JdEk3wS0EnmnfeJWSvADOe0g==
1257-
dependencies:
1258-
"@typescript-eslint/types" "4.22.1"
1259-
"@typescript-eslint/visitor-keys" "4.22.1"
1260-
12611253
"@typescript-eslint/[email protected]":
12621254
version "4.23.0"
12631255
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.23.0.tgz#8792ef7eacac122e2ec8fa2d30a59b8d9a1f1ce4"
@@ -1266,29 +1258,11 @@
12661258
"@typescript-eslint/types" "4.23.0"
12671259
"@typescript-eslint/visitor-keys" "4.23.0"
12681260

1269-
"@typescript-eslint/[email protected]":
1270-
version "4.22.1"
1271-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.22.1.tgz#bf99c6cec0b4a23d53a61894816927f2adad856a"
1272-
integrity sha512-2HTkbkdAeI3OOcWbqA8hWf/7z9c6gkmnWNGz0dKSLYLWywUlkOAQ2XcjhlKLj5xBFDf8FgAOF5aQbnLRvgNbCw==
1273-
12741261
"@typescript-eslint/[email protected]":
12751262
version "4.23.0"
12761263
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.23.0.tgz#da1654c8a5332f4d1645b2d9a1c64193cae3aa3b"
12771264
integrity sha512-oqkNWyG2SLS7uTWLZf6Sr7Dm02gA5yxiz1RP87tvsmDsguVATdpVguHr4HoGOcFOpCvx9vtCSCyQUGfzq28YCw==
12781265

1279-
"@typescript-eslint/[email protected]":
1280-
version "4.22.1"
1281-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.22.1.tgz#dca379eead8cdfd4edc04805e83af6d148c164f9"
1282-
integrity sha512-p3We0pAPacT+onSGM+sPR+M9CblVqdA9F1JEdIqRVlxK5Qth4ochXQgIyb9daBomyQKAXbygxp1aXQRV0GC79A==
1283-
dependencies:
1284-
"@typescript-eslint/types" "4.22.1"
1285-
"@typescript-eslint/visitor-keys" "4.22.1"
1286-
debug "^4.1.1"
1287-
globby "^11.0.1"
1288-
is-glob "^4.0.1"
1289-
semver "^7.3.2"
1290-
tsutils "^3.17.1"
1291-
12921266
"@typescript-eslint/[email protected]":
12931267
version "4.23.0"
12941268
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.23.0.tgz#0753b292097523852428a6f5a1aa8ccc1aae6cd9"
@@ -1302,14 +1276,6 @@
13021276
semver "^7.3.2"
13031277
tsutils "^3.17.1"
13041278

1305-
"@typescript-eslint/[email protected]":
1306-
version "4.22.1"
1307-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.22.1.tgz#6045ae25a11662c671f90b3a403d682dfca0b7a6"
1308-
integrity sha512-WPkOrIRm+WCLZxXQHCi+WG8T2MMTUFR70rWjdWYddLT7cEfb2P4a3O/J2U1FBVsSFTocXLCoXWY6MZGejeStvQ==
1309-
dependencies:
1310-
"@typescript-eslint/types" "4.22.1"
1311-
eslint-visitor-keys "^2.0.0"
1312-
13131279
"@typescript-eslint/[email protected]":
13141280
version "4.23.0"
13151281
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.23.0.tgz#7215cc977bd3b4ef22467b9023594e32f9e4e455"
@@ -2712,7 +2678,7 @@ cssnano-utils@^2.0.0:
27122678
resolved "https://registry.yarnpkg.com/cssnano-utils/-/cssnano-utils-2.0.0.tgz#b04baaa312aa3dd5a854b7f61d76b9d94be07f74"
27132679
integrity sha512-xvxmTszdrvSyTACdPe8VU5J6p4sm3egpgw54dILvNqt5eBUv6TFjACLhSxtRuEsxYrgy8uDy269YjScO5aKbGA==
27142680

2715-
cssnano@^4.0.0, cssnano@^5.0.0:
2681+
cssnano@^4.0.0, cssnano@^5.0.2:
27162682
version "5.0.2"
27172683
resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-5.0.2.tgz#3f6de4fd5ecb7b5fb636c1a606de5f38cd241493"
27182684
integrity sha512-8JK3EnPsjQsULme9/e5M2hF564f/480hwsdcHvQ7ZtAIMfQ1O3SCfs+b8Mjf5KJxhYApyRshR2QSovEJi2K72Q==
@@ -6477,7 +6443,7 @@ postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0:
64776443
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz#443f6a20ced6481a2bda4fa8532a6e55d789a2cb"
64786444
integrity sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==
64796445

6480-
[email protected], [email protected], postcss@^6.0.1, postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.11, postcss@^7.0.14, postcss@^7.0.17, postcss@^7.0.2, postcss@^7.0.21, postcss@^7.0.26, postcss@^7.0.27, postcss@^7.0.32, postcss@^7.0.35, postcss@^7.0.6, postcss@^8.0.0:
6446+
[email protected], [email protected], postcss@^6.0.1, postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.11, postcss@^7.0.14, postcss@^7.0.17, postcss@^7.0.2, postcss@^7.0.21, postcss@^7.0.26, postcss@^7.0.27, postcss@^7.0.32, postcss@^7.0.35, postcss@^7.0.6, postcss@^8.2.1:
64816447
version "8.2.15"
64826448
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.15.tgz#9e66ccf07292817d226fc315cbbf9bc148fbca65"
64836449
integrity sha512-2zO3b26eJD/8rb106Qu2o7Qgg52ND5HPjcyQiK2B98O388h43A448LCslC0dI2P97wCAQRJsFvwTRcXxTKds+Q==
@@ -6546,9 +6512,9 @@ prettier-plugin-sh@^0.6.0:
65466512
mvdan-sh "^0.5.0"
65476513

65486514
prettier@^2.2.1:
6549-
version "2.2.1"
6550-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
6551-
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
6515+
version "2.3.0"
6516+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"
6517+
integrity sha512-kXtO4s0Lz/DW/IJ9QdWhAf7/NmPWQXkFr/r/WkR3vyI+0v8amTDxiaQSLzs8NBlytfLWX/7uQUMIW677yLKl4w==
65526518

65536519
process-nextick-args@~2.0.0:
65546520
version "2.0.1"

0 commit comments

Comments
 (0)