New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

posthtml-ast-is-empty

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthtml-ast-is-empty - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

2

dist/posthtml-ast-is-empty.umd.js

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):t.isEmpty=n()}(this,function(){"use strict";function t(n){var e=void 0,r=void 0,o=!0;if(Array.isArray(n)){if(0===n.length)return!0;for(e=0,r=n.length;e<r;e++){if(null===(o=t(n[e])))return null;if(!o)return!1}}else if(y(n)){if(0===Object.keys(n).length)return!0;for(e=0,r=Object.keys(n).length;e<r;e++){if(null===(o=t(n[Object.keys(n)[e]])))return null;if(!o)return!1}}else{if("string"!=typeof n)return null;if(0!==n.length)return!1}return o}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e="[object Object]",r=Function.prototype,o=Object.prototype,u=r.toString,f=o.hasOwnProperty,i=u.call(Object),c=o.toString,l=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object),y=function(t){if(!function(t){return!!t&&"object"==(void 0===t?"undefined":n(t))}(t)||c.call(t)!=e||function(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"")}catch(t){}return n}(t))return!1;var r=l(t);if(null===r)return!0;var o=f.call(r,"constructor")&&r.constructor;return"function"==typeof o&&o instanceof o&&u.call(o)==i};return t});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.isEmpty=e()}(this,function(){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e="[object Object]";var n,r,o=Function.prototype,f=Object.prototype,u=o.toString,i=f.hasOwnProperty,c=u.call(Object),l=f.toString,y=(n=Object.getPrototypeOf,r=Object,function(t){return n(r(t))});var p=function(n){if(!(r=n)||"object"!=(void 0===r?"undefined":t(r))||l.call(n)!=e||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(n))return!1;var r,o=y(n);if(null===o)return!0;var f=i.call(o,"constructor")&&o.constructor;return"function"==typeof f&&f instanceof f&&u.call(f)==c};function s(t){var e=void 0,n=void 0,r=!0;if(Array.isArray(t)){if(0===t.length)return!0;for(e=0,n=t.length;e<n;e++){if(null===(r=s(t[e])))return null;if(!r)return!1}}else if(p(t)){if(0===Object.keys(t).length)return!0;for(e=0,n=Object.keys(t).length;e<n;e++){if(null===(r=s(t[Object.keys(t)[e]])))return null;if(!r)return!1}}else{if("string"!=typeof t)return null;if(0!==t.length)return!1}return r}return s});
{
"name": "posthtml-ast-is-empty",
"version": "3.0.2",
"version": "3.0.3",
"description": "Find out, is nested array/object/string/AST tree is empty",

@@ -142,3 +142,3 @@ "license": "MIT",

"coveralls": "*",
"eslint": "^4.13.1",
"eslint": "^4.14.0",
"eslint-config-airbnb-base": "^12.1.0",

@@ -149,3 +149,3 @@ "eslint-plugin-ava": "^4.4.0",

"nyc": "*",
"rollup": "^0.52.3",
"rollup": "^0.53.0",
"rollup-plugin-babel": "^3.0.3",

@@ -155,4 +155,4 @@ "rollup-plugin-commonjs": "^8.2.6",

"rollup-plugin-uglify": "^2.0.1",
"uglify-es": "^3.2.2"
"uglify-es": "^3.3.2"
}
}

@@ -55,3 +55,3 @@ # posthtml-ast-is-empty

----------------|-----------------------|-------|--------
Main export - **CommonJS version**, transpiled, contains `require` and `module.exports` | `main` | `dist/posthtml-ast-is-empty.cjs.js` | 1&nbsp;KB
Main export - **CommonJS version**, transpiled to ES5, contains `require` and `module.exports` | `main` | `dist/posthtml-ast-is-empty.cjs.js` | 1&nbsp;KB
**ES module** build that Webpack/Rollup understands. Untranspiled ES6 code with `import`/`export`. | `module` | `dist/posthtml-ast-is-empty.esm.js` | 893&nbsp;B

@@ -125,5 +125,5 @@ **UMD build** for browsers, transpiled, minified, containing `iife`'s and has all dependencies baked-in | `browser` | `dist/posthtml-ast-is-empty.umd.js` | 1&nbsp;KB

* If you don't like the code in here and would like to **give an advice** about how something could be done better, please do. Same drill - [GitHub issues](https://github.com/codsen/posthtml-ast-is-empty/issues) or [email](mailto:roy@codsen.com), your choice.
* If you don't like the code in here and would like to **give advice** about how something could be done better, please do. Same drill - [GitHub issues](https://github.com/codsen/posthtml-ast-is-empty/issues) or [email](mailto:roy@codsen.com), your choice.
* If you would like to **add or change some features**, just fork it, hack away, and file a pull request. I'll do my best to merge it quickly. Code style is `airbnb`, only without semicolons. If you use a good code editor, it will pick up the established ESLint setup.
* If you would like to **add or change some features**, just fork it, hack away, and file a pull request. I'll do my best to merge it quickly. Code style is `airbnb-base`, only without semicolons. If you use a good code editor, it will pick up the established ESLint setup.

@@ -130,0 +130,0 @@ **[⬆ &nbsp;back to top](#)**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc