Skip to content

Commit 883ef31

Browse files
committed
Merge branch 'master' into feature/strict-type-checking
2 parents 2388e2c + 337fbaa commit 883ef31

File tree

4 files changed

+168
-74
lines changed

4 files changed

+168
-74
lines changed

lib/rdf/PrefetchedDocumentLoader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class PrefetchedDocumentLoader extends FetchDocumentLoader {
4848

4949
// Warn before doing a remote context lookup
5050
if (this.logger) {
51-
this.logger.warn(`Detected remote context lookup for '${url}'${this.path ? ` in ${this.path}` : ''}. This may indicate a missing or invalid dependency, or an invalid context URL.`);
51+
this.logger.warn(`Detected remote context lookup for '${url}'${this.path ? ` in ${this.path}` : ''}. This may indicate a missing or invalid dependency, incorrect version number, or an invalid context URL.`);
5252
}
5353
return super.load(url);
5454
}

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@
4949
},
5050
"devDependencies": {
5151
"@rubensworks/eslint-config": "^1.0.1",
52-
"@typescript-eslint/eslint-plugin": "^4.6.1",
53-
"@typescript-eslint/parser": "^4.6.1",
52+
"@typescript-eslint/eslint-plugin": "^5.0.0",
53+
"@typescript-eslint/parser": "^5.0.0",
5454
"@types/jest": "^27.0.0",
5555
"eslint": "^7.12.1",
5656
"eslint-config-es": "3.25.3",
5757
"eslint-import-resolver-typescript": "^2.3.0",
5858
"eslint-plugin-import": "^2.22.1",
59-
"eslint-plugin-jest": "^24.1.0",
59+
"eslint-plugin-jest": "^26.0.0",
6060
"eslint-plugin-tsdoc": "^0.2.7",
61-
"eslint-plugin-unused-imports": "^1.0.0",
61+
"eslint-plugin-unused-imports": "^2.0.0",
6262
"jest": "^27.0.1",
6363
"jest-rdf": "^1.7.0",
6464
"jshint": "^2.1.10",

test/unit/rdf/PrefetchedDocumentLoader-test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('PrefetchedDocumentLoader', () => {
7878
});
7979
expect(await loader.load('http://remote.org/context'))
8080
.toEqual({ x: 'y' });
81-
expect(logger.warn).toHaveBeenCalledWith(`Detected remote context lookup for 'http://remote.org/context' in PATH. This may indicate a missing or invalid dependency, or an invalid context URL.`);
81+
expect(logger.warn).toHaveBeenCalledWith(`Detected remote context lookup for 'http://remote.org/context' in PATH. This may indicate a missing or invalid dependency, incorrect version number, or an invalid context URL.`);
8282
});
8383

8484
it('for a non-prefetched context with a logger without path', async() => {
@@ -91,7 +91,7 @@ describe('PrefetchedDocumentLoader', () => {
9191
});
9292
expect(await loader.load('http://remote.org/context'))
9393
.toEqual({ x: 'y' });
94-
expect(logger.warn).toHaveBeenCalledWith(`Detected remote context lookup for 'http://remote.org/context'. This may indicate a missing or invalid dependency, or an invalid context URL.`);
94+
expect(logger.warn).toHaveBeenCalledWith(`Detected remote context lookup for 'http://remote.org/context'. This may indicate a missing or invalid dependency, incorrect version number, or an invalid context URL.`);
9595
});
9696
});
9797
});

0 commit comments

Comments
 (0)