Skip to content

Commit 54b89ec

Browse files
committed
feat: Fix problematic type def.
1 parent 72ba800 commit 54b89ec

File tree

11 files changed

+17
-18
lines changed

11 files changed

+17
-18
lines changed

dist/cjs/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2703,8 +2703,6 @@ const cleanText = (text, filterWords) => {
27032703
.join('\n');
27042704
};
27052705

2706-
googleNewsScraper;
2707-
27082706
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
27092707
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27102708
return new (P || (P = Promise))(function (resolve, reject) {
@@ -2714,7 +2712,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
27142712
step((generator = generator.apply(thisArg, _arguments || [])).next());
27152713
});
27162714
};
2717-
const googleNewsScraper$1 = (userConfig) => __awaiter(void 0, void 0, void 0, function* () {
2715+
const googleNewsScraper = (userConfig) => __awaiter(void 0, void 0, void 0, function* () {
27182716
var _a, _b;
27192717
const config = Object.assign({
27202718
prettyURLs: true,
@@ -2820,4 +2818,4 @@ const googleNewsScraper$1 = (userConfig) => __awaiter(void 0, void 0, void 0, fu
28202818
return config.limit < results.length ? filtered.slice(0, config.limit) : filtered;
28212819
});
28222820

2823-
module.exports = googleNewsScraper$1;
2821+
module.exports = googleNewsScraper;

dist/cjs/min/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/min/index.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/index.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2682,8 +2682,6 @@ const cleanText = (text, filterWords) => {
26822682
.join('\n');
26832683
};
26842684

2685-
googleNewsScraper;
2686-
26872685
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
26882686
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26892687
return new (P || (P = Promise))(function (resolve, reject) {
@@ -2693,7 +2691,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
26932691
step((generator = generator.apply(thisArg, _arguments || [])).next());
26942692
});
26952693
};
2696-
const googleNewsScraper$1 = (userConfig) => __awaiter(void 0, void 0, void 0, function* () {
2694+
const googleNewsScraper = (userConfig) => __awaiter(void 0, void 0, void 0, function* () {
26972695
var _a, _b;
26982696
const config = Object.assign({
26992697
prettyURLs: true,
@@ -2799,5 +2797,5 @@ const googleNewsScraper$1 = (userConfig) => __awaiter(void 0, void 0, void 0, fu
27992797
return config.limit < results.length ? filtered.slice(0, config.limit) : filtered;
28002798
});
28012799

2802-
export { googleNewsScraper$1 as default };
2800+
export { googleNewsScraper as default };
28032801
//# sourceMappingURL=index.mjs.map

dist/esm/index.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/min/index.min.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/esm/min/index.min.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tsc/types.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,4 @@ export interface ExtractArticleContentAndFaviconProps {
5656
filterWords: string[];
5757
logger: winston.Logger;
5858
}
59-
declare const googleNewsScraper: (userConfig: GNSUserConfig) => Promise<Article[]>;
60-
export default googleNewsScraper;
59+
export {};

dist/tsc/types.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export default googleNewsScraper;
1+
export {};
2+
// declare const googleNewsScraper: (userConfig: GNSUserConfig) => Promise<Article[]>;
3+
// export default googleNewsScraper;

rollup.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ export default {
1010
{
1111
dir: './dist/esm',
1212
format: 'esm',
13+
interop: 'esModule',
1314
sourcemap: true,
1415
preserveModules: false,
1516
entryFileNames: '[name].mjs',
1617
},
1718
{
1819
dir: './dist/esm/min',
1920
format: 'esm',
21+
interop: 'esModule',
2022
plugins: [terser()],
2123
sourcemap: true,
2224
entryFileNames: '[name].min.mjs',

0 commit comments

Comments
 (0)