mazey 2.0.0 → 2.3.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 Mazey
3
+ Copyright (c) 2022 Mazey
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -137,8 +137,8 @@ Transfer CamelCase to Underscore.
137
137
  ```
138
138
  import { camelCase2Underscore } from 'mazey';
139
139
 
140
- camelCase2Underscore('ABC'); // a-b-c
141
- camelCase2Underscore('aBC'); // a-b-c
140
+ camelCase2Underscore('ABC'); // a_b_c
141
+ camelCase2Underscore('aBC'); // a_b_c
142
142
  ```
143
143
 
144
144
  #### Trim
@@ -398,12 +398,25 @@ calLongestCommonSubsequence('fish', 'finish'); // 4
398
398
  ### Browser Information
399
399
 
400
400
  ```
401
- import { getBrowserType } from 'mazey';
401
+ import { getBrowserInfo } from 'mazey';
402
402
 
403
- getBrowserType(); // {"engine":"webkit","engineVs":"537.36","platform":"desktop","supporter":"chrome","supporterVs":"85.0.4183.121","system":"windows","systemVs":"10"}
403
+ getBrowserInfo(); // {"engine":"webkit","engineVs":"537.36","platform":"desktop","supporter":"chrome","supporterVs":"85.0.4183.121","system":"windows","systemVs":"10"}
404
404
  // Shell and shell version { shell: 'wechat', shellVs: '20' } shell: wechat qq uc 360 2345 sougou liebao maxthon
405
405
  ```
406
406
 
407
+ | Index | Field | Description |
408
+ | --- | --- | --- |
409
+ | * System | system | android, ios, windows, macos, linux |
410
+ | * System version | systemVs | windows: 2000, xp, 2003, vista, 7, 8, 8.1, 10<br />macos: ... |
411
+ | * Platform | platform | desktop, mobile |
412
+ | * Engine | engine | webkit, gecko, presto, trident |
413
+ | * Engine version | engineVs | - |
414
+ | * Supporter | supporter | edge, opera, chrome, safari, firefox, iexplore |
415
+ | * Supporter version | supporterVs | - |
416
+ | Shell | shell | wechat, qq_browser, qq_app, uc, 360, 2345, sougou, liebao, maxthon, bilibili |
417
+ | Shell version | shellVs | - |
418
+ | Apple device type | appleType | iphone, ipad, ipod, iwatch |
419
+
407
420
  ### Web Performance
408
421
 
409
422
  Get page load time(PerformanceTiming).
package/index.js CHANGED
@@ -0,0 +1,3 @@
1
+ /**
2
+ * @author: Mazey Chu
3
+ */