@contentful/app-scripts
Advanced tools
Comparing version 1.20.1 to 1.21.0
@@ -9,4 +9,11 @@ "use strict"; | ||
const feedback_1 = require("../feedback/feedback"); | ||
function uploadSettingsHaveAppEventFunction(settings) { | ||
return (settings.functions && | ||
settings.functions.some((fn) => fn.accepts.some((fnType) => fnType.startsWith('appevent')))); | ||
} | ||
async function uploadAndActivate(settings) { | ||
const bundle = await (0, create_app_bundle_1.createAppBundleFromSettings)(settings); | ||
if (uploadSettingsHaveAppEventFunction(settings)) { | ||
console.log('Remember that in order to be invoked, your App Event function(s) must be linked to your App Event subscription using the CMA or the Events tab of the App Details page.'); | ||
} | ||
if (!settings.skipActivation && bundle) { | ||
@@ -13,0 +20,0 @@ await (0, activate_bundle_1.activateBundle)({ ...settings, bundleId: bundle.sys.id }); |
{ | ||
"name": "@contentful/app-scripts", | ||
"version": "1.20.1", | ||
"version": "1.21.0", | ||
"description": "A collection of scripts for building Contentful Apps", | ||
@@ -55,3 +55,3 @@ "author": "Contentful GmbH", | ||
"commander": "12.1.0", | ||
"contentful-management": "11.25.6", | ||
"contentful-management": "11.26.2", | ||
"dotenv": "16.4.5", | ||
@@ -64,3 +64,3 @@ "ignore": "5.3.1", | ||
}, | ||
"gitHead": "ebf25f744dae8f8aa1c165ddcda2981e29fd489e", | ||
"gitHead": "81cc3ea1a7090350e4791112816a82b243c3fc14", | ||
"devDependencies": { | ||
@@ -67,0 +67,0 @@ "@tsconfig/node18": "18.2.4", |
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
85031
1696
+ Addedcontentful-management@11.26.2(transitive)
- Removedcontentful-management@11.25.6(transitive)