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

@aws-amplify/data-schema

Package Overview
Dependencies
Maintainers
10
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/data-schema - npm Package Compare versions

Comparing version 0.14.4 to 0.14.5

17

lib-esm/src/CombineSchema.js

@@ -26,2 +26,3 @@ "use strict";

transform() {
validateDuplicateTypeNames(schemas);
const baseDefinition = {

@@ -57,1 +58,17 @@ functionSlots: [],

}
function validateDuplicateTypeNames(schemas) {
const allSchemaKeys = schemas.flatMap((s) => Object.keys(s.data.types));
const keySet = new Set();
const duplicateKeySet = new Set();
allSchemaKeys.forEach((key) => {
if (keySet.has(key)) {
duplicateKeySet.add(key);
}
else {
keySet.add(key);
}
});
if (duplicateKeySet.size > 0) {
throw new Error(`The schemas you are attempting to combine have a name collision. Please remove or rename ${Array.from(duplicateKeySet).join(', ')}.`);
}
}

2

package.json
{
"name": "@aws-amplify/data-schema",
"version": "0.14.4",
"version": "0.14.5",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "repository": {

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