🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More →

@shopify/react-compose

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-compose - npm Package Compare versions

Comparing version

to
0.0.0-snapshot-20240620045713

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

import React from 'react';
import { NonReactStatics } from '@shopify/useful-types';
export declare type ReactComponent<P> = React.ComponentType<P>;
export declare type ComponentClass = React.ComponentClass<any>;
export declare type WrappingFunction = (Component: ReactComponent<any>) => ReactComponent<any>;
import type { ComponentType, ComponentClass as ReactComponentClass } from 'react';
import type { NonReactStatics } from '@shopify/useful-types';
export type ReactComponent<P> = ComponentType<P>;
export type ComponentClass = ReactComponentClass<any>;
export type WrappingFunction = (Component: ReactComponent<any>) => ReactComponent<any>;
export default function compose<Props>(...wrappingFunctions: WrappingFunction[]): <ComposedProps, C>(OriginalComponent: ReactComponent<ComposedProps> & C) => ReactComponent<Props> & NonReactStatics<ReactComponent<ComposedProps> & C>;
//# sourceMappingURL=index.d.ts.map

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

module.exports = require("./build/cjs/index.js");
module.exports = require("./build/cjs/index.js");
{
"name": "@shopify/react-compose",
"version": "0.0.0-snapshot-20220728131612",
"version": "0.0.0-snapshot-20240620045713",
"license": "MIT",

@@ -23,11 +23,14 @@ "description": "Cleanly compose multiple component enhancers together with minimal fuss",

"engines": {
"node": "^14.17.0 || >=16.0.0"
"node": ">=18.12.0"
},
"dependencies": {
"@shopify/useful-types": "^0.0.0-snapshot-20220728131612",
"@shopify/useful-types": "0.0.0-snapshot-20240620045713",
"hoist-non-react-statics": "^3.0.1"
},
"peerDependencies": {
"react": ">=16.8.0 <19.0.0"
"react": ">=18.0.0 <19.0.0"
},
"devDependencies": {
"@shopify/react-testing": "0.0.0-snapshot-20240620045713"
},
"sideEffects": false,

@@ -46,2 +49,3 @@ "files": [

".": {
"types": "./build/ts/index.d.ts",
"esnext": "./index.esnext",

@@ -48,0 +52,0 @@ "import": "./index.mjs",

@@ -12,3 +12,3 @@ # `@shopify/react-compose`

```bash
$ yarn add @shopify/react-compose
yarn add @shopify/react-compose
```

@@ -15,0 +15,0 @@

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