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

@dfnivo/recompose

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfnivo/recompose - npm Package Compare versions

Comparing version 0.79.4 to 0.79.5

./dist/cjs/index.js

4

dist/cjs/setPropTypes.js

@@ -12,6 +12,6 @@ "use strict";

var _setStatic = require("./setStatic");
var setPropTypes = function(propTypes) {
function setPropTypes(propTypes) {
return (0, _setStatic.setStatic)("propTypes", propTypes);
};
}
//# sourceMappingURL=setPropTypes.js.map

@@ -102,3 +102,2 @@ "use strict";

_proto.render = function render() {
// @ts-expect-error not type-able
return factory(this.props);

@@ -105,0 +104,0 @@ };

@@ -138,3 +138,2 @@ "use strict";

_proto.render = function render() {
// @ts-expect-error due to how factory is typed
return factory(_objectSpread({}, this.props, this.state.computedProps));

@@ -141,0 +140,0 @@ };

@@ -164,3 +164,2 @@ "use strict";

var _obj;
// @ts-expect-error due to how factory is typed
return factory(_objectSpreadProps(_objectSpread({}, this.props), (_obj = {}, _defineProperty(_obj, stateName, this.state.stateValue), _defineProperty(_obj, stateUpdaterName, this.updateStateValue), _obj)));

@@ -167,0 +166,0 @@ };

import { createFactory } from "react";
import { setDisplayName } from "./setDisplayName";
import { wrapDisplayName } from "./wrapDisplayName";
// eslint-disable-next-line @typescript-eslint/ban-types
export var defaultProps = function(props) {

@@ -6,0 +5,0 @@ return function(BaseComponent) {

import { setStatic } from "./setStatic";
export var setPropTypes = function(propTypes) {
export function setPropTypes(propTypes) {
return setStatic("propTypes", propTypes);
};
}
//# sourceMappingURL=setPropTypes.js.map

@@ -92,3 +92,2 @@ function _assertThisInitialized(self) {

_proto.render = function render() {
// @ts-expect-error not type-able
return factory(this.props);

@@ -95,0 +94,0 @@ };

@@ -128,3 +128,2 @@ function _assertThisInitialized(self) {

_proto.render = function render() {
// @ts-expect-error due to how factory is typed
return factory(_objectSpread({}, this.props, this.state.computedProps));

@@ -131,0 +130,0 @@ };

@@ -154,3 +154,2 @@ function _assertThisInitialized(self) {

var _obj;
// @ts-expect-error due to how factory is typed
return factory(_objectSpreadProps(_objectSpread({}, this.props), (_obj = {}, _defineProperty(_obj, stateName, this.state.stateValue), _defineProperty(_obj, stateUpdaterName, this.updateStateValue), _obj)));

@@ -157,0 +156,0 @@ };

import { ComponentClass, ComponentType } from 'react';
interface ComponentEnhancer<TInner, TOuter> {
export interface ComponentEnhancer<TInner, TOuter> {
(component: ComponentType<TInner>): ComponentClass<TOuter>;
}
export declare const compose: <TInner, TOuter>(...funcs: Function[]) => ComponentEnhancer<TInner, TOuter>;
export {};
//# sourceMappingURL=compose.d.ts.map

@@ -0,3 +1,4 @@

import { ClassAttributes, Component } from 'react';
import { InferableComponentEnhancerWithProps, Mapper } from './types';
export declare const mapProps: <TInner, TOuter>(propsMapper: Mapper<TOuter, TInner>) => InferableComponentEnhancerWithProps<TInner, TOuter>;
export declare const mapProps: <TInner extends ClassAttributes<Component<unknown, any, any>>, TOuter>(propsMapper: Mapper<TOuter, TInner>) => InferableComponentEnhancerWithProps<TInner, TOuter>;
//# sourceMappingURL=mapProps.d.ts.map
import { ComponentType } from 'react';
export declare const pure: <TProps>(component: ComponentType<TProps>) => ComponentType<TProps>;
export declare const pure: <TProps extends {}>(component: ComponentType<TProps>) => ComponentType<TProps>;
//# sourceMappingURL=pure.d.ts.map
import { ComponentType, ValidationMap } from 'react';
export declare const setPropTypes: <P>(propTypes: import("prop-types").ValidationMap<P>) => <T extends ComponentType<P>>(component: T) => T;
export declare function setPropTypes<P>(propTypes: ValidationMap<P>): (<T extends ComponentType<P>>(component: T) => T);
//# sourceMappingURL=setPropTypes.d.ts.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": "@dfnivo/recompose",
"version": "0.79.4",
"version": "0.79.5",
"keywords": [

@@ -35,3 +35,3 @@ "nivo",

"peerDependencies": {
"react": ">= 16.14.0 < 18.0.0"
"react": ">= 16.14.0 <= 18.2.0"
},

@@ -41,3 +41,3 @@ "publishConfig": {

},
"gitHead": "ecf5d5d9f026d81773d1dd64e59f619c4954bd45"
"gitHead": "acd92052f9f1dc0dc473f787b5d72d01df4cd4de"
}

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

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