node-easywechat 3.7.13 → 3.7.15

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/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v3.7.15 (2026-06-09)
5
+
6
+ - Fix: 更新依赖包
7
+ - Fix: 修复获取企业微信代理应用jsapi签名错误的问题
8
+ - Fix: 修改企业微信网页授权的默认scope
9
+
10
+ ## v3.7.14 (2026-06-08)
11
+
12
+ - Fix: update dependencies
13
+
4
14
  ## v3.7.13 (2026-05-11)
5
15
 
6
16
  - Fix: update dependencies
@@ -125,7 +125,7 @@ class Application {
125
125
  throw new Error(`The factory must return a \`WeWork\` instance.`);
126
126
  }
127
127
  provider.withApiAccessToken(await this.getAccessToken().getToken());
128
- provider.scopes(this.getConfig().get('oauth.scopes', 'snsapi_userinfo'));
128
+ provider.scopes(this.getConfig().get('oauth.scopes', 'snsapi_base'));
129
129
  let agent_id = parseInt(this.config.get('agent_id')) || null;
130
130
  if (agent_id) {
131
131
  provider.setAgentId(agent_id);
@@ -74,7 +74,7 @@ class JsApiTicket extends AccessToken_1.default {
74
74
  async createAgentConfigSignature(agentId, url, nonce = null, timestamp = null) {
75
75
  nonce = nonce || (0, Utils_1.randomString)(10);
76
76
  timestamp = timestamp || (0, Utils_1.getTimestamp)();
77
- let ticket = await this.getTicket();
77
+ let ticket = await this.getAgentTicket(agentId);
78
78
  return {
79
79
  corpid: this.corpId,
80
80
  agentid: agentId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-easywechat",
3
- "version": "3.7.13",
3
+ "version": "3.7.15",
4
4
  "description": "EasyWechat SDK for Node.js (NOT OFFICIAL)",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -22,19 +22,19 @@
22
22
  "node": ">=15.6.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@types/node": "^20.19.40",
25
+ "@types/node": "^20.19.42",
26
26
  "axios-mock-adapter": "^1.22.0",
27
- "mocha": "^11.7.5",
27
+ "mocha": "^11.7.6",
28
28
  "package-release": "^1.0.4",
29
29
  "typescript": "^5.9.3"
30
30
  },
31
31
  "dependencies": {
32
- "axios": "^1.16.0",
32
+ "axios": "^1.17.0",
33
33
  "axios-retry": "^4.5.0",
34
34
  "form-data": "^4.0.5",
35
35
  "merge": "^2.1.1",
36
- "node-socialite": "^1.5.4",
37
- "qs": "^6.15.1",
36
+ "node-socialite": "^1.5.6",
37
+ "qs": "^6.15.2",
38
38
  "raw-body": "^2.5.3",
39
39
  "xml2js": "^0.6.2"
40
40
  }