ast-is-empty 3.0.1 → 3.0.5
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 +0 -6
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/ast-is-empty.esm.js +2 -2
- package/dist/ast-is-empty.umd.js +2 -2
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## 3.0.1 (2021-09-13)
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
- bump TS and separate ESLint plugins away from this monorepo ([2e07d42](https://github.com/codsen/codsen/commit/2e07d424222b6ffedf5fb45c83ad453627ec2904))
|
|
11
|
-
|
|
12
6
|
## 3.0.0 (2021-09-09)
|
|
13
7
|
|
|
14
8
|
### Features
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2010
|
|
3
|
+
Copyright (c) 2010-2021 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
|
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ This package is ESM only: Node 12+ is needed to use it and it must be imported i
|
|
|
32
32
|
npm i ast-is-empty
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
If you need a legacy version which works with require
|
|
35
|
+
If you need a legacy version which works with `require`, use version 2.1.0
|
|
36
36
|
|
|
37
37
|
## Quick Take
|
|
38
38
|
|
package/dist/ast-is-empty.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.0.
|
|
4
|
+
* @version 3.0.5
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/ast-is-empty/}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
import isObj from 'lodash.isplainobject';
|
|
11
11
|
|
|
12
|
-
var version$1 = "3.0.
|
|
12
|
+
var version$1 = "3.0.5";
|
|
13
13
|
|
|
14
14
|
const version = version$1;
|
|
15
15
|
function isEmpty(input) {
|
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.0.
|
|
4
|
+
* @version 3.0.5
|
|
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
|
-
!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){let n,r,o=!0;if(Array.isArray(e)){if(0===e.length)return!0;for(n=0,r=e.length;n<r;n++){if(o=t(e[n]),null===o)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(o=t(e[Object.keys(e)[n]]),null===o)return null;if(!o)return!1}}else{if("string"!=typeof e)return null;if(0!==e.length)return!1}return o},t.version="3.0.
|
|
10
|
+
!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){let n,r,o=!0;if(Array.isArray(e)){if(0===e.length)return!0;for(n=0,r=e.length;n<r;n++){if(o=t(e[n]),null===o)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(o=t(e[Object.keys(e)[n]]),null===o)return null;if(!o)return!1}}else{if("string"!=typeof e)return null;if(0!==e.length)return!1}return o},t.version="3.0.5",Object.defineProperty(t,"__esModule",{value:!0})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ast-is-empty",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "Find out, is nested array/object/string/AST tree is empty",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"array",
|
|
@@ -45,11 +45,13 @@
|
|
|
45
45
|
"types": "types/index.d.ts",
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "rollup -c",
|
|
48
|
-
"esbuild": "node '../../scripts/esbuild.js'",
|
|
49
|
-
"esbuild_dev": "cross-env MODE=dev node '../../scripts/esbuild.js'",
|
|
50
48
|
"ci_test": "npm run build && npm run format && tap --no-only --reporter=silent --output-file=testStats.md && npm run clean_cov",
|
|
49
|
+
"clean_cov": "../../scripts/leaveCoverageTotalOnly.js",
|
|
50
|
+
"clean_types": "../../scripts/cleanTypes.js",
|
|
51
51
|
"dev": "rollup -c --dev",
|
|
52
52
|
"devunittest": "npm run dev && tap --only -R 'base'",
|
|
53
|
+
"esbuild": "node '../../scripts/esbuild.js'",
|
|
54
|
+
"esbuild_dev": "cross-env MODE=dev node '../../scripts/esbuild.js'",
|
|
53
55
|
"format": "npm run lect && npm run prettier && npm run lint",
|
|
54
56
|
"lect": "lect",
|
|
55
57
|
"lint": "../../node_modules/eslint/bin/eslint.js . --ext .js --ext .ts --fix --config \"../../.eslintrc.json\" --quiet",
|
|
@@ -57,13 +59,11 @@
|
|
|
57
59
|
"prettier": "../../node_modules/prettier/bin-prettier.js '*.{js,css,scss,vue,md,ts}' --write --loglevel silent",
|
|
58
60
|
"republish": "npm publish || :",
|
|
59
61
|
"tap": "tap",
|
|
60
|
-
"tsc": "tsc",
|
|
61
62
|
"pretest": "npm run build",
|
|
62
63
|
"test": "npm run lint && npm run unittest && npm run test:examples && npm run clean_cov && npm run format",
|
|
63
64
|
"test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier",
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"clean_types": "../../scripts/cleanTypes.js"
|
|
65
|
+
"tsc": "tsc",
|
|
66
|
+
"unittest": "tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf"
|
|
67
67
|
},
|
|
68
68
|
"tap": {
|
|
69
69
|
"check-coverage": false,
|
|
@@ -92,47 +92,47 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@babel/runtime": "^7.
|
|
95
|
+
"@babel/runtime": "^7.16.0",
|
|
96
96
|
"lodash.isplainobject": "^4.0.6"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@babel/cli": "^7.
|
|
100
|
-
"@babel/core": "^7.
|
|
101
|
-
"@babel/node": "^7.
|
|
102
|
-
"@babel/plugin-external-helpers": "^7.
|
|
103
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
104
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.
|
|
105
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
|
106
|
-
"@babel/plugin-proposal-optional-chaining": "^7.
|
|
107
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
108
|
-
"@babel/preset-env": "^7.
|
|
109
|
-
"@babel/preset-typescript": "^7.
|
|
110
|
-
"@babel/register": "^7.
|
|
99
|
+
"@babel/cli": "^7.16.0",
|
|
100
|
+
"@babel/core": "^7.16.0",
|
|
101
|
+
"@babel/node": "^7.16.0",
|
|
102
|
+
"@babel/plugin-external-helpers": "^7.16.0",
|
|
103
|
+
"@babel/plugin-proposal-class-properties": "^7.16.0",
|
|
104
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
|
|
105
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.16.0",
|
|
106
|
+
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
|
|
107
|
+
"@babel/plugin-transform-runtime": "^7.16.0",
|
|
108
|
+
"@babel/preset-env": "^7.16.0",
|
|
109
|
+
"@babel/preset-typescript": "^7.16.0",
|
|
110
|
+
"@babel/register": "^7.16.0",
|
|
111
111
|
"@istanbuljs/esm-loader-hook": "^0.1.2",
|
|
112
112
|
"@rollup/plugin-babel": "^5.3.0",
|
|
113
|
-
"@rollup/plugin-commonjs": "^
|
|
113
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
114
114
|
"@rollup/plugin-json": "^4.1.0",
|
|
115
|
-
"@rollup/plugin-node-resolve": "^13.0.
|
|
115
|
+
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
116
116
|
"@rollup/plugin-strip": "^2.1.0",
|
|
117
|
-
"@rollup/plugin-typescript": "^8.
|
|
117
|
+
"@rollup/plugin-typescript": "^8.3.0",
|
|
118
118
|
"@types/lodash.isplainobject": "^4.0.6",
|
|
119
|
-
"@types/node": "^16.
|
|
119
|
+
"@types/node": "^16.11.6",
|
|
120
120
|
"@types/tap": "^15.0.5",
|
|
121
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
122
|
-
"@typescript-eslint/parser": "^
|
|
123
|
-
"core-js": "^3.
|
|
121
|
+
"@typescript-eslint/eslint-plugin": "^5.3.0",
|
|
122
|
+
"@typescript-eslint/parser": "^5.3.0",
|
|
123
|
+
"core-js": "^3.19.1",
|
|
124
124
|
"cross-env": "^7.0.3",
|
|
125
|
-
"eslint": "^
|
|
126
|
-
"lect": "^0.18.
|
|
127
|
-
"rollup": "^2.
|
|
125
|
+
"eslint": "^8.2.0",
|
|
126
|
+
"lect": "^0.18.5",
|
|
127
|
+
"rollup": "^2.59.0",
|
|
128
128
|
"rollup-plugin-ascii": "^0.0.3",
|
|
129
129
|
"rollup-plugin-banner": "^0.2.1",
|
|
130
130
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
131
|
-
"rollup-plugin-dts": "^4.0.
|
|
131
|
+
"rollup-plugin-dts": "^4.0.1",
|
|
132
132
|
"rollup-plugin-terser": "^7.0.2",
|
|
133
|
-
"tap": "^15.0.
|
|
133
|
+
"tap": "^15.0.10",
|
|
134
134
|
"tslib": "^2.3.1",
|
|
135
|
-
"typescript": "^4.4.
|
|
135
|
+
"typescript": "^4.4.4"
|
|
136
136
|
},
|
|
137
137
|
"engines": {
|
|
138
138
|
"node": ">=12"
|