1 | {
|
2 | "name": "@aws-amplify/pubsub",
|
3 | "version": "5.5.5",
|
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 && cp src/vendor/* lib/vendor && webpack && webpack --config ./webpack.config.dev.js",
|
23 | "build:esm": "node ./build es6 && cp 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 | },
|
46 | "files": [
|
47 | "lib",
|
48 | "lib-esm",
|
49 | "src",
|
50 | "internals"
|
51 | ],
|
52 | "dependencies": {
|
53 | "@aws-amplify/auth": "5.6.5",
|
54 | "@aws-amplify/cache": "5.1.11",
|
55 | "@aws-amplify/core": "5.8.5",
|
56 | "buffer": "4.9.2",
|
57 | "graphql": "15.8.0",
|
58 | "tslib": "^1.8.0",
|
59 | "url": "0.11.0",
|
60 | "uuid": "^3.2.1",
|
61 | "zen-observable-ts": "0.8.19"
|
62 | },
|
63 | "size-limit": [
|
64 | {
|
65 | "name": "PubSub (IoT provider)",
|
66 | "path": "./lib-esm/index.js",
|
67 | "import": "{ Amplify, PubSub, AWSIoTProvider }",
|
68 | "limit": "81.39 kB"
|
69 | },
|
70 | {
|
71 | "name": "PubSub (Mqtt provider)",
|
72 | "path": "./lib-esm/index.js",
|
73 | "import": "{ Amplify, PubSub, MqttOverWSProvider }",
|
74 | "limit": "81.26 kB"
|
75 | }
|
76 | ],
|
77 | "jest": {
|
78 | "globals": {
|
79 | "ts-jest": {
|
80 | "diagnostics": false,
|
81 | "tsConfig": {
|
82 | "lib": [
|
83 | "es5",
|
84 | "es2015",
|
85 | "dom",
|
86 | "esnext.asynciterable",
|
87 | "es2017.object"
|
88 | ],
|
89 | "allowJs": true
|
90 | }
|
91 | },
|
92 | "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
|
93 | "testPathIgnorePatterns": [
|
94 | "__tests__/helpers.ts"
|
95 | ]
|
96 | },
|
97 | "transform": {
|
98 | "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
|
99 | },
|
100 | "testPathIgnorePatterns": [
|
101 | "__tests__/helpers.ts"
|
102 | ],
|
103 | "moduleFileExtensions": [
|
104 | "ts",
|
105 | "tsx",
|
106 | "js",
|
107 | "json",
|
108 | "jsx"
|
109 | ],
|
110 | "testEnvironment": "jsdom",
|
111 | "testURL": "http://localhost/",
|
112 | "coverageThreshold": {
|
113 | "global": {
|
114 | "branches": 0,
|
115 | "functions": 0,
|
116 | "lines": 0,
|
117 | "statements": 0
|
118 | }
|
119 | },
|
120 | "coveragePathIgnorePatterns": [
|
121 | "/node_modules/",
|
122 | "dist",
|
123 | "lib",
|
124 | "lib-esm"
|
125 | ]
|
126 | },
|
127 | "gitHead": "c3a06153e3ffe05dd65485a22b1f99aabe9b3d83"
|
128 | }
|