@decathlon/moon
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -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); |
@@ -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
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
259092
2558