Skip to content

Commit

Permalink
chore: 🤖 升级wechaty版本
Browse files Browse the repository at this point in the history
  • Loading branch information
danni-cool committed Jan 12, 2024
1 parent 1ae87e7 commit 1f61eb5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"multer": "^1.4.5-lts.1",
"node-fetch-commonjs": "^3.3.2",
"wechaty": "^1.20.2",
"wechaty-puppet-xp": "^1.13.0"
"wechaty-puppet-xp": "1.13.4"
},
"devDependencies": {
"@commitlint/config-conventional": "^18.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
diff --git a/node_modules/wechaty-puppet-xp/dist/cjs/src/puppet-xp.js b/node_modules/wechaty-puppet-xp/dist/cjs/src/puppet-xp.js
index 692e236..2b41086 100644
index 5cf904f..9aae8bc 100644
--- a/node_modules/wechaty-puppet-xp/dist/cjs/src/puppet-xp.js
+++ b/node_modules/wechaty-puppet-xp/dist/cjs/src/puppet-xp.js
@@ -764,7 +764,7 @@ class PuppetXp extends PUPPET.Puppet {
@@ -788,7 +788,8 @@ class PuppetXp extends PUPPET.Puppet {
}
async messageSendFile(conversationId, file) {
// PUPPET.throwUnsupportedError(conversationId, file)
- const filePath = path_1.default.resolve(file.name);
+ // const filePath = path_1.default.resolve(file.name);
+ const filePath = path_1.default.resolve(`tmp/${file.name}`);
wechaty_puppet_1.log.verbose('filePath===============', filePath);
await file.toFile(filePath, true);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4768,10 +4768,10 @@ wechaty-puppet-wechat4u@^1.11.1:
wechat4u "^0.7.12"
xml2js "^0.4.23"

wechaty-puppet-xp@^1.13.0:
version "1.13.1"
resolved "https://registry.yarnpkg.com/wechaty-puppet-xp/-/wechaty-puppet-xp-1.13.1.tgz#f7acb404012ebe7501589b6d46e275e11a15d269"
integrity sha512-qGqAyC2kdmiJihTQfZuytomNhDuAVp5n8ohZ7LfJ2h4GiX9GMzJr8Re+20bsD8qGaPWhepyymueguVBcxt5k/A==
[email protected].4:
version "1.13.4"
resolved "https://registry.yarnpkg.com/wechaty-puppet-xp/-/wechaty-puppet-xp-1.13.4.tgz#f2edd3d2592e4d1b72d8037ade70ef516114c0c7"
integrity sha512-gvl6xnTE7vxjOwb09Xs5IoNlMvO96ra/MnYkEsheiHBz7g9a4dQT9cZh45On0OyYAm8VvxBgdYNH88CyAnZb0Q==
dependencies:
cuid "^2.1.8"
sidecar "^0.17.8"
Expand Down

0 comments on commit 1f61eb5

Please sign in to comment.