Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/pubsub/__mocks__/paho-mqtt.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Paho from 'paho-mqtt';
import * as Paho from '../src/vendor/paho-mqtt';

Paho.Client = jest.fn().mockImplementation((host, port, path, clientId) => {
var client = {};
Expand Down
2 changes: 1 addition & 1 deletion packages/pubsub/__tests__/PubSub-unit-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '../src/Providers';

import { Credentials, Reachability } from '@aws-amplify/core';
import * as Paho from 'paho-mqtt';
import * as Paho from '../src/vendor/paho-mqtt';
import { ConnectionState } from '../src';
import { HubConnectionListener } from './helpers';
import Observable from 'zen-observable-ts';
Expand Down
4 changes: 2 additions & 2 deletions packages/pubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"test": "tslint 'src/**/*.ts' && jest -w 1 --coverage",
"test:size": "size-limit",
"build-with-test": "npm run clean && npm test && tsc && webpack",
"build:cjs": "node ./build es5 && webpack && webpack --config ./webpack.config.dev.js",
"build:esm": "node ./build es6",
"build:cjs": "node ./build es5 && cpx src/vendor/** lib/vendor && webpack && webpack --config ./webpack.config.dev.js",
"build:esm": "node ./build es6 && cpx 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",
Expand Down
2 changes: 1 addition & 1 deletion packages/pubsub/src/Providers/MqttOverWSProvider.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import * as Paho from 'paho-mqtt';
import * as Paho from '../vendor/paho-mqtt';
import { v4 as uuid } from 'uuid';
import Observable, { ZenObservable } from 'zen-observable-ts';

Expand Down
Loading