UNPKG

@juzi/wechaty

Version:

Wechaty is a RPA SDK for Chatbot Makers.

86 lines 3.72 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPuppetModuleName = exports.OFFICIAL_PUPPET_DEFAULT = exports.OFFICIAL_PUPPET_DEPENDENCIES = void 0; /* eslint-disable sort-keys */ /** * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty * * @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and * Wechaty Contributors <https://github.com/wechaty>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ const OFFICIAL_PUPPET_DEPENDENCIES = { /** * The following puppets were DEPRECATED before 2020 */ // 'wechaty-puppet-ioscat' : '^0.5.22', // https://www.npmjs.com/package/wechaty-puppet-ioscat // 'wechaty-puppet-padchat' : '^0.19.3', // https://www.npmjs.com/package/wechaty-puppet-padchat // 'wechaty-puppet-padpro' : '^0.3.21', // https://www.npmjs.com/package/wechaty-puppet-padpro /** * Deprecated History: * https://github.com/wechaty/puppet-service-providers/issues/11 */ // Dec 2020 // - https://github.com/wechaty/puppet-services/issues/61 // 'wechaty-puppet-padplus' : '^0.7.30', // https://www.npmjs.com/package/wechaty-puppet-padplus // Sep 2021: // 'wechaty-puppet-hostie' : '*', // https://www.npmjs.com/package/wechaty-puppet-hostie /** * Wechaty Internal Puppets: dependency by package.json * * Huan(202108): DO NOT REMOVE THE SPECIFIC VERSIONS BELOW * All the internal puppets which have already depended in package.json * MUST be listed below with their correct version number (ranges) * because the `bin/puppet-install.ts` will use those version * to install all them inside the Docker */ 'wechaty-puppet-service': '>=1.19.8', 'wechaty-puppet-mock': '>=1.10.2', /** * WeChat Puppets */ 'wechaty-puppet-wechat': '>=1.11.8', 'wechaty-puppet-wechat4u': '>=1.11.1', 'wechaty-puppet-padlocal': '>=1.11.13', 'wechaty-puppet-xp': '>=1.10.2', 'wechaty-puppet-oicq': '>=1.10.2', 'wechaty-puppet-official-account': '>=1.10.2', /** * Non-WeChat External Puppets */ 'wechaty-puppet-gitter': '>=1.10.1', 'wechaty-puppet-lark': '>=0.4.5', 'wechaty-puppet-whatsapp': '>=1.10.4', 'wechaty-puppet-walnut': '>=0.1.41', /** * Scoped puppets (private) */ '@juzibot/wechaty-puppet-donut': '*', '@juzibot/wechaty-puppet-wxwork': '*', '@juzi/wechaty-puppet-service': '*', '@juzi/wechaty-puppet-mock': '>=1.0.1', // https://www.npmjs.com/package/wechaty-puppet-mock }; exports.OFFICIAL_PUPPET_DEPENDENCIES = OFFICIAL_PUPPET_DEPENDENCIES; const isPuppetModuleName = (name) => name in OFFICIAL_PUPPET_DEPENDENCIES; exports.isPuppetModuleName = isPuppetModuleName; /** * Updates: * - Huan(202004): we change default puppet from puppet-service -> puppet-wechat (with UOS support) * - Huan(202009): use puppet service as default * - Huan(202201): use puppet-wechat4u as default */ const OFFICIAL_PUPPET_DEFAULT = '@juzi/wechaty-puppet-mock'; exports.OFFICIAL_PUPPET_DEFAULT = OFFICIAL_PUPPET_DEFAULT; //# sourceMappingURL=puppet-config.js.map