@digipair/skill-web-pdf 0.45.6 → 0.46.1

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/index.cjs.js CHANGED
@@ -2048,7 +2048,7 @@ class InputPdfElement extends r$2 {
2048
2048
  }
2049
2049
  async extractText(file) {
2050
2050
  const pdfjs = await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(PDFJS_URL);
2051
- pdfjs.GlobalWorkerOptions.workerSrc = '/assets/pdf.worker.min.mjs';
2051
+ pdfjs.GlobalWorkerOptions.workerSrc = './pdf.worker.min.mjs';
2052
2052
  const pdf = await pdfjs.getDocument(file).promise;
2053
2053
  let text = '';
2054
2054
  for(let i = 1; i <= pdf.numPages; i++){
package/index.esm.js CHANGED
@@ -2026,7 +2026,7 @@ class InputPdfElement extends r$2 {
2026
2026
  }
2027
2027
  async extractText(file) {
2028
2028
  const pdfjs = await import(PDFJS_URL);
2029
- pdfjs.GlobalWorkerOptions.workerSrc = '/assets/pdf.worker.min.mjs';
2029
+ pdfjs.GlobalWorkerOptions.workerSrc = './pdf.worker.min.mjs';
2030
2030
  const pdf = await pdfjs.getDocument(file).promise;
2031
2031
  let text = '';
2032
2032
  for(let i = 1; i <= pdf.numPages; i++){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-pdf",
3
- "version": "0.45.6",
3
+ "version": "0.46.1",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
File without changes