New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/codegen-ui

Package Overview
Dependencies
Maintainers
8
Versions
645
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/codegen-ui - npm Package Compare versions

Comparing version 1.2.1-q1-release-d92dffd.0 to 1.2.1-q1-release-df737ca.0

16

dist/lib/utils/component-metadata.js

@@ -35,3 +35,3 @@ "use strict";

stateReferences
.filter((stateReference) => !('set' in stateReference))
.filter((stateReference) => !('set' in stateReference) || stateReference.set === null || stateReference.set === undefined)
.forEach(({ componentName, property }) => {

@@ -47,3 +47,3 @@ if (!(componentName in stateReferenceMap)) {

}))
.concat(stateReferences.filter((stateReference) => 'set' in stateReference));
.concat(stateReferences.filter((stateReference) => 'set' in stateReference && stateReference.set));
}

@@ -139,11 +139,11 @@ function dedupeComponentMetadata(componentMetadata) {

return reduceComponentMetadata([]
.concat('concat' in property ? property.concat.map(computePropertyMetadata) : [])
.concat('userAttribute' in property ? [generateAuthBindingMetadata()] : [])
.concat('condition' in property && 'then' in property.condition
.concat('concat' in property && property.concat ? property.concat.map(computePropertyMetadata) : [])
.concat('userAttribute' in property && property.userAttribute ? [generateAuthBindingMetadata()] : [])
.concat('condition' in property && property.condition && 'then' in property.condition && property.condition.then
? [computePropertyMetadata(property.condition.then)]
: [])
.concat('condition' in property && 'else' in property.condition
.concat('condition' in property && property.condition && 'else' in property.condition && property.condition.else
? [computePropertyMetadata(property.condition.else)]
: [])
.concat('componentName' in property && 'property' in property
.concat('componentName' in property && property.componentName && 'property' in property && property.property
? [generateReferenceMetadata(property)]

@@ -156,3 +156,3 @@ : []));

function computeEventMetadata(event) {
if (!('action' in event)) {
if (!('action' in event) || event.action === undefined || event.action === null) {
return generateEmptyMetadata();

@@ -159,0 +159,0 @@ }

{
"name": "@aws-amplify/codegen-ui",
"version": "1.2.1-q1-release-d92dffd.0",
"version": "1.2.1-q1-release-df737ca.0",
"description": "generic component code generation interface definitions",

@@ -53,3 +53,3 @@ "author": "Amazon Web Services",

},
"gitHead": "6e2338ad01d55adebe2f91239d90a8e9f0ad6c97"
"gitHead": "2dc3935e7b3e4eef384766472a316baff481b667"
}

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