@aws-amplify/core
Version:
Core category of aws-amplify
192 lines (191 loc) • 5.21 kB
JSON
{
"name": "@aws-amplify/core",
"version": "5.8.5",
"description": "Core category of aws-amplify",
"main": "./lib/index.js",
"module": "./lib-esm/index.js",
"typings": "./lib-esm/index.d.ts",
"publishConfig": {
"access": "public"
},
"sideEffects": [
"./lib/I18n/index.js",
"./lib/Credentials.js",
"./lib-esm/I18n/index.js",
"./lib-esm/Credentials.js"
],
"scripts": {
"test": "npm run lint && jest -w 1 --coverage",
"test:size": "size-limit",
"build-with-test": "npm test && npm run build",
"build:cjs": "rimraf lib && tsc -m commonjs --outDir lib && webpack && webpack --config ./webpack.config.dev.js",
"build:esm": "rimraf lib-esm && tsc -m esnext --outDir lib-esm",
"build:cjs:watch": "rimraf lib && tsc -m commonjs --outDir lib --watch",
"build:esm:watch": "rimraf lib-esm && tsc -m esnext --outDir lib-esm --watch",
"build": "npm run clean && npm run generate-version && npm run build:polyfills:url && npm run build:esm && npm run build:cjs",
"build:polyfills:url": "webpack --config ./polyfills/URL/webpack.config.js",
"generate-version": "genversion src/Platform/version.ts --es6 --semi --source ../aws-amplify",
"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",
"prepublishOnly": "npm run build",
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 76.41"
},
"react-native": {
"./lib/index": "./lib-esm/index.js",
"./lib-esm/ClientDevice": "./lib-esm/ClientDevice/reactnative.js",
"./lib-esm/RNComponents": "./lib-esm/RNComponents/reactnative.js",
"./lib-esm/StorageHelper": "./lib-esm/StorageHelper/reactnative.js"
},
"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/",
"devDependencies": {
"@react-native-async-storage/async-storage": "^1.17.12",
"find": "^0.2.7",
"genversion": "^2.2.0",
"react-native": "^0.68.7",
"typescript": "5.0.2"
},
"files": [
"lib",
"lib-esm",
"src",
"typings.d.ts",
"internals",
"polyfills"
],
"dependencies": {
"@aws-crypto/sha256-js": "1.2.2",
"@aws-sdk/client-cloudwatch-logs": "3.6.1",
"@aws-sdk/types": "3.6.1",
"@aws-sdk/util-hex-encoding": "3.6.1",
"@types/node-fetch": "2.6.4",
"isomorphic-unfetch": "^3.0.0",
"react-native-url-polyfill": "^1.3.0",
"tslib": "^1.8.0",
"universal-cookie": "^4.0.4",
"zen-observable-ts": "0.8.19"
},
"size-limit": [
{
"name": "Core (ServiceWorker)",
"path": "./lib-esm/index.js",
"import": "{ ServiceWorker }",
"limit": "2.4 kB"
},
{
"name": "Core (Hub)",
"path": "./lib-esm/index.js",
"import": "{ Hub }",
"limit": "2.05 kB"
},
{
"name": "Core (I18n)",
"path": "./lib-esm/index.js",
"import": "{ I18n }",
"limit": "2.12 kB"
},
{
"name": "Core (Logger)",
"path": "./lib-esm/index.js",
"import": "{ Logger }",
"limit": "1.2 kB"
},
{
"name": "Core (Credentials)",
"path": "./lib-esm/index.js",
"import": "{ Credentials }",
"limit": "13.35 kB"
},
{
"name": "Core (Signer)",
"path": "./lib-esm/index.js",
"import": "{ Signer }",
"limit": "7.4 kB"
},
{
"name": "Custom clients (fetch handler)",
"path": "./lib-esm/clients/handlers/fetch.js",
"import": "{ fetchTransferHandler }",
"limit": "1.85 kB"
},
{
"name": "Custom clients (unauthenticated handler)",
"path": "./lib-esm/clients/handlers/unauthenticated.js",
"import": "{ unauthenticatedHandler }",
"limit": "2.85 kB"
},
{
"name": "Custom clients (retry middleware)",
"path": "./lib-esm/clients/middleware/retry/middleware.js",
"import": "{ retryMiddleware }",
"limit": "1.35 kB"
},
{
"name": "Custom clients (signing middleware)",
"path": "./lib-esm/clients/middleware/signing/middleware.js",
"import": "{ signingMiddleware }",
"limit": "6.85 kB"
},
{
"name": "Custom clients (request signer)",
"path": "./lib-esm/clients/middleware/signing/signer/signatureV4/index.js",
"import": "{ signRequest }",
"limit": "6.2 kB"
},
{
"name": "Custom clients (url presigner)",
"path": "./lib-esm/clients/middleware/signing/signer/signatureV4/index.js",
"import": "{ presignUrl }",
"limit": "6.3 kB"
}
],
"jest": {
"globals": {
"ts-jest": {
"diagnostics": false,
"tsConfig": false
}
},
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
"testPathIgnorePatterns": [
"/testUtils/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json",
"jsx"
],
"testEnvironment": "jsdom",
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
},
"testURL": "http://localhost/",
"coveragePathIgnorePatterns": [
"/node_modules/",
"dist",
"lib",
"lib-esm"
]
},
"gitHead": "c3a06153e3ffe05dd65485a22b1f99aabe9b3d83"
}