Skip to content

Commit

Permalink
address to coordinates feature removed and closes #5 , now by default…
Browse files Browse the repository at this point in the history
… coordinates extracted from gmap iframe.
  • Loading branch information
darsan-in committed Nov 21, 2024
1 parent 8191d39 commit 86155c8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions lib/aggregators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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);
Expand Down Expand Up @@ -128,7 +123,6 @@ export default class Aggregator {
this.sep = sep;
this.basename = basename;
this.dirname = dirname;
this.fetchGeoLocation = fetchGeoLocation;

this.readFileSync = readFileSync;
}
Expand Down
1 change: 0 additions & 1 deletion lib/browser/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import { configurationOptions } from "../types";

const browPlugins: Plugins = {
htmlParser: load,
fetchGeoLocation: (_meta: any) => "",
pathLib: {
dirname: dirname,
basename: basename,
Expand Down
4 changes: 0 additions & 4 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion richie.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { configurationOptions, Plugins } from "./lib/types";

const nodePlugins: Plugins = {
htmlParser: cheerio,
fetchGeoLocation: () => {},
pathLib: {
dirname: dirname,
basename: basename,
Expand Down

0 comments on commit 86155c8

Please sign in to comment.