util-nonempty 4.0.12 → 4.0.13
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/util-nonempty.esm.js +2 -2
- package/dist/util-nonempty.umd.js +2 -2
- package/package.json +1 -1
- package/types/index.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 4.0.13 (2022-04-18)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- tweak types ([057cdbc](https://github.com/codsen/codsen/commit/057cdbc432bd31f8f141038ea37a92886e3e6a08))
|
|
11
|
+
|
|
6
12
|
## 4.0.0 (2021-09-09)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
## Install
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
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`).
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
npm i util-nonempty
|
|
@@ -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 4.0.
|
|
4
|
+
* @version 4.0.13
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/util-nonempty/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import n from"lodash.isplainobject";var t="4.0.
|
|
10
|
+
import n from"lodash.isplainobject";var t="4.0.13";var p=t;function l(e){return e==null?!1:Array.isArray(e)||typeof e=="string"?!!e.length:n(e)?!!Object.keys(e).length:typeof e=="number"}export{l as nonEmpty,p 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 4.0.
|
|
4
|
+
* @version 4.0.13
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/util-nonempty/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var utilNonempty=(()=>{var
|
|
10
|
+
var utilNonempty=(()=>{var d=Object.create;var o=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),h=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0})},i=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of b(e))!j.call(t,n)&&n!==r&&o(t,n,{get:()=>e[n],enumerable:!(s=f(e,n))||s.enumerable});return t};var v=(t,e,r)=>(r=t!=null?d(m(t)):{},i(e||!t||!t.__esModule?o(r,"default",{value:t,enumerable:!0}):r,t)),O=t=>i(o({},"__esModule",{value:!0}),t);var l=g((L,a)=>{var x="[object Object]";function w(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(r){}return e}function P(t,e){return function(r){return t(e(r))}}var k=Function.prototype,c=Object.prototype,p=k.toString,S=c.hasOwnProperty,A=p.call(Object),E=c.toString,T=P(Object.getPrototypeOf,Object);function D(t){return!!t&&typeof t=="object"}function R(t){if(!D(t)||E.call(t)!=x||w(t))return!1;var e=T(t);if(e===null)return!0;var r=S.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&p.call(r)==A}a.exports=R});var F={};h(F,{nonEmpty:()=>M,version:()=>I});var y=v(l(),1);var u="4.0.13";var I=u;function M(t){return t==null?!1:Array.isArray(t)||typeof t=="string"?!!t.length:(0,y.default)(t)?!!Object.keys(t).length:typeof t=="number"}return O(F);})();
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED