@aws-amplify/api-rest 3.5.21 → 3.5.22
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/RestAPI.d.ts +8 -0
- package/lib/RestAPI.js +8 -0
- package/lib/RestClient.d.ts +3 -0
- package/lib/RestClient.js +3 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib-esm/RestAPI.d.ts +8 -0
- package/lib-esm/RestAPI.js +8 -0
- package/lib-esm/RestClient.d.ts +3 -0
- package/lib-esm/RestClient.js +3 -0
- package/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/RestAPI.ts +8 -0
- package/src/RestClient.ts +3 -0
package/lib-esm/RestAPI.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Export Cloud Logic APIs
|
|
3
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
4
|
+
* See the migration guide:
|
|
5
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
3
6
|
*/
|
|
4
7
|
export declare class RestAPIClass {
|
|
5
8
|
/**
|
|
@@ -105,4 +108,9 @@ export declare class RestAPIClass {
|
|
|
105
108
|
*/
|
|
106
109
|
private getEndpointInfo;
|
|
107
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
113
|
+
* See the migration guide:
|
|
114
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
115
|
+
*/
|
|
108
116
|
export declare const RestAPI: RestAPIClass;
|
package/lib-esm/RestAPI.js
CHANGED
|
@@ -6,6 +6,9 @@ import { Amplify, ConsoleLogger as Logger, Credentials, } from '@aws-amplify/cor
|
|
|
6
6
|
var logger = new Logger('RestAPI');
|
|
7
7
|
/**
|
|
8
8
|
* Export Cloud Logic APIs
|
|
9
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
10
|
+
* See the migration guide:
|
|
11
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
9
12
|
*/
|
|
10
13
|
var RestAPIClass = /** @class */ (function () {
|
|
11
14
|
/**
|
|
@@ -275,5 +278,10 @@ var RestAPIClass = /** @class */ (function () {
|
|
|
275
278
|
return RestAPIClass;
|
|
276
279
|
}());
|
|
277
280
|
export { RestAPIClass };
|
|
281
|
+
/**
|
|
282
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
283
|
+
* See the migration guide:
|
|
284
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
285
|
+
*/
|
|
278
286
|
export var RestAPI = new RestAPIClass(null);
|
|
279
287
|
Amplify.register(RestAPI);
|
package/lib-esm/RestClient.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ restClient.get('...')
|
|
|
12
12
|
})
|
|
13
13
|
.catch(err => console.log(err));
|
|
14
14
|
</pre>
|
|
15
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
16
|
+
* See the migration guide:
|
|
17
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
15
18
|
*/
|
|
16
19
|
export declare class RestClient {
|
|
17
20
|
private _options;
|
package/lib-esm/RestClient.js
CHANGED
|
@@ -17,6 +17,9 @@ restClient.get('...')
|
|
|
17
17
|
})
|
|
18
18
|
.catch(err => console.log(err));
|
|
19
19
|
</pre>
|
|
20
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
21
|
+
* See the migration guide:
|
|
22
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
20
23
|
*/
|
|
21
24
|
var RestClient = /** @class */ (function () {
|
|
22
25
|
/**
|