1 | {
|
2 | "name": "@aws-amplify/core",
|
3 | "version": "5.8.5",
|
4 | "description": "Core category of aws-amplify",
|
5 | "main": "./lib/index.js",
|
6 | "module": "./lib-esm/index.js",
|
7 | "typings": "./lib-esm/index.d.ts",
|
8 | "publishConfig": {
|
9 | "access": "public"
|
10 | },
|
11 | "sideEffects": [
|
12 | "./lib/I18n/index.js",
|
13 | "./lib/Credentials.js",
|
14 | "./lib-esm/I18n/index.js",
|
15 | "./lib-esm/Credentials.js"
|
16 | ],
|
17 | "scripts": {
|
18 | "test": "npm run lint && jest -w 1 --coverage",
|
19 | "test:size": "size-limit",
|
20 | "build-with-test": "npm test && npm run build",
|
21 | "build:cjs": "rimraf lib && tsc -m commonjs --outDir lib && webpack && webpack --config ./webpack.config.dev.js",
|
22 | "build:esm": "rimraf lib-esm && tsc -m esnext --outDir lib-esm",
|
23 | "build:cjs:watch": "rimraf lib && tsc -m commonjs --outDir lib --watch",
|
24 | "build:esm:watch": "rimraf lib-esm && tsc -m esnext --outDir lib-esm --watch",
|
25 | "build": "npm run clean && npm run generate-version && npm run build:polyfills:url && npm run build:esm && npm run build:cjs",
|
26 | "build:polyfills:url": "webpack --config ./polyfills/URL/webpack.config.js",
|
27 | "generate-version": "genversion src/Platform/version.ts --es6 --semi --source ../aws-amplify",
|
28 | "clean": "npm run clean:size && rimraf lib-esm lib dist",
|
29 | "clean:size": "rimraf dual-publish-tmp tmp*",
|
30 | "format": "echo \"Not implemented\"",
|
31 | "lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
|
32 | "prepublishOnly": "npm run build",
|
33 | "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 76.41"
|
34 | },
|
35 | "react-native": {
|
36 | "./lib/index": "./lib-esm/index.js",
|
37 | "./lib-esm/ClientDevice": "./lib-esm/ClientDevice/reactnative.js",
|
38 | "./lib-esm/RNComponents": "./lib-esm/RNComponents/reactnative.js",
|
39 | "./lib-esm/StorageHelper": "./lib-esm/StorageHelper/reactnative.js"
|
40 | },
|
41 | "repository": {
|
42 | "type": "git",
|
43 | "url": "https://github.com/aws-amplify/amplify-js.git"
|
44 | },
|
45 | "author": "Amazon Web Services",
|
46 | "license": "Apache-2.0",
|
47 | "bugs": {
|
48 | "url": "https://github.com/aws/aws-amplify/issues"
|
49 | },
|
50 | "homepage": "https://aws-amplify.github.io/",
|
51 | "devDependencies": {
|
52 | "@react-native-async-storage/async-storage": "^1.17.12",
|
53 | "find": "^0.2.7",
|
54 | "genversion": "^2.2.0",
|
55 | "react-native": "^0.68.7",
|
56 | "typescript": "5.0.2"
|
57 | },
|
58 | "files": [
|
59 | "lib",
|
60 | "lib-esm",
|
61 | "src",
|
62 | "typings.d.ts",
|
63 | "internals",
|
64 | "polyfills"
|
65 | ],
|
66 | "dependencies": {
|
67 | "@aws-crypto/sha256-js": "1.2.2",
|
68 | "@aws-sdk/client-cloudwatch-logs": "3.6.1",
|
69 | "@aws-sdk/types": "3.6.1",
|
70 | "@aws-sdk/util-hex-encoding": "3.6.1",
|
71 | "@types/node-fetch": "2.6.4",
|
72 | "isomorphic-unfetch": "^3.0.0",
|
73 | "react-native-url-polyfill": "^1.3.0",
|
74 | "tslib": "^1.8.0",
|
75 | "universal-cookie": "^4.0.4",
|
76 | "zen-observable-ts": "0.8.19"
|
77 | },
|
78 | "size-limit": [
|
79 | {
|
80 | "name": "Core (ServiceWorker)",
|
81 | "path": "./lib-esm/index.js",
|
82 | "import": "{ ServiceWorker }",
|
83 | "limit": "2.4 kB"
|
84 | },
|
85 | {
|
86 | "name": "Core (Hub)",
|
87 | "path": "./lib-esm/index.js",
|
88 | "import": "{ Hub }",
|
89 | "limit": "2.05 kB"
|
90 | },
|
91 | {
|
92 | "name": "Core (I18n)",
|
93 | "path": "./lib-esm/index.js",
|
94 | "import": "{ I18n }",
|
95 | "limit": "2.12 kB"
|
96 | },
|
97 | {
|
98 | "name": "Core (Logger)",
|
99 | "path": "./lib-esm/index.js",
|
100 | "import": "{ Logger }",
|
101 | "limit": "1.2 kB"
|
102 | },
|
103 | {
|
104 | "name": "Core (Credentials)",
|
105 | "path": "./lib-esm/index.js",
|
106 | "import": "{ Credentials }",
|
107 | "limit": "13.35 kB"
|
108 | },
|
109 | {
|
110 | "name": "Core (Signer)",
|
111 | "path": "./lib-esm/index.js",
|
112 | "import": "{ Signer }",
|
113 | "limit": "7.4 kB"
|
114 | },
|
115 | {
|
116 | "name": "Custom clients (fetch handler)",
|
117 | "path": "./lib-esm/clients/handlers/fetch.js",
|
118 | "import": "{ fetchTransferHandler }",
|
119 | "limit": "1.85 kB"
|
120 | },
|
121 | {
|
122 | "name": "Custom clients (unauthenticated handler)",
|
123 | "path": "./lib-esm/clients/handlers/unauthenticated.js",
|
124 | "import": "{ unauthenticatedHandler }",
|
125 | "limit": "2.85 kB"
|
126 | },
|
127 | {
|
128 | "name": "Custom clients (retry middleware)",
|
129 | "path": "./lib-esm/clients/middleware/retry/middleware.js",
|
130 | "import": "{ retryMiddleware }",
|
131 | "limit": "1.35 kB"
|
132 | },
|
133 | {
|
134 | "name": "Custom clients (signing middleware)",
|
135 | "path": "./lib-esm/clients/middleware/signing/middleware.js",
|
136 | "import": "{ signingMiddleware }",
|
137 | "limit": "6.85 kB"
|
138 | },
|
139 | {
|
140 | "name": "Custom clients (request signer)",
|
141 | "path": "./lib-esm/clients/middleware/signing/signer/signatureV4/index.js",
|
142 | "import": "{ signRequest }",
|
143 | "limit": "6.2 kB"
|
144 | },
|
145 | {
|
146 | "name": "Custom clients (url presigner)",
|
147 | "path": "./lib-esm/clients/middleware/signing/signer/signatureV4/index.js",
|
148 | "import": "{ presignUrl }",
|
149 | "limit": "6.3 kB"
|
150 | }
|
151 | ],
|
152 | "jest": {
|
153 | "globals": {
|
154 | "ts-jest": {
|
155 | "diagnostics": false,
|
156 | "tsConfig": false
|
157 | }
|
158 | },
|
159 | "transform": {
|
160 | "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
|
161 | },
|
162 | "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
|
163 | "testPathIgnorePatterns": [
|
164 | "/testUtils/"
|
165 | ],
|
166 | "moduleFileExtensions": [
|
167 | "ts",
|
168 | "tsx",
|
169 | "js",
|
170 | "json",
|
171 | "jsx"
|
172 | ],
|
173 | "testEnvironment": "jsdom",
|
174 | "coverageThreshold": {
|
175 | "global": {
|
176 | "branches": 0,
|
177 | "functions": 0,
|
178 | "lines": 0,
|
179 | "statements": 0
|
180 | }
|
181 | },
|
182 | "testURL": "http://localhost/",
|
183 | "coveragePathIgnorePatterns": [
|
184 | "/node_modules/",
|
185 | "dist",
|
186 | "lib",
|
187 | "lib-esm"
|
188 | ]
|
189 | },
|
190 | "gitHead": "c3a06153e3ffe05dd65485a22b1f99aabe9b3d83"
|
191 | }
|