@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api-rest",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.22",
|
|
4
4
|
"description": "Api-rest category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"src"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-amplify/core": "5.8.
|
|
49
|
+
"@aws-amplify/core": "5.8.19",
|
|
50
50
|
"axios": "^1.16.1",
|
|
51
51
|
"tslib": "^1.8.0",
|
|
52
52
|
"url": "0.11.0"
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"lib-esm"
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "d0b923913b92145813d1470bfbdc9b4dfa915c20"
|
|
114
114
|
}
|
package/src/RestAPI.ts
CHANGED
|
@@ -12,6 +12,9 @@ const logger = new Logger('RestAPI');
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Export Cloud Logic APIs
|
|
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 class RestAPIClass {
|
|
17
20
|
/**
|
|
@@ -334,5 +337,10 @@ export class RestAPIClass {
|
|
|
334
337
|
}
|
|
335
338
|
}
|
|
336
339
|
|
|
340
|
+
/**
|
|
341
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
342
|
+
* See the migration guide:
|
|
343
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
344
|
+
*/
|
|
337
345
|
export const RestAPI = new RestAPIClass(null);
|
|
338
346
|
Amplify.register(RestAPI);
|
package/src/RestClient.ts
CHANGED
|
@@ -26,6 +26,9 @@ restClient.get('...')
|
|
|
26
26
|
})
|
|
27
27
|
.catch(err => console.log(err));
|
|
28
28
|
</pre>
|
|
29
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
30
|
+
* See the migration guide:
|
|
31
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
29
32
|
*/
|
|
30
33
|
export class RestClient {
|
|
31
34
|
private _options;
|