@aws-amplify/cache
Version:
Cache category of aws-amplify
118 lines (117 loc) • 3.02 kB
JSON
{
"name": "@aws-amplify/cache",
"version": "5.1.12",
"description": "Cache category of aws-amplify",
"main": "./lib/index.js",
"module": "./lib-esm/index.js",
"typings": "./lib-esm/index.d.ts",
"react-native": {
"./lib/index": "./lib-esm/reactnative.js"
},
"sideEffects": [
"./lib/BrowserStorageCache.js",
"./lib/AsyncStorageCache.js",
"./lib-esm/BrowserStorageCache.js",
"./lib-esm/AsyncStorageCache.js"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "npm run lint && jest -w 1 --coverage",
"test:size": "size-limit",
"build-with-test": "npm test && npm run build",
"build:cjs": "node ./build es5 && webpack && webpack --config ./webpack.config.dev.js",
"build:esm": "node ./build es6",
"build:cjs:watch": "node ./build es5 --watch",
"build:esm:watch": "node ./build es6 --watch",
"build": "npm run clean && npm run build:esm && npm run build:cjs",
"clean": "npm run clean:size && rimraf lib-esm lib dist",
"clean:size": "rimraf dual-publish-tmp tmp*",
"format": "echo \"Not implemented\"",
"lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 87.74"
},
"repository": {
"type": "git",
"url": "https://github.com/aws-amplify/amplify-js.git"
},
"author": "Amazon Web Services",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/aws/aws-amplify/issues"
},
"homepage": "https://aws-amplify.github.io/",
"files": [
"lib",
"lib-esm",
"src"
],
"dependencies": {
"@aws-amplify/core": "5.8.6",
"tslib": "^1.8.0"
},
"size-limit": [
{
"name": "Cache (default browser storage)",
"path": "./lib-esm/index.js",
"import": "{ Cache }",
"limit": "4 kB"
},
{
"name": "Cache (in-memory)",
"path": "./lib-esm/index.js",
"import": "{ InMemoryCache }",
"limit": "3.7 kB"
}
],
"jest": {
"globals": {
"ts-jest": {
"diagnostics": false,
"tsConfig": {
"lib": [
"es5",
"es2015",
"dom",
"esnext.asynciterable",
"es2017.object"
],
"allowJs": true
}
}
},
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json",
"jsx"
],
"setupFiles": [
"./__mocks__/SessionStorage.js",
"./__mocks__/LocalStorage.js"
],
"testEnvironment": "jsdom",
"testURL": "http://localhost/",
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
},
"coveragePathIgnorePatterns": [
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
},
"gitHead": "fdd81d8c2eb4287ac28d8f31c0d17001898cf184"
}