ztxkutils 2.9.11 → 2.9.12

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.
@@ -149,7 +149,12 @@ function previewFile(fileUrl, fileId, otherOption) {
149
149
  token = getToken() || otherOption;
150
150
  }
151
151
  var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
152
- titleName = titleName.replaceAll('%', '');
152
+ try {
153
+ titleName = titleName.replaceAll('%', '');
154
+ }
155
+ catch (err) {
156
+ console.log(err);
157
+ }
153
158
  var _fileUrl = fileUrl.endsWith('/')
154
159
  ? fileUrl.slice(0, fileUrl.length - 1)
155
160
  : fileUrl;
@@ -169,7 +174,12 @@ function previewFile(fileUrl, fileId, otherOption) {
169
174
  function createOriginalUrl(fileUrl, fileId, otherOption) {
170
175
  var token = getToken() || (otherOption === null || otherOption === void 0 ? void 0 : otherOption.authTOken);
171
176
  var titleName = dangerouslySetXss(otherOption === null || otherOption === void 0 ? void 0 : otherOption.titleName);
172
- titleName = titleName.replaceAll('%', '');
177
+ try {
178
+ titleName = titleName.replaceAll('%', '');
179
+ }
180
+ catch (err) {
181
+ console.log(err);
182
+ }
173
183
  var _fileUrl = fileUrl.endsWith('/')
174
184
  ? fileUrl.slice(0, fileUrl.length - 1)
175
185
  : fileUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.9.11",
3
+ "version": "2.9.12",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",