react-cookie
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -1,5 +0,10 @@ | ||
import Cookies from 'universal-cookie'; | ||
/// <reference types="react" /> | ||
import Cookies, { Cookie } from 'universal-cookie'; | ||
export declare type ReactCookieProps = { | ||
cookies?: Cookies; | ||
allCookies?: { | ||
[name: string]: Cookie; | ||
}; | ||
children?: any; | ||
ref?: React.RefObject<{}>; | ||
}; |
@@ -1,12 +0,3 @@ | ||
import Cookies, { Cookie } from 'universal-cookie'; | ||
import * as React from 'react'; | ||
declare type WrapperProps = { | ||
cookies: Cookies; | ||
allCookies: { | ||
[name: string]: Cookie; | ||
}; | ||
children?: any; | ||
ref?: React.RefObject<{}>; | ||
}; | ||
export default function withCookies<T>(WrapperComponent: React.ComponentType<T & WrapperProps>): React.ComponentType<T>; | ||
export {}; | ||
import { ReactCookieProps } from './types'; | ||
export default function withCookies<T>(WrapperComponent: React.ComponentType<T & ReactCookieProps>): React.ComponentType<T>; |
@@ -1,5 +0,10 @@ | ||
import Cookies from 'universal-cookie'; | ||
/// <reference types="react" /> | ||
import Cookies, { Cookie } from 'universal-cookie'; | ||
export declare type ReactCookieProps = { | ||
cookies?: Cookies; | ||
allCookies?: { | ||
[name: string]: Cookie; | ||
}; | ||
children?: any; | ||
ref?: React.RefObject<{}>; | ||
}; |
@@ -1,12 +0,3 @@ | ||
import Cookies, { Cookie } from 'universal-cookie'; | ||
import * as React from 'react'; | ||
declare type WrapperProps = { | ||
cookies: Cookies; | ||
allCookies: { | ||
[name: string]: Cookie; | ||
}; | ||
children?: any; | ||
ref?: React.RefObject<{}>; | ||
}; | ||
export default function withCookies<T>(WrapperComponent: React.ComponentType<T & WrapperProps>): React.ComponentType<T>; | ||
export {}; | ||
import { ReactCookieProps } from './types'; | ||
export default function withCookies<T>(WrapperComponent: React.ComponentType<T & ReactCookieProps>): React.ComponentType<T>; |
@@ -1,5 +0,10 @@ | ||
import Cookies from 'universal-cookie'; | ||
/// <reference types="react" /> | ||
import Cookies, { Cookie } from 'universal-cookie'; | ||
export declare type ReactCookieProps = { | ||
cookies?: Cookies; | ||
allCookies?: { | ||
[name: string]: Cookie; | ||
}; | ||
children?: any; | ||
ref?: React.RefObject<{}>; | ||
}; |
@@ -1,12 +0,3 @@ | ||
import Cookies, { Cookie } from 'universal-cookie'; | ||
import * as React from 'react'; | ||
declare type WrapperProps = { | ||
cookies: Cookies; | ||
allCookies: { | ||
[name: string]: Cookie; | ||
}; | ||
children?: any; | ||
ref?: React.RefObject<{}>; | ||
}; | ||
export default function withCookies<T>(WrapperComponent: React.ComponentType<T & WrapperProps>): React.ComponentType<T>; | ||
export {}; | ||
import { ReactCookieProps } from './types'; | ||
export default function withCookies<T>(WrapperComponent: React.ComponentType<T & ReactCookieProps>): React.ComponentType<T>; |
{ | ||
"name": "react-cookie", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "Universal cookies for React", | ||
@@ -52,3 +52,3 @@ "main": "cjs/index.js", | ||
}, | ||
"gitHead": "2b6dbedee459d318bf7b4616d024a0deee4a2c2f" | ||
"gitHead": "9ef292c706eaeb3baf6f6e60189f2105c8d6f0b0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65951
1162