@file-viewer/react 2.1.16 → 2.1.17
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/controller.js +3 -0
- package/package.json +3 -3
package/dist/controller.js
CHANGED
|
@@ -282,6 +282,9 @@ export const mountViewer = (container, initialOptions = {}, coreOptions = {}) =>
|
|
|
282
282
|
fetchFile: coreOptions.fetchFile,
|
|
283
283
|
signal: controller === null || controller === void 0 ? void 0 : controller.signal,
|
|
284
284
|
});
|
|
285
|
+
if (disposed || (controller === null || controller === void 0 ? void 0 : controller.signal.aborted) || abortController !== controller) {
|
|
286
|
+
return null;
|
|
287
|
+
}
|
|
285
288
|
return await instance.load(resolvedSource);
|
|
286
289
|
}
|
|
287
290
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@file-viewer/react",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Standard React component package for Flyfish File Viewer",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"funding": {
|
|
35
35
|
"type": "individual",
|
|
36
|
-
"url": "https://dev.flyfish.group/
|
|
36
|
+
"url": "https://dev.flyfish.group/donate?source=npm"
|
|
37
37
|
},
|
|
38
38
|
"main": "./dist/index.js",
|
|
39
39
|
"module": "./dist/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": ">=17 <20"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@file-viewer/core": "^2.1.
|
|
58
|
+
"@file-viewer/core": "^2.1.17"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.2.17",
|