@unction/ispresent
Advanced tools
Comparing version 4.1.1 to 4.1.2
"use strict";require("core-js/modules/es.object.define-property"),Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=isPresent;/* eslint-disable no-undefined */function isPresent(a){return a!==void 0&&null!==a} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbImlzUHJlc2VudCIsInZhbHVlIl0sIm1hcHBpbmdzIjoic0pBQUEsaUNBQ2UsUUFBU0EsQ0FBQUEsU0FBVCxDQUF1QkMsQ0FBdkIsQ0FBMEMsQ0FDdkQsTUFBU0EsQ0FBQUEsQ0FBSyxTQUFMLEVBQWlDLElBQVYsR0FBQUEsQ0FDakMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby11bmRlZmluZWQgKi9cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIGlzUHJlc2VudDxBPiAodmFsdWU6IEEpOiBib29sZWFuIHtcbiAgcmV0dXJuICEodmFsdWUgPT09IHVuZGVmaW5lZCB8fCB2YWx1ZSA9PT0gbnVsbCk7XG59XG4iXX0= |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=isPresent;/* eslint-disable no-undefined */function isPresent(a){return a!==void 0&&null!==a} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbImlzUHJlc2VudCIsInZhbHVlIl0sIm1hcHBpbmdzIjoiOEZBQUEsaUNBQ2UsUUFBU0EsQ0FBQUEsU0FBVCxDQUF1QkMsQ0FBdkIsQ0FBMEMsQ0FDdkQsTUFBU0EsQ0FBQUEsQ0FBSyxTQUFMLEVBQWlDLElBQVYsR0FBQUEsQ0FDakMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby11bmRlZmluZWQgKi9cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIGlzUHJlc2VudDxBPiAodmFsdWU6IEEpOiBib29sZWFuIHtcbiAgcmV0dXJuICEodmFsdWUgPT09IHVuZGVmaW5lZCB8fCB2YWx1ZSA9PT0gbnVsbCk7XG59XG4iXX0= |
{ | ||
"name": "@unction/ispresent", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "Determines if the object is non-nil", | ||
@@ -23,8 +23,9 @@ "keywords": [ | ||
"prepublishOnly": "npm run build", | ||
"test": "NODE_ENV=test tap --100 './test.js'", | ||
"test": "BABEL_ENV=test jest --coverage", | ||
"build": "npm run build:browser && npm run build:main", | ||
"build:main": "babel --env-name main --out-file './main.js' './index.js'", | ||
"build:browser": "babel --env-name browser --out-file './browser.js' './index.js'", | ||
"lint": "eslint './index.js'", | ||
"ci": "npm run test" | ||
"build:main": "babel --env-name main --out-file './main.js' './index.ts'", | ||
"build:browser": "babel --env-name browser --out-file './browser.js' './index.ts'", | ||
"lint": "eslint './index.ts'", | ||
"typecheck": "tsc --noEmit", | ||
"ci": "npm run typecheck && npm run lint && npm run test" | ||
}, | ||
@@ -39,8 +40,8 @@ "devDependencies": { | ||
"@babel/register": "7.4.0", | ||
"@types/jest": "24.0.18", | ||
"@types/node": "12.0.2", | ||
"babel-eslint": "10.0.1", | ||
"babel-jest": "23.0.0", | ||
"babel-jest": "24.8.0", | ||
"babel-plugin-annotate-console-log": "1.0.0", | ||
"babel-plugin-istanbul": "5.1.1", | ||
"babel-plugin-module-resolver": "3.2.0", | ||
"babel-plugin-transform-imports": "1.5.1", | ||
"babel-preset-minify": "0.5.0", | ||
@@ -50,24 +51,19 @@ "eslint": "5.16.0", | ||
"eslint-plugin-babel": "5.3.0", | ||
"eslint-plugin-jest": "22.6.4", | ||
"eslint-plugin-promise": "4.1.1", | ||
"jest": "23.0.0", | ||
"nyc": "13.3.0", | ||
"tap": "12.6.1" | ||
"jest": "24.8.0", | ||
"jest-extended": "0.11.2", | ||
"typescript": "3.5.1" | ||
}, | ||
"nyc": { | ||
"require": [ | ||
"@babel/register" | ||
], | ||
"sourceMap": false, | ||
"instrument": false | ||
}, | ||
"files": [ | ||
"index.js", | ||
"index.ts", | ||
"main.js", | ||
"main.js.map", | ||
"browser.js", | ||
"browser.js.map" | ||
"types.d.ts", | ||
"types/*.d.ts" | ||
], | ||
"dependencies": {}, | ||
"module": "module.js", | ||
"browser": "browser.js" | ||
"browser": "browser.js", | ||
"types": "types.d.ts" | ||
} |
@@ -8,3 +8,3 @@ # @unction/isPresent | ||
> mixed => boolean | ||
> A => boolean | ||
@@ -11,0 +11,0 @@ This lets you know if it's a non-null, non-undefined value. |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
16964
26
326
22
1