@anaralabs/lector 3.14.9 → 3.14.11

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/esm-only.cjs ADDED
@@ -0,0 +1,8 @@
1
+ // ESM only manifesto: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
2
+
3
+ // This stub file was added to let some old ESLint plugins resolve
4
+ // the import paths correctly, as setting exports.*.require: null in package.json didn't work.
5
+
6
+ throw new Error(
7
+ '@anaralabs/lector is ESM only. Use import instead of require("@anaralabs/lector").',
8
+ );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anaralabs/lector",
3
- "version": "3.14.9",
3
+ "version": "3.14.11",
4
4
  "description": "A headless PDF viewer for React",
5
5
  "author": "andrewdr (https://github.com/andrewdoro)",
6
6
  "license": "MIT",
@@ -16,7 +16,8 @@
16
16
  }
17
17
  },
18
18
  "files": [
19
- "dist"
19
+ "dist",
20
+ "esm-only.cjs"
20
21
  ],
21
22
  "publishConfig": {
22
23
  "access": "public"
@@ -29,10 +30,16 @@
29
30
  "format": "biome format --write .",
30
31
  "postbuild": "size-limit --json > size.json",
31
32
  "test": "pnpm run '/^test:/'",
32
- "test:unit": "vitest run",
33
+ "test:unit": "vitest run --config vitest.unit.config.ts",
33
34
  "test:size": "size-limit",
34
35
  "prepack": "./scripts/prepack.sh",
35
- "prepare": "tsup"
36
+ "prepare": "tsup",
37
+ "test:browser": "vitest run",
38
+ "test:package": "node scripts/check-package.mjs",
39
+ "test:types": "tsc --noEmit",
40
+ "bench:corpus": "vitest run --config vitest.bench.config.ts",
41
+ "bench:second-pass": "vitest run tests/annotations.browser.test.tsx tests/thumbnails.browser.test.tsx tests/long-document.browser.test.tsx tests/search-async.browser.test.tsx tests/highlight-stream.browser.test.tsx",
42
+ "bench:performance": "vitest run tests/performance.browser.test.tsx tests/observers.browser.test.tsx tests/extraction.browser.test.tsx tests/document.browser.test.tsx tests/pages.browser.test.tsx"
36
43
  },
37
44
  "devDependencies": {
38
45
  "@microsoft/api-extractor": "^7.48.1",