UNPKG

@aws-amplify/pubsub

Version:

Pubsub category of aws-amplify

150 lines (149 loc) 3.71 kB
{ "name": "@aws-amplify/pubsub", "version": "6.0.5", "description": "Pubsub category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", "typings": "./dist/esm/index.d.ts", "react-native": "./src/index.ts", "sideEffects": false, "publishConfig": { "access": "public" }, "scripts": { "test": "npm run lint && jest -w 1 --coverage", "test:size": "size-limit", "build-with-test": "npm run clean && npm run build", "build:umd": "webpack && webpack --config ./webpack.config.dev.js", "build:esm-cjs": "rollup -c rollup.config.mjs && cp -R src/vendor dist/cjs/vendor && cp -R src/vendor dist/esm/vendor", "build:cjs:watch": "rimraf dist/cjs && tsc -m commonjs --outDir dist/cjs --watch", "build:esm:watch": "rimraf dist/esm && tsc -m esnext --outDir dist/esm --watch", "build": "npm run clean && npm run build:esm-cjs && npm run build:umd", "clean": "npm run clean:size && rimraf dist lib lib-esm", "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.json -t 93.0 -i src/vendor/paho-mqtt.js" }, "typesVersions": { ">=4.2": { "iot": [ "./dist/esm/clients/iot.d.ts" ], "mqtt": [ "./dist/esm/clients/mqtt.d.ts" ] } }, "exports": { ".": { "types": "./dist/esm/index.d.ts", "import": "./dist/esm/index.mjs", "require": "./dist/cjs/index.js", "react-native": "./src/index.ts" }, "./iot": { "types": "./dist/esm/clients/iot.d.ts", "import": "./dist/esm/clients/iot.mjs", "require": "./dist/cjs/clients/iot.js", "react-native": "./src/clients/iot.ts" }, "./mqtt": { "types": "./dist/esm/clients/mqtt.d.ts", "import": "./dist/esm/clients/mqtt.mjs", "require": "./dist/cjs/clients/mqtt.js", "react-native": "./src/clients/mqtt.ts" } }, "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": [ "dist/cjs", "dist/esm", "src", "iot", "mqtt" ], "dependencies": { "@aws-amplify/auth": "6.0.5", "buffer": "4.9.2", "graphql": "15.8.0", "rxjs": "^7.8.1", "tslib": "^2.5.0", "url": "0.11.0" }, "peerDependencies": { "@aws-amplify/core": "^6.0.0" }, "devDependencies": { "@aws-amplify/core": "6.0.5", "@rollup/plugin-typescript": "11.1.5", "rollup": "3.29.4", "typescript": "5.0.2" }, "size-limit": [ { "name": "PubSub (IoT provider)", "path": "./dist/esm/index.mjs", "import": "{ generateClient }", "limit": "1.2 kB" }, { "name": "PubSub (Mqtt provider)", "path": "./dist/esm/clients/mqtt.mjs", "import": "{ generateClient }", "limit": "1.07 kB" } ], "jest": { "globals": { "ts-jest": { "diagnostics": false, "tsConfig": { "allowJs": true, "noEmitOnError": false } }, "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$", "testPathIgnorePatterns": [ "__tests__/helpers.ts" ] }, "transform": { "^.+\\.(js|jsx|ts|tsx)$": "ts-jest" }, "testPathIgnorePatterns": [ "__tests__/helpers.ts" ], "moduleFileExtensions": [ "ts", "tsx", "js", "json", "jsx" ], "testEnvironment": "jsdom", "testURL": "http://localhost/", "coverageThreshold": { "global": { "branches": 0, "functions": 0, "lines": 0, "statements": 0 } }, "coveragePathIgnorePatterns": [ "node_modules", "dist" ] }, "gitHead": "1c545f4a0c111245a66d489aeb01a0c0f78cf7cb" }