From 7e4cf39a0ba6ccbd5cc036700a8b1ff9358ecc3d Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Thu, 10 Aug 2023 18:18:01 +0200 Subject: improve --- examples/esbuild.github.io.js | 1 + examples/pkg.go.dev.js | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/esbuild.github.io.js b/examples/esbuild.github.io.js index 8d26216..7a00478 100644 --- a/examples/esbuild.github.io.js +++ b/examples/esbuild.github.io.js @@ -2,6 +2,7 @@ import { parse } from "flyscrape"; export const options = { url: "https://esbuild.github.io/plugins/", + depth: 1, } export default function({ html }) { diff --git a/examples/pkg.go.dev.js b/examples/pkg.go.dev.js index 2481583..12aa308 100644 --- a/examples/pkg.go.dev.js +++ b/examples/pkg.go.dev.js @@ -5,10 +5,8 @@ export const options = { } export default function({ html }) { - console.log("start") const $ = parse(html); - console.log("done") - + return { package: $('h1').text().trim(), meta: { -- cgit v1.2.3