webmention-handler
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -13,2 +13,3 @@ import { IWebMentionHandler } from "../interfaces/web-mention-handler.interface"; | ||
blacklist?: string[]; | ||
stripQueryParameters: boolean; | ||
constructor(options: WebMentionOptions); | ||
@@ -15,0 +16,0 @@ /** |
@@ -175,2 +175,3 @@ 'use strict'; | ||
this.blacklist = options.blacklist; | ||
this.stripQueryParameters = options.stripQueryParameters || false; | ||
} | ||
@@ -211,2 +212,4 @@ /** | ||
targetUrl.hash = ''; | ||
if (this.stripQueryParameters) | ||
targetUrl.search = ''; | ||
// TODO: add support for returning a mention status url | ||
@@ -213,0 +216,0 @@ // hence the currently unused queued object |
@@ -8,2 +8,3 @@ import { IWebMentionStorage } from "../interfaces/web-mention-storage.interface"; | ||
supportedHosts: string[]; | ||
stripQueryParameters?: boolean; | ||
}; |
{ | ||
"name": "webmention-handler", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A handler for web mentions", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
94168
1057