New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

krl-compiler

Package Overview
Dependencies
Maintainers
1
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krl-compiler - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

2

package.json
{
"name": "krl-compiler",
"version": "0.13.0",
"version": "0.14.0",
"description": "KRL compiler",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -125,2 +125,9 @@ var _ = require("lodash");

},
"ConditionalExpression": function(ast, comp, e){
return e("ternary",
comp(ast.test),
comp(ast.consequent),
comp(ast.alternate)
);
},
"Function": function(ast, comp, e){

@@ -195,2 +202,12 @@ var body = _.map(ast.params, function(param, i){

if(!_.isEmpty(ast.global)){
_.each(ast.global, function(g){
if(!g || g.type !== "Declaration"){
throw new Error("Ruleset.global should only be declarations");
}
if(g.left && g.left.type === "DomainIdentifier"){
if(g.left.domain === "ent"){
throw new Error("Cannot set ent:* vars in the global scope");
}
}
});
rs.global = e("fn", ["ctx"], comp(ast.global));

@@ -197,0 +214,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