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

@riotjs/util

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@riotjs/util - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

12

objects.js

@@ -76,1 +76,13 @@ import { isObject } from './checks.js'

}
/**
* Generate a new object picking only the properties from a given array
* @param {Object} source - target object
* @param {Array} keys - list of keys that we want to copy over to the new object
* @return {Object} a new object conaining only the keys that we have picked from the keys array list
*/
export function pick(source, keys) {
return isObject(source)
? Object.fromEntries(keys.map((key) => [key, source[key]]))
: source
}

2

package.json
{
"name": "@riotjs/util",
"version": "2.3.0",
"version": "2.4.0",
"description": "Riot.js util functions",

@@ -5,0 +5,0 @@ "main": "index.cjs",

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