Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dotdev/next-components

Package Overview
Dependencies
Maintainers
7
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 0.3.0 to 0.3.1

2

dist/bootstrap.js

@@ -39,3 +39,3 @@ "use strict";

var _this = this;
return (React.createElement(react_router_dom_1.BrowserRouter, null,
return this.props.data.template.name === "404" ? (React.createElement(this.props.templates.notFound, __assign({}, this.props))) : (React.createElement(react_router_dom_1.BrowserRouter, null,
React.createElement(react_router_dom_1.Switch, null,

@@ -42,0 +42,0 @@ React.createElement(react_router_dom_1.Route, { exact: true, path: "/", render: function (props) { return (React.createElement(_this.props.templates.home, __assign({}, props, _this.props))); } }),

@@ -17,3 +17,3 @@ import * as React from "react";

element(data?: any): JSX.Element;
bootstrap(element: string, window?: any, data?: any): void;
bootstrap(element: string, window?: any): void;
private parse;

@@ -20,0 +20,0 @@ private parseShopifyData;

@@ -27,9 +27,9 @@ "use strict";

};
ShopifyNext.prototype.bootstrap = function (element, window, data) {
var parsedData = data ? data : this.parse();
ShopifyNext.prototype.bootstrap = function (element, window) {
var parsedData = this.parse();
if (window.location.href.includes("localhost"))
console.log(parsedData);
var view = new URLSearchParams(window.location.href.split("?")[1]).get("view");
if (view)
parsedData.template.suffix = view;
if (data)
console.log(data);
return bootstrap_1.Bootstrap.bootstrap(element, this.options.templates, this.options.sections, parsedData);

@@ -36,0 +36,0 @@ };

@@ -6,4 +6,4 @@ "use strict";

var stringFormat = format || "Do MMMM YYYY, h:mm:ss";
return moment(date).format(format);
return moment(date, "YYYY-MM-DD HH:mm").format(format);
};
//# sourceMappingURL=format-date.js.map
{
"name": "@dotdev/next-components",
"version": "0.3.0",
"version": "0.3.1",
"license": "UNLICENSED",

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

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