This commit is contained in:
Xu Chang 2022-06-02 14:09:23 +08:00
parent 1cb49b5863
commit 013f2507fc
5 changed files with 14 additions and 2 deletions

3
lib/index.d.ts vendored
View File

@ -1,10 +1,11 @@
import { aspectDict } from "./aspects";
import triggers from "./triggers";
import checkers from './checkers';
import watchers from './watchers';
import data from "./data";
import { initialize as initializeFeatures } from './features';
import { routers as exceptionRouters } from './exceptionRouters';
export { checkers, triggers, data, aspectDict, initializeFeatures, exceptionRouters, };
export { checkers, triggers, watchers, data, aspectDict, initializeFeatures, exceptionRouters, };
export * from './RuntimeContext';
export * from './types/Exceptions';
export { composeFileUrl, decomposeFileUrl } from './utils/extraFile';

View File

@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.decomposeFileUrl = exports.composeFileUrl = exports.exceptionRouters = exports.initializeFeatures = exports.aspectDict = exports.data = exports.triggers = exports.checkers = void 0;
exports.decomposeFileUrl = exports.composeFileUrl = exports.exceptionRouters = exports.initializeFeatures = exports.aspectDict = exports.data = exports.watchers = exports.triggers = exports.checkers = void 0;
// import './typings/polyfill';
const aspects_1 = require("./aspects");
Object.defineProperty(exports, "aspectDict", { enumerable: true, get: function () { return aspects_1.aspectDict; } });
@ -25,6 +25,8 @@ const triggers_1 = __importDefault(require("./triggers"));
exports.triggers = triggers_1.default;
const checkers_1 = __importDefault(require("./checkers"));
exports.checkers = checkers_1.default;
const watchers_1 = __importDefault(require("./watchers"));
exports.watchers = watchers_1.default;
const data_1 = __importDefault(require("./data"));
exports.data = data_1.default;
const features_1 = require("./features");

View File

@ -22,6 +22,7 @@ const triggers = [
const { appId, appSecret } = config2;
for (const code of result) {
const { type, expired, url, id } = code;
console.log('code', code);
if (type === 'wechatMpWxaCode') {
// 小程序码去实时获取(暂时不考虑缓存)
const wechatInstance = oak_wechat_sdk_1.WechatSDK.getInstance(appId, appSecret, 'wechatMp');

5
lib/watchers/index.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
import { EntityDict } from 'oak-app-domain';
import { Watcher } from 'oak-domain/lib/types';
import { GeneralRuntimeContext } from '../RuntimeContext';
declare const _default: Watcher<EntityDict, keyof EntityDict, GeneralRuntimeContext<EntityDict>>[];
export default _default;

3
lib/watchers/index.js Normal file
View File

@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = [];