Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@operato/graphql

Package Overview
Dependencies
Maintainers
6
Versions
197
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@operato/graphql - npm Package Compare versions

Comparing version 1.17.9 to 1.19.0

10

CHANGELOG.md

@@ -6,2 +6,12 @@ # Change Log

## [1.19.0](https://github.com/hatiolab/operato/compare/v1.18.0...v1.19.0) (2024-05-27)
### :rocket: New Features
* decode graphql error message to escape html-encoded characters ([9631895](https://github.com/hatiolab/operato/commit/963189594fbefc3bffd955811253e452061fd0a2))
* decode-html @operato/utils ([3743348](https://github.com/hatiolab/operato/commit/3743348c9773e437641cbb9c005b515ce8f69689))
### [1.17.9](https://github.com/hatiolab/operato/compare/v1.17.8...v1.17.9) (2024-05-13)

@@ -8,0 +18,0 @@

5

dist/src/graphql-client.js

@@ -7,2 +7,3 @@ import { createUploadLink } from 'apollo-upload-client';

import { getMainDefinition } from '@apollo/client/utilities';
import { decodeHTML } from '@operato/utils';
import { activeRequestCounterLink, decreaseActiveRequestCounter } from './active-request-counter-link';

@@ -29,3 +30,3 @@ export const GRAPHQL_URI = '/graphql';

level: 'error',
message: graphQLErrors[0].message,
message: decodeHTML(graphQLErrors[0].message),
ex: graphQLErrors

@@ -68,3 +69,3 @@ }

level: 'error',
message,
message: decodeHTML(message),
ex: networkError

@@ -71,0 +72,0 @@ }

@@ -5,3 +5,3 @@ {

"author": "heartyoh@hatiolab.com",
"version": "1.17.9",
"version": "1.19.0",
"main": "dist/src/index.js",

@@ -52,2 +52,3 @@ "module": "dist/src/index.js",

"@apollo/client": "^3.6.9",
"@operato/utils": "^1.19.0",
"apollo-upload-client": "^17.0.0",

@@ -115,3 +116,3 @@ "graphql-tag": "^2.12.6",

},
"gitHead": "3ee2a9ccedbe46a0ff0277e41bb75ba5428d4e04"
"gitHead": "8fe8f9edb649dc99453b5f3970244df21502a042"
}

7

src/graphql-client.ts

@@ -18,2 +18,5 @@ import { createUploadLink } from 'apollo-upload-client'

import { getMainDefinition } from '@apollo/client/utilities'
import { decodeHTML } from '@operato/utils'
import { activeRequestCounterLink, decreaseActiveRequestCounter } from './active-request-counter-link'

@@ -44,3 +47,3 @@

level: 'error',
message: graphQLErrors[0].message,
message: decodeHTML(graphQLErrors[0].message),
ex: graphQLErrors

@@ -92,3 +95,3 @@ }

level: 'error',
message,
message: decodeHTML(message),
ex: networkError

@@ -95,0 +98,0 @@ }

Sorry, the diff of this file is not supported yet

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