UNPKG

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