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

@teleology/fp

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleology/fp - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

lib/nonce.js

12

lib/index.js

@@ -125,2 +125,14 @@ "use strict";

});
});
var _nonce = require("./nonce");
Object.keys(_nonce).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _nonce[key];
}
});
});

2

package.json
{
"name": "@teleology/fp",
"version": "1.0.5",
"version": "1.0.6",
"description": "A small collection of functional programming utils",

@@ -5,0 +5,0 @@ "repository": "git@github.com:icarus-sullivan/teleology-fp.git",

@@ -182,5 +182,25 @@ # @teleology/fp

## nonce
Wraps a function and prevents it from being called more than `n` times. Optional second params is the number of times, default is `once`.
Example:
```javascript
const { nonce } = require('@teleology/fp');
const log = nonce(console.log);
log('hi'); // hi
log('bonjour');
```
----
## Changelog
**1.0.6**
- Adding `once` function
**1.0.4**

@@ -187,0 +207,0 @@ - Adding a clean function to remove empty values

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