Socket
Socket
Sign inDemoInstall

@nivo/recompose

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/recompose - npm Package Compare versions

Comparing version 0.81.0 to 0.82.0

./dist/nivo-recompose.cjs.js

2

dist/nivo-recompose.cjs.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),r=require("react-lifecycles-compat"),e=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":void 0},n=function(t,r){return function(e){return e[t]=r,e}},o=function(t){return n("displayName",t)},u=Object.prototype.hasOwnProperty;function p(t,r){return t===r?0!==t||0!==r||1/t==1/r:t!=t&&r!=r}function c(t,r){if(p(t,r))return!0;if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;var e=Object.keys(t),n=Object.keys(r);if(e.length!==n.length)return!1;for(var o=0;o<e.length;o++)if(!u.call(r,e[o])||!p(t[e[o]],r[e[o]]))return!1;return!0}function s(){return s=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},s.apply(this,arguments)}function a(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,i(t,r)}function i(t,r){return i=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},i(t,r)}var f=function(t,r){return r+"("+e(t)+")"},l=function(r){return function(e){var n=t.createFactory(e),u=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);var o=e.prototype;return o.shouldComponentUpdate=function(t){return r(this.props,t)},o.render=function(){return n(this.props)},e}(t.Component);return"production"!==process.env.NODE_ENV?o(f(e,"shouldUpdate"))(u):u}},y=function(t,r){for(var e={},n=0;n<r.length;n++){var o=r[n];t.hasOwnProperty(o)&&(e[o]=t[o])}return e};exports.compose=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.reduce((function(t,r){return function(){return t(r.apply(void 0,arguments))}}),(function(t){return t}))},exports.defaultProps=function(r){return function(e){var n=t.createFactory(e),u=function(t){return n(t)};return u.defaultProps=r,"production"!==process.env.NODE_ENV?o(f(e,"defaultProps"))(u):u}},exports.getDisplayName=e,exports.pure=function(t){var r=l((function(t,r){return!c(t,r)}));return"production"!==process.env.NODE_ENV?o(f(t,"pure"))(r(t)):r(t)},exports.setDisplayName=o,exports.setPropTypes=function(t){return n("propTypes",t)},exports.setStatic=n,exports.shallowEqual=c,exports.shouldUpdate=l,exports.withProps=function(r){var e,n=(e=function(t){return s({},t,"function"==typeof r?r(t):r)},function(r){var n=t.createFactory(r),u=function(t){return n(e(t))};return"production"!==process.env.NODE_ENV?o(f(r,"mapProps"))(u):u});return"production"!==process.env.NODE_ENV?function(t){return o(f(t,"withProps"))(n(t))}:n},exports.withPropsOnChange=function(e,n){return function(u){var p=t.createFactory(u),i="function"==typeof e?e:function(t,r){return!c(y(t,e),y(r,e))},l=function(t){function r(){for(var r,e=arguments.length,o=new Array(e),u=0;u<e;u++)o[u]=arguments[u];return(r=t.call.apply(t,[this].concat(o))||this).state={computedProps:n(r.props),prevProps:r.props},r}return a(r,t),r.getDerivedStateFromProps=function(t,r){return i(r.prevProps,t)?{computedProps:n(t),prevProps:t}:{prevProps:t}},r.prototype.render=function(){return p(s({},this.props,this.state.computedProps))},r}(t.Component);return r.polyfill(l),"production"!==process.env.NODE_ENV?o(f(u,"withPropsOnChange"))(l):l}},exports.withState=function(r,e,n){return function(u){var p=t.createFactory(u),c=function(t){function o(){for(var r,e=arguments.length,o=new Array(e),u=0;u<e;u++)o[u]=arguments[u];return(r=t.call.apply(t,[this].concat(o))||this).state={stateValue:"function"==typeof n?n(r.props):n},r.updateStateValue=function(t,e){return r.setState((function(r){var e=r.stateValue;return{stateValue:"function"==typeof t?t(e):t}}),e)},r}return a(o,t),o.prototype.render=function(){var t;return p(s({},this.props,((t={})[r]=this.state.stateValue,t[e]=this.updateStateValue,t)))},o}(t.Component);return"production"!==process.env.NODE_ENV?o(f(u,"withState"))(c):c}},exports.wrapDisplayName=f;
"use strict";var t=require("react"),r=require("react-lifecycles-compat"),e=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":void 0},n=function(t,r){return function(e){return e[t]=r,e}},o=function(t){return n("displayName",t)},u=Object.prototype.hasOwnProperty;function p(t,r){return t===r?0!==t||0!==r||1/t==1/r:t!=t&&r!=r}function c(t,r){if(p(t,r))return!0;if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;var e=Object.keys(t),n=Object.keys(r);if(e.length!==n.length)return!1;for(var o=0;o<e.length;o++)if(!u.call(r,e[o])||!p(t[e[o]],r[e[o]]))return!1;return!0}function s(){return s=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},s.apply(this,arguments)}function i(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,a(t,r)}function a(t,r){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},a(t,r)}var f=function(t,r){return r+"("+e(t)+")"},l=function(r){return function(e){var n=t.createFactory(e),u=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var o=e.prototype;return o.shouldComponentUpdate=function(t){return r(this.props,t)},o.render=function(){return n(this.props)},e}(t.Component);return"production"!==process.env.NODE_ENV?o(f(e,"shouldUpdate"))(u):u}},y=function(t,r){for(var e={},n=0;n<r.length;n++){var o=r[n];t.hasOwnProperty(o)&&(e[o]=t[o])}return e};exports.compose=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return r.reduce((function(t,r){return function(){return t(r.apply(void 0,arguments))}}),(function(t){return t}))},exports.defaultProps=function(r){return function(e){var n=t.createFactory(e),u=function(t){return n(t)};return u.defaultProps=r,"production"!==process.env.NODE_ENV?o(f(e,"defaultProps"))(u):u}},exports.getDisplayName=e,exports.pure=function(t){var r=l((function(t,r){return!c(t,r)}));return"production"!==process.env.NODE_ENV?o(f(t,"pure"))(r(t)):r(t)},exports.setDisplayName=o,exports.setPropTypes=function(t){return n("propTypes",t)},exports.setStatic=n,exports.shallowEqual=c,exports.shouldUpdate=l,exports.withProps=function(r){var e,n=(e=function(t){return s({},t,"function"==typeof r?r(t):r)},function(r){var n=t.createFactory(r),u=function(t){return n(e(t))};return"production"!==process.env.NODE_ENV?o(f(r,"mapProps"))(u):u});return"production"!==process.env.NODE_ENV?function(t){return o(f(t,"withProps"))(n(t))}:n},exports.withPropsOnChange=function(e,n){return function(u){var p=t.createFactory(u),a="function"==typeof e?e:function(t,r){return!c(y(t,e),y(r,e))},l=function(t){function r(){for(var r,e=arguments.length,o=new Array(e),u=0;u<e;u++)o[u]=arguments[u];return(r=t.call.apply(t,[this].concat(o))||this).state={computedProps:n(r.props),prevProps:r.props},r}return i(r,t),r.getDerivedStateFromProps=function(t,r){return a(r.prevProps,t)?{computedProps:n(t),prevProps:t}:{prevProps:t}},r.prototype.render=function(){return p(s({},this.props,this.state.computedProps))},r}(t.Component);return r.polyfill(l),"production"!==process.env.NODE_ENV?o(f(u,"withPropsOnChange"))(l):l}},exports.withState=function(r,e,n){return function(u){var p=t.createFactory(u),c=function(t){function o(){for(var r,e=arguments.length,o=new Array(e),u=0;u<e;u++)o[u]=arguments[u];return(r=t.call.apply(t,[this].concat(o))||this).state={stateValue:"function"==typeof n?n(r.props):n},r.updateStateValue=function(t,e){return r.setState((function(r){var e=r.stateValue;return{stateValue:"function"==typeof t?t(e):t}}),e)},r}return i(o,t),o.prototype.render=function(){var t;return p(s({},this.props,((t={})[r]=this.state.stateValue,t[e]=this.updateStateValue,t)))},o}(t.Component);return"production"!==process.env.NODE_ENV?o(f(u,"withState"))(c):c}},exports.wrapDisplayName=f;
//# sourceMappingURL=nivo-recompose.cjs.js.map

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

import{createFactory as t,Component as r}from"react";import{polyfill as n}from"react-lifecycles-compat";var e=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":void 0},o=function(t,r){return function(n){return n[t]=r,n}},u=function(t){return o("displayName",t)},p=Object.prototype.hasOwnProperty;function c(t,r){return t===r?0!==t||0!==r||1/t==1/r:t!=t&&r!=r}function i(t,r){if(c(t,r))return!0;if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;var n=Object.keys(t),e=Object.keys(r);if(n.length!==e.length)return!1;for(var o=0;o<n.length;o++)if(!p.call(r,n[o])||!c(t[n[o]],r[n[o]]))return!1;return!0}function a(){return a=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},a.apply(this,arguments)}function f(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r)}function s(t,r){return s=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},s(t,r)}var l=function(t,r){return r+"("+e(t)+")"},v=function(n){return function(e){var o=t(e),p=function(t){function r(){return t.apply(this,arguments)||this}f(r,t);var e=r.prototype;return e.shouldComponentUpdate=function(t){return n(this.props,t)},e.render=function(){return o(this.props)},r}(r);return"production"!==process.env.NODE_ENV?u(l(e,"shouldUpdate"))(p):p}},y=function(t){var r=v((function(t,r){return!i(t,r)}));return"production"!==process.env.NODE_ENV?u(l(t,"pure"))(r(t)):r(t)},h=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce((function(t,r){return function(){return t(r.apply(void 0,arguments))}}),(function(t){return t}))},d=function(t,r){for(var n={},e=0;e<r.length;e++){var o=r[e];t.hasOwnProperty(o)&&(n[o]=t[o])}return n},O=function(e,o){return function(p){var c=t(p),s="function"==typeof e?e:function(t,r){return!i(d(t,e),d(r,e))},v=function(t){function r(){for(var r,n=arguments.length,e=new Array(n),u=0;u<n;u++)e[u]=arguments[u];return(r=t.call.apply(t,[this].concat(e))||this).state={computedProps:o(r.props),prevProps:r.props},r}return f(r,t),r.getDerivedStateFromProps=function(t,r){return s(r.prevProps,t)?{computedProps:o(t),prevProps:t}:{prevProps:t}},r.prototype.render=function(){return c(a({},this.props,this.state.computedProps))},r}(r);return n(v),"production"!==process.env.NODE_ENV?u(l(p,"withPropsOnChange"))(v):v}},P=function(r){return function(n){var e=t(n),o=function(t){return e(t)};return o.defaultProps=r,"production"!==process.env.NODE_ENV?u(l(n,"defaultProps"))(o):o}},N=function(r){var n,e=(n=function(t){return a({},t,"function"==typeof r?r(t):r)},function(r){var e=t(r),o=function(t){return e(n(t))};return"production"!==process.env.NODE_ENV?u(l(r,"mapProps"))(o):o});return"production"!==process.env.NODE_ENV?function(t){return u(l(t,"withProps"))(e(t))}:e},m=function(t){return o("propTypes",t)},E=function(n,e,o){return function(p){var c=t(p),i=function(t){function r(){for(var r,n=arguments.length,e=new Array(n),u=0;u<n;u++)e[u]=arguments[u];return(r=t.call.apply(t,[this].concat(e))||this).state={stateValue:"function"==typeof o?o(r.props):o},r.updateStateValue=function(t,n){return r.setState((function(r){var n=r.stateValue;return{stateValue:"function"==typeof t?t(n):t}}),n)},r}return f(r,t),r.prototype.render=function(){var t;return c(a({},this.props,((t={})[n]=this.state.stateValue,t[e]=this.updateStateValue,t)))},r}(r);return"production"!==process.env.NODE_ENV?u(l(p,"withState"))(i):i}};export{h as compose,P as defaultProps,e as getDisplayName,y as pure,u as setDisplayName,m as setPropTypes,o as setStatic,i as shallowEqual,v as shouldUpdate,N as withProps,O as withPropsOnChange,E as withState,l as wrapDisplayName};
import{createFactory as t,Component as r}from"react";import{polyfill as n}from"react-lifecycles-compat";var e=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":void 0},o=function(t,r){return function(n){return n[t]=r,n}},u=function(t){return o("displayName",t)},p=Object.prototype.hasOwnProperty;function c(t,r){return t===r?0!==t||0!==r||1/t==1/r:t!=t&&r!=r}function i(t,r){if(c(t,r))return!0;if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;var n=Object.keys(t),e=Object.keys(r);if(n.length!==e.length)return!1;for(var o=0;o<n.length;o++)if(!p.call(r,n[o])||!c(t[n[o]],r[n[o]]))return!1;return!0}function a(){return a=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},a.apply(this,arguments)}function f(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r)}function s(t,r){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},s(t,r)}var l=function(t,r){return r+"("+e(t)+")"},v=function(n){return function(e){var o=t(e),p=function(t){function r(){return t.apply(this,arguments)||this}f(r,t);var e=r.prototype;return e.shouldComponentUpdate=function(t){return n(this.props,t)},e.render=function(){return o(this.props)},r}(r);return"production"!==process.env.NODE_ENV?u(l(e,"shouldUpdate"))(p):p}},y=function(t){var r=v((function(t,r){return!i(t,r)}));return"production"!==process.env.NODE_ENV?u(l(t,"pure"))(r(t)):r(t)},h=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce((function(t,r){return function(){return t(r.apply(void 0,arguments))}}),(function(t){return t}))},d=function(t,r){for(var n={},e=0;e<r.length;e++){var o=r[e];t.hasOwnProperty(o)&&(n[o]=t[o])}return n},O=function(e,o){return function(p){var c=t(p),s="function"==typeof e?e:function(t,r){return!i(d(t,e),d(r,e))},v=function(t){function r(){for(var r,n=arguments.length,e=new Array(n),u=0;u<n;u++)e[u]=arguments[u];return(r=t.call.apply(t,[this].concat(e))||this).state={computedProps:o(r.props),prevProps:r.props},r}return f(r,t),r.getDerivedStateFromProps=function(t,r){return s(r.prevProps,t)?{computedProps:o(t),prevProps:t}:{prevProps:t}},r.prototype.render=function(){return c(a({},this.props,this.state.computedProps))},r}(r);return n(v),"production"!==process.env.NODE_ENV?u(l(p,"withPropsOnChange"))(v):v}},P=function(r){return function(n){var e=t(n),o=function(t){return e(t)};return o.defaultProps=r,"production"!==process.env.NODE_ENV?u(l(n,"defaultProps"))(o):o}},N=function(r){var n,e=(n=function(t){return a({},t,"function"==typeof r?r(t):r)},function(r){var e=t(r),o=function(t){return e(n(t))};return"production"!==process.env.NODE_ENV?u(l(r,"mapProps"))(o):o});return"production"!==process.env.NODE_ENV?function(t){return u(l(t,"withProps"))(e(t))}:e},m=function(t){return o("propTypes",t)},E=function(n,e,o){return function(p){var c=t(p),i=function(t){function r(){for(var r,n=arguments.length,e=new Array(n),u=0;u<n;u++)e[u]=arguments[u];return(r=t.call.apply(t,[this].concat(e))||this).state={stateValue:"function"==typeof o?o(r.props):o},r.updateStateValue=function(t,n){return r.setState((function(r){var n=r.stateValue;return{stateValue:"function"==typeof t?t(n):t}}),n)},r}return f(r,t),r.prototype.render=function(){var t;return c(a({},this.props,((t={})[n]=this.state.stateValue,t[e]=this.updateStateValue,t)))},r}(r);return"production"!==process.env.NODE_ENV?u(l(p,"withState"))(i):i}};export{h as compose,P as defaultProps,e as getDisplayName,y as pure,u as setDisplayName,m as setPropTypes,o as setStatic,i as shallowEqual,v as shouldUpdate,N as withProps,O as withPropsOnChange,E as withState,l as wrapDisplayName};
//# sourceMappingURL=nivo-recompose.es.js.map
import { ComponentClass, ComponentType } from 'react';
export declare type Mapper<TInner, TOuter> = (input: TInner) => TOuter;
export declare type PredicateDiff<T> = (current: T, next: T) => boolean;
export type Mapper<TInner, TOuter> = (input: TInner) => TOuter;
export type PredicateDiff<T> = (current: T, next: T) => boolean;
export interface InferableComponentEnhancerWithProps<TInjectedProps, TNeedsProps> {
<P extends TInjectedProps>(component: ComponentType<P>): ComponentClass<Omit<P, keyof TInjectedProps> & TNeedsProps>;
}
export declare type InferableComponentEnhancer<TInjectedProps> = InferableComponentEnhancerWithProps<TInjectedProps, {}>;
export declare type DefaultingInferableComponentEnhancer<TInjectedProps> = InferableComponentEnhancerWithProps<TInjectedProps, Partial<TInjectedProps>>;
export type InferableComponentEnhancer<TInjectedProps> = InferableComponentEnhancerWithProps<TInjectedProps, {}>;
export type DefaultingInferableComponentEnhancer<TInjectedProps> = InferableComponentEnhancerWithProps<TInjectedProps, Partial<TInjectedProps>>;
//# sourceMappingURL=types.d.ts.map
import { InferableComponentEnhancerWithProps, Mapper } from './types';
declare type StateProps<TState, TStateName extends string, TStateUpdaterName extends string> = {
type StateProps<TState, TStateName extends string, TStateUpdaterName extends string> = {
[stateName in TStateName]: TState;

@@ -4,0 +4,0 @@ } & {

{
"name": "@nivo/recompose",
"version": "0.81.0",
"keywords": [
"nivo",
"react",
"recompose"
],
"repository": {
"type": "git",
"url": "https://github.com/plouc/nivo.git",
"directory": "packages/recompose"
},
"license": "MIT",
"author": {
"name": "Raphaël Benitte",
"url": "https://github.com/plouc"
},
"main": "./dist/nivo-recompose.cjs.js",
"module": "./dist/nivo-recompose.es.js",
"typings": "./dist/types/index.d.ts",
"files": [
"README.md",
"LICENSE.md",
"dist/",
"!dist/tsconfig.tsbuildinfo"
],
"dependencies": {
"react-lifecycles-compat": "^3.0.4"
},
"devDependencies": {
"@types/react-lifecycles-compat": "^3.0.1"
},
"peerDependencies": {
"react": ">= 16.14.0 < 19.0.0"
},
"publishConfig": {
"access": "public"
},
"gitHead": "56db9cb7738f406a21085c11ab28716044fceb5b"
"name": "@nivo/recompose",
"version": "0.82.0",
"keywords": [
"nivo",
"react",
"recompose"
],
"repository": {
"type": "git",
"url": "https://github.com/plouc/nivo.git",
"directory": "packages/recompose"
},
"license": "MIT",
"author": {
"name": "Raphaël Benitte",
"url": "https://github.com/plouc"
},
"main": "./dist/nivo-recompose.cjs.js",
"module": "./dist/nivo-recompose.es.js",
"types": "./dist/types/index.d.ts",
"files": [
"README.md",
"LICENSE.md",
"dist/",
"!dist/tsconfig.tsbuildinfo"
],
"dependencies": {
"@types/prop-types": "^15.7.2",
"@types/react-lifecycles-compat": "^3.0.1",
"prop-types": "^15.7.2",
"react-lifecycles-compat": "^3.0.4"
},
"peerDependencies": {
"react": ">= 16.14.0 < 19.0.0"
},
"publishConfig": {
"access": "public"
},
"gitHead": "579fc012df24e154a387243559165e344b6523da"
}

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