Skip to content

Commit

Permalink
fix(data): port over Angular fix from master (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mcafee authored Oct 7, 2022
1 parent 0f547be commit 0a38f28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/aws-appsync-subscription-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"apollo-link-retry": "2.2.7",
"aws-appsync-auth-link": "^2.0.8",
"debug": "2.6.9",
"url": "^0.11.0"
"url": "^0.11.0",
"zen-observable-ts": "^1.2.5"
},
"devDependencies": {
"@redux-offline/redux-offline": "2.5.2-native.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { ApolloLink, Observable, Operation, FetchResult } from "apollo-link";
import * as ZenObservable from 'zen-observable-ts';

import { rootLogger } from "./utils";
import * as Paho from './vendor/paho-mqtt';
Expand Down Expand Up @@ -51,7 +52,7 @@ export class SubscriptionHandshakeLink extends ApolloLink {
this.subsInfoContextKey = subsInfoContextKey;
}

request(operation: Operation) {
request(operation: Operation): Observable<FetchResult> | null {
const {
[this.subsInfoContextKey]: subsInfo,
controlMessages: { [CONTROL_EVENTS_KEY]: controlEvents } = { [CONTROL_EVENTS_KEY]: undefined }
Expand Down
1 change: 1 addition & 0 deletions packages/aws-appsync-subscription-link/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { AuthOptions } from "aws-appsync-auth-link";
import * as ZenObservable from 'zen-observable-ts';

//#region Subscription link enums

Expand Down

0 comments on commit 0a38f28

Please sign in to comment.