1 | {
|
2 | "name": "@aws-amplify/pubsub",
|
3 | "version": "5.1.16",
|
4 | "description": "Pubsub 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/index.js"
|
10 | },
|
11 | "sideEffects": [
|
12 | "./lib/PubSub.js",
|
13 | "./lib-esm/PubSub.js"
|
14 | ],
|
15 | "publishConfig": {
|
16 | "access": "public"
|
17 | },
|
18 | "scripts": {
|
19 | "test": "npm run lint && jest -w 1 --coverage",
|
20 | "test:size": "size-limit",
|
21 | "build-with-test": "npm run clean && npm test && tsc && webpack",
|
22 | "build:cjs": "node ./build es5 && cpx src/vendor/** lib/vendor && webpack && webpack --config ./webpack.config.dev.js",
|
23 | "build:esm": "node ./build es6 && cpx src/vendor/** lib-esm/vendor",
|
24 | "build:cjs:watch": "node ./build es5 --watch",
|
25 | "build:esm:watch": "node ./build es6 --watch",
|
26 | "build": "npm run clean && npm run build:esm && npm run build:cjs",
|
27 | "clean": "npm run clean:size && rimraf lib-esm lib dist",
|
28 | "clean:size": "rimraf dual-publish-tmp tmp*",
|
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 93.0 -i src/vendor/paho-mqtt.js"
|
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 | "devDependencies": {
|
44 | "@types/zen-observable": "^0.8.0",
|
45 | "cpx": "^1.5.0"
|
46 | },
|
47 | "files": [
|
48 | "lib",
|
49 | "lib-esm",
|
50 | "src"
|
51 | ],
|
52 | "dependencies": {
|
53 | "@aws-amplify/auth": "5.3.7",
|
54 | "@aws-amplify/cache": "5.0.33",
|
55 | "@aws-amplify/core": "5.3.1",
|
56 | "graphql": "15.8.0",
|
57 | "tslib": "^1.8.0",
|
58 | "uuid": "^3.2.1",
|
59 | "zen-observable-ts": "0.8.19"
|
60 | },
|
61 | "size-limit": [
|
62 | {
|
63 | "name": "PubSub (IoT provider)",
|
64 | "path": "./lib-esm/index.js",
|
65 | "import": "{ Amplify, PubSub, AWSIoTProvider }",
|
66 | "limit": "97.5 kB"
|
67 | },
|
68 | {
|
69 | "name": "PubSub (Mqtt provider)",
|
70 | "path": "./lib-esm/index.js",
|
71 | "import": "{ Amplify, PubSub, MqttOverWSProvider }",
|
72 | "limit": "97.5 kB"
|
73 | }
|
74 | ],
|
75 | "jest": {
|
76 | "globals": {
|
77 | "ts-jest": {
|
78 | "diagnostics": false,
|
79 | "tsConfig": {
|
80 | "lib": [
|
81 | "es5",
|
82 | "es2015",
|
83 | "dom",
|
84 | "esnext.asynciterable",
|
85 | "es2017.object"
|
86 | ],
|
87 | "allowJs": true
|
88 | }
|
89 | },
|
90 | "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
|
91 | "testPathIgnorePatterns": [
|
92 | "__tests__/helpers.ts"
|
93 | ]
|
94 | },
|
95 | "transform": {
|
96 | "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
|
97 | },
|
98 | "testPathIgnorePatterns": [
|
99 | "__tests__/helpers.ts"
|
100 | ],
|
101 | "moduleFileExtensions": [
|
102 | "ts",
|
103 | "tsx",
|
104 | "js",
|
105 | "json",
|
106 | "jsx"
|
107 | ],
|
108 | "testEnvironment": "jsdom",
|
109 | "testURL": "http://localhost/",
|
110 | "coverageThreshold": {
|
111 | "global": {
|
112 | "branches": 0,
|
113 | "functions": 0,
|
114 | "lines": 0,
|
115 | "statements": 0
|
116 | }
|
117 | },
|
118 | "coveragePathIgnorePatterns": [
|
119 | "/node_modules/",
|
120 | "dist",
|
121 | "lib",
|
122 | "lib-esm"
|
123 | ]
|
124 | },
|
125 | "gitHead": "e7a6f07b544185c89215d15d3f978e81e2917009"
|
126 | }
|