@embedpdf/pdfium 2.1.0 → 2.1.2
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/dist/index.browser.js +18 -18
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/dist/pdfium.wasm +0 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6696,7 +6696,7 @@ const functions = {
|
|
|
6696
6696
|
PDFiumExt_SaveAsCopy: [['number', 'number'], 'number'],
|
|
6697
6697
|
};
|
|
6698
6698
|
|
|
6699
|
-
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.1.
|
|
6699
|
+
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.1.2/dist/pdfium.wasm';
|
|
6700
6700
|
async function createWrappedModule(pdfium) {
|
|
6701
6701
|
const module = {
|
|
6702
6702
|
pdfium,
|
package/dist/index.js
CHANGED
|
@@ -4407,7 +4407,7 @@ var createPdfium = (() => {
|
|
|
4407
4407
|
HEAP32[(buf + 12) >> 2] = stat.uid;
|
|
4408
4408
|
HEAP32[(buf + 16) >> 2] = stat.gid;
|
|
4409
4409
|
HEAP32[(buf + 20) >> 2] = stat.rdev;
|
|
4410
|
-
(tempI64 = [
|
|
4410
|
+
((tempI64 = [
|
|
4411
4411
|
stat.size >>> 0,
|
|
4412
4412
|
((tempDouble = stat.size),
|
|
4413
4413
|
+Math.abs(tempDouble) >= 1.0
|
|
@@ -4417,13 +4417,13 @@ var createPdfium = (() => {
|
|
|
4417
4417
|
: 0),
|
|
4418
4418
|
]),
|
|
4419
4419
|
(HEAP32[(buf + 24) >> 2] = tempI64[0]),
|
|
4420
|
-
(HEAP32[(buf + 28) >> 2] = tempI64[1]);
|
|
4420
|
+
(HEAP32[(buf + 28) >> 2] = tempI64[1]));
|
|
4421
4421
|
HEAP32[(buf + 32) >> 2] = 4096;
|
|
4422
4422
|
HEAP32[(buf + 36) >> 2] = stat.blocks;
|
|
4423
4423
|
var atime = stat.atime.getTime();
|
|
4424
4424
|
var mtime = stat.mtime.getTime();
|
|
4425
4425
|
var ctime = stat.ctime.getTime();
|
|
4426
|
-
(tempI64 = [
|
|
4426
|
+
((tempI64 = [
|
|
4427
4427
|
Math.floor(atime / 1000) >>> 0,
|
|
4428
4428
|
((tempDouble = Math.floor(atime / 1000)),
|
|
4429
4429
|
+Math.abs(tempDouble) >= 1.0
|
|
@@ -4433,9 +4433,9 @@ var createPdfium = (() => {
|
|
|
4433
4433
|
: 0),
|
|
4434
4434
|
]),
|
|
4435
4435
|
(HEAP32[(buf + 40) >> 2] = tempI64[0]),
|
|
4436
|
-
(HEAP32[(buf + 44) >> 2] = tempI64[1]);
|
|
4436
|
+
(HEAP32[(buf + 44) >> 2] = tempI64[1]));
|
|
4437
4437
|
HEAPU32[(buf + 48) >> 2] = (atime % 1000) * 1000 * 1000;
|
|
4438
|
-
(tempI64 = [
|
|
4438
|
+
((tempI64 = [
|
|
4439
4439
|
Math.floor(mtime / 1000) >>> 0,
|
|
4440
4440
|
((tempDouble = Math.floor(mtime / 1000)),
|
|
4441
4441
|
+Math.abs(tempDouble) >= 1.0
|
|
@@ -4445,9 +4445,9 @@ var createPdfium = (() => {
|
|
|
4445
4445
|
: 0),
|
|
4446
4446
|
]),
|
|
4447
4447
|
(HEAP32[(buf + 56) >> 2] = tempI64[0]),
|
|
4448
|
-
(HEAP32[(buf + 60) >> 2] = tempI64[1]);
|
|
4448
|
+
(HEAP32[(buf + 60) >> 2] = tempI64[1]));
|
|
4449
4449
|
HEAPU32[(buf + 64) >> 2] = (mtime % 1000) * 1000 * 1000;
|
|
4450
|
-
(tempI64 = [
|
|
4450
|
+
((tempI64 = [
|
|
4451
4451
|
Math.floor(ctime / 1000) >>> 0,
|
|
4452
4452
|
((tempDouble = Math.floor(ctime / 1000)),
|
|
4453
4453
|
+Math.abs(tempDouble) >= 1.0
|
|
@@ -4457,9 +4457,9 @@ var createPdfium = (() => {
|
|
|
4457
4457
|
: 0),
|
|
4458
4458
|
]),
|
|
4459
4459
|
(HEAP32[(buf + 72) >> 2] = tempI64[0]),
|
|
4460
|
-
(HEAP32[(buf + 76) >> 2] = tempI64[1]);
|
|
4460
|
+
(HEAP32[(buf + 76) >> 2] = tempI64[1]));
|
|
4461
4461
|
HEAPU32[(buf + 80) >> 2] = (ctime % 1000) * 1000 * 1000;
|
|
4462
|
-
(tempI64 = [
|
|
4462
|
+
((tempI64 = [
|
|
4463
4463
|
stat.ino >>> 0,
|
|
4464
4464
|
((tempDouble = stat.ino),
|
|
4465
4465
|
+Math.abs(tempDouble) >= 1.0
|
|
@@ -4469,7 +4469,7 @@ var createPdfium = (() => {
|
|
|
4469
4469
|
: 0),
|
|
4470
4470
|
]),
|
|
4471
4471
|
(HEAP32[(buf + 88) >> 2] = tempI64[0]),
|
|
4472
|
-
(HEAP32[(buf + 92) >> 2] = tempI64[1]);
|
|
4472
|
+
(HEAP32[(buf + 92) >> 2] = tempI64[1]));
|
|
4473
4473
|
return 0;
|
|
4474
4474
|
},
|
|
4475
4475
|
doMsync(addr, stream, len, flags, offset) {
|
|
@@ -4608,7 +4608,7 @@ var createPdfium = (() => {
|
|
|
4608
4608
|
: 8; // DT_REG, regular file.
|
|
4609
4609
|
}
|
|
4610
4610
|
assert(id);
|
|
4611
|
-
(tempI64 = [
|
|
4611
|
+
((tempI64 = [
|
|
4612
4612
|
id >>> 0,
|
|
4613
4613
|
((tempDouble = id),
|
|
4614
4614
|
+Math.abs(tempDouble) >= 1.0
|
|
@@ -4618,8 +4618,8 @@ var createPdfium = (() => {
|
|
|
4618
4618
|
: 0),
|
|
4619
4619
|
]),
|
|
4620
4620
|
(HEAP32[(dirp + pos) >> 2] = tempI64[0]),
|
|
4621
|
-
(HEAP32[(dirp + pos + 4) >> 2] = tempI64[1]);
|
|
4622
|
-
(tempI64 = [
|
|
4621
|
+
(HEAP32[(dirp + pos + 4) >> 2] = tempI64[1]));
|
|
4622
|
+
((tempI64 = [
|
|
4623
4623
|
((idx + 1) * struct_size) >>> 0,
|
|
4624
4624
|
((tempDouble = (idx + 1) * struct_size),
|
|
4625
4625
|
+Math.abs(tempDouble) >= 1.0
|
|
@@ -4629,7 +4629,7 @@ var createPdfium = (() => {
|
|
|
4629
4629
|
: 0),
|
|
4630
4630
|
]),
|
|
4631
4631
|
(HEAP32[(dirp + pos + 8) >> 2] = tempI64[0]),
|
|
4632
|
-
(HEAP32[(dirp + pos + 12) >> 2] = tempI64[1]);
|
|
4632
|
+
(HEAP32[(dirp + pos + 12) >> 2] = tempI64[1]));
|
|
4633
4633
|
HEAP16[(dirp + pos + 16) >> 1] = 280;
|
|
4634
4634
|
HEAP8[dirp + pos + 18] = type;
|
|
4635
4635
|
stringToUTF8(name, dirp + pos + 19, 256);
|
|
@@ -5141,7 +5141,7 @@ var createPdfium = (() => {
|
|
|
5141
5141
|
if (isNaN(offset)) return 61;
|
|
5142
5142
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|
5143
5143
|
FS.llseek(stream, offset, whence);
|
|
5144
|
-
(tempI64 = [
|
|
5144
|
+
((tempI64 = [
|
|
5145
5145
|
stream.position >>> 0,
|
|
5146
5146
|
((tempDouble = stream.position),
|
|
5147
5147
|
+Math.abs(tempDouble) >= 1.0
|
|
@@ -5151,7 +5151,7 @@ var createPdfium = (() => {
|
|
|
5151
5151
|
: 0),
|
|
5152
5152
|
]),
|
|
5153
5153
|
(HEAP32[newOffset >> 2] = tempI64[0]),
|
|
5154
|
-
(HEAP32[(newOffset + 4) >> 2] = tempI64[1]);
|
|
5154
|
+
(HEAP32[(newOffset + 4) >> 2] = tempI64[1]));
|
|
5155
5155
|
if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
|
|
5156
5156
|
return 0;
|
|
5157
5157
|
} catch (e) {
|
|
@@ -5260,7 +5260,7 @@ var createPdfium = (() => {
|
|
|
5260
5260
|
if (n < 128) {
|
|
5261
5261
|
target.push(n);
|
|
5262
5262
|
} else {
|
|
5263
|
-
target.push(n % 128 | 128, n >> 7);
|
|
5263
|
+
target.push((n % 128) | 128, n >> 7);
|
|
5264
5264
|
}
|
|
5265
5265
|
};
|
|
5266
5266
|
|
|
@@ -8838,7 +8838,7 @@ const functions = {
|
|
|
8838
8838
|
PDFiumExt_SaveAsCopy: [['number', 'number'], 'number'],
|
|
8839
8839
|
};
|
|
8840
8840
|
|
|
8841
|
-
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.1.
|
|
8841
|
+
const DEFAULT_PDFIUM_WASM_URL = 'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium@2.1.2/dist/pdfium.wasm';
|
|
8842
8842
|
async function createWrappedModule(pdfium) {
|
|
8843
8843
|
const module = {
|
|
8844
8844
|
pdfium,
|