@machinat/create-app
Advanced tools
Comparing version 0.6.0-canary.7 to 0.6.0-canary.8
@@ -18,3 +18,7 @@ "use strict"; | ||
(profiler: BasicProfiler, stateController: StateController) => | ||
async (user: MachinatUser) => { | ||
async (user: MachinatUser | null) => { | ||
if (!user) { | ||
return null; | ||
} | ||
const userState = stateController.userState(user); | ||
@@ -21,0 +25,0 @@ const cached = await userState.get<ProfileCache>( |
@@ -16,6 +16,6 @@ "use strict"; | ||
publicRuntimeConfig: {${(0, utils_1.when)(platforms.includes('messenger')) ` | ||
messengerPageId: MESSENGER_PAGE_ID,`}${(0, utils_1.when)(platforms.includes('twitter')) ` | ||
twitterAgentId: TWITTER_ACCESS_TOKEN.split('-', 1)[0],`}${(0, utils_1.when)(platforms.includes('telegram')) ` | ||
telegramBotName: TELEGRAM_BOT_NAME,`}${(0, utils_1.when)(platforms.includes('line')) ` | ||
lineLiffId: LINE_LIFF_ID,`} | ||
MESSENGER_PAGE_ID,`}${(0, utils_1.when)(platforms.includes('twitter')) ` | ||
TWITTER_AGENT_ID: TWITTER_ACCESS_TOKEN.split('-', 1)[0],`}${(0, utils_1.when)(platforms.includes('telegram')) ` | ||
TELEGRAM_BOT_NAME,`}${(0, utils_1.when)(platforms.includes('line')) ` | ||
LINE_LIFF_ID,`} | ||
} | ||
@@ -22,0 +22,0 @@ }; |
@@ -16,6 +16,6 @@ "use strict"; | ||
publicRuntimeConfig: {${(0, utils_1.when)(platforms.includes('messenger')) ` | ||
messengerPageId,`}${(0, utils_1.when)(platforms.includes('twitter')) ` | ||
twitterAgentId,`}${(0, utils_1.when)(platforms.includes('telegram')) ` | ||
telegramBotName,`}${(0, utils_1.when)(platforms.includes('line')) ` | ||
lineLiffId,`} | ||
MESSENGER_PAGE_ID,`}${(0, utils_1.when)(platforms.includes('twitter')) ` | ||
TWITTER_AGENT_ID,`}${(0, utils_1.when)(platforms.includes('telegram')) ` | ||
TELEGRAM_BOT_NAME,`}${(0, utils_1.when)(platforms.includes('line')) ` | ||
LINE_LIFF_ID,`} | ||
}, | ||
@@ -28,6 +28,6 @@ } = getConfig(); | ||
authPlatforms: [${(0, utils_1.when)(platforms.includes('messenger')) ` | ||
new MessengerAuth({ pageId: messengerPageId }),`}${(0, utils_1.when)(platforms.includes('twitter')) ` | ||
new TwitterAuth({ agentId: twitterAgentId }),`}${(0, utils_1.when)(platforms.includes('telegram')) ` | ||
new TelegramAuth({ botName: telegramBotName }),`}${(0, utils_1.when)(platforms.includes('line')) ` | ||
new LineAuth({ liffId: lineLiffId }),`} | ||
new MessengerAuth({ pageId: MESSENGER_PAGE_ID }),`}${(0, utils_1.when)(platforms.includes('twitter')) ` | ||
new TwitterAuth({ agentId: TWITTER_AGENT_ID }),`}${(0, utils_1.when)(platforms.includes('telegram')) ` | ||
new TelegramAuth({ botName: TELEGRAM_BOT_NAME }),`}${(0, utils_1.when)(platforms.includes('line')) ` | ||
new LineAuth({ liffId: LINE_LIFF_ID }),`} | ||
], | ||
@@ -34,0 +34,0 @@ }); |
{ | ||
"name": "@machinat/create-app", | ||
"version": "0.6.0-canary.7", | ||
"version": "0.6.0-canary.8", | ||
"author": "Patrick Liu <zeldalink0515@gmail.com> (https://github.com/lrills)", | ||
@@ -39,3 +39,3 @@ "repository": { | ||
}, | ||
"gitHead": "cf481d6792a4d25fc26085cfc132c56d7d7bd20c" | ||
"gitHead": "97291e927a3697716905e6439b6d50a5d19f9fd2" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100827
1827