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

@thi.ng/compose

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/compose - npm Package Compare versions

Comparing version 1.2.5 to 1.3.0

ifdef.d.ts

13

CHANGELOG.md

@@ -6,2 +6,15 @@ # Change Log

# [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.2.5...@thi.ng/compose@1.3.0) (2019-07-07)
### Features
* **compose:** add ifDef() ([64aba00](https://github.com/thi-ng/umbrella/commit/64aba00))
* **compose:** address TS strictNullChecks, make Delay.value protected ([1540f37](https://github.com/thi-ng/umbrella/commit/1540f37))
* **compose:** enable TS strict compiler flags (refactor) ([8ea894a](https://github.com/thi-ng/umbrella/commit/8ea894a))
## [1.2.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.2.4...@thi.ng/compose@1.2.5) (2019-05-22)

@@ -8,0 +21,0 @@

2

delay.d.ts
import { Fn0, IDeref } from "@thi.ng/api";
export declare const delay: <T>(body: Fn0<T>) => Delay<T>;
export declare class Delay<T> implements IDeref<T> {
value: T;
protected value: T;
protected body: Fn0<T>;

@@ -6,0 +6,0 @@ protected realized: boolean;

@@ -1,1 +0,1 @@

export declare const delayed: <T>(x: T, t: number) => Promise<{}>;
export declare const delayed: <T>(x: T, t: number) => Promise<T>;

@@ -7,2 +7,3 @@ export * from "./comp";

export * from "./identity";
export * from "./ifdef";
export * from "./juxt";

@@ -9,0 +10,0 @@ export * from "./partial";

@@ -7,2 +7,3 @@ export * from "./comp";

export * from "./identity";
export * from "./ifdef";
export * from "./juxt";

@@ -9,0 +10,0 @@ export * from "./partial";

@@ -69,2 +69,4 @@ 'use strict';

const ifDef = (f, x) => x != null ? f(x) : undefined;
function juxt(...fns) {

@@ -150,2 +152,3 @@ const [a, b, c, d, e, f, g, h] = fns;

exports.identity = identity;
exports.ifDef = ifDef;
exports.juxt = juxt;

@@ -152,0 +155,0 @@ exports.partial = partial;

@@ -69,2 +69,4 @@ (function (global, factory) {

const ifDef = (f, x) => x != null ? f(x) : undefined;
function juxt(...fns) {

@@ -150,2 +152,3 @@ const [a, b, c, d, e, f, g, h] = fns;

exports.identity = identity;
exports.ifDef = ifDef;
exports.juxt = juxt;

@@ -152,0 +155,0 @@ exports.partial = partial;

{
"name": "@thi.ng/compose",
"version": "1.2.5",
"version": "1.3.0",
"description": "Arity-optimized functional composition helpers",

@@ -28,11 +28,11 @@ "module": "./index.js",

"@types/mocha": "^5.2.6",
"@types/node": "^11.13.7",
"@types/node": "^12.0.8",
"mocha": "^6.1.4",
"nyc": "^14.0.0",
"typedoc": "^0.14.2",
"typescript": "^3.4.5"
"typescript": "^3.5.2"
},
"dependencies": {
"@thi.ng/api": "^6.2.0",
"@thi.ng/errors": "^1.0.6"
"@thi.ng/api": "^6.3.0",
"@thi.ng/errors": "^1.1.0"
},

@@ -49,3 +49,3 @@ "keywords": [

"sideEffects": false,
"gitHead": "5a4226d52724f320fb25656f08addb2825375fee"
"gitHead": "efa9fdd61dd4ad2187cefe0a26df3bf2baade24b"
}

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