New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hey-listen

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hey-listen - npm Package Compare versions

Comparing version

to
1.0.3

dist/hey-listen.es.js

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Changelog

## [1.0.3] 2018-05-13
* Adding UMD bundles via Rollup
## [1.0.2] 2018-05-09

@@ -7,0 +11,0 @@

@@ -0,0 +0,0 @@ export declare type DevMessage = (check: boolean, message: string) => void;

17

lib/index.js

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var HEY_LISTEN = 'Hey, listen! ';
var warning = function () { };
exports.warning = warning;
var invariant = function () { };
exports.invariant = invariant;
exports.warning = function () { };
exports.invariant = function () { };
if (process.env.NODE_ENV !== 'production') {
exports.warning = warning = function (check, message) {
exports.warning = function (check, message) {
if (!check && typeof console !== 'undefined') {

@@ -14,3 +14,3 @@ console.warn(HEY_LISTEN + message);

};
exports.invariant = invariant = function (check, message) {
exports.invariant = function (check, message) {
if (!check) {

@@ -21,2 +21,1 @@ throw new Error(HEY_LISTEN.toUpperCase() + message);

}
//# sourceMappingURL=index.js.map
{
"name": "hey-listen",
"version": "1.0.2",
"description":
"Tiny versions of popular dev-ex functions like warning and invariant",
"version": "1.0.3",
"description": "Popular dev-ex functions like warning and invariant, with added childhood flashbacks.",
"main": "lib/index.js",

@@ -10,4 +9,4 @@ "types": "./lib/index.d.ts",

"test": "jest",
"build": "tsc",
"watch": "tsc -w",
"build": "rollup -c",
"watch": "rollup -c -w",
"prepublishOnly": "npm run test && npm run build"

@@ -19,3 +18,6 @@ },

},
"keywords": ["warning", "invariant"],
"keywords": [
"warning",
"invariant"
],
"author": "Matt Perry",

@@ -32,6 +34,13 @@ "license": "MIT",

"ts-jest": "^22.4.5",
"typescript": "^2.8.3"
"typescript": "^2.8.3",
"rollup-plugin-typescript2": "^0.14.0",
"rollup-plugin-uglify": "^3.0.0"
},
"jest": {
"moduleFileExtensions": ["ts", "js", "json", "node"],
"moduleFileExtensions": [
"ts",
"js",
"json",
"node"
],
"transform": {

@@ -38,0 +47,0 @@ "\\.(ts)$": "../node_modules/ts-jest/preprocessor.js"

# Hey, Listen!
### Tiny versions of popular dev-experience functions like `warning` and `invariant`
### Dev-ex warning functions with added childhood flashbacks

@@ -5,0 +5,0 @@ [![npm version](https://img.shields.io/npm/v/hey-listen.svg?style=flat-square)](https://www.npmjs.com/package/hey-listen)

{
"compilerOptions": {
"module": "commonjs",
"module": "ESNext",
"noImplicitAny": true,

@@ -18,14 +18,6 @@ "removeComments": true,

"esModuleInterop": true,
"lib": [
"es5",
"es6",
"dom"
]
"lib": ["es5", "es6", "dom"]
},
"include": [
"src/**/*"
],
"exclude": [
"**/*.test.ts"
]
}
"include": ["src/**/*"],
"exclude": ["**/*.test.ts"]
}