You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@aws-amplify/api

Package Overview
Dependencies
Maintainers
9
Versions
2289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/api - npm Package Compare versions

Comparing version

to
6.1.9-graphql-multi-client.27123f5.0

4

dist/cjs/API.js

@@ -13,5 +13,5 @@ 'use strict';

*/
function generateClient(options = {}) {
function generateClient(options) {
return (0, internals_1.generateClient)({
...options,
...(options || {}),
amplify: core_1.Amplify,

@@ -18,0 +18,0 @@ });

@@ -1,2 +0,3 @@

import { CommonPublicClientOptions, V6Client } from '@aws-amplify/api-graphql';
import { V6Client } from '@aws-amplify/api-graphql';
import { CommonPublicClientOptions, DefaultCommonClientOptions } from '@aws-amplify/api-graphql/internals';
/**

@@ -8,2 +9,2 @@ * Generates an API client that can work with models or raw GraphQL

*/
export declare function generateClient<T extends Record<any, any> = never>(options?: CommonPublicClientOptions): V6Client<T>;
export declare function generateClient<T extends Record<any, any> = never, Options extends CommonPublicClientOptions = DefaultCommonClientOptions>(options?: Options): V6Client<T, Options>;
{
"name": "@aws-amplify/api",
"version": "6.1.8",
"version": "6.1.9-graphql-multi-client.27123f5.0+27123f5",
"description": "Api category of aws-amplify",

@@ -71,2 +71,3 @@ "main": "./dist/cjs/index.js",

"devDependencies": {
"jest-fetch-mock": "3.0.3",
"typescript": "5.0.2"

@@ -83,7 +84,7 @@ },

"dependencies": {
"@aws-amplify/api-graphql": "4.6.6",
"@aws-amplify/api-rest": "4.0.63",
"@aws-amplify/api-graphql": "4.6.7-graphql-multi-client.27123f5.0+27123f5",
"@aws-amplify/api-rest": "4.0.64-graphql-multi-client.27123f5.0+27123f5",
"tslib": "^2.5.0"
},
"gitHead": "8a8097a71e5adcafb546e98cf0538ccb51ff8fbc"
"gitHead": "27123f53648289529d58f8075117282d1bfda03b"
}
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { CommonPublicClientOptions, V6Client } from '@aws-amplify/api-graphql';
import { generateClient as internalGenerateClient } from '@aws-amplify/api-graphql/internals';
import { V6Client } from '@aws-amplify/api-graphql';
import {
CommonPublicClientOptions,
DefaultCommonClientOptions,
generateClient as internalGenerateClient,
} from '@aws-amplify/api-graphql/internals';
import { Amplify } from '@aws-amplify/core';

@@ -13,9 +17,10 @@

*/
export function generateClient<T extends Record<any, any> = never>(
options: CommonPublicClientOptions = {},
): V6Client<T> {
export function generateClient<
T extends Record<any, any> = never,
Options extends CommonPublicClientOptions = DefaultCommonClientOptions,
>(options?: Options): V6Client<T, Options> {
return internalGenerateClient({
...options,
...(options || ({} as any)),
amplify: Amplify,
}) as unknown as V6Client<T>;
}) as unknown as V6Client<T, Options>;
}

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