UNPKG

2.61 kBJSONView Raw
1{
2 "name": "@aws-amplify/cache",
3 "version": "5.0.5",
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": "tslint 'src/**/*.ts' && jest -w 1 --coverage",
22 "build-with-test": "npm test && npm run build",
23 "build:cjs": "node ./build es5 && webpack && webpack --config ./webpack.config.dev.js",
24 "build:esm": "node ./build es6",
25 "build:cjs:watch": "node ./build es5 --watch",
26 "build:esm:watch": "node ./build es6 --watch",
27 "build": "npm run clean && npm run build:esm && npm run build:cjs",
28 "clean": "rimraf lib-esm lib dist",
29 "format": "echo \"Not implemented\"",
30 "lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
31 "ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 87.74"
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.0.5",
50 "tslib": "^1.8.0"
51 },
52 "jest": {
53 "globals": {
54 "ts-jest": {
55 "diagnostics": false,
56 "tsConfig": {
57 "lib": [
58 "es5",
59 "es2015",
60 "dom",
61 "esnext.asynciterable",
62 "es2017.object"
63 ],
64 "allowJs": true
65 }
66 }
67 },
68 "transform": {
69 "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
70 },
71 "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
72 "moduleFileExtensions": [
73 "ts",
74 "tsx",
75 "js",
76 "json",
77 "jsx"
78 ],
79 "setupFiles": [
80 "./__mocks__/SessionStorage.js",
81 "./__mocks__/LocalStorage.js"
82 ],
83 "testEnvironment": "jsdom",
84 "testURL": "http://localhost/",
85 "coverageThreshold": {
86 "global": {
87 "branches": 0,
88 "functions": 0,
89 "lines": 0,
90 "statements": 0
91 }
92 },
93 "coveragePathIgnorePatterns": [
94 "/node_modules/",
95 "dist",
96 "lib",
97 "lib-esm"
98 ]
99 },
100 "gitHead": "299233e5f6d1a6703dada4035159d611a3414681"
101}