Socket
Socket
Sign inDemoInstall

tiny-warning

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

8

dist/tiny-warning.cjs.js

@@ -10,3 +10,9 @@ 'use strict';

console.warn(message);
if (typeof console !== 'undefined') {
console.warn(message);
}
try {
throw Error(message);
} catch (x) {}
}

@@ -13,0 +19,0 @@ }

@@ -8,3 +8,9 @@ var isProduction = process.env.NODE_ENV === 'production';

console.warn(message);
if (typeof console !== 'undefined') {
console.warn(message);
}
try {
throw Error(message);
} catch (x) {}
}

@@ -11,0 +17,0 @@ }

14

dist/tiny-warning.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.warning = factory());
}(this, (function () { 'use strict';
global.warning = factory();
}(typeof self !== 'undefined' ? self : this, function () { 'use strict';

@@ -13,3 +13,9 @@ function warning(condition, message) {

console.warn(message);
if (typeof console !== 'undefined') {
console.warn(message);
}
try {
throw Error(message);
} catch (x) {}
}

@@ -20,2 +26,2 @@ }

})));
}));

@@ -1,1 +0,1 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.warning=n()}(this,function(){"use strict";return function(e,n){}});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.warning=n()}("undefined"!=typeof self?self:this,function(){"use strict";return function(e,n){}});
{
"name": "tiny-warning",
"version": "1.0.0",
"version": "1.0.1",
"keywords": [

@@ -17,2 +17,6 @@ "warning",

"author": "Alex Reardon <alexreardon@gmail.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/alexreardon/tiny-warning.git"
},
"license": "MIT",

@@ -31,16 +35,16 @@ "scripts": {

"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/preset-env": "^7.1.0",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.0",
"@babel/preset-flow": "^7.0.0",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"flow-bin": "^0.82.0",
"flow-bin": "0.89.0",
"jest": "^23.6.0",
"prettier": "^1.14.3",
"prettier": "1.15.3",
"rimraf": "^2.6.2",
"rollup": "^0.66.2",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-replace": "^2.0.0",
"rollup": "^0.68.0",
"rollup-plugin-babel": "^4.1.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-uglify": "^6.0.0"
}
}

@@ -1,5 +0,5 @@

# `tiny-warning` 🔬⚠️
# tiny-warning 🔬⚠️
[![Build Status](https://travis-ci.org/alexreardon/tiny-warning.svg?branch=master)](https://travis-ci.org/alexreardon/tiny-warning)
[![npm](https://img.shields.io/npm/v/tiny-warning.svg)](https://www.npmjs.com/package/tiny-warning) [![dependencies](https://david-dm.org/alexreardon/tiny-warning.svg)](https://david-dm.org/alexreardon/tiny-warning)
[![npm](https://img.shields.io/npm/v/tiny-warning.svg)](https://www.npmjs.com/package/tiny-warning) [![Downloads per month](https://img.shields.io/npm/dm/tiny-warning.svg)](https://www.npmjs.com/package/tiny-warning) [![dependencies](https://david-dm.org/alexreardon/tiny-warning.svg)](https://david-dm.org/alexreardon/tiny-warning)
[![min](https://img.shields.io/bundlephobia/min/tiny-warning.svg)](https://www.npmjs.com/package/tiny-warning)

@@ -6,0 +6,0 @@ [![minzip](https://img.shields.io/bundlephobia/minzip/tiny-warning.svg)](https://www.npmjs.com/package/tiny-warning)

@@ -12,5 +12,17 @@ // @flow

}
// Condition not passed
console.warn(message);
// check console for IE9 support which provides console
// only with open devtools
if (typeof console !== 'undefined') {
console.warn(message);
}
try {
// --- Welcome to debugging React ---
// This error was thrown as a convenience so that you can use this stack
// to find the call site that caused this warning to fire.
throw Error(message);
} catch (x) {}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc