Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

has-content

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-content - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

7

index.js
/*!
*** has-content 1.1.0
*** Copyright © 2019, Jaid <jaid.jsx@gmail.com> (https://github.com/Jaid)
*** has-content 1.1.1
*** Copyright © 2020, Jaid <jaid.jsx@gmail.com> (https://github.com/Jaid)
*** @license MIT
*** See https://github.com/Jaid/has-content
!*/
!function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=9)}([function(t,n,e){var r=e(5),o=e(13),u=e(14),c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):u(t)}},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},function(t,n,e){var r=e(0),o=e(2);t.exports=function(t){if(!o(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(t,n,e){var r=e(0),o=e(1);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},function(t,n,e){var r=e(10).Symbol;t.exports=r},function(t,n,e){var r=e(0),o=e(1);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==r(t)}},function(t,n,e){var r=e(0),o=e(15),u=e(1);t.exports=function(t){return"string"==typeof t||!o(t)&&u(t)&&"[object String]"==r(t)}},function(t,n){t.exports=function(t){return null==t}},function(t,n,e){e.r(n),e.d(n,"isEmpty",function(){return v});var r=e(6),o=e.n(r),u=e(2),c=e.n(u),i=e(3),f=e.n(i),l=e(4),a=e.n(l),p=e(7),s=e.n(p),b=e(8),y=e.n(b);const d=t=>{var n,e,r,u,i,l,p,b;return n=t,!y()(n)&&(e=t,!!f()(e)||(r=t,!!a()(r))||(u=t,o()(u)?!0===t:(i=t,s()(i)?t.trim().length>0:(l=t.length,a()(l)?t.length>0:(p=t.length,f()(p)?t.length()>0:(b=t,!!c()(b)&&Object.keys(t).length>0))))))},v=t=>!d(t);n.default=d},function(t,n,e){var r=e(11),o="object"==typeof self&&self&&self.Object===Object&&self,u=r||o||Function("return this")();t.exports=u},function(t,n,e){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(this,e(12))},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(5),o=Object.prototype,u=o.hasOwnProperty,c=o.toString,i=r?r.toStringTag:void 0;t.exports=function(t){var n=u.call(t,i),e=t[i];try{t[i]=void 0;var r=!0}catch(t){}var o=c.call(t);return r&&(n?t[i]=e:delete t[i]),o}},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n){var e=Array.isArray;t.exports=e}])});
var t;t=function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=9)}([function(t,n,e){var r=e(5),o=e(13),u=e(14),c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):u(t)}},function(t,n){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,n){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},function(t,n,e){var r=e(0),o=e(2);t.exports=function(t){if(!o(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},function(t,n,e){var r=e(0),o=e(1);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},function(t,n,e){var r=e(10).Symbol;t.exports=r},function(t,n,e){var r=e(0),o=e(1);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==r(t)}},function(t,n,e){var r=e(0),o=e(15),u=e(1);t.exports=function(t){return"string"==typeof t||!o(t)&&u(t)&&"[object String]"==r(t)}},function(t,n){t.exports=function(t){return null==t}},function(t,n,e){e.r(n),e.d(n,"isEmpty",(function(){return j}));var r=e(6),o=e.n(r),u=e(2),c=e.n(u),i=e(3),f=e.n(i),l=e(4),a=e.n(l),p=e(7),s=e.n(p),b=e(8),y=e.n(b);const d=t=>{var n,e,r,u,i,l,p,b;return n=t,!y()(n)&&(e=t,!!f()(e)||(r=t,!!a()(r))||(u=t,o()(u)?!0===t:(i=t,s()(i)?t.trim().length>0:(l=t.length,a()(l)?t.length>0:(p=t.length,f()(p)?t.length()>0:(b=t,!!c()(b)&&Object.keys(t).length>0))))))},j=t=>!d(t);n.default=d},function(t,n,e){var r=e(11),o="object"==typeof self&&self&&self.Object===Object&&self,u=r||o||Function("return this")();t.exports=u},function(t,n,e){(function(n){var e="object"==typeof n&&n&&n.Object===Object&&n;t.exports=e}).call(this,e(12))},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(5),o=Object.prototype,u=o.hasOwnProperty,c=o.toString,i=r?r.toStringTag:void 0;t.exports=function(t){var n=u.call(t,i),e=t[i];try{t[i]=void 0;var r=!0}catch(t){}var o=c.call(t);return r&&(n?t[i]=e:delete t[i]),o}},function(t,n){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t,n){var e=Array.isArray;t.exports=e}])},"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.hasContent=t():this.hasContent=t();
MIT License
Copyright © 2019, Jaid <jaid.jsx@gmail.com> (github.com/jaid)
Copyright © 2020, Jaid <jaid.jsx@gmail.com> (github.com/jaid)

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

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

{"author":{"name":"Jaid","email":"jaid.jsx@gmail.com","url":"https://github.com/Jaid"},"bugs":"https://github.com/Jaid/has-content/issues","description":"Returns true if the given value has meaningful content.","homepage":"https://github.com/Jaid/has-content","keywords":[],"license":"MIT","name":"has-content","repository":"github:Jaid/has-content","types":"index.d.ts","version":"1.1.0"}
{"author":{"name":"Jaid","email":"jaid.jsx@gmail.com","url":"https://github.com/Jaid"},"bugs":{"url":"https://github.com/jaid/has-content/issues"},"dependencies":{"@babel/runtime":"^7.8.0","lodash":"^4.17.15"},"description":"Returns true if the given value has meaningful content.","homepage":"https://github.com/jaid/has-content#readme","name":"has-content","repository":"github:jaid/has-content","types":"index.d.ts","version":"1.1.1"}
# has-content
## Under construction
Not much to see right now. Come back lator! :crocodile:
<a href="https://raw.githubusercontent.com/jaid/has-content/master/license.txt"><img src="https://img.shields.io/github/license/jaid/has-content?style=flat-square" alt="License"/></a> <a href="https://github.com/sponsors/jaid"><img src="https://img.shields.io/badge/<3-Sponsor-FF45F1?style=flat-square" alt="Sponsor has-content"/></a>
<a href="https://actions-badge.atrox.dev/jaid/has-content/goto"><img src="https://img.shields.io/endpoint.svg?style=flat-square&url=https%3A%2F%2Factions-badge.atrox.dev%2Fjaid%2Fhas-content%2Fbadge" alt="Build status"/></a> <a href="https://github.com/jaid/has-content/commits"><img src="https://img.shields.io/github/commits-since/jaid/has-content/v1.1.1?style=flat-square&logo=github" alt="Commits since v1.1.1"/></a> <a href="https://github.com/jaid/has-content/commits"><img src="https://img.shields.io/github/last-commit/jaid/has-content?style=flat-square&logo=github" alt="Last commit"/></a> <a href="https://github.com/jaid/has-content/issues"><img src="https://img.shields.io/github/issues/jaid/has-content?style=flat-square&logo=github" alt="Issues"/></a>
<a href="https://npmjs.com/package/has-content"><img src="https://img.shields.io/npm/v/has-content?style=flat-square&logo=npm&label=latest%20version" alt="Latest version on npm"/></a> <a href="https://github.com/jaid/has-content/network/dependents"><img src="https://img.shields.io/librariesio/dependents/npm/has-content?style=flat-square&logo=npm" alt="Dependents"/></a> <a href="https://npmjs.com/package/has-content"><img src="https://img.shields.io/npm/dm/has-content?style=flat-square&logo=npm" alt="Downloads"/></a>
**Returns true if the given value has meaningful content.**
## Installation
<a href="https://npmjs.com/package/has-content"><img src="https://img.shields.io/badge/npm-has--content-C23039?style=flat-square&logo=npm" alt="has-content on npm"/></a>
```bash
npm install --save has-content@^1.1.1
```
<a href="https://yarnpkg.com/package/has-content"><img src="https://img.shields.io/badge/Yarn-has--content-2F8CB7?style=flat-square&logo=yarn&logoColor=white" alt="has-content on Yarn"/></a>
```bash
yarn add has-content@^1.1.1
```
<a href="https://github.com/jaid/has-content/packages"><img src="https://img.shields.io/badge/GitHub Packages-@jaid/has--content-24282e?style=flat-square&logo=github" alt="@jaid/has-content on GitHub Packages"/></a>
(if [configured properly](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-npm-for-use-with-github-packages))
```bash
npm install --save @jaid/has-content@^1.1.1
```
## Example
```javascript
import hasContent from "has-content"
const result = hasContent({})
```
Variable `result` will now be:
```javascript
false
```
## Development
Setting up:
```bash
git clone git@github.com:jaid/has-content.git
cd has-content
npm install
```
Testing:
```bash
npm run test:dev
```
Testing in production environment:
```bash
npm run test
```
## License
```text
MIT License
Copyright © 2020, Jaid <jaid.jsx@gmail.com> (github.com/jaid)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

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

=== lodash 4.17.11 ===
### lodash 4.17.15
Copyright JS Foundation and other contributors <https://js.foundation/>
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>

@@ -51,3 +51,3 @@ Based on Underscore.js, copyright Jeremy Ashkenas,

=== webpack 4.35.2 ===
### webpack 4.41.5

@@ -54,0 +54,0 @@ Copyright JS Foundation and other contributors

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc