UNPKG

@aws-amplify/pubsub

Version:

Pubsub category of aws-amplify

129 lines (128 loc) 3.39 kB
{ "name": "@aws-amplify/pubsub", "version": "5.5.5", "description": "Pubsub 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/index.js" }, "sideEffects": [ "./lib/PubSub.js", "./lib-esm/PubSub.js" ], "publishConfig": { "access": "public" }, "scripts": { "test": "npm run lint && jest -w 1 --coverage", "test:size": "size-limit", "build-with-test": "npm run clean && npm test && tsc && webpack", "build:cjs": "node ./build es5 && cp src/vendor/* lib/vendor && webpack && webpack --config ./webpack.config.dev.js", "build:esm": "node ./build es6 && cp src/vendor/* lib-esm/vendor", "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 93.0 -i src/vendor/paho-mqtt.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": { "@types/zen-observable": "^0.8.0" }, "files": [ "lib", "lib-esm", "src", "internals" ], "dependencies": { "@aws-amplify/auth": "5.6.5", "@aws-amplify/cache": "5.1.11", "@aws-amplify/core": "5.8.5", "buffer": "4.9.2", "graphql": "15.8.0", "tslib": "^1.8.0", "url": "0.11.0", "uuid": "^3.2.1", "zen-observable-ts": "0.8.19" }, "size-limit": [ { "name": "PubSub (IoT provider)", "path": "./lib-esm/index.js", "import": "{ Amplify, PubSub, AWSIoTProvider }", "limit": "81.39 kB" }, { "name": "PubSub (Mqtt provider)", "path": "./lib-esm/index.js", "import": "{ Amplify, PubSub, MqttOverWSProvider }", "limit": "81.26 kB" } ], "jest": { "globals": { "ts-jest": { "diagnostics": false, "tsConfig": { "lib": [ "es5", "es2015", "dom", "esnext.asynciterable", "es2017.object" ], "allowJs": true } }, "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", "lib", "lib-esm" ] }, "gitHead": "c3a06153e3ffe05dd65485a22b1f99aabe9b3d83" }