@nocobase/plugin-file-manager 2.2.40 → 2.2.42
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/build.config.ts +6 -0
- package/dist/client/index.js +1 -1
- package/dist/client/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
- package/dist/client/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
- package/dist/client/pdfjs/wasm/openjpeg_nowasm_fallback.js +26 -0
- package/dist/client/templates/file.d.ts +1 -1
- package/dist/client-v2/index.js +1 -1
- package/dist/client-v2/previewer/filePreviewTypes.d.ts +1 -1
- package/dist/externalVersion.js +12 -12
- package/dist/node_modules/@aws-sdk/client-s3/package.json +1 -1
- package/dist/node_modules/@aws-sdk/lib-storage/package.json +1 -1
- package/dist/node_modules/@aws-sdk/s3-request-presigner/package.json +1 -1
- package/dist/node_modules/ali-oss/package.json +1 -1
- package/dist/node_modules/cos-nodejs-sdk-v5/package.json +1 -1
- package/dist/node_modules/mime-match/package.json +1 -1
- package/dist/node_modules/mime-types/package.json +1 -1
- package/dist/node_modules/mkdirp/package.json +1 -1
- package/dist/node_modules/url-join/package.json +1 -1
- package/package.json +2 -2
package/build.config.ts
CHANGED
|
@@ -27,5 +27,11 @@ export default defineConfig({
|
|
|
27
27
|
path.resolve(pdfjsDist, 'legacy/build/pdf.worker.min.mjs'),
|
|
28
28
|
path.resolve(__dirname, 'dist/client/pdfjs/pdf.worker.min.mjs'),
|
|
29
29
|
);
|
|
30
|
+
// PDF.js loads the OpenJPEG JavaScript fallback from wasmUrl when useWasm is false.
|
|
31
|
+
const wasmDest = path.resolve(__dirname, 'dist/client/pdfjs/wasm');
|
|
32
|
+
await fs.mkdir(wasmDest, { recursive: true });
|
|
33
|
+
for (const filename of ['openjpeg_nowasm_fallback.js', 'LICENSE_OPENJPEG', 'LICENSE_PDFJS_OPENJPEG']) {
|
|
34
|
+
await fs.copyFile(path.resolve(pdfjsDist, 'wasm', filename), path.resolve(wasmDest, filename));
|
|
35
|
+
}
|
|
30
36
|
},
|
|
31
37
|
});
|