@apollo/client-devtools-vscode
Advanced tools
+1
-1
| { | ||
| "name": "@apollo/client-devtools-vscode", | ||
| "version": "4.24.5", | ||
| "version": "4.24.6", | ||
| "repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
+19
-19
@@ -1,4 +0,4 @@ | ||
| import { gte } from "semver"; | ||
| import { EMPTY, Observable, catchError, filter, from, map, of } from "rxjs"; | ||
| import { Kind, OperationTypeNode } from "graphql"; | ||
| import { gte as __WEBPACK_EXTERNAL_MODULE_semver_gte__ } from "semver"; | ||
| import { EMPTY as __WEBPACK_EXTERNAL_MODULE_rxjs_EMPTY__, Observable as __WEBPACK_EXTERNAL_MODULE_rxjs_Observable__, catchError as __WEBPACK_EXTERNAL_MODULE_rxjs_catchError__, filter as __WEBPACK_EXTERNAL_MODULE_rxjs_filter__, from as __WEBPACK_EXTERNAL_MODULE_rxjs_from__, map as __WEBPACK_EXTERNAL_MODULE_rxjs_map__, of as __WEBPACK_EXTERNAL_MODULE_rxjs_of__ } from "rxjs"; | ||
| import { Kind as __WEBPACK_EXTERNAL_MODULE_graphql_Kind__, OperationTypeNode as __WEBPACK_EXTERNAL_MODULE_graphql_OperationTypeNode__ } from "graphql"; | ||
| /******/ // The require scope | ||
@@ -591,3 +591,3 @@ /******/ var __webpack_require__ = {}; | ||
| cloned.definitions = document.definitions.filter((definition) => { | ||
| return (definition.kind !== Kind.OPERATION_DEFINITION || | ||
| return (definition.kind !== __WEBPACK_EXTERNAL_MODULE_graphql_Kind__.OPERATION_DEFINITION || | ||
| definition.name?.value === operationName); | ||
@@ -628,15 +628,15 @@ }); | ||
| if (!definition) { | ||
| return EMPTY; | ||
| return __WEBPACK_EXTERNAL_MODULE_rxjs_EMPTY__; | ||
| } | ||
| if (operationName === "IntrospectionQuery") { | ||
| return from(this.executeQuery({ query: document, fetchPolicy: "no-cache" }).then((response) => ({ operationName, response }))); | ||
| return __WEBPACK_EXTERNAL_MODULE_rxjs_from__(this.executeQuery({ query: document, fetchPolicy: "no-cache" }).then((response) => ({ operationName, response }))); | ||
| } | ||
| if (definition.operation === OperationTypeNode.MUTATION) { | ||
| return from(this.executeMutation({ mutation: document, variables }).then((response) => ({ operationName, response }))); | ||
| if (definition.operation === __WEBPACK_EXTERNAL_MODULE_graphql_OperationTypeNode__.MUTATION) { | ||
| return __WEBPACK_EXTERNAL_MODULE_rxjs_from__(this.executeMutation({ mutation: document, variables }).then((response) => ({ operationName, response }))); | ||
| } | ||
| if (definition.operation === OperationTypeNode.SUBSCRIPTION) { | ||
| if (definition.operation === __WEBPACK_EXTERNAL_MODULE_graphql_OperationTypeNode__.SUBSCRIPTION) { | ||
| return this.executeSubscription({ | ||
| subscription: document, | ||
| variables, | ||
| }).pipe(map((response) => ({ operationName, response }))); | ||
| }).pipe(__WEBPACK_EXTERNAL_MODULE_rxjs_map__((response) => ({ operationName, response }))); | ||
| } | ||
@@ -647,3 +647,3 @@ return this.watchQuery({ | ||
| fetchPolicy: payload.fetchPolicy, | ||
| }).pipe(map((response) => ({ operationName, response }))); | ||
| }).pipe(__WEBPACK_EXTERNAL_MODULE_rxjs_map__((response) => ({ operationName, response }))); | ||
| } | ||
@@ -705,4 +705,4 @@ } | ||
| watchQuery(options) { | ||
| return this.client.watchQuery(options).pipe(filter((result) => Object(function webpackMissingModule() { var e = new Error("Cannot find module '@apollo/client/utilities'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())(result.networkStatus) || | ||
| result.dataState !== "empty"), map((result) => ({ | ||
| return this.client.watchQuery(options).pipe(__WEBPACK_EXTERNAL_MODULE_rxjs_filter__((result) => Object(function webpackMissingModule() { var e = new Error("Cannot find module '@apollo/client/utilities'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())(result.networkStatus) || | ||
| result.dataState !== "empty"), __WEBPACK_EXTERNAL_MODULE_rxjs_map__((result) => ({ | ||
| data: result.data, | ||
@@ -715,3 +715,3 @@ ...getErrorProperties(result.error), | ||
| .subscribe({ query: subscription, variables }) | ||
| .pipe(map((result) => ({ | ||
| .pipe(__WEBPACK_EXTERNAL_MODULE_rxjs_map__((result) => ({ | ||
| data: result.data, | ||
@@ -916,9 +916,9 @@ extensions: result.extensions, | ||
| watchQuery(options) { | ||
| return toRxjsObservable(this.client.watchQuery(options)).pipe(map(toExplorerResponse), catchError((error) => of(handler_getErrorProperties(error)))); | ||
| return toRxjsObservable(this.client.watchQuery(options)).pipe(__WEBPACK_EXTERNAL_MODULE_rxjs_map__(toExplorerResponse), __WEBPACK_EXTERNAL_MODULE_rxjs_catchError__((error) => __WEBPACK_EXTERNAL_MODULE_rxjs_of__(handler_getErrorProperties(error)))); | ||
| } | ||
| executeSubscription({ subscription, variables, }) { | ||
| return toRxjsObservable(this.client.subscribe({ query: subscription, variables })).pipe(map((result) => ({ | ||
| return toRxjsObservable(this.client.subscribe({ query: subscription, variables })).pipe(__WEBPACK_EXTERNAL_MODULE_rxjs_map__((result) => ({ | ||
| data: result.data, | ||
| errors: result.errors, | ||
| })), catchError((error) => of(handler_getErrorProperties(error)))); | ||
| })), __WEBPACK_EXTERNAL_MODULE_rxjs_catchError__((error) => __WEBPACK_EXTERNAL_MODULE_rxjs_of__(handler_getErrorProperties(error)))); | ||
| } | ||
@@ -1068,3 +1068,3 @@ getMutations() { | ||
| function toRxjsObservable(inner) { | ||
| return new Observable((observer) => { | ||
| return new __WEBPACK_EXTERNAL_MODULE_rxjs_Observable__((observer) => { | ||
| const subscription = inner.subscribe(observer); | ||
@@ -1080,3 +1080,3 @@ return () => subscription.unsubscribe(); | ||
| function createHandler(client) { | ||
| return gte(client.version, "4.0.0") | ||
| return __WEBPACK_EXTERNAL_MODULE_semver_gte__(client.version, "4.0.0") | ||
| ? new ClientV4Handler(client) | ||
@@ -1083,0 +1083,0 @@ : new ClientV3Handler(client); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1797329
0.05%