🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

ast-is-empty

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-is-empty - npm Package Compare versions

Comparing version

to
2.0.6

8

dist/ast-is-empty.cjs.js
/**
* ast-is-empty
* Find out, is nested array/object/string/AST tree is empty
* Version: 2.0.5
* Version: 2.0.6
* Author: Roy Revelt, Codsen Ltd

@@ -20,6 +20,6 @@ * License: MIT

var version = "2.0.5";
var version$1 = "2.0.6";
/* eslint @typescript-eslint/explicit-module-boundary-types: 0 */
var version$1 = version;
var version = version$1;
/**

@@ -78,2 +78,2 @@ * Find out, is nested array/object/string/AST tree is empty

exports.isEmpty = isEmpty;
exports.version = version$1;
exports.version = version;
/**
* ast-is-empty
* Find out, is nested array/object/string/AST tree is empty
* Version: 2.0.5
* Version: 2.0.6
* Author: Roy Revelt, Codsen Ltd

@@ -162,6 +162,6 @@ * License: MIT

var version = "2.0.5";
var version$1 = "2.0.6";
/* eslint @typescript-eslint/explicit-module-boundary-types: 0 */
var version$1 = version;
var version = version$1;
/**

@@ -220,3 +220,3 @@ * Find out, is nested array/object/string/AST tree is empty

exports.isEmpty = isEmpty;
exports.version = version$1;
exports.version = version;

@@ -223,0 +223,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

/**
* ast-is-empty
* Find out, is nested array/object/string/AST tree is empty
* Version: 2.0.5
* Version: 2.0.6
* Author: Roy Revelt, Codsen Ltd

@@ -12,6 +12,6 @@ * License: MIT

var version = "2.0.5";
var version$1 = "2.0.6";
/* eslint @typescript-eslint/explicit-module-boundary-types: 0 */
const version$1 = version;
const version = version$1;
/**

@@ -69,2 +69,2 @@ * Find out, is nested array/object/string/AST tree is empty

export { isEmpty, version$1 as version };
export { isEmpty, version };
/**
* ast-is-empty
* Find out, is nested array/object/string/AST tree is empty
* Version: 2.0.5
* Version: 2.0.6
* Author: Roy Revelt, Codsen Ltd

@@ -10,2 +10,2 @@ * License: MIT

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

@@ -47,4 +47,2 @@ "keywords": [

"ci_test": "npm run build && npm run format && tap --no-only --reporter=silent --output-file=testStats.md && npm run clean_cov",
"clean_cov": "../../scripts/leaveCoverageTotalOnly.js",
"clean_types": "../../scripts/cleanTypes.js",
"dev": "rollup -c --dev",

@@ -59,8 +57,10 @@ "devunittest": "npm run dev && ./node_modules/.bin/tap --only -R 'base' && npm run tsd && npm run clean_cov",

"tap": "tap",
"tsc": "tsc",
"tsd": "test ! -f index.d.ts || tsd",
"pretest": "npm run build",
"test": "npm run lint && npm run unittest && npm run test:examples && npm run clean_cov && npm run format",
"test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier",
"tsc": "tsc",
"tsd": "test ! -f index.d.ts || tsd",
"unittest": "./node_modules/.bin/tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run tsd && npm run clean_cov && npm run perf"
"unittest": "./node_modules/.bin/tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run tsd && npm run clean_cov && npm run perf",
"clean_cov": "../../scripts/leaveCoverageTotalOnly.js",
"clean_types": "../../scripts/cleanTypes.js"
},

@@ -121,3 +121,3 @@ "tap": {

"eslint": "^7.20.0",
"lect": "^0.16.5",
"lect": "^0.16.6",
"rollup": "^2.39.0",

@@ -124,0 +124,0 @@ "rollup-plugin-ascii": "^0.0.3",

Sorry, the diff of this file is not supported yet