Socket
Socket
Sign inDemoInstall

pinelab-storefront-client

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinelab-storefront-client - npm Package Compare versions

Comparing version 0.52.0 to 0.52.1

3

lib/util/product.util.d.ts

@@ -54,4 +54,5 @@ import { VendureClient } from '../vendure/vendure.client';

emitter: Emitter;
}
},
quantity?: number
): Promise<void>;
export {};

@@ -239,3 +239,6 @@ 'use strict';

*/
function buy(variant, ctx) {
function buy(variant, ctx, quantity) {
if (quantity === void 0) {
quantity = 1;
}
return __awaiter(this, void 0, void 0, function () {

@@ -247,3 +250,6 @@ var e_1;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, ctx.vendure.addProductToCart(variant.id, 1)];
return [
4 /*yield*/,
ctx.vendure.addProductToCart(variant.id, quantity),
];
case 1:

@@ -253,3 +259,3 @@ _a.sent();

variantId: variant.id,
quantity: 1,
quantity: quantity,
});

@@ -256,0 +262,0 @@ return [3 /*break*/, 3];

{
"name": "pinelab-storefront-client",
"version": "0.52.0",
"version": "0.52.1",
"description": "Generates static html pages with Gridsome and suplied Vue components",

@@ -50,3 +50,3 @@ "author": "Martijn van de Brug <martijn@pinelab.studio>",

},
"gitHead": "b08ffd9227fb8ccb6e6062379bcf491b7442302f"
"gitHead": "2afe05de7e3ebf61d74ed005089f8f6e6a354c50"
}
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