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

@aws-amplify/data-schema

Package Overview
Dependencies
Maintainers
0
Versions
202
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.0.0-asynclambda-20240911175119 to 0.0.0-asynclambda-20240912010846

14

dist/cjs/runtime/internals/operations/subscription.js

@@ -23,6 +23,14 @@ 'use strict';

const [key] = Object.keys(value.data);
// Will need flattening here if/when custom selection set support is added:
const data = value.data[key];
const [initialized] = (0, APIClient_1.initializeModel)(client, name, [data], modelIntrospection, auth.authMode, auth.authToken);
return initialized;
const flattenedResult = (0, APIClient_1.flattenItems)(modelIntrospection, name, data);
if (flattenedResult === null) {
return null;
}
else if (args?.selectionSet) {
return flattenedResult;
}
else {
const [initialized] = (0, APIClient_1.initializeModel)(client, name, [flattenedResult], modelIntrospection, auth.authMode, auth.authToken);
return initialized;
}
}));

@@ -29,0 +37,0 @@ };

{
"name": "@aws-amplify/data-schema",
"version": "0.0.0-asynclambda-20240911175119",
"version": "0.0.0-asynclambda-20240912010846",
"license": "Apache-2.0",

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

@@ -20,2 +20,3 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

initializeModel,
flattenItems,
} from '../APIClient';

@@ -63,14 +64,21 @@

const [key] = Object.keys(value.data);
// Will need flattening here if/when custom selection set support is added:
const data = (value.data as any)[key];
const [initialized] = initializeModel(
client,
name,
[data],
modelIntrospection,
auth.authMode,
auth.authToken,
);
const flattenedResult = flattenItems(modelIntrospection, name, data);
return initialized;
if (flattenedResult === null) {
return null;
} else if (args?.selectionSet) {
return flattenedResult;
} else {
const [initialized] = initializeModel(
client,
name,
[flattenedResult],
modelIntrospection,
auth.authMode,
auth.authToken,
);
return initialized;
}
}),

@@ -77,0 +85,0 @@ );

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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