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

krl-stdlib

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krl-stdlib - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

2

package.json
{
"name": "krl-stdlib",
"version": "0.5.1",
"version": "0.5.2",
"description": "Standard library for KRL",

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

@@ -69,2 +69,11 @@ var _ = require("lodash");

//
stdlib["><"] = function(ctx, obj, val){
if(_.isArray(obj)){
return _.indexOf(obj,val) >= 0;
}else if(_.isPlainObject(obj)){
return _.indexOf(_.keys(obj),val) >= 0;
}else{
return false;
}
};
stdlib.as = function(ctx, val, type){

@@ -71,0 +80,0 @@ var val_type = stdlib["typeof"](ctx, val);

@@ -161,2 +161,8 @@ var _ = require("lodash");

tf("><",[obj,"pi"],true);
tf("><",[obj,"a"],false);
assertObjNotMutated();
tf("><",[[5, 6, 7],6],true);
tf("><",[[5, 6, 7],3],false);
_.each({

@@ -163,0 +169,0 @@ "all": [ true, false, false],

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