@xberg-io/crawlberg 1.12.0 → 1.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/binding.cjs +138 -0
  2. package/index.d.ts +103 -46
  3. package/index.js +584 -495
  4. package/index.mjs +47 -0
  5. package/package.json +11 -8
package/index.mjs ADDED
@@ -0,0 +1,47 @@
1
+ // DO NOT EDIT - auto-generated by alef
2
+ // alef:hash:bc481b7d476e0d73b886521e252199f9d4b15faa2baafd8ee44e1ca71b51e6d8
3
+ import binding from "./index.js";
4
+
5
+ export const AssetCategory = binding.AssetCategory;
6
+ export const BatchCrawlStreamIterator = binding.BatchCrawlStreamIterator;
7
+ export const BrowserBackend = binding.BrowserBackend;
8
+ export const BrowserMode = binding.BrowserMode;
9
+ export const BrowserWait = binding.BrowserWait;
10
+ export const ContentFilterKind = binding.ContentFilterKind;
11
+ export const CrawlEngineHandle = binding.CrawlEngineHandle;
12
+ export const CrawlStrategyKind = binding.CrawlStrategyKind;
13
+ export const CrawlStreamIterator = binding.CrawlStreamIterator;
14
+ export const DocumentContentEncoding = binding.DocumentContentEncoding;
15
+ export const FeedType = binding.FeedType;
16
+ export const ImageSource = binding.ImageSource;
17
+ export const JsAssetCategory = binding.JsAssetCategory;
18
+ export const JsBrowserBackend = binding.JsBrowserBackend;
19
+ export const JsBrowserMode = binding.JsBrowserMode;
20
+ export const JsBrowserWait = binding.JsBrowserWait;
21
+ export const JsContentFilterKind = binding.JsContentFilterKind;
22
+ export const JsCrawlEngineHandle = binding.JsCrawlEngineHandle;
23
+ export const JsCrawlStrategyKind = binding.JsCrawlStrategyKind;
24
+ export const JsDocumentContentEncoding = binding.JsDocumentContentEncoding;
25
+ export const JsFeedType = binding.JsFeedType;
26
+ export const JsImageSource = binding.JsImageSource;
27
+ export const JsLinkType = binding.JsLinkType;
28
+ export const JsScrollDirection = binding.JsScrollDirection;
29
+ export const LinkType = binding.LinkType;
30
+ export const ScrollDirection = binding.ScrollDirection;
31
+ export const batchCrawl = binding.batchCrawl;
32
+ export const batchCrawlStream = binding.batchCrawlStream;
33
+ export const batchScrape = binding.batchScrape;
34
+ export const browserConfigDefault = binding.browserConfigDefault;
35
+ export const contentConfigDefault = binding.contentConfigDefault;
36
+ export const crawl = binding.crawl;
37
+ export const crawlConfigDefault = binding.crawlConfigDefault;
38
+ export const crawlStream = binding.crawlStream;
39
+ export const createEngine = binding.createEngine;
40
+ export const generateCitations = binding.generateCitations;
41
+ export const interact = binding.interact;
42
+ export const mapUrls = binding.mapUrls;
43
+ export const scrape = binding.scrape;
44
+ export const ssrfPolicyDefault = binding.ssrfPolicyDefault;
45
+ export const ssrfPolicyFromEnv = binding.ssrfPolicyFromEnv;
46
+
47
+ export default binding;
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  }
11
11
  ],
12
12
  "name": "@xberg-io/crawlberg",
13
- "version": "1.12.0",
13
+ "version": "1.12.3",
14
14
  "description": "High-performance web crawling engine",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -22,22 +22,25 @@
22
22
  "exports": {
23
23
  ".": {
24
24
  "types": "./index.d.ts",
25
+ "import": "./index.mjs",
25
26
  "require": "./index.js",
26
27
  "default": "./index.js"
27
28
  }
28
29
  },
29
30
  "files": [
30
31
  "index.js",
32
+ "binding.cjs",
33
+ "index.mjs",
31
34
  "index.d.ts",
32
35
  "*.node"
33
36
  ],
34
37
  "optionalDependencies": {
35
- "@xberg-io/crawlberg-darwin-arm64": "1.12.0",
36
- "@xberg-io/crawlberg-darwin-x64": "1.12.0",
37
- "@xberg-io/crawlberg-linux-arm64-gnu": "1.12.0",
38
- "@xberg-io/crawlberg-linux-x64-gnu": "1.12.0",
39
- "@xberg-io/crawlberg-win32-arm64-msvc": "1.12.0",
40
- "@xberg-io/crawlberg-win32-x64-msvc": "1.12.0"
38
+ "@xberg-io/crawlberg-darwin-arm64": "1.12.3",
39
+ "@xberg-io/crawlberg-darwin-x64": "1.12.3",
40
+ "@xberg-io/crawlberg-linux-arm64-gnu": "1.12.3",
41
+ "@xberg-io/crawlberg-linux-x64-gnu": "1.12.3",
42
+ "@xberg-io/crawlberg-win32-arm64-msvc": "1.12.3",
43
+ "@xberg-io/crawlberg-win32-x64-msvc": "1.12.3"
41
44
  },
42
45
  "napi": {
43
46
  "packageName": "@xberg-io/crawlberg",
@@ -61,7 +64,7 @@
61
64
  "@napi-rs/cli": "^3.10.9"
62
65
  },
63
66
  "scripts": {
64
- "build": "pnpm --package @napi-rs/cli@^3.7.3 dlx napi build --platform --dts index.native.d.ts --release",
67
+ "build": "pnpm --package @napi-rs/cli@^3.7.3 dlx napi build --no-js --platform --dts index.native.d.ts --release",
65
68
  "artifacts": "pnpm --package @napi-rs/cli@^3.7.3 dlx napi artifacts"
66
69
  }
67
70
  }