1 | {
|
2 | "name": "aws-amplify",
|
3 | "version": "6.0.17",
|
4 | "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.",
|
5 | "main": "./dist/cjs/index.js",
|
6 | "module": "./dist/esm/index.mjs",
|
7 | "typings": "./dist/esm/index.d.ts",
|
8 | "react-native": "./src/index.ts",
|
9 | "exports": {
|
10 | ".": {
|
11 | "types": "./dist/esm/index.d.ts",
|
12 | "import": "./dist/esm/index.mjs",
|
13 | "require": "./dist/cjs/index.js",
|
14 | "react-native": "./src/index.ts"
|
15 | },
|
16 | "./utils": {
|
17 | "types": "./dist/esm/utils/index.d.ts",
|
18 | "import": "./dist/esm/utils/index.mjs",
|
19 | "require": "./dist/cjs/utils/index.js",
|
20 | "react-native": "./src/utils/index.ts"
|
21 | },
|
22 | "./auth": {
|
23 | "types": "./dist/esm/auth/index.d.ts",
|
24 | "import": "./dist/esm/auth/index.mjs",
|
25 | "require": "./dist/cjs/auth/index.js",
|
26 | "react-native": "./src/auth/index.ts"
|
27 | },
|
28 | "./api": {
|
29 | "types": "./dist/esm/api/index.d.ts",
|
30 | "import": "./dist/esm/api/index.mjs",
|
31 | "require": "./dist/cjs/api/index.js",
|
32 | "react-native": "./src/api/index.ts"
|
33 | },
|
34 | "./api/server": {
|
35 | "types": "./dist/esm/api/server.d.ts",
|
36 | "import": "./dist/esm/api/server.mjs",
|
37 | "require": "./dist/cjs/api/server.js"
|
38 | },
|
39 | "./data": {
|
40 | "types": "./dist/esm/api/index.d.ts",
|
41 | "import": "./dist/esm/api/index.mjs",
|
42 | "require": "./dist/cjs/api/index.js",
|
43 | "react-native": "./src/api/index.ts"
|
44 | },
|
45 | "./data/server": {
|
46 | "types": "./dist/esm/api/server.d.ts",
|
47 | "import": "./dist/esm/api/server.mjs",
|
48 | "require": "./dist/cjs/api/server.js"
|
49 | },
|
50 | "./datastore": {
|
51 | "types": "./dist/esm/datastore/index.d.ts",
|
52 | "import": "./dist/esm/datastore/index.mjs",
|
53 | "require": "./dist/cjs/datastore/index.js",
|
54 | "react-native": "./src/datastore/index.ts"
|
55 | },
|
56 | "./auth/cognito": {
|
57 | "types": "./dist/esm/auth/cognito/index.d.ts",
|
58 | "import": "./dist/esm/auth/cognito/index.mjs",
|
59 | "require": "./dist/cjs/auth/cognito/index.js",
|
60 | "react-native": "./src/auth/cognito/index.ts"
|
61 | },
|
62 | "./auth/cognito/server": {
|
63 | "types": "./dist/esm/auth/cognito/server/index.d.ts",
|
64 | "import": "./dist/esm/auth/cognito/server/index.mjs",
|
65 | "require": "./dist/cjs/auth/cognito/server/index.js"
|
66 | },
|
67 | "./auth/server": {
|
68 | "types": "./dist/esm/auth/server.d.ts",
|
69 | "import": "./dist/esm/auth/server.mjs",
|
70 | "require": "./dist/cjs/auth/server.js"
|
71 | },
|
72 | "./auth/enable-oauth-listener": {
|
73 | "types": "./dist/esm/auth/enableOAuthListener.d.ts",
|
74 | "import": "./dist/esm/auth/enableOAuthListener.mjs",
|
75 | "require": "./dist/cjs/auth/enableOAuthListener.js"
|
76 | },
|
77 | "./analytics": {
|
78 | "types": "./dist/esm/analytics/index.d.ts",
|
79 | "import": "./dist/esm/analytics/index.mjs",
|
80 | "require": "./dist/cjs/analytics/index.js",
|
81 | "react-native": "./src/analytics/index.ts"
|
82 | },
|
83 | "./analytics/pinpoint": {
|
84 | "types": "./dist/esm/analytics/pinpoint/index.d.ts",
|
85 | "import": "./dist/esm/analytics/pinpoint/index.mjs",
|
86 | "require": "./dist/cjs/analytics/pinpoint/index.js",
|
87 | "react-native": "./src/analytics/pinpoint/index.ts"
|
88 | },
|
89 | "./analytics/kinesis": {
|
90 | "types": "./dist/esm/analytics/kinesis/index.d.ts",
|
91 | "import": "./dist/esm/analytics/kinesis/index.mjs",
|
92 | "require": "./dist/cjs/analytics/kinesis/index.js",
|
93 | "react-native": "./src/analytics/kinesis/index.ts"
|
94 | },
|
95 | "./analytics/kinesis-firehose": {
|
96 | "types": "./dist/esm/analytics/kinesis-firehose/index.d.ts",
|
97 | "import": "./dist/esm/analytics/kinesis-firehose/index.mjs",
|
98 | "require": "./dist/cjs/analytics/kinesis-firehose/index.js",
|
99 | "react-native": "./src/analytics/kinesis-firehose/index.ts"
|
100 | },
|
101 | "./analytics/personalize": {
|
102 | "types": "./dist/esm/analytics/personalize/index.d.ts",
|
103 | "import": "./dist/esm/analytics/personalize/index.mjs",
|
104 | "require": "./dist/cjs/analytics/personalize/index.js",
|
105 | "react-native": "./src/analytics/personalize/index.ts"
|
106 | },
|
107 | "./storage": {
|
108 | "types": "./dist/esm/storage/index.d.ts",
|
109 | "import": "./dist/esm/storage/index.mjs",
|
110 | "require": "./dist/cjs/storage/index.js",
|
111 | "react-native": "./src/storage/index.ts"
|
112 | },
|
113 | "./storage/s3": {
|
114 | "types": "./dist/esm/storage/s3/index.d.ts",
|
115 | "import": "./dist/esm/storage/s3/index.mjs",
|
116 | "require": "./dist/cjs/storage/s3/index.js",
|
117 | "react-native": "./src/storage/s3/index.ts"
|
118 | },
|
119 | "./storage/server": {
|
120 | "types": "./dist/esm/storage/server.d.ts",
|
121 | "import": "./dist/esm/storage/server.mjs",
|
122 | "require": "./dist/cjs/storage/server.js"
|
123 | },
|
124 | "./storage/s3/server": {
|
125 | "types": "./dist/esm/storage/s3/server.d.ts",
|
126 | "import": "./dist/esm/storage/s3/server.mjs",
|
127 | "require": "./dist/cjs/storage/s3/server.js"
|
128 | },
|
129 | "./in-app-messaging": {
|
130 | "types": "./dist/esm/in-app-messaging/index.d.ts",
|
131 | "import": "./dist/esm/in-app-messaging/index.mjs",
|
132 | "require": "./dist/cjs/in-app-messaging/index.js",
|
133 | "react-native": "./src/in-app-messaging/index.ts"
|
134 | },
|
135 | "./push-notifications": {
|
136 | "types": "./dist/esm/push-notifications/index.d.ts",
|
137 | "import": "./dist/esm/push-notifications/index.mjs",
|
138 | "require": "./dist/cjs/push-notifications/index.js",
|
139 | "react-native": "./src/push-notifications/index.ts"
|
140 | },
|
141 | "./in-app-messaging/pinpoint": {
|
142 | "types": "./dist/esm/in-app-messaging/pinpoint/index.d.ts",
|
143 | "import": "./dist/esm/in-app-messaging/pinpoint/index.mjs",
|
144 | "require": "./dist/cjs/in-app-messaging/pinpoint/index.js",
|
145 | "react-native": "./src/in-app-messaging/pinpoint/index.ts"
|
146 | },
|
147 | "./push-notifications/pinpoint": {
|
148 | "types": "./dist/esm/push-notifications/pinpoint/index.d.ts",
|
149 | "import": "./dist/esm/push-notifications/pinpoint/index.mjs",
|
150 | "require": "./dist/cjs/push-notifications/pinpoint/index.js",
|
151 | "react-native": "./src/push-notifications/pinpoint/index.ts"
|
152 | },
|
153 | "./adapter-core": {
|
154 | "types": "./dist/esm/adapterCore/index.d.ts",
|
155 | "import": "./dist/esm/adapterCore/index.mjs",
|
156 | "require": "./dist/cjs/adapterCore/index.js"
|
157 | },
|
158 | "./package.json": "./package.json"
|
159 | },
|
160 | "typesVersions": {
|
161 | ">=4.2": {
|
162 | "api": [
|
163 | "./dist/esm/api/index.d.ts"
|
164 | ],
|
165 | "data": [
|
166 | "./dist/esm/api/index.d.ts"
|
167 | ],
|
168 | "api/server": [
|
169 | "./dist/esm/api/server.d.ts"
|
170 | ],
|
171 | "utils": [
|
172 | "./dist/esm/utils/index.d.ts"
|
173 | ],
|
174 | "auth": [
|
175 | "./dist/esm/auth/index.d.ts"
|
176 | ],
|
177 | "auth/cognito": [
|
178 | "./dist/esm/auth/cognito/index.d.ts"
|
179 | ],
|
180 | "auth/cognito/server": [
|
181 | "./dist/esm/auth/cognito/server/index.d.ts"
|
182 | ],
|
183 | "auth/server": [
|
184 | "./dist/esm/auth/server.d.ts"
|
185 | ],
|
186 | "auth/enable-oauth-listener": [
|
187 | "./dist/esm/auth/enableOAuthListener.ts.d.ts"
|
188 | ],
|
189 | "analytics": [
|
190 | "./dist/esm/analytics/index.d.ts"
|
191 | ],
|
192 | "analytics/pinpoint": [
|
193 | "./dist/esm/analytics/pinpoint/index.d.ts"
|
194 | ],
|
195 | "analytics/kinesis": [
|
196 | "./dist/esm/analytics/kinesis/index.d.ts"
|
197 | ],
|
198 | "analytics/kinesis-firehose": [
|
199 | "./dist/esm/analytics/kinesis-firehose/index.d.ts"
|
200 | ],
|
201 | "analytics/personalize": [
|
202 | "./dist/esm/analytics/personalize/index.d.ts"
|
203 | ],
|
204 | "storage": [
|
205 | "./dist/esm/storage/index.d.ts"
|
206 | ],
|
207 | "storage/s3": [
|
208 | "./dist/esm/storage/s3/index.d.ts"
|
209 | ],
|
210 | "storage/server": [
|
211 | "./dist/esm/storage/server.d.ts"
|
212 | ],
|
213 | "storage/s3/server": [
|
214 | "./dist/esm/storage/s3/server.d.ts"
|
215 | ],
|
216 | "in-app-messaging": [
|
217 | "./dist/esm/in-app-messaging/index.d.ts"
|
218 | ],
|
219 | "in-app-messaging/pinpoint": [
|
220 | "./dist/esm/in-app-messaging/pinpoint/index.d.ts"
|
221 | ],
|
222 | "push-notifications": [
|
223 | "./dist/esm/push-notifications/index.d.ts"
|
224 | ],
|
225 | "push-notifications/pinpoint": [
|
226 | "./dist/esm/push-notifications/pinpoint/index.d.ts"
|
227 | ],
|
228 | "adapter-core": [
|
229 | "./dist/esm/adapterCore/index.d.ts"
|
230 | ]
|
231 | }
|
232 | },
|
233 | "sideEffects": [
|
234 | "./dist/esm/auth/enableOAuthListener.mjs",
|
235 | "./dist/cjs/auth/enableOAuthListener.js"
|
236 | ],
|
237 | "scripts": {
|
238 | "test": "npm run lint && jest -w 1 --coverage --logHeapUsage",
|
239 | "test:size": "size-limit",
|
240 | "build-with-test": "npm run clean && npm test && tsc && webpack -p",
|
241 | "build:umd": "webpack && webpack --config ./webpack.config.dev.js",
|
242 | "build:esm-cjs": "rollup -c rollup.config.mjs",
|
243 | "build:watch": "npm run build:esm-cjs -- --watch",
|
244 | "build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
|
245 | "clean": "rimraf lib-esm lib dist",
|
246 | "format": "echo \"Not implemented\"",
|
247 | "lint": "eslint '**/*.{ts,tsx}' && npm run ts-coverage",
|
248 | "lint:fix": "eslint '**/*.{ts,tsx}' --fix",
|
249 | "generate-docs-local": "typedoc --out docs src",
|
250 | "generate-docs-root": "typedoc --out ../../docs src",
|
251 | "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 93.26"
|
252 | },
|
253 | "repository": {
|
254 | "type": "git",
|
255 | "url": "https://github.com/aws-amplify/amplify-js.git"
|
256 | },
|
257 | "author": "Amazon Web Services",
|
258 | "license": "Apache-2.0",
|
259 | "bugs": {
|
260 | "url": "https://github.com/aws-amplify/amplify-js/issues"
|
261 | },
|
262 | "homepage": "https://aws-amplify.github.io/",
|
263 | "files": [
|
264 | "dist/cjs",
|
265 | "dist/esm",
|
266 | "src",
|
267 | "analytics",
|
268 | "adapter-core",
|
269 | "api",
|
270 | "auth",
|
271 | "storage",
|
272 | "datastore",
|
273 | "in-app-messaging",
|
274 | "push-notifications",
|
275 | "utils"
|
276 | ],
|
277 | "dependencies": {
|
278 | "@aws-amplify/analytics": "7.0.17",
|
279 | "@aws-amplify/api": "6.0.17",
|
280 | "@aws-amplify/auth": "6.0.17",
|
281 | "@aws-amplify/core": "6.0.17",
|
282 | "@aws-amplify/datastore": "5.0.17",
|
283 | "@aws-amplify/notifications": "2.0.17",
|
284 | "@aws-amplify/storage": "6.0.17",
|
285 | "tslib": "^2.5.0"
|
286 | },
|
287 | "devDependencies": {
|
288 | "typescript": "5.0.2"
|
289 | },
|
290 | "size-limit": [
|
291 | {
|
292 | "name": "[Analytics] record (Pinpoint)",
|
293 | "path": "./dist/esm/analytics/index.mjs",
|
294 | "import": "{ record }",
|
295 | "limit": "16.50 kB"
|
296 | },
|
297 | {
|
298 | "name": "[Analytics] record (Kinesis)",
|
299 | "path": "./dist/esm/analytics/kinesis/index.mjs",
|
300 | "import": "{ record }",
|
301 | "limit": "45.50 kB"
|
302 | },
|
303 | {
|
304 | "name": "[Analytics] record (Kinesis Firehose)",
|
305 | "path": "./dist/esm/analytics/kinesis-firehose/index.mjs",
|
306 | "import": "{ record }",
|
307 | "limit": "42.50 kB"
|
308 | },
|
309 | {
|
310 | "name": "[Analytics] record (Personalize)",
|
311 | "path": "./dist/esm/analytics/personalize/index.mjs",
|
312 | "import": "{ record }",
|
313 | "limit": "46.50 kB"
|
314 | },
|
315 | {
|
316 | "name": "[Analytics] identifyUser (Pinpoint)",
|
317 | "path": "./dist/esm/analytics/index.mjs",
|
318 | "import": "{ identifyUser }",
|
319 | "limit": "15.00 kB"
|
320 | },
|
321 | {
|
322 | "name": "[Analytics] enable",
|
323 | "path": "./dist/esm/analytics/index.mjs",
|
324 | "import": "{ enable }",
|
325 | "limit": "0.50 kB"
|
326 | },
|
327 | {
|
328 | "name": "[Analytics] disable",
|
329 | "path": "./dist/esm/analytics/index.mjs",
|
330 | "import": "{ disable }",
|
331 | "limit": "0.50 kB"
|
332 | },
|
333 | {
|
334 | "name": "[API] generateClient (AppSync)",
|
335 | "path": "./dist/esm/api/index.mjs",
|
336 | "import": "{ generateClient }",
|
337 | "limit": "37.00 kB"
|
338 | },
|
339 | {
|
340 | "name": "[API] REST API handlers",
|
341 | "path": "./dist/esm/api/index.mjs",
|
342 | "import": "{ get, post, put, del, patch, head, isCancelError }",
|
343 | "limit": "15.0 kB"
|
344 | },
|
345 | {
|
346 | "name": "[Auth] signUp (Cognito)",
|
347 | "path": "./dist/esm/auth/index.mjs",
|
348 | "import": "{ signUp }",
|
349 | "limit": "31.00 kB"
|
350 | },
|
351 | {
|
352 | "name": "[Auth] resetPassword (Cognito)",
|
353 | "path": "./dist/esm/auth/index.mjs",
|
354 | "import": "{ resetPassword }",
|
355 | "limit": "9.00 kB"
|
356 | },
|
357 | {
|
358 | "name": "[Auth] confirmResetPassword (Cognito)",
|
359 | "path": "./dist/esm/auth/index.mjs",
|
360 | "import": "{ confirmResetPassword }",
|
361 | "limit": "9.00 kB"
|
362 | },
|
363 | {
|
364 | "name": "[Auth] signIn (Cognito)",
|
365 | "path": "./dist/esm/auth/index.mjs",
|
366 | "import": "{ signIn }",
|
367 | "limit": "30.00 kB"
|
368 | },
|
369 | {
|
370 | "name": "[Auth] resendSignUpCode (Cognito)",
|
371 | "path": "./dist/esm/auth/index.mjs",
|
372 | "import": "{ resendSignUpCode }",
|
373 | "limit": "9.00 kB"
|
374 | },
|
375 | {
|
376 | "name": "[Auth] confirmSignUp (Cognito)",
|
377 | "path": "./dist/esm/auth/index.mjs",
|
378 | "import": "{ confirmSignUp }",
|
379 | "limit": "31.00 kB"
|
380 | },
|
381 | {
|
382 | "name": "[Auth] confirmSignIn (Cognito)",
|
383 | "path": "./dist/esm/auth/index.mjs",
|
384 | "import": "{ confirmSignIn }",
|
385 | "limit": "26.40 kB"
|
386 | },
|
387 | {
|
388 | "name": "[Auth] updateMFAPreference (Cognito)",
|
389 | "path": "./dist/esm/auth/index.mjs",
|
390 | "import": "{ updateMFAPreference }",
|
391 | "limit": "8.6 kB"
|
392 | },
|
393 | {
|
394 | "name": "[Auth] fetchMFAPreference (Cognito)",
|
395 | "path": "./dist/esm/auth/index.mjs",
|
396 | "import": "{ fetchMFAPreference }",
|
397 | "limit": "8.35 kB"
|
398 | },
|
399 | {
|
400 | "name": "[Auth] verifyTOTPSetup (Cognito)",
|
401 | "path": "./dist/esm/auth/index.mjs",
|
402 | "import": "{ verifyTOTPSetup }",
|
403 | "limit": "9.18 kB"
|
404 | },
|
405 | {
|
406 | "name": "[Auth] updatePassword (Cognito)",
|
407 | "path": "./dist/esm/auth/index.mjs",
|
408 | "import": "{ updatePassword }",
|
409 | "limit": "9.19 kB"
|
410 | },
|
411 | {
|
412 | "name": "[Auth] setUpTOTP (Cognito)",
|
413 | "path": "./dist/esm/auth/index.mjs",
|
414 | "import": "{ setUpTOTP }",
|
415 | "limit": "13.50 kB"
|
416 | },
|
417 | {
|
418 | "name": "[Auth] updateUserAttributes (Cognito)",
|
419 | "path": "./dist/esm/auth/index.mjs",
|
420 | "import": "{ updateUserAttributes }",
|
421 | "limit": "8.46 kB"
|
422 | },
|
423 | {
|
424 | "name": "[Auth] getCurrentUser (Cognito)",
|
425 | "path": "./dist/esm/auth/index.mjs",
|
426 | "import": "{ getCurrentUser }",
|
427 | "limit": "4.29 kB"
|
428 | },
|
429 | {
|
430 | "name": "[Auth] confirmUserAttribute (Cognito)",
|
431 | "path": "./dist/esm/auth/index.mjs",
|
432 | "import": "{ confirmUserAttribute }",
|
433 | "limit": "9.19 kB"
|
434 | },
|
435 | {
|
436 | "name": "[Auth] signInWithRedirect (Cognito)",
|
437 | "path": "./dist/esm/auth/index.mjs",
|
438 | "import": "{ signInWithRedirect }",
|
439 | "limit": "19.40 kB"
|
440 | },
|
441 | {
|
442 | "name": "[Auth] fetchUserAttributes (Cognito)",
|
443 | "path": "./dist/esm/auth/index.mjs",
|
444 | "import": "{ fetchUserAttributes }",
|
445 | "limit": "8.23 kB"
|
446 | },
|
447 | {
|
448 | "name": "[Auth] Basic Auth Flow (Cognito)",
|
449 | "path": "./dist/esm/auth/index.mjs",
|
450 | "import": "{ signIn, signOut, fetchAuthSession, confirmSignIn }",
|
451 | "limit": "28.50 kB"
|
452 | },
|
453 | {
|
454 | "name": "[Auth] OAuth Auth Flow (Cognito)",
|
455 | "path": "./dist/esm/auth/index.mjs",
|
456 | "import": "{ signInWithRedirect, signOut, fetchAuthSession }",
|
457 | "limit": "19.80 kB"
|
458 | },
|
459 | {
|
460 | "name": "[Storage] copy (S3)",
|
461 | "path": "./dist/esm/storage/index.mjs",
|
462 | "import": "{ copy }",
|
463 | "limit": "13.50 kB"
|
464 | },
|
465 | {
|
466 | "name": "[Storage] downloadData (S3)",
|
467 | "path": "./dist/esm/storage/index.mjs",
|
468 | "import": "{ downloadData }",
|
469 | "limit": "14.00 kB"
|
470 | },
|
471 | {
|
472 | "name": "[Storage] getProperties (S3)",
|
473 | "path": "./dist/esm/storage/index.mjs",
|
474 | "import": "{ getProperties }",
|
475 | "limit": "13.50 kB"
|
476 | },
|
477 | {
|
478 | "name": "[Storage] getUrl (S3)",
|
479 | "path": "./dist/esm/storage/index.mjs",
|
480 | "import": "{ getUrl }",
|
481 | "limit": "14.50 kB"
|
482 | },
|
483 | {
|
484 | "name": "[Storage] list (S3)",
|
485 | "path": "./dist/esm/storage/index.mjs",
|
486 | "import": "{ list }",
|
487 | "limit": "14.00 kB"
|
488 | },
|
489 | {
|
490 | "name": "[Storage] remove (S3)",
|
491 | "path": "./dist/esm/storage/index.mjs",
|
492 | "import": "{ remove }",
|
493 | "limit": "13.50 kB"
|
494 | },
|
495 | {
|
496 | "name": "[Storage] uploadData (S3)",
|
497 | "path": "./dist/esm/storage/index.mjs",
|
498 | "import": "{ uploadData }",
|
499 | "limit": "18.50 kB"
|
500 | }
|
501 | ],
|
502 | "gitHead": "c54a19c8a654a47d559cb0fd41c74bd2c3eb79ca"
|
503 | }
|