Skip to content

Commit 2c9cb27

Browse files
committed
Fix webpack bundling, by fixing prettify version
Signed-off-by: Yevhen Vydolob <[email protected]>
1 parent 87df952 commit 2c9cb27

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
"eslint-plugin-prettier": "^3.1.4",
224224
"glob": "^7.1.6",
225225
"mocha": "^8.0.1",
226-
"prettier": "^2.0.5",
226+
"prettier": "2.2.1",
227227
"rimraf": "^3.0.2",
228228
"sinon": "^9.0.3",
229229
"sinon-chai": "^3.5.0",

test/json-schema-cache.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('JSON Schema Cache Tests', () => {
4343
pathExistsStub.resolves(false);
4444
readFileStub.resolves();
4545

46-
const cache = new JSONSchemaCache('/some/path/', memento as unknown as vscode.Memento, {} as vscode.OutputChannel);
46+
const cache = new JSONSchemaCache('/some/path/', (memento as unknown) as vscode.Memento, {} as vscode.OutputChannel);
4747
const result = await cache.getSchema('/some/uri');
4848
expect(result).is.undefined;
4949
expect(memento.update).calledOnceWith('json-schema-key', {});
@@ -60,7 +60,7 @@ describe('JSON Schema Cache Tests', () => {
6060
pathExistsStub.resolves(false);
6161
readFileStub.resolves();
6262

63-
const cache = new JSONSchemaCache('/some/path/', memento as unknown as vscode.Memento, {} as vscode.OutputChannel);
63+
const cache = new JSONSchemaCache('/some/path/', (memento as unknown) as vscode.Memento, {} as vscode.OutputChannel);
6464
const result = await cache.getSchema('/some/uri');
6565
expect(result).is.undefined;
6666
expect(memento.update).calledOnceWith('json-schema-key', mementoData);

test/telemetry.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ describe('Telemetry Test', () => {
4545
outputChannel = sandbox.stub(testOutputChannel);
4646
telemetry = sandbox.stub(new TelemetryStub());
4747
telemetryChannel = new TelemetryOutputChannel(
48-
outputChannel as unknown as vscode.OutputChannel,
49-
telemetry as unknown as TelemetryService
48+
(outputChannel as unknown) as vscode.OutputChannel,
49+
(telemetry as unknown) as TelemetryService
5050
);
5151
clock = sinon.useFakeTimers();
5252
});

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2169,10 +2169,10 @@ [email protected]:
21692169
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
21702170
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==
21712171

2172-
prettier@^2.0.5:
2173-
version "2.4.1"
2174-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c"
2175-
integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==
2172+
prettier@2.2.1:
2173+
version "2.2.1"
2174+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
2175+
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
21762176

21772177
private@~0.1.5:
21782178
version "0.1.8"

0 commit comments

Comments
 (0)