@subql/apollo-links
Advanced tools
Comparing version 0.4.1-0 to 0.4.1-1
import { Logger } from "./logger"; | ||
export declare const creatErrorLink: (logger: Logger) => import("@apollo/client").ApolloLink; | ||
export declare const creatErrorLink: (logger: Logger) => import("@apollo/client/core").ApolloLink; |
@@ -1,2 +0,2 @@ | ||
import { ApolloLink, Operation, NextLink, Observable, FetchResult } from '@apollo/client'; | ||
import { ApolloLink, Operation, NextLink, Observable, FetchResult } from '@apollo/client/core'; | ||
export declare class FallbackLink extends ApolloLink { | ||
@@ -3,0 +3,0 @@ private url?; |
@@ -6,4 +6,4 @@ "use strict"; | ||
exports.FallbackLink = void 0; | ||
const client_1 = require("@apollo/client"); | ||
class FallbackLink extends client_1.ApolloLink { | ||
const core_1 = require("@apollo/client/core"); | ||
class FallbackLink extends core_1.ApolloLink { | ||
constructor(url) { | ||
@@ -16,3 +16,3 @@ super(); | ||
return null; | ||
return new client_1.Observable(observer => { | ||
return new core_1.Observable(observer => { | ||
var _a; | ||
@@ -19,0 +19,0 @@ const url = (_a = operation.getContext().url) !== null && _a !== void 0 ? _a : this.url; |
{ | ||
"name": "@subql/apollo-links", | ||
"version": "0.4.1-0", | ||
"version": "0.4.1-1", | ||
"description": "SubQuery Network - graphql links", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
}, | ||
"stableVersion": "0.4.0" | ||
"stableVersion": "0.4.1-0" | ||
} |
// Copyright 2020-2022 SubQuery Pte Ltd authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import { ApolloLink, Operation, NextLink, Observable, FetchResult } from '@apollo/client'; | ||
import { ApolloLink, Operation, NextLink, Observable, FetchResult } from '@apollo/client/core'; | ||
@@ -21,2 +21,2 @@ export class FallbackLink extends ApolloLink { | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1060
112725