Skip to content

Commit b608ee7

Browse files
committed
add resourceQuery to ContextModule identifier
1 parent caa20ea commit b608ee7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ContextModule.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ class ContextModule extends Module {
6666

6767
identifier() {
6868
let identifier = this.context;
69+
if(this.options.resourceQuery)
70+
identifier += ` ${this.options.resourceQuery}`;
6971
if(this.options.mode)
7072
identifier += ` ${this.options.mode}`;
7173
if(!this.options.recursive)
@@ -84,6 +86,8 @@ class ContextModule extends Module {
8486

8587
readableIdentifier(requestShortener) {
8688
let identifier = requestShortener.shorten(this.context);
89+
if(this.options.resourceQuery)
90+
identifier += ` ${this.options.resourceQuery}`;
8791
if(this.options.mode)
8892
identifier += ` ${this.options.mode}`;
8993
if(!this.options.recursive)

0 commit comments

Comments
 (0)