1 | {
|
2 | "name": "@aws-amplify/auth",
|
3 | "version": "5.2.0",
|
4 | "description": "Auth category of aws-amplify",
|
5 | "main": "./lib/index.js",
|
6 | "module": "./lib-esm/index.js",
|
7 | "typings": "./lib-esm/index.d.ts",
|
8 | "react-native": {
|
9 | "./lib/index": "./lib-esm/index.js"
|
10 | },
|
11 | "sideEffects": [
|
12 | "./lib/Auth.js",
|
13 | "./lib-esm/Auth.js"
|
14 | ],
|
15 | "publishConfig": {
|
16 | "access": "public"
|
17 | },
|
18 | "scripts": {
|
19 | "test": "yarn lint --fix && jest -w 1 --coverage",
|
20 | "test:size": "size-limit",
|
21 | "build-with-test": "npm test && npm run build",
|
22 | "build:cjs": "node ./build es5 && webpack && webpack --config ./webpack.config.dev.js",
|
23 | "build:esm": "node ./build es6",
|
24 | "build:cjs:watch": "node ./build es5 --watch",
|
25 | "build:esm:watch": "node ./build es6 --watch",
|
26 | "build": "npm run clean && npm run build:esm && npm run build:cjs",
|
27 | "clean": "npm run clean:size && rimraf lib-esm lib dist",
|
28 | "clean:size": "rimraf dual-publish-tmp tmp*",
|
29 | "format": "echo \"Not implemented\"",
|
30 | "lint": "tslint '{__tests__,src}/**/*.ts' && npm run ts-coverage",
|
31 | "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 77.44"
|
32 | },
|
33 | "repository": {
|
34 | "type": "git",
|
35 | "url": "https://github.com/aws-amplify/amplify-js.git"
|
36 | },
|
37 | "author": "Amazon Web Services",
|
38 | "license": "Apache-2.0",
|
39 | "bugs": {
|
40 | "url": "https://github.com/aws/aws-amplify/issues"
|
41 | },
|
42 | "homepage": "https://aws-amplify.github.io/",
|
43 | "files": [
|
44 | "lib",
|
45 | "lib-esm",
|
46 | "src"
|
47 | ],
|
48 | "dependencies": {
|
49 | "@aws-amplify/core": "5.1.5",
|
50 | "amazon-cognito-identity-js": "6.2.0",
|
51 | "tslib": "^1.8.0"
|
52 | },
|
53 | "devDependencies": {
|
54 | "@jest/test-sequencer": "^24.9.0"
|
55 | },
|
56 | "size-limit": [
|
57 | {
|
58 | "name": "Auth (top-level class)",
|
59 | "path": "./lib-esm/index.js",
|
60 | "import": "{ Amplify, Auth }",
|
61 | "limit": "73 kB"
|
62 | }
|
63 | ],
|
64 | "jest": {
|
65 | "globals": {
|
66 | "ts-jest": {
|
67 | "diagnostics": true,
|
68 | "tsConfig": {
|
69 | "lib": [
|
70 | "es5",
|
71 | "es2015",
|
72 | "dom",
|
73 | "esnext.asynciterable",
|
74 | "es2017.object"
|
75 | ],
|
76 | "allowJs": true
|
77 | }
|
78 | }
|
79 | },
|
80 | "transform": {
|
81 | "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
|
82 | },
|
83 | "preset": "ts-jest",
|
84 | "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
|
85 | "moduleFileExtensions": [
|
86 | "ts",
|
87 | "tsx",
|
88 | "js",
|
89 | "json",
|
90 | "jsx"
|
91 | ],
|
92 | "testEnvironment": "jsdom",
|
93 | "testURL": "http://localhost/",
|
94 | "coverageThreshold": {
|
95 | "global": {
|
96 | "branches": 0,
|
97 | "functions": 0,
|
98 | "lines": 0,
|
99 | "statements": 0
|
100 | }
|
101 | },
|
102 | "coveragePathIgnorePatterns": [
|
103 | "/node_modules/",
|
104 | "dist",
|
105 | "lib",
|
106 | "lib-esm"
|
107 | ],
|
108 | "testSequencer": "./testSequencer.js"
|
109 | },
|
110 | "gitHead": "6033ebb7214bd1cbe715399c0434cf7fa7ca905e"
|
111 | }
|