util-nonempty 5.2.2 → 5.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/util-nonempty.esm.js +2 -2
- package/dist/util-nonempty.umd.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT Licence">
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
|
+
**No dependencies whatsoever.** This package declares no dependencies or devDependencies.
|
|
25
|
+
|
|
24
26
|
## Install
|
|
25
27
|
|
|
26
28
|
This package is [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). If you're not ready yet, install an older version of this program, 3.1.0 (`npm i util-nonempty@3.1.0`).
|
|
@@ -43,7 +45,7 @@ assert.equal(nonEmpty(""), false);
|
|
|
43
45
|
|
|
44
46
|
## Documentation
|
|
45
47
|
|
|
46
|
-
Please [visit codsen.com](https://codsen.com/os/util-nonempty/) for a full description of the API.
|
|
48
|
+
Please [visit codsen.com](https://codsen.com/os/util-nonempty/) for a full description of the API. For **Changelog**, see [raw md on GitHub](https://github.com/codsen/codsen/blob/main/packages/util-nonempty/CHANGELOG.md) or [the website](https://codsen.com/os/util-nonempty/changelog).
|
|
47
49
|
|
|
48
50
|
## Contributing
|
|
49
51
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name util-nonempty
|
|
3
3
|
* @fileoverview Is the input (plain object, array, string or whatever) not empty?
|
|
4
|
-
* @version 5.2.
|
|
4
|
+
* @version 5.2.3
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/util-nonempty/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var n="5.2.
|
|
10
|
+
var n="5.2.3";var a=n,o=Function.prototype.toString,c=o.call(Object);function i(e){if(e===null||typeof e!="object")return!1;let r=Object.getPrototypeOf(e);if(r===null||r===Object.prototype)return!0;let t=Object.getOwnPropertyDescriptor(r,"constructor");return!t||!("value"in t)||typeof t.value!="function"?!1:Object.getOwnPropertyDescriptor(t.value,"prototype")?.value===r&&o.call(t.value)===c}function m(e){return e==null?!1:Array.isArray(e)||typeof e=="string"?!!e.length:i(e)?!!Object.keys(e).length:typeof e=="number"}export{m as nonEmpty,a as version};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name util-nonempty
|
|
3
3
|
* @fileoverview Is the input (plain object, array, string or whatever) not empty?
|
|
4
|
-
* @version 5.2.
|
|
4
|
+
* @version 5.2.3
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/util-nonempty/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var utilNonempty=(()=>{var s=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var a=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of l(t))!u.call(e,o)&&o!==n&&s(e,o,{get:()=>t[o],enumerable:!(r=p(t,o))||r.enumerable});return e};var d=e=>m(s({},"__esModule",{value:!0}),e);var j={};a(j,{nonEmpty:()=>h,version:()=>f});var c="5.2.
|
|
10
|
+
"use strict";var utilNonempty=(()=>{var s=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var a=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of l(t))!u.call(e,o)&&o!==n&&s(e,o,{get:()=>t[o],enumerable:!(r=p(t,o))||r.enumerable});return e};var d=e=>m(s({},"__esModule",{value:!0}),e);var j={};a(j,{nonEmpty:()=>h,version:()=>f});var c="5.2.3";var f=c,i=Function.prototype.toString,g=i.call(Object);function b(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;let n=Object.getOwnPropertyDescriptor(t,"constructor");if(!n||!("value"in n)||typeof n.value!="function")return!1;let r=Object.getOwnPropertyDescriptor(n.value,"prototype");return(r==null?void 0:r.value)===t&&i.call(n.value)===g}function h(e){return e==null?!1:Array.isArray(e)||typeof e=="string"?!!e.length:b(e)?!!Object.keys(e).length:typeof e=="number"}return d(j);})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "util-nonempty",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "Is the input (plain object, array, string or whatever) not empty?",
|
|
5
5
|
"keywords": ["array", "empty", "is", "not", "object", "string", "util"],
|
|
6
6
|
"homepage": "https://codsen.com/os/util-nonempty",
|