component-shipinlv 2.0.13 → 2.0.16

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.
@@ -162,7 +162,7 @@ declare const Tool: {
162
162
  getTitleByPath(path: string): string;
163
163
  getDirByPath(path: string): string;
164
164
  h5Pay(query: Pay.H5PayQuery): void;
165
- notification(type: "info" | "error" | "success" | "warning", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
165
+ notification(type: "success" | "info" | "warning" | "error", message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
166
166
  notificationSuccess(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
167
167
  notificationError(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
168
168
  notificationWarning(message: string, description?: import("react").ReactNode, options?: NotificationOptions): void;
package/dist/lib/Tool.js CHANGED
@@ -1100,7 +1100,6 @@ var Tool = _objectSpread(_objectSpread({
1100
1100
  return Date.now() - Tool.getTimeOffset();
1101
1101
  },
1102
1102
  getOsName: function getOsName() {
1103
- return 'windows';
1104
1103
  var userAgent = navigator.userAgent || window.opera;
1105
1104
 
1106
1105
  // Windows
@@ -1108,7 +1107,8 @@ var Tool = _objectSpread(_objectSpread({
1108
1107
  return "windows";
1109
1108
  }
1110
1109
  // macOS
1111
- if (/mac/i.test(userAgent)) {
1110
+ // Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
1111
+ if (/Mac\s/i.test(userAgent)) {
1112
1112
  return "darwin";
1113
1113
  }
1114
1114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "2.0.13",
3
+ "version": "2.0.16",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",