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

@aws-amplify/amplify-api-next-alpha

Package Overview
Dependencies
Maintainers
10
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/amplify-api-next-alpha - npm Package Compare versions

Comparing version 0.6.2 to 0.7.0

3

lib-esm/index.d.ts
import * as a from './src';
import { defineData } from './src/SchemaProcessor';
import { ClientSchema } from './src/ClientSchema';

@@ -9,3 +8,3 @@ /**

*/
export { a, defineData };
export { a };
export type { ClientSchema };

@@ -26,6 +26,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.defineData = exports.a = void 0;
exports.a = void 0;
const a = __importStar(require("./src"));
exports.a = a;
const SchemaProcessor_1 = require("./src/SchemaProcessor");
Object.defineProperty(exports, "defineData", { enumerable: true, get: function () { return SchemaProcessor_1.defineData; } });

@@ -32,3 +32,3 @@ import type { DerivedApiDefinition } from '@aws-amplify/amplify-api-next-types-alpha';

* @param models The API and data model definition
* @returns An API and data model definition to be deployed with Amplify (Gen 2) experience (`defineData(...)`)
* @returns An API and data model definition to be deployed with Amplify (Gen 2) experience (`processSchema(...)`)
* or with the Amplify Data CDK construct (`@aws-amplify/data-construct`)

@@ -35,0 +35,0 @@ */

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

const internalSchema = { data };
return (0, SchemaProcessor_1.defineData)({ schema: internalSchema });
return (0, SchemaProcessor_1.processSchema)({ schema: internalSchema });
};

@@ -29,3 +29,3 @@ return { data, transform };

* @param models The API and data model definition
* @returns An API and data model definition to be deployed with Amplify (Gen 2) experience (`defineData(...)`)
* @returns An API and data model definition to be deployed with Amplify (Gen 2) experience (`processSchema(...)`)
* or with the Amplify Data CDK construct (`@aws-amplify/data-construct`)

@@ -32,0 +32,0 @@ */

@@ -8,4 +8,4 @@ import type { InternalSchema } from './ModelSchema';

*/
export declare function defineData(arg: {
export declare function processSchema(arg: {
schema: InternalSchema;
}): DerivedApiDefinition;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defineData = void 0;
exports.processSchema = void 0;
const ModelField_1 = require("./ModelField");

@@ -186,6 +186,6 @@ const Authorization_1 = require("./Authorization");

*/
function defineData(arg) {
function processSchema(arg) {
const schema = schemaPreprocessor(arg.schema);
return { schema, functionSlots: [] };
}
exports.defineData = defineData;
exports.processSchema = processSchema;
{
"name": "@aws-amplify/amplify-api-next-alpha",
"version": "0.6.2",
"version": "0.7.0",
"license": "Apache-2.0",

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

@@ -7,5 +7,4 @@ ## amplify-api-next

import {
default as a,
a,
type ClientSchema,
defineData,
} from '@aws-amplify/amplify-api-next-alpha';

@@ -27,6 +26,3 @@

export type Schema = ClientSchema<typeof schema>;
export default defineData({
schema,
});
export schema
```

@@ -33,0 +29,0 @@

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