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

razorleaf

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

razorleaf - npm Package Compare versions

Comparing version 0.15.1-beta to 0.15.2-beta

2

package.json
{
"name": "razorleaf",
"version": "0.15.1-beta",
"version": "0.15.2-beta",
"main": "razorleaf.js",

@@ -5,0 +5,0 @@ "files": [

@@ -6,2 +6,14 @@ "use strict";

function isContained(element) {
while(element.parent) {
element = element.parent;
if(element.type === "block") {
return true;
}
}
return false;
}
function loadExtends(tree, visited, options) {

@@ -24,7 +36,9 @@ if(tree.extends) {

if(!parentBlock) {
if(parentBlock) {
parentBlock.children = [tree.blocks[name]];
} else if(!isContained(tree.blocks[name])) {
throw tree.blocks[name].replacesNonExistentBlock();
}
parentBlock.children = [tree.blocks[name]];
newTree.blocks[name] = tree.blocks[name];
}

@@ -31,0 +45,0 @@ }

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