extract-pdf 0.1.532 → 0.1.533

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "extract-pdf",
3
- "version": "0.1.532",
3
+ "version": "0.1.533",
4
4
  "description": "Convert a PDF (URL or ArrayBuffer) into clean HTML with structural tagging — headings, lists, footnotes, code blocks, bold/italic. Slim by default (PDF.js loads at runtime from the pdfjs-serverless CDN build), with optional Granite Docling OCR for pages with infographics/tables — in-process, hybrid, or via a remote processor URL. Works in Node.js, Cloudflare Workers, and browser environments.",
5
5
  "author": "vtempest <grokthiscontact@gmail.com>",
6
6
  "license": "rights.institute/PROSPER",
@@ -1,21 +1,27 @@
1
- {
2
- "$schema": "node_modules/wrangler/config-schema.json",
3
- "name": "pdf-to-html-docling",
4
- // Wrangler deletes plaintext Variables set in the Cloudflare dashboard on every
5
- // deploy unless keep_vars is set. Secrets are never deleted either way.
6
- "keep_vars": true,
7
- "main": "server.js",
8
- "compatibility_date": "2025-05-01",
9
- // Required for Node.js built-ins (crypto, stream, path, etc.) used by
10
- // @huggingface/transformers and @hono/node-server.
11
- "compatibility_flags": ["nodejs_compat_v2"],
12
- "dev": {
13
- "port": 3000,
14
- "local_protocol": "http"
15
- },
16
- // Workers free tier: 128 MB. Model inference is heavy — bump this when
17
- // deploying to a paid account or Workers AI.
18
- "limits": {
19
- "cpu_ms": 30000
20
- }
21
- }
1
+ {
2
+ "$schema": "node_modules/wrangler/config-schema.json",
3
+ "name": "pdf-to-html-docling",
4
+ // Wrangler deletes plaintext Variables set in the Cloudflare dashboard on every
5
+ // deploy unless keep_vars is set. Secrets are never deleted either way.
6
+ "keep_vars": true,
7
+ // Workers Logs: console output and invocation logs in the dashboard.
8
+ "observability": {
9
+ "enabled": true,
10
+ "head_sampling_rate": 1,
11
+ "logs": { "enabled": true, "invocation_logs": true, "persist": true }
12
+ },
13
+ "main": "server.js",
14
+ "compatibility_date": "2025-05-01",
15
+ // Required for Node.js built-ins (crypto, stream, path, etc.) used by
16
+ // @huggingface/transformers and @hono/node-server.
17
+ "compatibility_flags": ["nodejs_compat_v2"],
18
+ "dev": {
19
+ "port": 3000,
20
+ "local_protocol": "http"
21
+ },
22
+ // Workers free tier: 128 MB. Model inference is heavy — bump this when
23
+ // deploying to a paid account or Workers AI.
24
+ "limits": {
25
+ "cpu_ms": 30000
26
+ }
27
+ }