@anjianshi/utils 3.0.1 → 3.0.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.
@@ -4,6 +4,7 @@
4
4
  *
5
5
  * 使用前提:
6
6
  * 1. 只支持浏览器渲染
7
+ * 2. 安装 @emotion/serialize、@emotion/utils
7
8
  * 2. 用 EmotionCacheProvider 包裹 App 根元素
8
9
  *
9
10
  * 来自:
@@ -4,6 +4,7 @@
4
4
  *
5
5
  * 使用前提:
6
6
  * 1. 只支持浏览器渲染
7
+ * 2. 安装 @emotion/serialize、@emotion/utils
7
8
  * 2. 用 EmotionCacheProvider 包裹 App 根元素
8
9
  *
9
10
  * 来自:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anjianshi/utils",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "Common JavaScript Utils",
5
5
  "homepage": "https://github.com/anjianshi/js-packages/utils",
6
6
  "bugs": {
@@ -32,16 +32,14 @@
32
32
  "typescript": "^5.8.3",
33
33
  "vconsole": "^3.15.1",
34
34
  "@anjianshi/presets-eslint-base": "6.0.0",
35
- "@anjianshi/presets-eslint-node": "6.0.0",
36
35
  "@anjianshi/presets-eslint-react": "6.0.0",
36
+ "@anjianshi/presets-eslint-node": "6.0.0",
37
37
  "@anjianshi/presets-eslint-typescript": "6.0.0",
38
- "@anjianshi/presets-prettier": "3.0.5",
39
- "@anjianshi/presets-typescript": "3.2.5"
38
+ "@anjianshi/presets-typescript": "3.2.5",
39
+ "@anjianshi/presets-prettier": "3.0.5"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@emotion/react": "^11.14.0",
43
- "@emotion/serialize": "^1.3.3",
44
- "@emotion/utils": "^1.4.2",
45
43
  "@prisma/client": "^6.8.2",
46
44
  "chalk": "^5.4.1",
47
45
  "dayjs": "^1.11.13",
@@ -52,12 +50,6 @@
52
50
  "@emotion/react": {
53
51
  "optional": true
54
52
  },
55
- "@emotion/serialize": {
56
- "optional": true
57
- },
58
- "@emotion/utils": {
59
- "optional": true
60
- },
61
53
  "@prisma/client": {
62
54
  "optional": true
63
55
  },
package/safe-request.js CHANGED
@@ -105,7 +105,7 @@ export class SafeRequestClient {
105
105
  if (result.success)
106
106
  return result;
107
107
  }
108
- result = (await handleException(response.arrayBuffer()));
108
+ result = (await handleException(response.blob()));
109
109
  return result;
110
110
  }
111
111
  /** 若请求未成功发起,会触发此回调来生成失败信息 */