immer-reducer
Advanced tools
Comparing version 0.7.7 to 0.7.8
@@ -171,3 +171,7 @@ "use strict"; | ||
function getReducerName(klass) { | ||
return klass.customName || klass.name; | ||
var name = klass.customName || klass.name; | ||
if (!name) { | ||
throw new Error("immer-reducer failed to get reducer name for a class. Try adding 'static customName = \"name\"'"); | ||
} | ||
return name; | ||
} | ||
@@ -174,0 +178,0 @@ function createReducerFunction(immerReducerClass, initialState) { |
{ | ||
"name": "immer-reducer", | ||
"version": "0.7.7", | ||
"version": "0.7.8", | ||
"description": "", | ||
@@ -42,4 +42,4 @@ "main": "lib/immer-reducer.js", | ||
"dependencies": { | ||
"immer": "^1.4.0 || ^2.0.0 || ^3.0.0" | ||
"immer": "^1.4.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" | ||
} | ||
} |
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
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
28726
309
+ Addedimmer@4.0.2(transitive)
- Removedimmer@3.3.0(transitive)