Socket
Socket
Sign inDemoInstall

@vtex/order-items

Package Overview
Dependencies
Maintainers
74
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/order-items - npm Package Compare versions

Comparing version 0.0.1-8 to 0.1.0

4

CHANGELOG.md

@@ -8,6 +8,8 @@ # Changelog

## [0.1.0] - 2021-03-17
## [Unreleased]
## [0.1.0] - 2021-03-22
### Added
- Release first version.
/*!
* @vtex/order-items v0.0.1-8
* @vtex/order-items v0.1.0
* (c) VTEX

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* @vtex/order-items v0.0.1-8
* @vtex/order-items v0.1.0
* (c) VTEX

@@ -4,0 +4,0 @@ * Released under the MIT License.

{
"name": "@vtex/order-items",
"version": "0.0.1-8",
"version": "0.1.0",
"description": "",

@@ -17,3 +17,3 @@ "cdn": "dist/index.umd.js",

"@types/uuid": "^8.3.0",
"@vtex/order-manager": "0.0.3-17",
"@vtex/order-manager": "^0.1.0",
"react": "17.0.1",

@@ -20,0 +20,0 @@ "uuid": "^8.3.2"

@@ -38,2 +38,6 @@ # Order Items (NPM Package)

## Releasing
Use [releasy](https://www.npmjs.com/package/releasy) to create new tag to be released. After the tag is created, run `npm publish`
## Documentation

@@ -40,0 +44,0 @@

@@ -32,20 +32,27 @@ /// <reference types="react" />

export declare type AddItemFn = (items: AddItemItemParam[], marketingData?: Partial<MarketingData>, salesChannel?: string) => void;
declare type UpdateQuantityItemParam = {
seller: string;
quantity: number;
} & ({
interface ItemIdentificationById {
id: string;
uniqueId?: string;
index?: number;
} | {
}
interface ItemIdentificationByUniqueId {
id?: string;
uniqueId: string;
index?: number;
} | {
}
interface ItemIdentificationByIndex {
id?: string;
uniqueId?: string;
index: number;
});
}
declare type ItemIdentification = ItemIdentificationById | ItemIdentificationByUniqueId | ItemIdentificationByIndex;
declare type UpdateQuantityItemParam = {
seller: string;
quantity: number;
} & ItemIdentification;
export declare type UpdateQuantityFn = (item: UpdateQuantityItemParam) => void;
export declare type RemoveItemFn = (input: UpdateQuantityItemParam) => void;
declare type RemoveItemParam = {
seller: string;
} & ItemIdentification;
export declare type RemoveItemFn = (input: RemoveItemParam) => void;
export declare type SetManualPriceFn = (price: number, itemIndex: number) => void;

@@ -52,0 +59,0 @@ export declare const OrderItemsContext: import("react").Context<Context>;

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