@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/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/RestAPI.js
CHANGED
|
@@ -9,6 +9,9 @@ var core_1 = require("@aws-amplify/core");
|
|
|
9
9
|
var logger = new core_1.ConsoleLogger('RestAPI');
|
|
10
10
|
/**
|
|
11
11
|
* Export Cloud Logic APIs
|
|
12
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
13
|
+
* See the migration guide:
|
|
14
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
12
15
|
*/
|
|
13
16
|
var RestAPIClass = /** @class */ (function () {
|
|
14
17
|
/**
|
|
@@ -278,5 +281,10 @@ var RestAPIClass = /** @class */ (function () {
|
|
|
278
281
|
return RestAPIClass;
|
|
279
282
|
}());
|
|
280
283
|
exports.RestAPIClass = RestAPIClass;
|
|
284
|
+
/**
|
|
285
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
286
|
+
* See the migration guide:
|
|
287
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
288
|
+
*/
|
|
281
289
|
exports.RestAPI = new RestAPIClass(null);
|
|
282
290
|
core_1.Amplify.register(exports.RestAPI);
|
package/lib/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/RestClient.js
CHANGED
|
@@ -20,6 +20,9 @@ restClient.get('...')
|
|
|
20
20
|
})
|
|
21
21
|
.catch(err => console.log(err));
|
|
22
22
|
</pre>
|
|
23
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
24
|
+
* See the migration guide:
|
|
25
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
23
26
|
*/
|
|
24
27
|
var RestClient = /** @class */ (function () {
|
|
25
28
|
/**
|