Socket
Socket
Sign inDemoInstall

@vtex/order-manager

Package Overview
Dependencies
Maintainers
67
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/order-manager - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

5

CHANGELOG.md

@@ -10,2 +10,7 @@ # Changelog

## [0.4.0] - 2021-04-20
### Added
- Argument to `useGetOrderForm` passing current `orderForm` and `setOrderForm`
function.
## [0.3.1] - 2021-04-13

@@ -12,0 +17,0 @@

7

dist/index.esm.js
/*!
* @vtex/order-manager v0.3.1
* @vtex/order-manager v0.4.0
* (c) VTEX

@@ -551,3 +551,2 @@ * Released under the MIT License.

var _a;
const { loading, data, error } = useGetOrderForm();
const shouldUseLocalOrderForm = typeof document !== 'undefined' && !navigator.onLine;

@@ -557,2 +556,6 @@ const [orderForm, setOrderForm] = useReducer(reducer, (_a = (shouldUseLocalOrderForm

: defaultOrderForm)) !== null && _a !== void 0 ? _a : defaultOrderForm);
const { loading, data, error } = useGetOrderForm({
orderForm: orderForm,
setOrderForm: setOrderForm,
});
// use a different variable to store the loading state because if some

@@ -559,0 +562,0 @@ // component uses the `loading` from the Apollo query they won't be perfectly

/*!
* @vtex/order-manager v0.3.1
* @vtex/order-manager v0.4.0
* (c) VTEX

@@ -559,3 +559,2 @@ * Released under the MIT License.

var _a;
const { loading, data, error } = useGetOrderForm();
const shouldUseLocalOrderForm = typeof document !== 'undefined' && !navigator.onLine;

@@ -565,2 +564,6 @@ const [orderForm, setOrderForm] = React.useReducer(reducer, (_a = (shouldUseLocalOrderForm

: defaultOrderForm)) !== null && _a !== void 0 ? _a : defaultOrderForm);
const { loading, data, error } = useGetOrderForm({
orderForm: orderForm,
setOrderForm: setOrderForm,
});
// use a different variable to store the loading state because if some

@@ -567,0 +570,0 @@ // component uses the `loading` from the Apollo query they won't be perfectly

{
"name": "@vtex/order-manager",
"version": "0.3.1",
"version": "0.4.0",
"description": "",

@@ -5,0 +5,0 @@ "cdn": "dist/index.umd.js",

import type { FC } from 'react';
import type { OrderForm } from '../typings';
import type { OrderForm, OrderFormUpdate } from '../typings';
import type { createUseMessages } from './createUseMessages';
interface GetOrderFormHookArgs<O extends OrderForm> {
orderForm: O;
setOrderForm: (update: OrderFormUpdate<O>) => void;
}
export interface CreateOrderFormProviderParams<O extends OrderForm> {
useOrderFormMessages: ReturnType<typeof createUseMessages>;
useGetOrderForm: () => {
useGetOrderForm: (args: GetOrderFormHookArgs<O>) => {
data?: {

@@ -18,2 +22,3 @@ orderForm: O;

};
export {};
//# sourceMappingURL=createOrderForm.d.ts.map

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