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

@contentful/app-scripts

Package Overview
Dependencies
Maintainers
3
Versions
511
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/app-scripts - npm Package Compare versions

Comparing version 1.18.0 to 1.19.0

14

lib/utils.js

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

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