Socket
Socket
Sign inDemoInstall

@duely/client

Package Overview
Dependencies
Maintainers
1
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@duely/client - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

src/hooks/useMutation.js

6

package.json
{
"name": "@duely/client",
"type": "module",
"version": "0.0.2",
"version": "0.0.3",
"repository": "github:uoleevi/duely",

@@ -17,2 +17,3 @@ "description": "GraphQL client by Duely (wrapper for @apollo/client)",

"@apollo/client": "^3.2.5",
"graphql": "^15.4.0",
"subscriptions-transport-ws": "^0.9.18"

@@ -25,3 +26,6 @@ },

"eslint": "^7.12.1"
},
"peerDependencies": {
"react": "^17.0.1"
}
}

8

src/mutations/index.js

@@ -36,3 +36,5 @@ import { gql } from '@apollo/client';

result: d => d['log_in'],
async after(cache, result) {
async onCompleted(d) {
const result = d['log_in']
if (!result.success) return;

@@ -58,3 +60,5 @@

result: d => d['log_out'],
async after(cache, result) {
async onCompleted(d) {
const result = d['log_out'];
if (!result.success) return;

@@ -61,0 +65,0 @@

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