@whitesev/utils 1.3.2 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whitesev/utils",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "一个常用的工具库",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/node/index.esm.js",
package/src/Utils.ts CHANGED
@@ -3256,12 +3256,15 @@ class Utils {
3256
3256
  ): Promise<boolean>;
3257
3257
  setClip(
3258
3258
  data: any,
3259
- info?:
3259
+ info:
3260
3260
  | {
3261
3261
  type: string;
3262
3262
  mimetype: string;
3263
3263
  }
3264
- | string
3264
+ | string = {
3265
+ type: "text",
3266
+ mimetype: "text/plain",
3267
+ }
3265
3268
  ): Promise<boolean> {
3266
3269
  if (typeof data === "object") {
3267
3270
  if (data instanceof Element) {