Socket
Socket
Sign inDemoInstall

@dotdev/next-components

Package Overview
Dependencies
Maintainers
17
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotdev/next-components - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

2

dist/helpers/cart.d.ts

@@ -13,3 +13,3 @@ import "whatwg-fetch";

*/
getCartJSON: () => void;
getCartJSON: () => Promise<any>;
addItem: (id: number, qty: number, properties?: any) => Promise<void>;

@@ -16,0 +16,0 @@ addItems: (items: Array<{

@@ -71,16 +71,21 @@ "use strict";

*/
this.getCartJSON = function () {
axios_1.default.get("/cart?view=json&x=" + Math.random(), {
headers: {
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/json;",
"Cache-Control": "no-cache",
"cache": "no-cache",
},
})
.then(function (_a) {
var data = _a.data;
_this.context.update({ cart: data });
this.getCartJSON = function () { return __awaiter(_this, void 0, void 0, function () {
var data;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, axios_1.default.get("/cart?view=json&x=" + Math.random(), {
headers: {
"X-Requested-With": "XMLHttpRequest",
"Content-Type": "application/json;",
"Cache-Control": "no-cache",
"cache": "no-cache",
},
})];
case 1:
data = (_a.sent()).data;
this.context.update({ cart: data });
return [2 /*return*/, data];
}
});
};
}); };
this.addItem = function (id, qty, properties) { return __awaiter(_this, void 0, void 0, function () {

@@ -87,0 +92,0 @@ var response, err_1;

{
"name": "@dotdev/next-components",
"version": "1.2.3",
"version": "1.2.4",
"license": "SEE LICENSE IN LICENCE.md",

@@ -5,0 +5,0 @@ "description": "Common components for Next projects",

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