UNPKG

3.02 kBJSONView Raw
1{
2 "name": "@aws-amplify/cache",
3 "version": "5.0.21",
4 "description": "Cache 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/reactnative.js"
10 },
11 "sideEffects": [
12 "./lib/BrowserStorageCache.js",
13 "./lib/AsyncStorageCache.js",
14 "./lib-esm/BrowserStorageCache.js",
15 "./lib-esm/AsyncStorageCache.js"
16 ],
17 "publishConfig": {
18 "access": "public"
19 },
20 "scripts": {
21 "test": "npm run lint && jest -w 1 --coverage",
22 "test:size": "size-limit",
23 "build-with-test": "npm test && npm run build",
24 "build:cjs": "node ./build es5 && webpack && webpack --config ./webpack.config.dev.js",
25 "build:esm": "node ./build es6",
26 "build:cjs:watch": "node ./build es5 --watch",
27 "build:esm:watch": "node ./build es6 --watch",
28 "build": "npm run clean && npm run build:esm && npm run build:cjs",
29 "clean": "npm run clean:size && rimraf lib-esm lib dist",
30 "clean:size": "rimraf dual-publish-tmp tmp*",
31 "format": "echo \"Not implemented\"",
32 "lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
33 "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 87.74"
34 },
35 "repository": {
36 "type": "git",
37 "url": "https://github.com/aws-amplify/amplify-js.git"
38 },
39 "author": "Amazon Web Services",
40 "license": "Apache-2.0",
41 "bugs": {
42 "url": "https://github.com/aws/aws-amplify/issues"
43 },
44 "homepage": "https://aws-amplify.github.io/",
45 "files": [
46 "lib",
47 "lib-esm",
48 "src"
49 ],
50 "dependencies": {
51 "@aws-amplify/core": "5.1.4",
52 "tslib": "^1.8.0"
53 },
54 "size-limit": [
55 {
56 "name": "Cache (default browser storage)",
57 "path": "./lib-esm/index.js",
58 "import": "{ Cache }",
59 "limit": "4 kB"
60 },
61 {
62 "name": "Cache (in-memory)",
63 "path": "./lib-esm/index.js",
64 "import": "{ InMemoryCache }",
65 "limit": "3.75 kB"
66 }
67 ],
68 "jest": {
69 "globals": {
70 "ts-jest": {
71 "diagnostics": false,
72 "tsConfig": {
73 "lib": [
74 "es5",
75 "es2015",
76 "dom",
77 "esnext.asynciterable",
78 "es2017.object"
79 ],
80 "allowJs": true
81 }
82 }
83 },
84 "transform": {
85 "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
86 },
87 "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
88 "moduleFileExtensions": [
89 "ts",
90 "tsx",
91 "js",
92 "json",
93 "jsx"
94 ],
95 "setupFiles": [
96 "./__mocks__/SessionStorage.js",
97 "./__mocks__/LocalStorage.js"
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": "0606e53509d256416516173b25c9ce1e86d41320"
117}