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 +10 -0
- package/dist/Work/Application.js +1 -1
- package/dist/Work/JsApiTicket.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/dist/Work/Application.js
CHANGED
|
@@ -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', '
|
|
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);
|
package/dist/Work/JsApiTicket.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
25
|
+
"@types/node": "^20.19.42",
|
|
26
26
|
"axios-mock-adapter": "^1.22.0",
|
|
27
|
-
"mocha": "^11.7.
|
|
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.
|
|
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.
|
|
37
|
-
"qs": "^6.15.
|
|
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
|
}
|