Socket
Socket
Sign inDemoInstall

fluture

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluture - npm Package Compare versions

Comparing version 7.1.1 to 7.1.2

src/internal/bc.js

10

package.json
{
"name": "fluture",
"version": "7.1.1",
"version": "7.1.2",
"description": "FantasyLand compliant (monadic) alternative to Promises",

@@ -19,3 +19,3 @@ "main": "index.js",

"lint:readme": "remark --no-stdout --frail -u remark-validate-links README.md",
"release": "npm outdated --long; npm run build && xyz --edit --repo git@github.com:fluture-js/Fluture.git --tag 'X.Y.Z' --increment",
"release": "npm outdated --long; xyz --edit --repo git@github.com:fluture-js/Fluture.git --tag 'X.Y.Z' --script scripts/distribute --increment",
"test": "npm run lint && npm run lint:readme && npm run test:unit",

@@ -78,8 +78,10 @@ "test:unit": "rollup -c rollup.config.test.js && mocha --require source-map-support/register --reporter test/reporter.js index.test.js",

"remark-cli": "^4.0.0",
"remark-validate-links": "^6.0.0",
"remark-validate-links": "^7.0.0",
"rimraf": "^2.4.3",
"rollup": "^0.45.0",
"rollup": "^0.47.6",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-commonjs": "^8.1.0",
"rollup-plugin-istanbul": "^1.1.0",
"rollup-plugin-multi-entry": "^2.0.1",
"rollup-plugin-node-resolve": "^3.0.0",
"source-map-support": "^0.4.14",

@@ -86,0 +88,0 @@ "xyz": "^2.0.1"

@@ -78,2 +78,9 @@ # [![Fluture](logo.png)](#butterfly)

### From a CDN
Fluture is hosted in full with all of its dependencies at
https://rawgit.com/fluture-js/Fluture/master/dist/bundle.js.
This script will add `Fluture` to the global scope.
## Interoperability

@@ -80,0 +87,0 @@

4

src/encase-p.js
import {Core} from './core';
import {noop, show, showf, escapeTick, partial1} from './internal/fn';
import {noop, show, showf, immediately, partial1} from './internal/fn';
import {isThenable, isFunction} from './internal/is';

@@ -23,3 +23,3 @@ import {invalidArgument, typeError} from './internal/throw';

const {_fn, _a} = this;
check$promise(_fn(_a), _fn, _a).then(escapeTick(res), escapeTick(rej));
check$promise(_fn(_a), _fn, _a).then(immediately(res), immediately(rej));
return noop;

@@ -26,0 +26,0 @@ };

import {Core} from './core';
import {noop, show, showf, escapeTick, partial1, partial2} from './internal/fn';
import {noop, show, showf, immediately, partial1, partial2} from './internal/fn';
import {isThenable, isFunction} from './internal/is';

@@ -25,3 +25,3 @@ import {invalidArgument, typeError} from './internal/throw';

const {_fn, _a, _b} = this;
check$promise(_fn(_a, _b), _fn, _a, _b).then(escapeTick(res), escapeTick(rej));
check$promise(_fn(_a, _b), _fn, _a, _b).then(immediately(res), immediately(rej));
return noop;

@@ -28,0 +28,0 @@ };

import {Core} from './core';
import {noop, show, showf, escapeTick, partial1, partial2, partial3} from './internal/fn';
import {noop, show, showf, immediately, partial1, partial2, partial3} from './internal/fn';
import {isThenable, isFunction} from './internal/is';

@@ -27,3 +27,3 @@ import {invalidArgument, typeError} from './internal/throw';

const {_fn, _a, _b, _c} = this;
check$promise(_fn(_a, _b, _c), _fn, _a, _b, _c).then(escapeTick(res), escapeTick(rej));
check$promise(_fn(_a, _b, _c), _fn, _a, _b, _c).then(immediately(res), immediately(rej));
return noop;

@@ -30,0 +30,0 @@ };

import Z from 'sanctuary-type-classes';
import inspectf from 'inspect-f';
import * as bc from './bc';
const setImmediate = typeof global.setImmediate === 'function'
? global.setImmediate
: /* istanbul ignore next: environment-specific */ bc.setImmediate;
export const noop = function noop(){};

@@ -32,4 +37,2 @@ export const moop = function moop(){ return this };

export const escapeTick = f => function imprisoned(x){
setTimeout(function escaped(){ f(x) }, 0);
};
export const immediately = f => x => setImmediate(f, x);
import {Core} from './core';
import {noop, show, showf, escapeTick} from './internal/fn';
import {noop, show, showf, immediately} from './internal/fn';
import {isThenable, isFunction} from './internal/is';

@@ -21,3 +21,3 @@ import {invalidArgument, typeError} from './internal/throw';

const {_fn} = this;
check$promise(_fn(), _fn).then(escapeTick(res), escapeTick(rej));
check$promise(_fn(), _fn).then(immediately(res), immediately(rej));
return noop;

@@ -24,0 +24,0 @@ };

Sorry, the diff of this file is too big to display

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