🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@aws-amplify/api-graphql

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/api-graphql - npm Package Compare versions

Comparing version

to
4.7.16-local-stack.00864ae.0

'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.appsyncRequest = void 0;
exports.appsyncRequest = appsyncRequest;
const utils_1 = require("@aws-amplify/core/internals/utils");

@@ -49,3 +49,2 @@ const internals_1 = require("@aws-amplify/api-rest/internals");

}
exports.appsyncRequest = appsyncRequest;
/**

@@ -52,0 +51,0 @@ * Computes all the necessary HTTP headers for the request based on:

@@ -6,3 +6,5 @@ 'use strict';

Object.defineProperty(exports, "__esModule", { value: true });
exports.closeAll = exports.post = exports.connect = void 0;
exports.connect = connect;
exports.post = post;
exports.closeAll = closeAll;
const core_1 = require("@aws-amplify/core");

@@ -88,3 +90,2 @@ const utils_1 = require("@aws-amplify/core/internals/utils");

}
exports.connect = connect;
/**

@@ -129,3 +130,2 @@ * @experimental API may change in future versions

}
exports.post = post;
/**

@@ -145,3 +145,2 @@ * @experimental API may change in future versions

}
exports.closeAll = closeAll;
//# sourceMappingURL=index.js.map
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateClient = void 0;
exports.generateClient = generateClient;
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

@@ -70,3 +70,2 @@ // SPDX-License-Identifier: Apache-2.0

}
exports.generateClient = generateClient;
const generateModelsPropertyOnAmplifyConfigure = (clientRef) => {

@@ -73,0 +72,0 @@ core_1.Hub.listen('core', coreEvent => {

@@ -6,3 +6,3 @@ 'use strict';

Object.defineProperty(exports, "__esModule", { value: true });
exports.headerBasedAuth = void 0;
exports.headerBasedAuth = headerBasedAuth;
const errors_1 = require("../utils/errors");

@@ -64,3 +64,2 @@ const constants_1 = require("../utils/errors/constants");

}
exports.headerBasedAuth = headerBasedAuth;
//# sourceMappingURL=graphqlAuth.js.map

@@ -6,3 +6,3 @@ 'use strict';

Object.defineProperty(exports, "__esModule", { value: true });
exports.graphqlRequest = void 0;
exports.graphqlRequest = graphqlRequest;
const utils_1 = require("@aws-amplify/core/internals/utils");

@@ -20,3 +20,2 @@ const internals_1 = require("@aws-amplify/api-rest/internals");

}
exports.graphqlRequest = graphqlRequest;
//# sourceMappingURL=graphqlRequest.js.map

@@ -6,3 +6,3 @@ 'use strict';

Object.defineProperty(exports, "__esModule", { value: true });
exports.generateClientWithAmplifyInstance = void 0;
exports.generateClientWithAmplifyInstance = generateClientWithAmplifyInstance;
const runtime_1 = require("@aws-amplify/data-schema/runtime");

@@ -49,3 +49,2 @@ const types_1 = require("../../types");

}
exports.generateClientWithAmplifyInstance = generateClientWithAmplifyInstance;
//# sourceMappingURL=generateClientWithAmplifyInstance.js.map

@@ -6,7 +6,6 @@ 'use strict';

Object.defineProperty(exports, "__esModule", { value: true });
exports.isApiGraphQLConfig = void 0;
exports.isApiGraphQLConfig = isApiGraphQLConfig;
function isApiGraphQLConfig(apiGraphQLConfig) {
return apiGraphQLConfig !== undefined;
}
exports.isApiGraphQLConfig = isApiGraphQLConfig;
//# sourceMappingURL=isApiGraphQLProviderConfig.js.map

@@ -6,7 +6,6 @@ 'use strict';

Object.defineProperty(exports, "__esModule", { value: true });
exports.isConfigureEventWithResourceConfig = void 0;
exports.isConfigureEventWithResourceConfig = isConfigureEventWithResourceConfig;
function isConfigureEventWithResourceConfig(payload) {
return payload.event === 'configure';
}
exports.isConfigureEventWithResourceConfig = isConfigureEventWithResourceConfig;
//# sourceMappingURL=isConfigureEventWithResourceConfig.js.map

@@ -6,3 +6,3 @@ 'use strict';

Object.defineProperty(exports, "__esModule", { value: true });
exports.isGraphQLResponseWithErrors = void 0;
exports.isGraphQLResponseWithErrors = isGraphQLResponseWithErrors;
function isGraphQLResponseWithErrors(response) {

@@ -15,3 +15,2 @@ if (!response) {

}
exports.isGraphQLResponseWithErrors = isGraphQLResponseWithErrors;
//# sourceMappingURL=isGraphQLResponseWithErrors.js.map
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCancelError = exports.cancel = exports.graphql = void 0;
exports.graphql = graphql;
exports.cancel = cancel;
exports.isCancelError = isCancelError;
const GraphQLAPI_1 = require("../GraphQLAPI");

@@ -137,3 +139,2 @@ const types_1 = require("../types");

}
exports.graphql = graphql;
/**

@@ -147,3 +148,2 @@ * Cancels an inflight request. Only applicable for graphql queries and mutations

}
exports.cancel = cancel;
/**

@@ -157,3 +157,2 @@ * Checks to see if an error thrown is from an api request cancellation

}
exports.isCancelError = isCancelError;
//# sourceMappingURL=v6.js.map

@@ -16,2 +16,3 @@ 'use strict';

exports.CONNECTION_STATE_CHANGE = 'ConnectionStateChange';
var MESSAGE_TYPES;
(function (MESSAGE_TYPES) {

@@ -98,3 +99,4 @@ /**

MESSAGE_TYPES["EVENT_COMPLETE"] = "unsubscribe_success";
})(exports.MESSAGE_TYPES || (exports.MESSAGE_TYPES = {}));
})(MESSAGE_TYPES || (exports.MESSAGE_TYPES = MESSAGE_TYPES = {}));
var SUBSCRIPTION_STATUS;
(function (SUBSCRIPTION_STATUS) {

@@ -104,3 +106,4 @@ SUBSCRIPTION_STATUS[SUBSCRIPTION_STATUS["PENDING"] = 0] = "PENDING";

SUBSCRIPTION_STATUS[SUBSCRIPTION_STATUS["FAILED"] = 2] = "FAILED";
})(exports.SUBSCRIPTION_STATUS || (exports.SUBSCRIPTION_STATUS = {}));
})(SUBSCRIPTION_STATUS || (exports.SUBSCRIPTION_STATUS = SUBSCRIPTION_STATUS = {}));
var SOCKET_STATUS;
(function (SOCKET_STATUS) {

@@ -110,3 +113,3 @@ SOCKET_STATUS[SOCKET_STATUS["CLOSED"] = 0] = "CLOSED";

SOCKET_STATUS[SOCKET_STATUS["CONNECTING"] = 2] = "CONNECTING";
})(exports.SOCKET_STATUS || (exports.SOCKET_STATUS = {}));
})(SOCKET_STATUS || (exports.SOCKET_STATUS = SOCKET_STATUS = {}));
exports.AWS_APPSYNC_REALTIME_HEADERS = {

@@ -113,0 +116,0 @@ accept: 'application/json, text/javascript',

@@ -6,3 +6,3 @@ 'use strict';

Object.defineProperty(exports, "__esModule", { value: true });
exports.generateClient = void 0;
exports.generateClient = generateClient;
const adapter_core_1 = require("@aws-amplify/core/internals/adapter-core");

@@ -43,3 +43,2 @@ const server_1 = require("../internals/server");

}
exports.generateClient = generateClient;
//# sourceMappingURL=generateClient.js.map
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInternals = exports.__endpoint = exports.__headers = exports.__apiKey = exports.__authToken = exports.__authMode = exports.__amplify = exports.GraphQLAuthError = exports.ConnectionState = exports.CONTROL_MSG = void 0;
exports.__endpoint = exports.__headers = exports.__apiKey = exports.__authToken = exports.__authMode = exports.__amplify = exports.GraphQLAuthError = exports.ConnectionState = exports.CONTROL_MSG = void 0;
exports.getInternals = getInternals;
var PubSub_1 = require("./PubSub");
Object.defineProperty(exports, "CONTROL_MSG", { enumerable: true, get: function () { return PubSub_1.CONTROL_MSG; } });
Object.defineProperty(exports, "ConnectionState", { enumerable: true, get: function () { return PubSub_1.ConnectionState; } });
var GraphQLAuthError;
(function (GraphQLAuthError) {

@@ -14,3 +16,3 @@ GraphQLAuthError["NO_API_KEY"] = "No api-key configured";

GraphQLAuthError["NO_AUTH_TOKEN"] = "No auth token specified";
})(exports.GraphQLAuthError || (exports.GraphQLAuthError = {}));
})(GraphQLAuthError || (exports.GraphQLAuthError = GraphQLAuthError = {}));
exports.__amplify = Symbol('amplify');

@@ -33,3 +35,2 @@ exports.__authMode = Symbol('authMode');

}
exports.getInternals = getInternals;
//# sourceMappingURL=index.js.map

@@ -5,2 +5,3 @@ 'use strict';

exports.ConnectionState = exports.CONTROL_MSG = void 0;
var CONTROL_MSG;
(function (CONTROL_MSG) {

@@ -12,3 +13,5 @@ CONTROL_MSG["CONNECTION_CLOSED"] = "Connection closed";

CONTROL_MSG["TIMEOUT_DISCONNECT"] = "Timeout disconnect";
})(exports.CONTROL_MSG || (exports.CONTROL_MSG = {}));
})(CONTROL_MSG || (exports.CONTROL_MSG = CONTROL_MSG = {}));
/** @enum {string} */
var ConnectionState;
(function (ConnectionState) {

@@ -47,3 +50,3 @@ /*

ConnectionState["ConnectedPendingKeepAlive"] = "ConnectedPendingKeepAlive";
})(exports.ConnectionState || (exports.ConnectionState = {}));
})(ConnectionState || (exports.ConnectionState = ConnectionState = {}));
//# sourceMappingURL=PubSub.js.map

@@ -6,3 +6,3 @@ 'use strict';

Object.defineProperty(exports, "__esModule", { value: true });
exports.assertValidationError = void 0;
exports.assertValidationError = assertValidationError;
const GraphQLApiError_1 = require("./GraphQLApiError");

@@ -19,3 +19,2 @@ const validation_1 = require("./validation");

}
exports.assertValidationError = assertValidationError;
//# sourceMappingURL=assertValidationError.js.map

@@ -6,3 +6,3 @@ 'use strict';

Object.defineProperty(exports, "__esModule", { value: true });
exports.repackageUnauthorizedError = void 0;
exports.repackageUnauthorizedError = repackageUnauthorizedError;
/**

@@ -27,3 +27,2 @@ * Checks to see if the given response or subscription message contains an

}
exports.repackageUnauthorizedError = repackageUnauthorizedError;
function isUnauthorizedError(error) {

@@ -30,0 +29,0 @@ // Error pattern corresponding to appsync calls

@@ -12,3 +12,3 @@ 'use strict';

APIValidationErrorCode["NoCustomEndpoint"] = "NoCustomEndpoint";
})(APIValidationErrorCode = exports.APIValidationErrorCode || (exports.APIValidationErrorCode = {}));
})(APIValidationErrorCode || (exports.APIValidationErrorCode = APIValidationErrorCode = {}));
exports.validationErrorMap = {

@@ -15,0 +15,0 @@ [APIValidationErrorCode.NoAuthSession]: {

@@ -10,3 +10,3 @@ 'use strict';

ReconnectEvent["HALT_RECONNECT"] = "HALT_RECONNECT";
})(ReconnectEvent = exports.ReconnectEvent || (exports.ReconnectEvent = {}));
})(ReconnectEvent || (exports.ReconnectEvent = ReconnectEvent = {}));
/**

@@ -13,0 +13,0 @@ * Captures the reconnect event logic used to determine when to reconnect to PubSub providers.

@@ -9,3 +9,3 @@ import { AWSAppSyncRealTimeProviderOptions } from '../AWSAppSyncRealTimeProvider';

*/
export declare const queryParamsFromCustomHeaders: (headers?: AWSAppSyncRealTimeProviderOptions['additionalCustomHeaders']) => URLSearchParams;
export declare const queryParamsFromCustomHeaders: (headers?: AWSAppSyncRealTimeProviderOptions["additionalCustomHeaders"]) => URLSearchParams;
/**

@@ -12,0 +12,0 @@ * Normalizes AppSync realtime endpoint URL

@@ -56,3 +56,3 @@ export { AMPLIFY_SYMBOL } from '@aws-amplify/core/internals/utils';

*/
GQL_ERROR = "error",
GQL_ERROR = "error",// Server -> Client
/**

@@ -59,0 +59,0 @@ * Client -> Server message.

@@ -7,6 +7,6 @@ import { AmplifyClassV6 } from '@aws-amplify/core';

headers: ((options?: {
query?: string | undefined;
variables?: Record<string, import("@aws-amplify/core/internals/utils").DocumentType> | undefined;
} | undefined) => Promise<Record<string, unknown> | import("@aws-amplify/core/internals/aws-client-utils").Headers>) | undefined;
query?: string;
variables?: Record<string, import("@aws-amplify/core/internals/utils").DocumentType>;
}) => Promise<import("@aws-amplify/core/internals/aws-client-utils").Headers | Record<string, unknown>>) | undefined;
withCredentials: boolean | undefined;
};
{
"name": "@aws-amplify/api-graphql",
"version": "4.7.15",
"version": "4.7.16-local-stack.00864ae.0+00864ae",
"description": "Api-graphql category of aws-amplify",

@@ -74,7 +74,2 @@ "main": "./dist/cjs/index.js",

"homepage": "https://aws-amplify.github.io/",
"devDependencies": {
"@rollup/plugin-typescript": "11.1.5",
"rollup": "^4.9.6",
"typescript": "5.0.2"
},
"files": [

@@ -88,4 +83,4 @@ "dist/cjs",

"dependencies": {
"@aws-amplify/api-rest": "4.1.4",
"@aws-amplify/core": "6.11.4",
"@aws-amplify/api-rest": "4.1.5-local-stack.00864ae.0+00864ae",
"@aws-amplify/core": "6.11.5-local-stack.00864ae.0+00864ae",
"@aws-amplify/data-schema": "^1.7.0",

@@ -106,3 +101,3 @@ "@aws-sdk/types": "3.387.0",

],
"gitHead": "f2ac9929610f7f878f124083ceaf03465113cd44"
"gitHead": "00864aec571d0509655eea0673e896d69d434972"
}

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

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

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

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