@ledgerhq/common
Advanced tools
Comparing version 4.6.0-beta.5109e524 to 4.7.0
@@ -1,3 +0,3 @@ | ||
// flow-typed signature: edc371cf3a70602ba86ad9fe314ed6b9 | ||
// flow-typed version: <<STUB>>/babel-jest_v^22.0.4/flow_v0.66.0 | ||
// flow-typed signature: 2a7006bcb753194b725108d0d340027e | ||
// flow-typed version: <<STUB>>/babel-jest_v^22.0.4/flow_v0.68.0 | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
// flow-typed signature: d405164fa98260cc41b7827a8d6bd051 | ||
// flow-typed version: <<STUB>>/flow-typed_v^2.3.0/flow_v0.66.0 | ||
// flow-typed signature: e8d7dbb588d418c516e0db0aa0f6becd | ||
// flow-typed version: <<STUB>>/flow-typed_v^2.4.0/flow_v0.68.0 | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
// flow-typed signature: 18018da6c1a1d95b4ab1c64bb5fe86ca | ||
// flow-typed version: c1ad61e7d4/jest_v22.x.x/flow_>=v0.39.x | ||
// flow-typed signature: ebbcd423b1fcd29d6804fca91bb68879 | ||
// flow-typed version: 7b9f6d2713/jest_v22.x.x/flow_>=v0.39.x | ||
@@ -129,10 +129,12 @@ type JestMockFn<TArguments: $ReadOnlyArray<*>, TReturn> = { | ||
toBeEmpty(): void, | ||
toBeEmptyRender(): void, | ||
toBePresent(): void, | ||
toContainReact(element: React$Element<any>): void, | ||
toExist(): void, | ||
toHaveClassName(className: string): void, | ||
toHaveHTML(html: string): void, | ||
toHaveProp(propKey: string, propValue?: any): void, | ||
toHaveProp: ((propKey: string, propValue?: any) => void) & ((props: Object) => void), | ||
toHaveRef(refName: string): void, | ||
toHaveState(stateKey: string, stateValue?: any): void, | ||
toHaveStyle(styleKey: string, styleValue?: any): void, | ||
toHaveState: ((stateKey: string, stateValue?: any) => void) & ((state: Object) => void), | ||
toHaveStyle: ((styleKey: string, styleValue?: any) => void) & ((style: Object) => void), | ||
toHaveTagName(tagName: string): void, | ||
@@ -563,8 +565,8 @@ toHaveText(text: string): void, | ||
any(value: mixed): JestAsymmetricEqualityType, | ||
anything(): void, | ||
arrayContaining(value: Array<mixed>): void, | ||
objectContaining(value: Object): void, | ||
anything(): any, | ||
arrayContaining(value: Array<mixed>): Array<mixed>, | ||
objectContaining(value: Object): Object, | ||
/** Matches any received string that contains the exact expected string. */ | ||
stringContaining(value: string): void, | ||
stringMatching(value: string | RegExp): void | ||
stringContaining(value: string): string, | ||
stringMatching(value: string | RegExp): string | ||
}; | ||
@@ -586,4 +588,4 @@ | ||
any(value: mixed): JestAsymmetricEqualityType, | ||
anything(): void, | ||
arrayContaining(value: Array<mixed>): void, | ||
anything(): any, | ||
arrayContaining(value: Array<mixed>): Array<mixed>, | ||
clock(): JestClockType, | ||
@@ -595,4 +597,4 @@ createSpy(name: string): JestSpyType, | ||
): { [methodName: string]: JestSpyType }, | ||
objectContaining(value: Object): void, | ||
stringMatching(value: string): void | ||
objectContaining(value: Object): Object, | ||
stringMatching(value: string): string | ||
}; |
@@ -1,3 +0,3 @@ | ||
// flow-typed signature: 4228e6bbce0628e73bc344b3d055ada6 | ||
// flow-typed version: <<STUB>>/normalizr-gre_v^3.2.4/flow_v0.66.0 | ||
// flow-typed signature: a0ea054ced2c443d4799960ffe2fabdb | ||
// flow-typed version: <<STUB>>/normalizr-gre_v^3.2.4/flow_v0.68.0 | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
// flow-typed signature: ec7daead5cb4fec5ab25fedbedef29e8 | ||
// flow-typed version: 2c04631d20/redux_v3.x.x/flow_>=v0.55.x | ||
// flow-typed signature: cca4916b0213065533df8335c3285a4a | ||
// flow-typed version: cab04034e7/redux_v3.x.x/flow_>=v0.55.x | ||
@@ -30,3 +30,3 @@ declare module 'redux' { | ||
declare export type Reducer<S, A> = (state: S, action: A) => S; | ||
declare export type Reducer<S, A> = (state: S | void, action: A) => S; | ||
@@ -47,3 +47,3 @@ declare export type CombinedReducer<S, A> = (state: $Shape<S> & {} | void, action: A) => S; | ||
declare export function createStore<S, A, D>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; | ||
declare export function createStore<S, A, D>(reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; | ||
declare export function createStore<S, A, D>(reducer: Reducer<S, A>, preloadedState?: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; | ||
@@ -61,2 +61,2 @@ declare export function applyMiddleware<S, A, D>(...middlewares: Array<Middleware<S, A, D>>): StoreEnhancer<S, A, D>; | ||
declare export var compose: $Compose; | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
// flow-typed signature: 6d66322fcd005cac32bee606dc6ac879 | ||
// flow-typed version: <<STUB>>/redux-thunk_v^2.2.0/flow_v0.66.0 | ||
// flow-typed signature: 4109af0de2abd079b0f6c3408cab1733 | ||
// flow-typed version: <<STUB>>/redux-thunk_v^2.2.0/flow_v0.68.0 | ||
@@ -4,0 +4,0 @@ /** |
@@ -15,3 +15,3 @@ "use strict"; | ||
if (typeof error === "string") return error; | ||
var genStr = (error && error.message || "").toString(); | ||
var genStr = String(error && error.message || ""); | ||
// u2f-api lib https://github.com/grantila/u2f-api/blob/1e75b41fd5d9d001e6ad2be2eda6b9b41d137a81/lib/u2f-api.js#L98 | ||
@@ -18,0 +18,0 @@ if (error && (0, _typeof3.default)(error.metaData) === "object" && error.metaData) { |
{ | ||
"name": "@ledgerhq/common", | ||
"version": "4.6.0-beta.5109e524", | ||
"version": "4.7.0", | ||
"description": "Ledger Hardware Wallet Common", | ||
@@ -26,7 +26,7 @@ "keywords": [ | ||
"fbjs": "^0.8.16", | ||
"invariant": "^2.2.2", | ||
"invariant": "^2.2.4", | ||
"lodash": "^4.17.4", | ||
"normalizr-gre": "^3.2.4", | ||
"prop-types": "^15.5.10", | ||
"query-string": "^5.0.0", | ||
"query-string": "^6.0.0", | ||
"react": "^16.0.0", | ||
@@ -39,4 +39,4 @@ "react-redux": "^5.0.5", | ||
"babel-jest": "^22.0.4", | ||
"flow-bin": "^0.66.0", | ||
"flow-typed": "^2.3.0", | ||
"flow-bin": "^0.68.0", | ||
"flow-typed": "^2.4.0", | ||
"jest": "^22.1.3", | ||
@@ -43,0 +43,0 @@ "react-test-renderer": "^16.2.0" |
//@flow | ||
export default (error: ?Error | string) => { | ||
export default (error: mixed) => { | ||
if (typeof error === "string") return error; | ||
const genStr = ((error && error.message) || "").toString(); | ||
const genStr = String((error && error.message) || ""); | ||
// u2f-api lib https://github.com/grantila/u2f-api/blob/1e75b41fd5d9d001e6ad2be2eda6b9b41d137a81/lib/u2f-api.js#L98 | ||
@@ -7,0 +7,0 @@ if (error && typeof error.metaData === "object" && error.metaData) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
851450
13848
0
+ Addedfilter-obj@1.1.0(transitive)
+ Addedquery-string@6.14.1(transitive)
+ Addedsplit-on-first@1.1.0(transitive)
+ Addedstrict-uri-encode@2.0.0(transitive)
+ Addedua-parser-js@0.7.39(transitive)
- Removedquery-string@5.1.1(transitive)
- Removedstrict-uri-encode@1.1.0(transitive)
- Removedua-parser-js@0.7.40(transitive)
Updatedinvariant@^2.2.4
Updatedquery-string@^6.0.0