@tachybase/plugin-wechat-official-account 1.3.20 → 1.3.22

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.
@@ -1,12 +1,11 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.3.20",
4
- "@ant-design/icons": "5.5.2",
3
+ "@tachybase/client": "1.3.22",
4
+ "@ant-design/icons": "5.6.1",
5
5
  "antd": "5.22.5",
6
6
  "react-router-dom": "6.28.1",
7
- "@tachybase/module-auth": "1.3.20",
8
- "@tachybase/server": "1.3.20",
7
+ "@tachybase/module-auth": "1.3.22",
8
+ "@tego/server": "1.3.39",
9
9
  "axios": "1.7.7",
10
- "sequelize": "6.37.5",
11
- "@tachybase/actions": "1.3.20"
10
+ "sequelize": "6.37.5"
12
11
  };
@@ -1 +1 @@
1
- {"name":"xml2js","description":"Simple XML to JavaScript object converter.","keywords":["xml","json"],"homepage":"https://github.com/Leonidas-from-XIV/node-xml2js","version":"0.6.2","author":"Marek Kubica <marek@xivilization.net> (https://xivilization.net)","contributors":["maqr <maqr.lollerskates@gmail.com> (https://github.com/maqr)","Ben Weaver (http://benweaver.com/)","Jae Kwon (https://github.com/jaekwon)","Jim Robert","Ștefan Rusu (http://www.saltwaterc.eu/)","Carter Cole <carter.cole@cartercole.com> (http://cartercole.com/)","Kurt Raschke <kurt@kurtraschke.com> (http://www.kurtraschke.com/)","Contra <contra@australia.edu> (https://github.com/Contra)","Marcelo Diniz <marudiniz@gmail.com> (https://github.com/mdiniz)","Michael Hart (https://github.com/mhart)","Zachary Scott <zachary@zacharyscott.net> (http://zacharyscott.net/)","Raoul Millais (https://github.com/raoulmillais)","Salsita Software (http://www.salsitasoft.com/)","Mike Schilling <mike@emotive.com> (http://www.emotive.com/)","Jackson Tian <shyvo1987@gmail.com> (http://weibo.com/shyvo)","Mikhail Zyatin <mikhail.zyatin@gmail.com> (https://github.com/Sitin)","Chris Tavares <ctavares@microsoft.com> (https://github.com/christav)","Frank Xu <yyfrankyy@gmail.com> (http://f2e.us/)","Guido D'Albore <guido@bitstorm.it> (http://www.bitstorm.it/)","Jack Senechal (http://jacksenechal.com/)","Matthias Hölzl <tc@xantira.com> (https://github.com/hoelzl)","Camille Reynders <info@creynders.be> (http://www.creynders.be/)","Taylor Gautier (https://github.com/tsgautier)","Todd Bryan (https://github.com/toddrbryan)","Leore Avidar <leore.avidar@gmail.com> (http://leoreavidar.com/)","Dave Aitken <dave.aitken@gmail.com> (http://www.actionshrimp.com/)","Shaney Orrowe <shaney.orrowe@practiceweb.co.uk>","Candle <candle@candle.me.uk>","Jess Telford <hi@jes.st> (http://jes.st)","Tom Hughes <<tom@compton.nu> (http://compton.nu/)","Piotr Rochala (http://rocha.la/)","Michael Avila (https://github.com/michaelavila)","Ryan Gahl (https://github.com/ryedin)","Eric Laberge <e.laberge@gmail.com> (https://github.com/elaberge)","Benjamin E. Coe <ben@npmjs.com> (https://twitter.com/benjamincoe)","Stephen Cresswell (https://github.com/cressie176)","Pascal Ehlert <pascal@hacksrus.net> (http://www.hacksrus.net/)","Tom Spencer <fiznool@gmail.com> (http://fiznool.com/)","Tristian Flanagan <tflanagan@datacollaborative.com> (https://github.com/tflanagan)","Tim Johns <timjohns@yahoo.com> (https://github.com/TimJohns)","Bogdan Chadkin <trysound@yandex.ru> (https://github.com/TrySound)","David Wood <david.p.wood@gmail.com> (http://codesleuth.co.uk/)","Nicolas Maquet (https://github.com/nmaquet)","Lovell Fuller (http://lovell.info/)","d3adc0d3 (https://github.com/d3adc0d3)","James Crosby (https://github.com/autopulated)"],"main":"./lib/xml2js","files":["lib"],"directories":{"lib":"./lib"},"scripts":{"build":"cake build","test":"zap","coverage":"nyc npm test && nyc report","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls","doc":"cake doc"},"repository":{"type":"git","url":"https://github.com/Leonidas-from-XIV/node-xml2js.git"},"dependencies":{"sax":">=0.6.0","xmlbuilder":"~11.0.0"},"devDependencies":{"coffeescript":">=1.10.0 <2","coveralls":"^3.0.1","diff":">=1.0.8","docco":">=0.6.2","nyc":">=2.2.1","zap":">=0.2.9 <1"},"engines":{"node":">=4.0.0"},"license":"MIT","_lastModified":"2025-07-24T06:29:23.278Z"}
1
+ {"name":"xml2js","description":"Simple XML to JavaScript object converter.","keywords":["xml","json"],"homepage":"https://github.com/Leonidas-from-XIV/node-xml2js","version":"0.6.2","author":"Marek Kubica <marek@xivilization.net> (https://xivilization.net)","contributors":["maqr <maqr.lollerskates@gmail.com> (https://github.com/maqr)","Ben Weaver (http://benweaver.com/)","Jae Kwon (https://github.com/jaekwon)","Jim Robert","Ștefan Rusu (http://www.saltwaterc.eu/)","Carter Cole <carter.cole@cartercole.com> (http://cartercole.com/)","Kurt Raschke <kurt@kurtraschke.com> (http://www.kurtraschke.com/)","Contra <contra@australia.edu> (https://github.com/Contra)","Marcelo Diniz <marudiniz@gmail.com> (https://github.com/mdiniz)","Michael Hart (https://github.com/mhart)","Zachary Scott <zachary@zacharyscott.net> (http://zacharyscott.net/)","Raoul Millais (https://github.com/raoulmillais)","Salsita Software (http://www.salsitasoft.com/)","Mike Schilling <mike@emotive.com> (http://www.emotive.com/)","Jackson Tian <shyvo1987@gmail.com> (http://weibo.com/shyvo)","Mikhail Zyatin <mikhail.zyatin@gmail.com> (https://github.com/Sitin)","Chris Tavares <ctavares@microsoft.com> (https://github.com/christav)","Frank Xu <yyfrankyy@gmail.com> (http://f2e.us/)","Guido D'Albore <guido@bitstorm.it> (http://www.bitstorm.it/)","Jack Senechal (http://jacksenechal.com/)","Matthias Hölzl <tc@xantira.com> (https://github.com/hoelzl)","Camille Reynders <info@creynders.be> (http://www.creynders.be/)","Taylor Gautier (https://github.com/tsgautier)","Todd Bryan (https://github.com/toddrbryan)","Leore Avidar <leore.avidar@gmail.com> (http://leoreavidar.com/)","Dave Aitken <dave.aitken@gmail.com> (http://www.actionshrimp.com/)","Shaney Orrowe <shaney.orrowe@practiceweb.co.uk>","Candle <candle@candle.me.uk>","Jess Telford <hi@jes.st> (http://jes.st)","Tom Hughes <<tom@compton.nu> (http://compton.nu/)","Piotr Rochala (http://rocha.la/)","Michael Avila (https://github.com/michaelavila)","Ryan Gahl (https://github.com/ryedin)","Eric Laberge <e.laberge@gmail.com> (https://github.com/elaberge)","Benjamin E. Coe <ben@npmjs.com> (https://twitter.com/benjamincoe)","Stephen Cresswell (https://github.com/cressie176)","Pascal Ehlert <pascal@hacksrus.net> (http://www.hacksrus.net/)","Tom Spencer <fiznool@gmail.com> (http://fiznool.com/)","Tristian Flanagan <tflanagan@datacollaborative.com> (https://github.com/tflanagan)","Tim Johns <timjohns@yahoo.com> (https://github.com/TimJohns)","Bogdan Chadkin <trysound@yandex.ru> (https://github.com/TrySound)","David Wood <david.p.wood@gmail.com> (http://codesleuth.co.uk/)","Nicolas Maquet (https://github.com/nmaquet)","Lovell Fuller (http://lovell.info/)","d3adc0d3 (https://github.com/d3adc0d3)","James Crosby (https://github.com/autopulated)"],"main":"./lib/xml2js","files":["lib"],"directories":{"lib":"./lib"},"scripts":{"build":"cake build","test":"zap","coverage":"nyc npm test && nyc report","coveralls":"nyc npm test && nyc report --reporter=text-lcov | coveralls","doc":"cake doc"},"repository":{"type":"git","url":"https://github.com/Leonidas-from-XIV/node-xml2js.git"},"dependencies":{"sax":">=0.6.0","xmlbuilder":"~11.0.0"},"devDependencies":{"coffeescript":">=1.10.0 <2","coveralls":"^3.0.1","diff":">=1.0.8","docco":">=0.6.2","nyc":">=2.2.1","zap":">=0.2.9 <1"},"engines":{"node":">=4.0.0"},"license":"MIT","_lastModified":"2025-07-29T06:21:05.703Z"}
@@ -1,3 +1,3 @@
1
- import { Context, Next } from '@tachybase/actions';
1
+ import { Context, Next } from '@tego/server';
2
2
  export declare const getAuthUrl: (ctx: Context, next: Next) => Promise<void>;
3
3
  export declare const redirect: (ctx: Context, next: Next) => Promise<void>;
@@ -21,7 +21,7 @@ __export(work_exports, {
21
21
  redirect: () => redirect
22
22
  });
23
23
  module.exports = __toCommonJS(work_exports);
24
- var import_server = require("@tachybase/server");
24
+ var import_server = require("@tego/server");
25
25
  const getAuthUrl = async (ctx, next) => {
26
26
  const { redirect: redirect2 } = ctx.action.params.values;
27
27
  const url = await ctx.auth.getAuthUrl(redirect2);
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/server';
2
2
  export declare class PluginReplacePageServer extends Plugin {
3
3
  getWeChatConfig(): Promise<{
4
4
  appid: any;
@@ -31,9 +31,9 @@ __export(plugin_exports, {
31
31
  default: () => plugin_default
32
32
  });
33
33
  module.exports = __toCommonJS(plugin_exports);
34
- var import_crypto = __toESM(require("crypto"));
34
+ var import_node_crypto = __toESM(require("node:crypto"));
35
35
  var import_module_auth = require("@tachybase/module-auth");
36
- var import_server = require("@tachybase/server");
36
+ var import_server = require("@tego/server");
37
37
  var import_axios = __toESM(require("axios"));
38
38
  var import_sequelize = require("sequelize");
39
39
  var import_xml2js = __toESM(require("xml2js"));
@@ -122,7 +122,7 @@ class PluginReplacePageServer extends import_server.Plugin {
122
122
  // 验证Wechat平台的请求签名
123
123
  async checkSignature(query) {
124
124
  const { signature, timestamp, nonce } = query;
125
- const hash = import_crypto.default.createHash("sha1");
125
+ const hash = import_node_crypto.default.createHash("sha1");
126
126
  const { token } = await this.getWeChatConfig();
127
127
  const str = [token, timestamp, nonce].sort().join("");
128
128
  hash.update(str);
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-wechat-official-account",
3
- "version": "1.3.20",
3
+ "version": "1.3.22",
4
4
  "keywords": [
5
5
  "Authentication"
6
6
  ],
7
7
  "main": "dist/server/index.js",
8
8
  "dependencies": {},
9
9
  "devDependencies": {
10
- "@ant-design/icons": "^5.5.2",
10
+ "@ant-design/icons": "^5.6.1",
11
+ "@tachybase/test": "^1.3.39",
12
+ "@tego/client": "^1.3.39",
13
+ "@tego/server": "^1.3.39",
11
14
  "@types/xml2js": "^0.4.14",
12
15
  "antd": "5.22.5",
13
16
  "axios": "1.7.7",
@@ -17,16 +20,9 @@
17
20
  "qrcode.react": "^3.2.0",
18
21
  "react-router-dom": "6.28.1",
19
22
  "sequelize": "^6.37.5",
20
- "xml2js": "^0.6.2"
23
+ "xml2js": "^0.6.2",
24
+ "@tachybase/client": "1.3.22",
25
+ "@tachybase/module-auth": "1.3.22"
21
26
  },
22
- "peerDependencies": {
23
- "@tachybase/client": "1.3.20",
24
- "@tachybase/module-auth": "1.3.20",
25
- "@tachybase/server": "1.3.20",
26
- "@tachybase/test": "1.3.20",
27
- "@tachybase/actions": "1.3.20"
28
- },
29
- "scripts": {
30
- "build": "tachybase-build --no-dts @tachybase/plugin-wechat-official-account"
31
- }
27
+ "scripts": {}
32
28
  }