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

guy

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guy - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

26

lib/obj.js
(function() {
'use strict';
//-----------------------------------------------------------------------------------------------------------
this.pick_with_fallback = function(d, fallback, ...keys) {
var R, i, key, len, ref, value;
this._pick_with_fallback = function(d, fallback, ...keys) {
var R, i, key, len, value;
R = {};
ref = keys.flat(2e308);
for (i = 0, len = ref.length; i < len; i++) {
key = ref[i];
keys = keys.flat(2e308);
for (i = 0, len = keys.length; i < len; i++) {
key = keys[i];
R[key] = (value = d[key]) === void 0 ? fallback : value;
}
return [R, keys];
};
//-----------------------------------------------------------------------------------------------------------
this.pick_with_fallback = function(d, fallback, ...keys) {
return (this._pick_with_fallback(d, fallback, keys))[0];
};
//-----------------------------------------------------------------------------------------------------------
this.pluck_with_fallback = function(d, fallback, ...keys) {
var R, i, key, len;
[R, keys] = this._pick_with_fallback(d, fallback, ...keys);
for (i = 0, len = keys.length; i < len; i++) {
key = keys[i];
delete d[key];
}
return R;

@@ -13,0 +29,0 @@ };

2

package.json
{
"name": "guy",
"version": "2.1.0",
"version": "2.2.0",
"description": "npm dependencies checker",

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

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