@uiw/react-notify
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -30,3 +30,3 @@ "use strict"; | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | ||
@@ -33,0 +33,0 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } |
@@ -18,2 +18,4 @@ "use strict"; | ||
var _utils = require("@uiw/utils"); | ||
var _Container = _interopRequireDefault(require("./Container")); | ||
@@ -25,6 +27,2 @@ | ||
function randomid() { | ||
return parseInt(String(Math.random() * 1e15), 10).toString(36); | ||
} | ||
var notifys = {}; | ||
@@ -93,3 +91,3 @@ var notifysDom = {}; | ||
duration: props.duration, | ||
key: randomid(), | ||
key: (0, _utils.randomid)(), | ||
willUnmount: function willUnmount(nprops, notifysChild) { | ||
@@ -96,0 +94,0 @@ if (!nprops) return; |
@@ -9,3 +9,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
@@ -12,0 +12,0 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } |
@@ -10,9 +10,5 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
import classnames from 'classnames'; | ||
import { randomid } from '@uiw/utils'; | ||
import Container from './Container'; | ||
import "./style/index.css"; | ||
function randomid() { | ||
return parseInt(String(Math.random() * 1e15), 10).toString(36); | ||
} | ||
var notifys = {}; | ||
@@ -19,0 +15,0 @@ var notifysDom = {}; |
{ | ||
"name": "@uiw/react-notify", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Notify component", | ||
@@ -46,6 +46,6 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/react-alert": "^4.1.0", | ||
"@uiw/react-button": "^4.1.0", | ||
"@uiw/react-icon": "^4.1.0", | ||
"@uiw/utils": "^4.1.0", | ||
"@uiw/react-alert": "^4.1.1", | ||
"@uiw/react-button": "^4.1.1", | ||
"@uiw/react-icon": "^4.1.1", | ||
"@uiw/utils": "^4.1.1", | ||
"classnames": "^2.2.6" | ||
@@ -61,3 +61,3 @@ }, | ||
}, | ||
"gitHead": "5a2547993b7f4538e7075f6dce7e550620e31eca" | ||
"gitHead": "1f6848374148d3e573244cf52dc88ecd001a6423" | ||
} |
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
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
67580
766
Updated@uiw/react-alert@^4.1.1
Updated@uiw/react-button@^4.1.1
Updated@uiw/react-icon@^4.1.1
Updated@uiw/utils@^4.1.1