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

fun-map

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fun-map - npm Package Compare versions

Comparing version 3.1.1 to 3.2.0

20

index.js

@@ -91,2 +91,22 @@ 'use strict'; //jshint node:true

exports.keyvals = keyvals
function keyvals(obj) {
var ret = []
for (var key in obj) if (has.call(obj, key))
ret.push([key, obj[key]])
return ret
}
exports.hashmap = hashmap
function hashmap() {
var ret = {}
for (var i = 0, len = arguments.length; i < len; i += 2)
assocM(ret, arguments[i], arguments[i + 1])
if (i !== len)
throw new Error('missing key')
return ret
}
// mutations ahead!

@@ -93,0 +113,0 @@

2

package.json
{
"name": "fun-map",
"version": "3.1.1",
"version": "3.2.0",
"description": " a few functional utilities for pretending that JS objects are Clojure string maps.",

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

@@ -7,2 +7,3 @@ # fun-map

## hashmap(…keyvals)
## get(obj, key)

@@ -18,2 +19,3 @@ ## getIn(obj, keys)

## vals(obj)
## keyvals(obj)

@@ -20,0 +22,0 @@ ## DANGEROUS IMPURE THINGS

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