This commit is contained in:
22
node_modules/tiny-warning/dist/tiny-warning.cjs.js
generated
vendored
Normal file
22
node_modules/tiny-warning/dist/tiny-warning.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
var isProduction = process.env.NODE_ENV === 'production';
|
||||
function warning(condition, message) {
|
||||
if (!isProduction) {
|
||||
if (condition) {
|
||||
return;
|
||||
}
|
||||
|
||||
var text = "Warning: " + message;
|
||||
|
||||
if (typeof console !== 'undefined') {
|
||||
console.warn(text);
|
||||
}
|
||||
|
||||
try {
|
||||
throw Error(text);
|
||||
} catch (x) {}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = warning;
|
||||
3
node_modules/tiny-warning/dist/tiny-warning.cjs.js.flow
generated
vendored
Normal file
3
node_modules/tiny-warning/dist/tiny-warning.cjs.js.flow
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// @flow
|
||||
|
||||
export * from '../src';
|
||||
20
node_modules/tiny-warning/dist/tiny-warning.esm.js
generated
vendored
Normal file
20
node_modules/tiny-warning/dist/tiny-warning.esm.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
var isProduction = process.env.NODE_ENV === 'production';
|
||||
function warning(condition, message) {
|
||||
if (!isProduction) {
|
||||
if (condition) {
|
||||
return;
|
||||
}
|
||||
|
||||
var text = "Warning: " + message;
|
||||
|
||||
if (typeof console !== 'undefined') {
|
||||
console.warn(text);
|
||||
}
|
||||
|
||||
try {
|
||||
throw Error(text);
|
||||
} catch (x) {}
|
||||
}
|
||||
}
|
||||
|
||||
export default warning;
|
||||
27
node_modules/tiny-warning/dist/tiny-warning.js
generated
vendored
Normal file
27
node_modules/tiny-warning/dist/tiny-warning.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global = global || self, global.warning = factory());
|
||||
}(this, function () { 'use strict';
|
||||
|
||||
function warning(condition, message) {
|
||||
{
|
||||
if (condition) {
|
||||
return;
|
||||
}
|
||||
|
||||
var text = "Warning: " + message;
|
||||
|
||||
if (typeof console !== 'undefined') {
|
||||
console.warn(text);
|
||||
}
|
||||
|
||||
try {
|
||||
throw Error(text);
|
||||
} catch (x) {}
|
||||
}
|
||||
}
|
||||
|
||||
return warning;
|
||||
|
||||
}));
|
||||
1
node_modules/tiny-warning/dist/tiny-warning.min.js
generated
vendored
Normal file
1
node_modules/tiny-warning/dist/tiny-warning.min.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e=e||self).warning=n()}(this,function(){"use strict";return function(e,n){}});
|
||||
Reference in New Issue
Block a user