util-nonempty 4.1.0 → 4.1.2

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 CHANGED
@@ -65,43 +65,43 @@ Accidental version bump during migration to sourcehut. Sorry about that.
65
65
 
66
66
  ## 2.9.0 (2019-01-20)
67
67
 
68
- - Various documentation and setup tweaks after we migrated to monorepo
69
- - Setup refresh: updated dependencies and all config files using automated tools
68
+ - Various documentation and setup tweaks after we migrated to monorepo
69
+ - Setup refresh: updated dependencies and all config files using automated tools
70
70
 
71
71
  ## 2.3.0 (2018-10-26)
72
72
 
73
- - Update all dependencies
74
- - Restore coveralls.io reporting
75
- - Restore unit test linting
73
+ - Update all dependencies
74
+ - Restore coveralls.io reporting
75
+ - Restore unit test linting
76
76
 
77
77
  ## 2.2.0 (2018-07-16)
78
78
 
79
79
  GitHub sold us out. In the meantime, we:
80
80
 
81
- - Migrated to BitBucket (to host repo + perform CI) and Codacy (for code quality audit)
82
- - Dropped BitHound (RIP) and Travis
81
+ - Migrated to BitBucket (to host repo + perform CI) and Codacy (for code quality audit)
82
+ - Dropped BitHound (RIP) and Travis
83
83
 
84
84
  ## 2.1.0 (2018-05-25)
85
85
 
86
- - Set up [Prettier](https://prettier.io) on a custom ESLint rule set.
87
- - Removed `package.lock` and `.editorconfig`
88
- - Wired Rollup to remove comments from non-dev builds. This means we can now leave the `console.log`s in the source code — there's no need to comment-out `console.log` statements or care about them not spilling into production. Now it's done automatically.
89
- - Unit tests are pointing at ES modules build, which means that code coverage is correct now, without Babel functions being missed. This is important because now code coverage is real again and now there are no excuses not to perfect it.
86
+ - Set up [Prettier](https://prettier.io) on a custom ESLint rule set.
87
+ - Removed `package.lock` and `.editorconfig`
88
+ - Wired Rollup to remove comments from non-dev builds. This means we can now leave the `console.log`s in the source code — there's no need to comment-out `console.log` statements or care about them not spilling into production. Now it's done automatically.
89
+ - Unit tests are pointing at ES modules build, which means that code coverage is correct now, without Babel functions being missed. This is important because now code coverage is real again and now there are no excuses not to perfect it.
90
90
 
91
91
  ## 2.0.0 (2017-11-09)
92
92
 
93
- - Numbers are not correctly reported as "non-empty"
94
- - Some rebasing and improvements to the setup
93
+ - Numbers are not correctly reported as "non-empty"
94
+ - Some rebasing and improvements to the setup
95
95
 
96
96
  ## 1.4.0 (2017-09-23)
97
97
 
98
- - Implemented Rollup to generate 3 flavours of this package: CommonJS, UMD and ESM `module` with `import`/`export`
98
+ - Implemented Rollup to generate 3 flavours of this package: CommonJS, UMD and ESM `module` with `import`/`export`
99
99
 
100
100
  ## 1.3.0 (2017-09-18)
101
101
 
102
- - Add this changelog
103
- - Switched from JS Standard to ESLint on `airbnb-base` preset. It's way better
102
+ - Add this changelog
103
+ - Switched from JS Standard to ESLint on `airbnb-base` preset. It's way better
104
104
 
105
105
  ## 1.0.0 (2016-12-23)
106
106
 
107
- - First public release
107
+ - First public release
@@ -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.1.0
4
+ * @version 4.1.2
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.1.0";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};
10
+ import n from"lodash.isplainobject";var t="4.1.2";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
- "use strict";/**
1
+ /**
2
2
  * @name util-nonempty
3
3
  * @fileoverview Is the input (plain object, array, string or whatever) not empty?
4
- * @version 4.1.0
4
+ * @version 4.1.2
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 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)),x=t=>i(o({},"__esModule",{value:!0}),t);var l=g((L,a)=>{var O="[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)!=O||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.1.0";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 x(F);})();
10
+ "use strict";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)),x=t=>i(o({},"__esModule",{value:!0}),t);var l=g((L,a)=>{var O="[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)!=O||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.1.2";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 x(F);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "util-nonempty",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Is the input (plain object, array, string or whatever) not empty?",
5
5
  "keywords": [
6
6
  "array",
@@ -11,7 +11,7 @@
11
11
  "string",
12
12
  "util"
13
13
  ],
14
- "homepage": "https://codsen.com/os/util-nonempty/",
14
+ "homepage": "https://codsen.com/os/util-nonempty",
15
15
  "repository": {
16
16
  "type": "git",
17
17
  "url": "https://github.com/codsen/codsen.git",