New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.9 to 1.0.10

lib/timeout.js

12

lib/index.js

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

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

2

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

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

@@ -241,2 +241,16 @@ # @teleology/fp

## timeout
Curries a given function, millis and ensures an error is thrown when a timeout occurs.
```javascript
const { timeout } = require('@teleology/fp');
const timed = timeout(
async () => new Promise((resolve) => setTimeout(resolve, 9000)), // long running task
200, // timeout
);
timed('hello').then(console.log).catch(console.log);
```
----

@@ -246,2 +260,5 @@

**1.0.10**
- Adding `timeout` function
**1.0.9**

@@ -248,0 +265,0 @@ - Adding `retry, settle` functions

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