New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/pubsub

Package Overview
Dependencies
Maintainers
10
Versions
2046
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/pubsub - npm Package Compare versions

Comparing version 1.0.29 to 1.0.30-preview.68

build.js

46

CHANGELOG.md

@@ -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)

66

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc