New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vyro-x/pricing-client

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vyro-x/pricing-client - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

lib/getOrderPricingConfig.d.ts

@@ -1,3 +0,3 @@

import { PricingConfigV2 } from '@vyro-x/vehicle-order-types';
import { Product } from './getProductLineItems';
import { PricingConfigV2 } from './types';
type Args = {

@@ -4,0 +4,0 @@ basePricingConfig: PricingConfigV2;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vehicle_order_types_1 = require("@vyro-x/vehicle-order-types");
const types_1 = require("./types");
const getOrderPricingConfig_1 = require("./getOrderPricingConfig");

@@ -9,3 +9,3 @@ test('should calc the pricing config', () => {

lineItems: {
dutiable: [{ code: vehicle_order_types_1.DutiablePricingCode.VehiclePrice, value: 10000 }],
dutiable: [{ code: types_1.DutiablePricingCode.VehiclePrice, value: 10000 }],
onRoad: [],

@@ -36,5 +36,5 @@ additional: [],

lineItems: {
dutiable: [{ code: vehicle_order_types_1.DutiablePricingCode.VehiclePrice, value: 10000 }],
dutiable: [{ code: types_1.DutiablePricingCode.VehiclePrice, value: 10000 }],
onRoad: [],
additional: [expect.objectContaining({ code: vehicle_order_types_1.AdditionalPricingCode.Other, value: 1000 })],
additional: [expect.objectContaining({ code: types_1.AdditionalPricingCode.Other, value: 1000 })],
},

@@ -41,0 +41,0 @@ driveAwayPrice: 11000,

@@ -1,2 +0,2 @@

import { AdditionalPricingCode, PricingLineItem } from '@vyro-x/vehicle-order-types';
import { AdditionalPricingCode, PricingLineItem } from './types';
type ProductVariant = {

@@ -3,0 +3,0 @@ id: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getProductLineItems = void 0;
const vehicle_order_types_1 = require("@vyro-x/vehicle-order-types");
const types_1 = require("./types");
const getProductLineItems = (selectedProductVariants, products) => {

@@ -21,3 +21,3 @@ return selectedProductVariants

return {
code: vehicle_order_types_1.AdditionalPricingCode.Other,
code: types_1.AdditionalPricingCode.Other,
description: `${product.name} - ${productVariant.name}`,

@@ -24,0 +24,0 @@ value: productVariant.gross_price,

{
"name": "@vyro-x/pricing-client",
"description": "Client methods and type definitions for price-related entities in Vyro",
"version": "0.2.1",
"version": "0.2.2",
"private": false,

@@ -6,0 +6,0 @@ "main": "lib/index.js",

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