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

@sanity/default-layout

Package Overview
Dependencies
Maintainers
6
Versions
1149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/default-layout - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

lib/styles/body.css

12

lib/defaultLayoutRouter.js

@@ -15,7 +15,13 @@ 'use strict';

exports.default = (0, _router.createRoute)('/some-site/:tool/*', function (params) {
var tool = _tool2.default.find(function (tool) {
return tool.name === params.tool;
exports.default = (0, _router.createRoute)('/:tool/*', function (params) {
var tool = _tool2.default.find(function (curr) {
return curr.name === params.tool;
});
// @todo implement better handling of errors
if (!tool) {
throw new Error('Tool with name "' + params.tool + '" not found');
}
return (0, _router.createScope)(tool.name, tool.router);
});
{
"name": "@sanity/default-layout",
"version": "0.0.10",
"version": "0.0.11",
"description": "The default layout components for Sanity",

@@ -5,0 +5,0 @@ "main": "lib/default-layout.js",

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