diff --git a/lib/aggregators/index.ts b/lib/aggregators/index.ts index 09545cd..3dfbbd3 100644 --- a/lib/aggregators/index.ts +++ b/lib/aggregators/index.ts @@ -72,10 +72,6 @@ export default class Aggregator { resolve: (...paths: string[]) => string; dirname: (filePath: string) => string; - fetchGeoLocation: ( - meta: LocalBusinessOptions | RestaurantOptions | any, - ) => any; - readFileSync: ( path: string, options: @@ -93,7 +89,6 @@ export default class Aggregator { htmlParser, fsLib: { stat, existsSync, readFileSync }, pathLib: { dirname, cwd, relative, join, sep, basename, resolve }, - fetchGeoLocation, } = configurations; const utils = new BaseUtils(configurations); @@ -128,7 +123,6 @@ export default class Aggregator { this.sep = sep; this.basename = basename; this.dirname = dirname; - this.fetchGeoLocation = fetchGeoLocation; this.readFileSync = readFileSync; } diff --git a/lib/browser/config.ts b/lib/browser/config.ts index b6eccfa..839d85d 100644 --- a/lib/browser/config.ts +++ b/lib/browser/config.ts @@ -15,7 +15,6 @@ import { configurationOptions } from "../types"; const browPlugins: Plugins = { htmlParser: load, - fetchGeoLocation: (_meta: any) => "", pathLib: { dirname: dirname, basename: basename, diff --git a/lib/types.ts b/lib/types.ts index 8c34ca6..4d5f9c6 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -814,10 +814,6 @@ export interface configurationOptions extends Plugins { export interface Plugins { htmlParser: (htmlString: any) => any /* | CheerioAPI */; - fetchGeoLocation: ( - meta: LocalBusinessOptions | RestaurantOptions | any, - ) => any; - pathLib: { dirname: (filePath: string) => string; basename: (filepath: string, ext?: string) => string; diff --git a/richie.config.ts b/richie.config.ts index 0966a54..987a758 100644 --- a/richie.config.ts +++ b/richie.config.ts @@ -16,7 +16,6 @@ import { configurationOptions, Plugins } from "./lib/types"; const nodePlugins: Plugins = { htmlParser: cheerio, - fetchGeoLocation: () => {}, pathLib: { dirname: dirname, basename: basename,