@aws-amplify/pubsub
Advanced tools
Comparing version 1.0.29 to 1.0.30-preview.68
@@ -6,2 +6,48 @@ # Change Log | ||
## [1.1.1](https://github.com/aws/aws-amplify/compare/@aws-amplify/pubsub@1.1.0...@aws-amplify/pubsub@1.1.1) (2019-08-21) | ||
### Bug Fixes | ||
* **@aws-amplify/pubsub:** fix ZenObservable import ([#3406](https://github.com/aws/aws-amplify/issues/3406)) ([f25d4c2](https://github.com/aws/aws-amplify/commit/f25d4c2)) | ||
# [1.1.0](https://github.com/aws/aws-amplify/compare/@aws-amplify/pubsub@1.0.32...@aws-amplify/pubsub@1.1.0) (2019-08-05) | ||
### Features | ||
* Add support for local testing of api and storage ([#3806](https://github.com/aws/aws-amplify/issues/3806)) ([4390e8e](https://github.com/aws/aws-amplify/commit/4390e8e)) | ||
## [1.0.32](https://github.com/aws/aws-amplify/compare/@aws-amplify/pubsub@1.0.31...@aws-amplify/pubsub@1.0.32) (2019-07-31) | ||
**Note:** Version bump only for package @aws-amplify/pubsub | ||
## [1.0.31](https://github.com/aws/aws-amplify/compare/@aws-amplify/pubsub@1.0.30...@aws-amplify/pubsub@1.0.31) (2019-07-30) | ||
**Note:** Version bump only for package @aws-amplify/pubsub | ||
## [1.0.30](https://github.com/aws/aws-amplify/compare/@aws-amplify/pubsub@1.0.29...@aws-amplify/pubsub@1.0.30) (2019-07-18) | ||
**Note:** Version bump only for package @aws-amplify/pubsub | ||
<a name="1.0.29"></a> | ||
@@ -8,0 +54,0 @@ ## [1.0.29](https://github.com/aws/aws-amplify/compare/@aws-amplify/pubsub@1.0.29-unstable.4...@aws-amplify/pubsub@1.0.29) (2019-06-17) |
{ | ||
"name": "@aws-amplify/pubsub", | ||
"version": "1.0.29", | ||
"version": "1.0.30-preview.68+62f717f2", | ||
"description": "Pubsub category of aws-amplify", | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.js", | ||
"typings": "./lib/index.d.ts", | ||
"main": "./index.js", | ||
"module": "./esm/index.js", | ||
"typings": "./esm/index.d.ts", | ||
"react-native": { | ||
"./index": "./esm/index.js" | ||
}, | ||
"sideEffects": false, | ||
"publishConfig": { | ||
@@ -14,4 +18,6 @@ "access": "public" | ||
"build-with-test": "npm run clean && npm test && tsc && webpack", | ||
"build": "npm run clean && tsc && cpx src/vendor/** lib/vendor && webpack", | ||
"clean": "rimraf lib lib-esm dist", | ||
"build:cjs": "node ./build es5 && cpx src/vendor/** cjs/vendor && webpack && webpack --config ./webpack.config.dev.js", | ||
"build:esm": "node ./build es6 && cpx src/vendor/** esm/vendor", | ||
"build": "npm run clean && npm run build:esm && npm run build:cjs", | ||
"clean": "rimraf esm cjs dist", | ||
"format": "tsfmt --useTsfmt tsfmt.json -r src/**/*.ts", | ||
@@ -31,28 +37,7 @@ "lint": "tslint 'src/**/*.ts'" | ||
"devDependencies": { | ||
"@types/jest": "^20.0.8", | ||
"@types/node": "^8.10.15", | ||
"@types/zen-observable": "^0.5.3", | ||
"awesome-typescript-loader": "^3.2.2", | ||
"babel-loader": "^7.1.2", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-react": "^6.24.1", | ||
"babel-preset-stage-2": "^6.24.1", | ||
"compression-webpack-plugin": "^1.1.3", | ||
"cpx": "^1.5.0", | ||
"find": "^0.2.7", | ||
"jest": "^22.4.3", | ||
"json-loader": "^0.5.7", | ||
"prepend-file": "^1.3.1", | ||
"prettier": "^1.7.4", | ||
"rimraf": "^2.6.2", | ||
"source-map-loader": "^0.2.1", | ||
"ts-jest": "^22.0.0", | ||
"tslint": "^5.7.0", | ||
"tslint-config-airbnb": "^5.8.0", | ||
"typescript-formatter": "^6.0.0", | ||
"uglifyjs-webpack-plugin": "^0.4.6", | ||
"webpack": "^3.5.5" | ||
"cpx": "^1.5.0" | ||
}, | ||
"dependencies": { | ||
"@aws-amplify/core": "^1.0.28", | ||
"@aws-amplify/core": "1.0.29-preview.68+62f717f2", | ||
"@types/zen-observable": "^0.5.3", | ||
"uuid": "^3.2.1", | ||
@@ -62,4 +47,19 @@ "zen-observable": "^0.8.6" | ||
"jest": { | ||
"globals": { | ||
"ts-jest": { | ||
"diagnostics": false, | ||
"tsConfig": { | ||
"lib": [ | ||
"es5", | ||
"es2015", | ||
"dom", | ||
"esnext.asynciterable", | ||
"es2017.object" | ||
], | ||
"allowJs": true | ||
} | ||
} | ||
}, | ||
"transform": { | ||
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>../../node_modules/ts-jest/preprocessor.js" | ||
"^.+\\.(js|jsx|ts|tsx)$": "ts-jest" | ||
}, | ||
@@ -76,3 +76,2 @@ "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$", | ||
"testURL": "http://localhost/", | ||
"mapCoverage": true, | ||
"coverageThreshold": { | ||
@@ -89,3 +88,4 @@ "global": { | ||
] | ||
} | ||
}, | ||
"gitHead": "62f717f299fdf94f072b7988972f9dafe705e38d" | ||
} |
@@ -13,5 +13,5 @@ /* | ||
*/ | ||
import PubSubClass from './PubSub'; | ||
import { PubSub as PubSubClass } from './PubSub'; | ||
import Amplify, { ConsoleLogger as Logger } from '@aws-amplify/core'; | ||
import { Amplify, ConsoleLogger as Logger } from '@aws-amplify/core'; | ||
@@ -30,5 +30,8 @@ const logger = new Logger('PubSub'); | ||
export * from './Providers/AWSIotProvider'; | ||
export { PubSub, PubSubClass }; | ||
/** | ||
* @deprecated use named import | ||
*/ | ||
export default PubSub; | ||
export * from './Providers/AWSIotProvider'; | ||
export { PubSubClass }; |
@@ -81,2 +81,6 @@ /* | ||
protected get isSSLEnabled() { | ||
return !this.options.aws_appsync_dangerously_connect_to_http_endpoint_for_testing; | ||
} | ||
protected getTopicForValue(value) { return typeof value === 'object' && value[topicSymbol]; } | ||
@@ -103,6 +107,6 @@ | ||
}; | ||
await new Promise((resolve, reject) => { | ||
client.connect({ | ||
useSSL: true, | ||
useSSL: this.isSSLEnabled, | ||
mqttVersion: 3, | ||
@@ -109,0 +113,0 @@ onSuccess: () => resolve(client), |
@@ -17,3 +17,3 @@ /* | ||
import { ConsoleLogger as Logger } from '@aws-amplify/core'; | ||
import { INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER } from '@aws-amplify/core/lib/constants'; | ||
import { INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER } from '@aws-amplify/core/esm/constants'; | ||
import { PubSubProvider, PubSubOptions, ProvidertOptions } from './types'; | ||
@@ -24,3 +24,3 @@ import { AWSAppSyncProvider } from './Providers'; | ||
export default class PubSub { | ||
export class PubSub { | ||
@@ -41,3 +41,3 @@ private _options: PubSubOptions; | ||
if (!this._awsAppSyncProvider) { | ||
this._awsAppSyncProvider = new AWSAppSyncProvider(); | ||
this._awsAppSyncProvider = new AWSAppSyncProvider(this._options); | ||
} | ||
@@ -144,1 +144,6 @@ return this._awsAppSyncProvider; | ||
} | ||
/** | ||
* @deprecated use named import | ||
*/ | ||
export default PubSub; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1
84
35
55
4
1189182
4
14084
2
1
4
+ Added@types/zen-observable@^0.5.3
+ Added@types/zen-observable@0.5.4(transitive)
- Removed@aws-amplify/core@1.3.3(transitive)
- Removedaws-sdk@2.518.0(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbuffer@4.9.1(transitive)
- Removedcall-bind-apply-helpers@1.0.2(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.1.1(transitive)
- Removedevents@1.1.1(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.3.0(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedieee754@1.1.8(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjmespath@0.15.0(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedobject-inspect@1.13.4(transitive)
- Removedpunycode@1.3.21.4.1(transitive)
- Removedqs@6.14.0(transitive)
- Removedquerystring@0.2.0(transitive)
- Removedsax@1.2.1(transitive)
- Removedside-channel@1.1.0(transitive)
- Removedside-channel-list@1.0.0(transitive)
- Removedside-channel-map@1.0.1(transitive)
- Removedside-channel-weakmap@1.0.2(transitive)
- Removedurl@0.10.30.11.4(transitive)
- Removeduuid@3.3.2(transitive)
- Removedxml2js@0.4.19(transitive)
- Removedxmlbuilder@9.0.7(transitive)