UNPKG

3.45 kBPlain TextView Raw
1/* eslint-disable sort-keys */
2/**
3 * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty
4 *
5 * @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
6 * Wechaty Contributors <https://github.com/wechaty>.
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 *
20 */
21export const PUPPET_DEPENDENCIES = {
22 /**
23 * The following puppets were DEPRECATED before 2020
24 */
25 // 'wechaty-puppet-ioscat' : '^0.5.22', // https://www.npmjs.com/package/wechaty-puppet-ioscat
26 // 'wechaty-puppet-padchat' : '^0.19.3', // https://www.npmjs.com/package/wechaty-puppet-padchat
27 // 'wechaty-puppet-padpro' : '^0.3.21', // https://www.npmjs.com/package/wechaty-puppet-padpro
28
29 /**
30 * Deprecated on Dec 2020
31 * https://github.com/wechaty/puppet-service-providers/issues/11
32 */
33 // 'wechaty-puppet-padplus' : '^0.7.30', // https://www.npmjs.com/package/wechaty-puppet-padplus
34
35 /**
36 * Deprecated on Jan 2021: rename to wechaty-puppet-service
37 * https://github.com/wechaty/wechaty-puppet-service/issues/118
38 *
39 * TODO: Huan(202101): will be removed after Dec 31, 2021
40 */
41 'wechaty-puppet-hostie' : '*', // https://www.npmjs.com/package/wechaty-puppet-hostie
42 'wechaty-puppet-puppeteer' : '>=0.24', // https://www.npmjs.com/package/wechaty-puppet-puppeteer
43
44 /**
45 * Wechaty Internal Puppets: dependency by package.json
46 */
47 'wechaty-puppet-service' : '>=0.21', // https://www.npmjs.com/package/wechaty-puppet-service
48 'wechaty-puppet-mock' : '>=0.29', // https://www.npmjs.com/package/wechaty-puppet-mock
49
50 /**
51 * WeChat External Puppets
52 */
53 'wechaty-puppet-wechat' : '>=0.28', // https://www.npmjs.com/package/wechaty-puppet-wechat
54 'wechaty-puppet-wechat4u' : '>=0.17', // https://www.npmjs.com/package/wechaty-puppet-wechat4u
55 'wechaty-puppet-padlocal' : '>=0.4.1', // https://www.npmjs.com/package/wechaty-puppet-padlocal
56 'wechaty-puppet-official-account' : '>=0.5', // https://www.npmjs.com/package/wechaty-puppet-official-account
57
58 /**
59 * Non-WeChat External Puppets
60 */
61 'wechaty-puppet-gitter' : '>=0.4.7', // https://www.npmjs.com/package/wechaty-puppet-gitter
62 'wechaty-puppet-lark' : '>=0.4.5', // https://www.npmjs.com/package/wechaty-puppet-lark
63 'wechaty-puppet-whatsapp' : '>=0.2.2', // https://www.npmjs.com/package/wechaty-puppet-whatsapp
64
65 /**
66 * Scoped puppets (private)
67 */
68 '@juzibot/wechaty-puppet-donut' : '*', // https://www.npmjs.com/package/wechaty-puppet-donut (to be published)
69 '@juzibot/wechaty-puppet-wxwork' : '*', // https://www.npmjs.com/package/wechaty-puppet-wxwork (to be published)
70}
71
72export type PuppetModuleName = keyof typeof PUPPET_DEPENDENCIES
73
74// Huan(202004): we change default puppet from puppet-service -> puppet-wechat (with UOS support)
75export const PUPPET_NAME_DEFAULT: PuppetModuleName = 'wechaty-puppet-wechat'