util-nonempty 4.0.10 → 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/LICENSE +1 -1
- package/README.md +2 -6
- package/dist/util-nonempty.esm.js +2 -2
- package/dist/util-nonempty.umd.js +2 -2
- package/package.json +7 -4
- 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/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2010-
|
|
3
|
+
Copyright (c) 2010-2022 Roy Revelt and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
package/README.md
CHANGED
|
@@ -26,14 +26,12 @@
|
|
|
26
26
|
|
|
27
27
|
## Install
|
|
28
28
|
|
|
29
|
-
This package is ESM
|
|
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
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
If you need a legacy version which works with `require`, use version 3.1.0
|
|
36
|
-
|
|
37
35
|
## Quick Take
|
|
38
36
|
|
|
39
37
|
```js
|
|
@@ -69,8 +67,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
69
67
|
|
|
70
68
|
MIT License
|
|
71
69
|
|
|
72
|
-
Copyright (c) 2010-
|
|
73
|
-
|
|
70
|
+
Copyright (c) 2010-2022 Roy Revelt and other contributors
|
|
74
71
|
|
|
75
72
|
<img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center">
|
|
76
|
-
|
|
@@ -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "util-nonempty",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.13",
|
|
4
4
|
"description": "Is the input (plain object, array, string or whatever) not empty?",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"array",
|
|
@@ -32,15 +32,18 @@
|
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "node '../../ops/scripts/esbuild.js' && yarn run dts",
|
|
34
34
|
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
|
|
35
|
-
"
|
|
35
|
+
"devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
|
|
36
|
+
"dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
|
|
36
37
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
37
|
-
"lect": "node '../../ops/lect/lect.js'",
|
|
38
|
+
"lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
|
|
38
39
|
"letspublish": "yarn publish || :",
|
|
39
40
|
"lint": "eslint . --fix",
|
|
40
41
|
"perf": "node perf/check.js",
|
|
41
42
|
"prepare": "echo 'ready'",
|
|
43
|
+
"prettier": "prettier",
|
|
44
|
+
"prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
|
|
42
45
|
"pretest": "yarn run lect && yarn run build",
|
|
43
|
-
"test": "
|
|
46
|
+
"test": "yarn run devtest",
|
|
44
47
|
"unit": "uvu test"
|
|
45
48
|
},
|
|
46
49
|
"engines": {
|
package/types/index.d.ts
CHANGED