util-nonempty 5.0.29 → 5.0.30

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/.eslintcache ADDED
@@ -0,0 +1 @@
1
+ [{"/home/runner/work/codsen/codsen/packages/util-nonempty/examples/_quickTake.js":"1","/home/runner/work/codsen/codsen/packages/util-nonempty/perf/check.js":"2","/home/runner/work/codsen/codsen/packages/util-nonempty/rollup.config.js":"3","/home/runner/work/codsen/codsen/packages/util-nonempty/src/main.ts":"4","/home/runner/work/codsen/codsen/packages/util-nonempty/test/test.js":"5"},{"size":580,"mtime":1760280945983,"results":"6","hashOfConfig":"7"},{"size":298,"mtime":1760280945983,"results":"8","hashOfConfig":"9"},{"size":373,"mtime":1760280945983,"results":"10","hashOfConfig":"7"},{"size":494,"mtime":1760280945983,"results":"11","hashOfConfig":"9"},{"size":1428,"mtime":1760280945983,"results":"12","hashOfConfig":"13"},{"filePath":"14","messages":"15","suppressedMessages":"16","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1f1u168",{"filePath":"17","messages":"18","suppressedMessages":"19","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"91l1rm",{"filePath":"20","messages":"21","suppressedMessages":"22","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"23","messages":"24","suppressedMessages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","suppressedMessages":"28","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ns3qdb","/home/runner/work/codsen/codsen/packages/util-nonempty/examples/_quickTake.js",[],[],"/home/runner/work/codsen/codsen/packages/util-nonempty/perf/check.js",[],[],"/home/runner/work/codsen/codsen/packages/util-nonempty/rollup.config.js",[],[],"/home/runner/work/codsen/codsen/packages/util-nonempty/src/main.ts",[],[],"/home/runner/work/codsen/codsen/packages/util-nonempty/test/test.js",[],["29","30","31","32","33","34"],{"ruleId":"35","severity":2,"message":"36","line":3,"column":17,"nodeType":null,"messageId":"37","endLine":3,"endColumn":19,"suppressions":"38"},{"ruleId":"35","severity":2,"message":"39","line":3,"column":21,"nodeType":null,"messageId":"37","endLine":3,"endColumn":23,"suppressions":"40"},{"ruleId":"35","severity":2,"message":"41","line":3,"column":25,"nodeType":null,"messageId":"37","endLine":3,"endColumn":31,"suppressions":"42"},{"ruleId":"35","severity":2,"message":"43","line":3,"column":33,"nodeType":null,"messageId":"37","endLine":3,"endColumn":37,"suppressions":"44"},{"ruleId":"35","severity":2,"message":"45","line":3,"column":39,"nodeType":null,"messageId":"37","endLine":3,"endColumn":42,"suppressions":"46"},{"ruleId":"35","severity":2,"message":"47","line":3,"column":44,"nodeType":null,"messageId":"37","endLine":3,"endColumn":49,"suppressions":"48"},"@typescript-eslint/no-unused-vars","'is' is defined but never used.","unusedVar",["49"],"'ok' is defined but never used.",["50"],"'throws' is defined but never used.",["51"],"'type' is defined but never used.",["52"],"'not' is defined but never used.",["53"],"'match' is defined but never used.",["54"],{"kind":"55","justification":"56"},{"kind":"55","justification":"56"},{"kind":"55","justification":"56"},{"kind":"55","justification":"56"},{"kind":"55","justification":"56"},{"kind":"55","justification":"56"},"directive",""]
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-2025 Roy Revelt and other contributors
3
+ Copyright © 2010-2025 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
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -62,8 +62,8 @@ To report bugs or request features or assistance, [raise an issue](https://githu
62
62
 
63
63
  ## Licence
64
64
 
65
- MIT License.
65
+ MIT License
66
66
 
67
- Copyright © 2010-2025 Roy Revelt and other contributors.
67
+ Copyright © 2010-2025 Roy Revelt and other contributors
68
68
 
69
69
  <p align="center"><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"></p>
@@ -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.0.29
5
- * @author Roy Revelt, Codsen Ltd
4
+ * @version 5.0.30
5
+ * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/util-nonempty/}
8
8
  */
9
9
 
10
- import{isPlainObject as r}from"codsen-utils";var t="5.0.29";var p=t;function l(e){return e==null?!1:Array.isArray(e)||typeof e=="string"?!!e.length:r(e)?!!Object.keys(e).length:typeof e=="number"}export{l as nonEmpty,p as version};
10
+ import{isPlainObject as r}from"codsen-utils";var t="5.0.30";var p=t;function l(e){return e==null?!1:Array.isArray(e)||typeof e=="string"?!!e.length:r(e)?!!Object.keys(e).length:typeof e=="number"}export{l as nonEmpty,p as version};
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * @name util-nonempty
3
3
  * @fileoverview Is the input (plain object, array, string or whatever) not empty?
4
- * @version 5.0.29
5
- * @author Roy Revelt, Codsen Ltd
4
+ * @version 5.0.30
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 v=Object.create;var b=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var D=(r,s)=>()=>(s||r((s={exports:{}}).exports,s),s.exports),E=(r,s)=>{for(var o in s)b(r,o,{get:s[o],enumerable:!0})},h=(r,s,o,f)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of k(s))!B.call(r,c)&&c!==o&&b(r,c,{get:()=>s[c],enumerable:!(f=C(s,c))||f.enumerable});return r};var $=(r,s,o)=>(o=r!=null?v(S(r)):{},h(s||!r||!r.__esModule?b(o,"default",{value:r,enumerable:!0}):o,r)),M=r=>h(b({},"__esModule",{value:!0}),r);var j=D((I,A)=>{"use strict";A.exports=L;function m(r){return r instanceof Buffer?Buffer.from(r):new r.constructor(r.buffer.slice(),r.byteOffset,r.length)}function L(r){if(r=r||{},r.circles)return P(r);let s=new Map;if(s.set(Date,n=>new Date(n)),s.set(Map,(n,u)=>new Map(f(Array.from(n),u))),s.set(Set,(n,u)=>new Set(f(Array.from(n),u))),r.constructorHandlers)for(let n of r.constructorHandlers)s.set(n[0],n[1]);let o=null;return r.proto?p:c;function f(n,u){let e=Object.keys(n),t=new Array(e.length);for(let a=0;a<e.length;a++){let i=e[a],l=n[i];typeof l!="object"||l===null?t[i]=l:l.constructor!==Object&&(o=s.get(l.constructor))?t[i]=o(l,u):ArrayBuffer.isView(l)?t[i]=m(l):t[i]=u(l)}return t}function c(n){if(typeof n!="object"||n===null)return n;if(Array.isArray(n))return f(n,c);if(n.constructor!==Object&&(o=s.get(n.constructor)))return o(n,c);let u={};for(let e in n){if(Object.hasOwnProperty.call(n,e)===!1)continue;let t=n[e];typeof t!="object"||t===null?u[e]=t:t.constructor!==Object&&(o=s.get(t.constructor))?u[e]=o(t,c):ArrayBuffer.isView(t)?u[e]=m(t):u[e]=c(t)}return u}function p(n){if(typeof n!="object"||n===null)return n;if(Array.isArray(n))return f(n,p);if(n.constructor!==Object&&(o=s.get(n.constructor)))return o(n,p);let u={};for(let e in n){let t=n[e];typeof t!="object"||t===null?u[e]=t:t.constructor!==Object&&(o=s.get(t.constructor))?u[e]=o(t,p):ArrayBuffer.isView(t)?u[e]=m(t):u[e]=p(t)}return u}}function P(r){let s=[],o=[],f=new Map;if(f.set(Date,e=>new Date(e)),f.set(Map,(e,t)=>new Map(p(Array.from(e),t))),f.set(Set,(e,t)=>new Set(p(Array.from(e),t))),r.constructorHandlers)for(let e of r.constructorHandlers)f.set(e[0],e[1]);let c=null;return r.proto?u:n;function p(e,t){let a=Object.keys(e),i=new Array(a.length);for(let l=0;l<a.length;l++){let d=a[l],y=e[d];if(typeof y!="object"||y===null)i[d]=y;else if(y.constructor!==Object&&(c=f.get(y.constructor)))i[d]=c(y,t);else if(ArrayBuffer.isView(y))i[d]=m(y);else{let g=s.indexOf(y);g!==-1?i[d]=o[g]:i[d]=t(y)}}return i}function n(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return p(e,n);if(e.constructor!==Object&&(c=f.get(e.constructor)))return c(e,n);let t={};s.push(e),o.push(t);for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let i=e[a];if(typeof i!="object"||i===null)t[a]=i;else if(i.constructor!==Object&&(c=f.get(i.constructor)))t[a]=c(i,n);else if(ArrayBuffer.isView(i))t[a]=m(i);else{let l=s.indexOf(i);l!==-1?t[a]=o[l]:t[a]=n(i)}}return s.pop(),o.pop(),t}function u(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return p(e,u);if(e.constructor!==Object&&(c=f.get(e.constructor)))return c(e,u);let t={};s.push(e),o.push(t);for(let a in e){let i=e[a];if(typeof i!="object"||i===null)t[a]=i;else if(i.constructor!==Object&&(c=f.get(i.constructor)))t[a]=c(i,u);else if(ArrayBuffer.isView(i))t[a]=m(i);else{let l=s.indexOf(i);l!==-1?t[a]=o[l]:t[a]=u(i)}}return s.pop(),o.pop(),t}}});var T={};E(T,{nonEmpty:()=>N,version:()=>F});var w=$(j(),1);var V=(0,w.default)();function O(r){if(r==null||typeof r!="object")return!1;let s=Object.getPrototypeOf(r);return s!==null&&s!==Object.prototype&&Object.getPrototypeOf(s)!==null?!1:!(Symbol.iterator in r)&&!(Symbol.toStringTag in r)}var x="5.0.29";var F=x;function N(r){return r==null?!1:Array.isArray(r)||typeof r=="string"?!!r.length:O(r)?!!Object.keys(r).length:typeof r=="number"}return M(T);})();
10
+ "use strict";var utilNonempty=(()=>{var v=Object.create;var b=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var D=(r,s)=>()=>(s||r((s={exports:{}}).exports,s),s.exports),E=(r,s)=>{for(var i in s)b(r,i,{get:s[i],enumerable:!0})},h=(r,s,i,f)=>{if(s&&typeof s=="object"||typeof s=="function")for(let c of k(s))!B.call(r,c)&&c!==i&&b(r,c,{get:()=>s[c],enumerable:!(f=C(s,c))||f.enumerable});return r};var $=(r,s,i)=>(i=r!=null?v(S(r)):{},h(s||!r||!r.__esModule?b(i,"default",{value:r,enumerable:!0}):i,r)),M=r=>h(b({},"__esModule",{value:!0}),r);var j=D((I,A)=>{"use strict";A.exports=L;function m(r){return r instanceof Buffer?Buffer.from(r):new r.constructor(r.buffer.slice(),r.byteOffset,r.length)}function L(r){if(r=r||{},r.circles)return P(r);let s=new Map;if(s.set(Date,n=>new Date(n)),s.set(Map,(n,u)=>new Map(f(Array.from(n),u))),s.set(Set,(n,u)=>new Set(f(Array.from(n),u))),r.constructorHandlers)for(let n of r.constructorHandlers)s.set(n[0],n[1]);let i=null;return r.proto?p:c;function f(n,u){let e=Object.keys(n),t=new Array(e.length);for(let a=0;a<e.length;a++){let o=e[a],l=n[o];typeof l!="object"||l===null?t[o]=l:l.constructor!==Object&&(i=s.get(l.constructor))?t[o]=i(l,u):ArrayBuffer.isView(l)?t[o]=m(l):t[o]=u(l)}return t}function c(n){if(typeof n!="object"||n===null)return n;if(Array.isArray(n))return f(n,c);if(n.constructor!==Object&&(i=s.get(n.constructor)))return i(n,c);let u={};for(let e in n){if(Object.hasOwnProperty.call(n,e)===!1)continue;let t=n[e];typeof t!="object"||t===null?u[e]=t:t.constructor!==Object&&(i=s.get(t.constructor))?u[e]=i(t,c):ArrayBuffer.isView(t)?u[e]=m(t):u[e]=c(t)}return u}function p(n){if(typeof n!="object"||n===null)return n;if(Array.isArray(n))return f(n,p);if(n.constructor!==Object&&(i=s.get(n.constructor)))return i(n,p);let u={};for(let e in n){let t=n[e];typeof t!="object"||t===null?u[e]=t:t.constructor!==Object&&(i=s.get(t.constructor))?u[e]=i(t,p):ArrayBuffer.isView(t)?u[e]=m(t):u[e]=p(t)}return u}}function P(r){let s=[],i=[],f=new Map;if(f.set(Date,e=>new Date(e)),f.set(Map,(e,t)=>new Map(p(Array.from(e),t))),f.set(Set,(e,t)=>new Set(p(Array.from(e),t))),r.constructorHandlers)for(let e of r.constructorHandlers)f.set(e[0],e[1]);let c=null;return r.proto?u:n;function p(e,t){let a=Object.keys(e),o=new Array(a.length);for(let l=0;l<a.length;l++){let d=a[l],y=e[d];if(typeof y!="object"||y===null)o[d]=y;else if(y.constructor!==Object&&(c=f.get(y.constructor)))o[d]=c(y,t);else if(ArrayBuffer.isView(y))o[d]=m(y);else{let g=s.indexOf(y);g!==-1?o[d]=i[g]:o[d]=t(y)}}return o}function n(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return p(e,n);if(e.constructor!==Object&&(c=f.get(e.constructor)))return c(e,n);let t={};s.push(e),i.push(t);for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let o=e[a];if(typeof o!="object"||o===null)t[a]=o;else if(o.constructor!==Object&&(c=f.get(o.constructor)))t[a]=c(o,n);else if(ArrayBuffer.isView(o))t[a]=m(o);else{let l=s.indexOf(o);l!==-1?t[a]=i[l]:t[a]=n(o)}}return s.pop(),i.pop(),t}function u(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return p(e,u);if(e.constructor!==Object&&(c=f.get(e.constructor)))return c(e,u);let t={};s.push(e),i.push(t);for(let a in e){let o=e[a];if(typeof o!="object"||o===null)t[a]=o;else if(o.constructor!==Object&&(c=f.get(o.constructor)))t[a]=c(o,u);else if(ArrayBuffer.isView(o))t[a]=m(o);else{let l=s.indexOf(o);l!==-1?t[a]=i[l]:t[a]=u(o)}}return s.pop(),i.pop(),t}}});var T={};E(T,{nonEmpty:()=>N,version:()=>F});var w=$(j(),1);var V=(0,w.default)();function O(r){if(r==null||typeof r!="object")return!1;let s=Object.getPrototypeOf(r);return s!==null&&s!==Object.prototype&&Object.getPrototypeOf(s)!==null?!1:!(Symbol.iterator in r)&&!(Symbol.toStringTag in r)}var x="5.0.30";var F=x;function N(r){return r==null?!1:Array.isArray(r)||typeof r=="string"?!!r.length:O(r)?!!Object.keys(r).length:typeof r=="number"}return M(T);})();
11
11
  /**
12
12
  * @name codsen-utils
13
13
  * @fileoverview Various utility functions
14
- * @version 1.6.18
15
- * @author Roy Revelt, Codsen Ltd
14
+ * @version 1.6.19
15
+ * @author Roy Revelt
16
16
  * @license MIT
17
17
  * {@link https://codsen.com/os/codsen-utils/}
18
18
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "util-nonempty",
3
- "version": "5.0.29",
3
+ "version": "5.0.30",
4
4
  "description": "Is the input (plain object, array, string or whatever) not empty?",
5
5
  "keywords": [
6
6
  "array",
@@ -40,7 +40,7 @@
40
40
  "examples": "node '../../ops/scripts/run-examples.js'",
41
41
  "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
42
42
  "letspublish": "npm publish --provenance || :",
43
- "lint": "eslint . --fix",
43
+ "lint": "eslint . --fix --concurrency=auto --cache",
44
44
  "perf": "node perf/check.js",
45
45
  "prep": "echo 'ready'",
46
46
  "prettier": "prettier",
@@ -67,7 +67,7 @@
67
67
  }
68
68
  },
69
69
  "dependencies": {
70
- "codsen-utils": "^1.6.18"
70
+ "codsen-utils": "^1.6.19"
71
71
  },
72
72
  "publishConfig": {
73
73
  "registry": "https://registry.npmjs.org/"