diff --git a/CHANGELOG.md b/CHANGELOG.md index c3cefb5..6b97813 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,16 @@ -# [1.1.0](https://github.com/devalexanderdaza/puppeteer-extends/compare/v1.0.0...v1.1.0) (2021-10-29) +# [1.2.0](https://github.com/devalexanderdaza/puppeteer-extends/compare/v1.1.0...v1.2.0) (2021-10-29) + + +### Features + +* **actions and codecov:** programed codecov and update actions ([96852ed](https://github.com/devalexanderdaza/puppeteer-extends/commit/96852ed60767386c0271953b3d27d2c4e0dc25c0)) +* **docs:** removed docs-ts and implemented typedocs ([5bf319e](https://github.com/devalexanderdaza/puppeteer-extends/commit/5bf319e6d285049d2efb7abbe334849ba3153303)) +# [1.1.0](https://github.com/devalexanderdaza/puppeteer-extends/compare/v1.0.0...v1.1.0) (2021-10-29) ### Features -* **codecov:** implemented codecov ([b08f0ad](https://github.com/devalexanderdaza/puppeteer-extends/commit/b08f0ada4149d1e47d9b8a4e6d6b0603ca376a4f)) +- **codecov:** implemented codecov ([b08f0ad](https://github.com/devalexanderdaza/puppeteer-extends/commit/b08f0ada4149d1e47d9b8a4e6d6b0603ca376a4f)) # 1.0.0 (2021-10-29) diff --git a/dist/index.d.ts b/dist/index.d.ts index 901002d..c52ecb1 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,9 +1,28 @@ -/** - * @since 1.0.0 - */ import * as PuppeteerExtends from "./main/puppeteer"; import { Logger } from "./main/logger"; /** - * @since 1.0.0 + * Main instances of puppeteer-extends + * + * ```typescript + * import { PuppeteerExtends, Logger } from 'puppeteer-extends'; + * + * const main = async () => { + * const browser = await PuppeteerExtends.getBrowser({ isHeadless: true }); + * if (browser) { + * const page = await browser.newPage(); + * // An example of crawling a page with CloudFlare applied. + * Logger.debug('🚧 Crawling in progress...'); + * const url = 'https://github.com/devalexanderdaza'; + * await PuppeteerExtends.goto(page, url); + * await page.screenshot({ path: 'devalexanderdaza-github-screenshot.png' }); + * + * Logger.debug('🚧 Crawling is complete.'); + * Logger.debug('🚧 Exit the Puppeteer...'); + * await browser.close(); + * } + * } + * + * main().then(r => {}); + * ``` */ export { PuppeteerExtends, Logger }; diff --git a/dist/index.js b/dist/index.js index 9f7ee3b..7b852d4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -20,10 +20,8 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Logger = exports.PuppeteerExtends = void 0; -/** - * @since 1.0.0 - */ var PuppeteerExtends = __importStar(require("./main/puppeteer")); exports.PuppeteerExtends = PuppeteerExtends; var logger_1 = require("./main/logger"); Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return logger_1.Logger; } }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map new file mode 100644 index 0000000..2ac24fa --- /dev/null +++ b/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iEAAqD;AA4B5C,4CAAgB;AA3BzB,wCAAuC;AA2BZ,uFA3BlB,eAAM,OA2BkB"} \ No newline at end of file diff --git a/dist/main/logger.js b/dist/main/logger.js index 7003de6..dcc1bf7 100644 --- a/dist/main/logger.js +++ b/dist/main/logger.js @@ -12,3 +12,4 @@ var path = process.cwd() + "/logs/"; * @since 1.0.0 */ exports.Logger = new folder_logger_1.FolderLogger(path); +//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/dist/main/logger.js.map b/dist/main/logger.js.map new file mode 100644 index 0000000..0525a8f --- /dev/null +++ b/dist/main/logger.js.map @@ -0,0 +1 @@ +{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/main/logger.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,+CAA6C;AAE7C,IAAM,IAAI,GAAM,OAAO,CAAC,GAAG,EAAE,WAAQ,CAAC;AAEtC;;;;GAIG;AACU,QAAA,MAAM,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/main/moment.js b/dist/main/moment.js index ff7b721..c71419a 100644 --- a/dist/main/moment.js +++ b/dist/main/moment.js @@ -8,3 +8,4 @@ var moment_1 = __importDefault(require("moment")); exports.moment = moment_1.default; require("moment/locale/en"); moment_1.default.locale("en"); +//# sourceMappingURL=moment.js.map \ No newline at end of file diff --git a/dist/main/moment.js.map b/dist/main/moment.js.map new file mode 100644 index 0000000..a9d9c6e --- /dev/null +++ b/dist/main/moment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"moment.js","sourceRoot":"","sources":["../../src/main/moment.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA4B;AAKnB,iBALF,gBAAM,CAKE;AAJf,4BAA0B;AAE1B,gBAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/main/puppeteer.js b/dist/main/puppeteer.js index 03b7c3d..4b4f5e5 100644 --- a/dist/main/puppeteer.js +++ b/dist/main/puppeteer.js @@ -191,3 +191,4 @@ var getImitationCookie = function (url) { }); }; exports.getImitationCookie = getImitationCookie; +//# sourceMappingURL=puppeteer.js.map \ No newline at end of file diff --git a/dist/main/puppeteer.js.map b/dist/main/puppeteer.js.map new file mode 100644 index 0000000..7f9ad36 --- /dev/null +++ b/dist/main/puppeteer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"puppeteer.js","sourceRoot":"","sources":["../../src/main/puppeteer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,oEAA6C;AAC7C,kGAA2D;AAC3D,8DAAwC;AACxC,mCAAkC;AAElC;;GAEG;AACH,IAAI,gBAA+C,CAAC;AAOpD;;;GAGG;AACI,IAAM,UAAU,GAAG,UAAO,OAAiB;;;;qBAC5C,CAAC,gBAAgB,EAAjB,wBAAiB;gBAEA,qBAAM,IAAI,CAAC,OAAO,CAAC,EAAA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