@contentful/app-scripts
Advanced tools
Comparing version 1.18.0 to 1.19.0
@@ -12,2 +12,11 @@ "use strict"; | ||
const DEFAULT_MANIFEST_PATH = './contentful-app-manifest.json'; | ||
const graphQLEvents = { | ||
fieldMappingEvent: 'graphql.field.mapping', | ||
queryEvent: 'graphql.query', | ||
}; | ||
const appEvents = { | ||
appEventFilter: 'appevent.filter', | ||
appEventHandler: 'appevent.handler', | ||
appEventTransformation: 'appevent.transformation', | ||
}; | ||
const throwValidationException = (subject, message, details) => { | ||
@@ -91,5 +100,2 @@ console.log(`${chalk_1.default.red('Validation Error:')} Missing or invalid ${subject}.`); | ||
logProgress(`${type === 'actions' ? 'App Actions' : 'functions'} found in ${chalk_1.default.bold(DEFAULT_MANIFEST_PATH)}.`); | ||
const fieldMappingEvent = "graphql.field.mapping"; | ||
const queryEvent = "graphql.query"; | ||
const appEventFilter = 'appevent.filter'; | ||
const items = manifest[type].map((item) => { | ||
@@ -100,3 +106,3 @@ const allowNetworks = Array.isArray(item.allowNetworks) | ||
const accepts = 'accepts' in item && Array.isArray(item.accepts) ? item.accepts : undefined; | ||
const hasInvalidEvent = accepts?.some((event) => ![fieldMappingEvent, queryEvent, appEventFilter].includes(event)); | ||
const hasInvalidEvent = accepts?.some((event) => ![...Object.values(graphQLEvents), ...Object.values(appEvents)].includes(event)); | ||
const hasInvalidNetwork = allowNetworks.find((netWork) => !(0, exports.isValidNetwork)(netWork)); | ||
@@ -103,0 +109,0 @@ if (hasInvalidNetwork) { |
{ | ||
"name": "@contentful/app-scripts", | ||
"version": "1.18.0", | ||
"version": "1.19.0", | ||
"description": "A collection of scripts for building Contentful Apps", | ||
@@ -55,3 +55,3 @@ "author": "Contentful GmbH", | ||
"commander": "12.0.0", | ||
"contentful-management": "11.24.3", | ||
"contentful-management": "11.24.5", | ||
"dotenv": "16.4.5", | ||
@@ -64,3 +64,3 @@ "ignore": "5.3.1", | ||
}, | ||
"gitHead": "2f6ce49aba5bb8a8a781b46ea8441b33aa347404", | ||
"gitHead": "42e054adc754dae0657882b09f1ab7adcc9adecf", | ||
"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
82422
1638
+ Addedcontentful-management@11.24.5(transitive)
- Removedcontentful-management@11.24.3(transitive)