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

@decathlon/moon

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@decathlon/moon - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

3

dist/index.es.js

@@ -133,2 +133,3 @@ import { QueryCache, MutationCache, QueryClient, QueryClientProvider, hashQueryKey, InfiniteQueryObserver, QueryObserver, notifyManager, QueriesObserver, useQuery as useQuery$1, useMutation as useMutation$1, useInfiniteQuery as useInfiniteQuery$1 } from 'react-query';

MutateType["Put"] = "PUT";
MutateType["Patch"] = "PATCH";
})(MutateType || (MutateType = {}));

@@ -165,2 +166,4 @@ var MoonClient = /** @class */ (function () {

return client.put(clientEndPoint, variables, options);
case MutateType.Patch:
return client.patch(clientEndPoint, variables, options);
default:

@@ -167,0 +170,0 @@ return client.post(clientEndPoint, variables, options);

@@ -133,2 +133,3 @@ (function (global, factory) {

MutateType["Put"] = "PUT";
MutateType["Patch"] = "PATCH";
})(exports.MutateType || (exports.MutateType = {}));

@@ -165,2 +166,4 @@ var MoonClient = /** @class */ (function () {

return client.put(clientEndPoint, variables, options);
case exports.MutateType.Patch:
return client.patch(clientEndPoint, variables, options);
default:

@@ -167,0 +170,0 @@ return client.post(clientEndPoint, variables, options);

3

dist/moonClient.d.ts

@@ -5,3 +5,4 @@ import { ClientFactory, ILink, ClientConfig } from "./utils/client";

Post = "POST",
Put = "PUT"
Put = "PUT",
Patch = "PATCH"
}

@@ -8,0 +9,0 @@ export default class MoonClient {

@@ -38,2 +38,3 @@ import { QueryClient } from "react-query";

put<R = any>(url: string, data?: any, config?: ClientConfig): Promise<R>;
patch<R = any>(url: string, data?: any, config?: ClientConfig): Promise<R>;
}

@@ -40,0 +41,0 @@ export declare function getClients(links: ILink[], clientFactory?: ClientFactory): IClients;

@@ -21,2 +21,3 @@ "use strict";

MutateType["Put"] = "PUT";
MutateType["Patch"] = "PATCH";
})(MutateType = exports.MutateType || (exports.MutateType = {}));

@@ -53,2 +54,4 @@ var MoonClient = /** @class */ (function () {

return client.put(clientEndPoint, variables, options);
case MutateType.Patch:
return client.patch(clientEndPoint, variables, options);
default:

@@ -55,0 +58,0 @@ return client.post(clientEndPoint, variables, options);

{
"name": "@decathlon/moon",
"version": "4.2.0",
"version": "4.2.1",
"description": "A featured, production ready caching REST client for every React UI",

@@ -58,3 +58,3 @@ "author": "Decathlon",

},
"gitHead": "a1b3b2c13c4090c8189f3848a94d3cb3235635b8"
"gitHead": "02d1d5c45b5af47abf3c86543fb3478063013588"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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