@aws-amplify/api 6.0.1-console-preview.047a1dd.0 → 6.0.1-console-preview.4208d73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/API.d.ts +1 -1
- package/lib/index.d.ts +2 -3
- package/lib/index.js +0 -3
- package/lib/index.js.map +1 -1
- package/lib/internals/InternalAPI.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.js.map +1 -1
- package/lib-esm/API.d.ts +1 -1
- package/lib-esm/index.d.ts +2 -3
- package/lib-esm/index.js +3 -3
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/internals/InternalAPI.d.ts +1 -1
- package/lib-esm/types/index.d.ts +1 -1
- package/lib-esm/types/index.js.map +1 -1
- package/package.json +4 -5
- package/src/API.ts +1 -1
- package/src/index.ts +4 -7
- package/src/internals/InternalAPI.ts +1 -1
- package/src/types/index.ts +0 -1
package/lib/API.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AWSAppSyncRealTimeProvider, GraphQLOptions, GraphQLResult, GraphQLQuery, GraphQLSubscription } from '@aws-amplify/api-graphql';
|
|
2
2
|
import { graphql as v6graphql } from '@aws-amplify/api-graphql/internals';
|
|
3
|
-
import Observable from '
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
4
|
import { InternalAPIClass } from './internals/InternalAPI';
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export { GraphQLQuery, GraphQLSubscription } from './types';
|
|
2
|
-
|
|
3
|
-
export { graphqlOperation, GraphQLAuthError, GraphQLAuthMode, } from '@aws-amplify/api-graphql';
|
|
2
|
+
export { GraphQLAuthError } from '@aws-amplify/api-graphql';
|
|
4
3
|
export type { GraphQLResult } from '@aws-amplify/api-graphql';
|
|
5
4
|
declare const generateClient: <T extends Record<any, any> = never>() => {
|
|
6
5
|
graphql: typeof import("@aws-amplify/api-graphql/lib-esm/internals").graphql;
|
|
7
6
|
};
|
|
8
|
-
export {
|
|
7
|
+
export { generateClient };
|
package/lib/index.js
CHANGED
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
var API_1 = require("./API");
|
|
6
|
-
exports.API = API_1.API;
|
|
7
|
-
exports.APIClass = API_1.APIClass;
|
|
8
6
|
var api_graphql_1 = require("@aws-amplify/api-graphql");
|
|
9
|
-
exports.graphqlOperation = api_graphql_1.graphqlOperation;
|
|
10
7
|
exports.GraphQLAuthError = api_graphql_1.GraphQLAuthError;
|
|
11
8
|
var generateClient = API_1.API.generateClient;
|
|
12
9
|
exports.generateClient = generateClient;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAKtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAKtC,6BAA4B;AAE5B,wDAA4D;AAAnD,yCAAA,gBAAgB,CAAA;AAIzB,IAAM,cAAc,GAAG,SAAG,CAAC,cAAc,CAAC;AAEjC,wCAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AWSAppSyncRealTimeProvider, GraphQLOperation, GraphQLOptions, GraphQLResult, OperationTypeNode, GraphQLQuery, GraphQLSubscription } from '@aws-amplify/api-graphql';
|
|
2
2
|
import { CustomUserAgentDetails } from '@aws-amplify/core/internals/utils';
|
|
3
|
-
import Observable from '
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated
|
|
6
6
|
* Use RestApi or GraphQLAPI to reduce your application bundle size
|
package/lib/types/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863
|
|
4
4
|
* This will be removed in future release when CLI and customers moves to recommeneded import styles.
|
|
5
5
|
*/
|
|
6
|
-
export { graphqlOperation, GraphQLAuthError, GraphQLResult,
|
|
6
|
+
export { graphqlOperation, GraphQLAuthError, GraphQLResult, GraphQLQuery, GraphQLSubscription, } from '@aws-amplify/api-graphql';
|
package/lib/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;;AAEtC;;;;GAIG;AACH,wDAMkC;AALjC,yCAAA,gBAAgB,CAAA;AAChB,yCAAA,gBAAgB,CAAA"}
|
package/lib-esm/API.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AWSAppSyncRealTimeProvider, GraphQLOptions, GraphQLResult, GraphQLQuery, GraphQLSubscription } from '@aws-amplify/api-graphql';
|
|
2
2
|
import { graphql as v6graphql } from '@aws-amplify/api-graphql/internals';
|
|
3
|
-
import Observable from '
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
4
|
import { InternalAPIClass } from './internals/InternalAPI';
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export { GraphQLQuery, GraphQLSubscription } from './types';
|
|
2
|
-
|
|
3
|
-
export { graphqlOperation, GraphQLAuthError, GraphQLAuthMode, } from '@aws-amplify/api-graphql';
|
|
2
|
+
export { GraphQLAuthError } from '@aws-amplify/api-graphql';
|
|
4
3
|
export type { GraphQLResult } from '@aws-amplify/api-graphql';
|
|
5
4
|
declare const generateClient: <T extends Record<any, any> = never>() => {
|
|
6
5
|
graphql: typeof import("@aws-amplify/api-graphql/lib-esm/internals").graphql;
|
|
7
6
|
};
|
|
8
|
-
export {
|
|
7
|
+
export { generateClient };
|
package/lib-esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import { API
|
|
4
|
-
export {
|
|
3
|
+
import { API } from './API';
|
|
4
|
+
export { GraphQLAuthError } from '@aws-amplify/api-graphql';
|
|
5
5
|
var generateClient = API.generateClient;
|
|
6
|
-
export {
|
|
6
|
+
export { generateClient };
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/lib-esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC,OAAO,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAKtC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAI5D,IAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AWSAppSyncRealTimeProvider, GraphQLOperation, GraphQLOptions, GraphQLResult, OperationTypeNode, GraphQLQuery, GraphQLSubscription } from '@aws-amplify/api-graphql';
|
|
2
2
|
import { CustomUserAgentDetails } from '@aws-amplify/core/internals/utils';
|
|
3
|
-
import Observable from '
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated
|
|
6
6
|
* Use RestApi or GraphQLAPI to reduce your application bundle size
|
package/lib-esm/types/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863
|
|
4
4
|
* This will be removed in future release when CLI and customers moves to recommeneded import styles.
|
|
5
5
|
*/
|
|
6
|
-
export { graphqlOperation, GraphQLAuthError, GraphQLResult,
|
|
6
|
+
export { graphqlOperation, GraphQLAuthError, GraphQLResult, GraphQLQuery, GraphQLSubscription, } from '@aws-amplify/api-graphql';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC;;;;GAIG;AACH,OAAO,EACN,gBAAgB,EAChB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC;;;;GAIG;AACH,OAAO,EACN,gBAAgB,EAChB,gBAAgB,GAIhB,MAAM,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api",
|
|
3
|
-
"version": "6.0.1-console-preview.
|
|
3
|
+
"version": "6.0.1-console-preview.4208d73.0+4208d73",
|
|
4
4
|
"description": "Api category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://aws-amplify.github.io/",
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/zen-observable": "^0.8.0",
|
|
52
51
|
"typescript": "5.1.6"
|
|
53
52
|
},
|
|
54
53
|
"files": [
|
|
@@ -59,8 +58,8 @@
|
|
|
59
58
|
"internals"
|
|
60
59
|
],
|
|
61
60
|
"dependencies": {
|
|
62
|
-
"@aws-amplify/api-graphql": "4.0.1-console-preview.
|
|
63
|
-
"@aws-amplify/api-rest": "4.0.1-console-preview.
|
|
61
|
+
"@aws-amplify/api-graphql": "4.0.1-console-preview.4208d73.0+4208d73",
|
|
62
|
+
"@aws-amplify/api-rest": "4.0.1-console-preview.4208d73.0+4208d73",
|
|
64
63
|
"tslib": "^2.6.1"
|
|
65
64
|
},
|
|
66
65
|
"size-limit": [
|
|
@@ -115,5 +114,5 @@
|
|
|
115
114
|
"lib-esm"
|
|
116
115
|
]
|
|
117
116
|
},
|
|
118
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "4208d73da3e1b5e256400acbaa1c6447e329e378"
|
|
119
118
|
}
|
package/src/API.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
GraphQLSubscription,
|
|
9
9
|
} from '@aws-amplify/api-graphql';
|
|
10
10
|
import { graphql as v6graphql } from '@aws-amplify/api-graphql/internals';
|
|
11
|
-
import Observable from '
|
|
11
|
+
import { Observable } from 'rxjs';
|
|
12
12
|
import { InternalAPIClass } from './internals/InternalAPI';
|
|
13
13
|
|
|
14
14
|
/**
|
package/src/index.ts
CHANGED
|
@@ -4,15 +4,12 @@
|
|
|
4
4
|
// TODO(v6): revisit exports
|
|
5
5
|
|
|
6
6
|
export { GraphQLQuery, GraphQLSubscription } from './types';
|
|
7
|
-
import { API
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
GraphQLAuthError,
|
|
11
|
-
GraphQLAuthMode,
|
|
12
|
-
} from '@aws-amplify/api-graphql';
|
|
7
|
+
import { API } from './API';
|
|
8
|
+
|
|
9
|
+
export { GraphQLAuthError } from '@aws-amplify/api-graphql';
|
|
13
10
|
|
|
14
11
|
export type { GraphQLResult } from '@aws-amplify/api-graphql';
|
|
15
12
|
|
|
16
13
|
const generateClient = API.generateClient;
|
|
17
14
|
|
|
18
|
-
export {
|
|
15
|
+
export { generateClient };
|