ast-is-empty 3.1.1 → 3.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 +9 -9
- package/dist/ast-is-empty.esm.js +2 -2
- package/dist/ast-is-empty.umd.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -59,26 +59,26 @@ Accidental version bump during migration to sourcehut. Sorry about that.
|
|
|
59
59
|
|
|
60
60
|
## 1.9.0 (2019-01-20)
|
|
61
61
|
|
|
62
|
-
-
|
|
63
|
-
-
|
|
62
|
+
- Various documentation and setup tweaks after we migrated to monorepo
|
|
63
|
+
- Setup refresh: updated dependencies and all config files using automated tools
|
|
64
64
|
|
|
65
65
|
## 1.3.0 (2018-10-13)
|
|
66
66
|
|
|
67
|
-
-
|
|
67
|
+
- Updated all dependencies and restored coverage tracking both via terminal when testing and through coveralls.io
|
|
68
68
|
|
|
69
69
|
## 1.2.0 (2018-06-13)
|
|
70
70
|
|
|
71
71
|
GitHub sold us out. In the meantime, we:
|
|
72
72
|
|
|
73
|
-
-
|
|
74
|
-
-
|
|
73
|
+
- Migrated to BitBucket (to host repo + perform CI) and Codacy (for code quality audit)
|
|
74
|
+
- Dropped BitHound (RIP) and Travis
|
|
75
75
|
|
|
76
76
|
## 1.1.0 (2018-05-02)
|
|
77
77
|
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
78
|
+
- Set up [Prettier](https://prettier.io)
|
|
79
|
+
- Removed `package.lock` and `.editorconfig`
|
|
80
|
+
- Wired Rollup to remove comments from non-dev builds. This means we can now leave the `console.log`s in the source code — Rollup will remove from production code.
|
|
81
81
|
|
|
82
82
|
## 1.0.0 (2018-03-11)
|
|
83
83
|
|
|
84
|
-
-
|
|
84
|
+
- First public release.
|
package/dist/ast-is-empty.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name ast-is-empty
|
|
3
3
|
* @fileoverview Find out, is nested array/object/string/AST tree is empty
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/ast-is-empty/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import o from"lodash.isplainobject";var n="3.1.
|
|
10
|
+
import o from"lodash.isplainobject";var n="3.1.2";var d=n;function i(e){let t,s,r=!0;if(Array.isArray(e)){if(e.length===0)return!0;for(t=0,s=e.length;t<s;t++){if(r=i(e[t]),r===null)return null;if(!r)return!1}}else if(o(e)){if(Object.keys(e).length===0)return!0;for(t=0,s=Object.keys(e).length;t<s;t++){if(r=i(e[Object.keys(e)[t]]),r===null)return null;if(!r)return!1}}else if(typeof e=="string"){if(e.length!==0)return!1}else return null;return r}export{i as isEmpty,d as version};
|
package/dist/ast-is-empty.umd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name ast-is-empty
|
|
3
3
|
* @fileoverview Find out, is nested array/object/string/AST tree is empty
|
|
4
|
-
* @version 3.1.
|
|
4
|
+
* @version 3.1.2
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/ast-is-empty/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var astIsEmpty=(()=>{var f=Object.create;var o=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),v=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of b(t))!g.call(e,s)&&s!==r&&o(e,s,{get:()=>t[s],enumerable:!(n=m(t,s))||n.enumerable});return e};var O=(e,t,r)=>(r=e!=null?f(j(e)):{},c(t||!e||!e.__esModule?o(r,"default",{value:e,enumerable:!0}):r,e)),x=e=>c(o({},"__esModule",{value:!0}),e);var u=h((L,p)=>{var k="[object Object]";function P(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(r){}return t}function S(e,t){return function(r){return e(t(r))}}var w=Function.prototype,l=Object.prototype,a=w.toString,A=l.hasOwnProperty,T=a.call(Object),E=l.toString,D=S(Object.getPrototypeOf,Object);function R(e){return!!e&&typeof e=="object"}function C(e){if(!R(e)||E.call(e)!=k||P(e))return!1;var t=D(e);if(t===null)return!0;var r=A.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&a.call(r)==T}p.exports=C});var H={};v(H,{isEmpty:()=>i,version:()=>M});var d=O(u(),1);var y="3.1.
|
|
10
|
+
"use strict";var astIsEmpty=(()=>{var f=Object.create;var o=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),v=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},c=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of b(t))!g.call(e,s)&&s!==r&&o(e,s,{get:()=>t[s],enumerable:!(n=m(t,s))||n.enumerable});return e};var O=(e,t,r)=>(r=e!=null?f(j(e)):{},c(t||!e||!e.__esModule?o(r,"default",{value:e,enumerable:!0}):r,e)),x=e=>c(o({},"__esModule",{value:!0}),e);var u=h((L,p)=>{var k="[object Object]";function P(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(r){}return t}function S(e,t){return function(r){return e(t(r))}}var w=Function.prototype,l=Object.prototype,a=w.toString,A=l.hasOwnProperty,T=a.call(Object),E=l.toString,D=S(Object.getPrototypeOf,Object);function R(e){return!!e&&typeof e=="object"}function C(e){if(!R(e)||E.call(e)!=k||P(e))return!1;var t=D(e);if(t===null)return!0;var r=A.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&a.call(r)==T}p.exports=C});var H={};v(H,{isEmpty:()=>i,version:()=>M});var d=O(u(),1);var y="3.1.2";var M=y;function i(e){let t,r,n=!0;if(Array.isArray(e)){if(e.length===0)return!0;for(t=0,r=e.length;t<r;t++){if(n=i(e[t]),n===null)return null;if(!n)return!1}}else if((0,d.default)(e)){if(Object.keys(e).length===0)return!0;for(t=0,r=Object.keys(e).length;t<r;t++){if(n=i(e[Object.keys(e)[t]]),n===null)return null;if(!n)return!1}}else if(typeof e=="string"){if(e.length!==0)return!1}else return null;return n}return x(H);})();
|