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

@perfective/fp

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@perfective/fp - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

dist/cjs/function/predicate.d.ts

@@ -1,6 +0,4 @@

import { Proposition } from './proposition';
export declare type Predicate<T> = (value: T) => boolean;
export declare function is<T>(input: T): Predicate<T>;
export declare function isNot<T>(input: T): Predicate<T>;
export declare function negative(value: Proposition): boolean;
export declare function not<T>(predicate: Predicate<T>): Predicate<T>;

@@ -7,0 +5,0 @@ export declare function all<T>(...predicates: Predicate<T>[]): Predicate<T>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.exactly = exports.atMost = exports.atLeast = exports.neither = exports.either = exports.all = exports.not = exports.negative = exports.isNot = exports.is = void 0;
const nullary_1 = require("./nullary");
exports.exactly = exports.atMost = exports.atLeast = exports.neither = exports.either = exports.all = exports.not = exports.isNot = exports.is = void 0;
const proposition_1 = require("./proposition");

@@ -14,6 +13,2 @@ function is(input) {

exports.isNot = isNot;
function negative(value) {
return !nullary_1.valueOf(value);
}
exports.negative = negative;
function not(predicate) {

@@ -20,0 +15,0 @@ return (value) => !predicate(value);

1

dist/cjs/function/proposition.d.ts

@@ -5,2 +5,3 @@ import { Value } from './nullary';

export declare function isFalse(proposition: Proposition): boolean;
export declare function negated(value: Proposition): boolean;
//# sourceMappingURL=proposition.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFalse = exports.isTrue = void 0;
exports.negated = exports.isFalse = exports.isTrue = void 0;
const nullary_1 = require("./nullary");

@@ -13,2 +13,6 @@ function isTrue(proposition) {

exports.isFalse = isFalse;
function negated(value) {
return !nullary_1.valueOf(value);
}
exports.negated = negated;
//# sourceMappingURL=proposition.js.map

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

export { Binary, } from './function/binary';
export { isFunction, isNotFunction, } from './function/function';
export { Nullary, Value, constant, empty, valueOf, } from './function/nullary';
export { Predicate, all, atLeast, atMost, either, exactly, is, isNot, negative, neither, not, } from './function/predicate';
export { Proposition, isFalse, isTrue, } from './function/proposition';
export { Type, isInstanceOf, isNotInstanceOf, } from './function/type';
export { constant, empty, Nullary, Value, valueOf, } from './function/nullary';
export { all, atLeast, atMost, either, exactly, is, isNot, neither, not, Predicate, } from './function/predicate';
export { isFalse, isTrue, negated, Proposition, } from './function/proposition';
export { Ternary, } from './function/ternary';
export { isInstanceOf, isNotInstanceOf, Type, } from './function/type';
export { TypeGuard, } from './function/type-guard';
export { Unary, same, } from './function/unary';
export { Binary, } from './function/binary';
export { Ternary, } from './function/ternary';
export { same, Unary, } from './function/unary';
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.same = exports.isNotInstanceOf = exports.isInstanceOf = exports.negated = exports.isTrue = exports.isFalse = exports.not = exports.neither = exports.isNot = exports.is = exports.exactly = exports.either = exports.atMost = exports.atLeast = exports.all = exports.valueOf = exports.empty = exports.constant = exports.isNotFunction = exports.isFunction = void 0;
var function_1 = require("./function/function");

@@ -18,3 +19,2 @@ Object.defineProperty(exports, "isFunction", { enumerable: true, get: function () { return function_1.isFunction; } });

Object.defineProperty(exports, "isNot", { enumerable: true, get: function () { return predicate_1.isNot; } });
Object.defineProperty(exports, "negative", { enumerable: true, get: function () { return predicate_1.negative; } });
Object.defineProperty(exports, "neither", { enumerable: true, get: function () { return predicate_1.neither; } });

@@ -25,2 +25,3 @@ Object.defineProperty(exports, "not", { enumerable: true, get: function () { return predicate_1.not; } });

Object.defineProperty(exports, "isTrue", { enumerable: true, get: function () { return proposition_1.isTrue; } });
Object.defineProperty(exports, "negated", { enumerable: true, get: function () { return proposition_1.negated; } });
var type_1 = require("./function/type");

@@ -27,0 +28,0 @@ Object.defineProperty(exports, "isInstanceOf", { enumerable: true, get: function () { return type_1.isInstanceOf; } });

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

export {};
//# sourceMappingURL=binary.js.map

@@ -1,6 +0,4 @@

import { Proposition } from './proposition';
export declare type Predicate<T> = (value: T) => boolean;
export declare function is<T>(input: T): Predicate<T>;
export declare function isNot<T>(input: T): Predicate<T>;
export declare function negative(value: Proposition): boolean;
export declare function not<T>(predicate: Predicate<T>): Predicate<T>;

@@ -7,0 +5,0 @@ export declare function all<T>(...predicates: Predicate<T>[]): Predicate<T>;

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

import { valueOf } from './nullary';
import { isFalse, isTrue } from './proposition';

@@ -9,5 +8,2 @@ export function is(input) {

}
export function negative(value) {
return !valueOf(value);
}
export function not(predicate) {

@@ -14,0 +10,0 @@ return (value) => !predicate(value);

@@ -5,2 +5,3 @@ import { Value } from './nullary';

export declare function isFalse(proposition: Proposition): boolean;
export declare function negated(value: Proposition): boolean;
//# sourceMappingURL=proposition.d.ts.map

@@ -8,2 +8,5 @@ import { valueOf } from './nullary';

}
export function negated(value) {
return !valueOf(value);
}
//# sourceMappingURL=proposition.js.map

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

export {};
//# sourceMappingURL=ternary.js.map

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

export {};
//# sourceMappingURL=type-guard.js.map

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

export { Binary, } from './function/binary';
export { isFunction, isNotFunction, } from './function/function';
export { Nullary, Value, constant, empty, valueOf, } from './function/nullary';
export { Predicate, all, atLeast, atMost, either, exactly, is, isNot, negative, neither, not, } from './function/predicate';
export { Proposition, isFalse, isTrue, } from './function/proposition';
export { Type, isInstanceOf, isNotInstanceOf, } from './function/type';
export { constant, empty, Nullary, Value, valueOf, } from './function/nullary';
export { all, atLeast, atMost, either, exactly, is, isNot, neither, not, Predicate, } from './function/predicate';
export { isFalse, isTrue, negated, Proposition, } from './function/proposition';
export { Ternary, } from './function/ternary';
export { isInstanceOf, isNotInstanceOf, Type, } from './function/type';
export { TypeGuard, } from './function/type-guard';
export { Unary, same, } from './function/unary';
export { Binary, } from './function/binary';
export { Ternary, } from './function/ternary';
export { same, Unary, } from './function/unary';
//# sourceMappingURL=index.d.ts.map
export { isFunction, isNotFunction, } from './function/function';
export { constant, empty, valueOf, } from './function/nullary';
export { all, atLeast, atMost, either, exactly, is, isNot, negative, neither, not, } from './function/predicate';
export { isFalse, isTrue, } from './function/proposition';
export { all, atLeast, atMost, either, exactly, is, isNot, neither, not, } from './function/predicate';
export { isFalse, isTrue, negated, } from './function/proposition';
export { isInstanceOf, isNotInstanceOf, } from './function/type';
export { same, } from './function/unary';
//# sourceMappingURL=index.js.map
{
"name": "@perfective/fp",
"version": "0.5.0",
"version": "0.5.1",
"description": "Functions and types for functional programming",

@@ -38,5 +38,4 @@ "keywords": [

"clean": "rm -rf dist && rm -f *.tsbuildinfo",
"lint": "npm run lint:eslint; npm run lint:tslint",
"lint": "npm run lint:eslint",
"lint:eslint": "eslint --fix --ext .ts ./src",
"lint:tslint": "tslint --fix --project ./tsconfig.lint.json",
"test": "jest",

@@ -43,0 +42,0 @@ "test:clean": "jest --clearCache",

@@ -65,3 +65,3 @@ # Perfective Functional Programming

— creates a predicate that is `true` when its argument is not the same as the `input`.
* `negative(value: Proposition): boolean`
* `negated(value: Proposition): boolean`
— negates the given proposition value.

@@ -68,0 +68,0 @@ * `not<T>(predicate: Predicate<T>): Predicate<T>`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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