rc-notification
Advanced tools
Comparing version 5.0.0-alpha.7 to 5.0.0-alpha.8
@@ -12,2 +12,4 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; | ||
var uniqueKey = 0; | ||
function mergeConfig() { | ||
@@ -73,7 +75,9 @@ var clone = {}; | ||
open: function open(config) { | ||
var _config$key; | ||
var mergedConfig = mergeConfig(shareConfig, config); | ||
var mergedConfig = mergeConfig(shareConfig, config, { | ||
key: (_config$key = config.key) !== null && _config$key !== void 0 ? _config$key : Date.now() | ||
}); | ||
if (mergedConfig.key === null || mergedConfig.key === undefined) { | ||
mergedConfig.key = "rc-notification-".concat(uniqueKey); | ||
uniqueKey += 1; | ||
} | ||
setTaskQueue(function (queue) { | ||
@@ -80,0 +84,0 @@ return [].concat(_toConsumableArray(queue), [{ |
@@ -28,2 +28,4 @@ "use strict"; | ||
var uniqueKey = 0; | ||
function mergeConfig() { | ||
@@ -88,7 +90,9 @@ var clone = {}; | ||
open: function open(config) { | ||
var _config$key; | ||
var mergedConfig = mergeConfig(shareConfig, config); | ||
var mergedConfig = mergeConfig(shareConfig, config, { | ||
key: (_config$key = config.key) !== null && _config$key !== void 0 ? _config$key : Date.now() | ||
}); | ||
if (mergedConfig.key === null || mergedConfig.key === undefined) { | ||
mergedConfig.key = "rc-notification-".concat(uniqueKey); | ||
uniqueKey += 1; | ||
} | ||
setTaskQueue(function (queue) { | ||
@@ -95,0 +99,0 @@ return [].concat((0, _toConsumableArray2.default)(queue), [{ |
{ | ||
"name": "rc-notification", | ||
"version": "5.0.0-alpha.7", | ||
"version": "5.0.0-alpha.8", | ||
"description": "notification ui component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
48200
910