Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@machinat/create-app

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@machinat/create-app - npm Package Compare versions

Comparing version 0.6.0-canary.7 to 0.6.0-canary.8

6

lib/template/src/services/useUserProfile.ts.t.js

@@ -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>(

8

lib/template/webview/next.config.js.t.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc