util-nonempty 3.0.12 → 3.0.16

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
@@ -3,6 +3,12 @@
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.15 (2021-04-11)
7
+
8
+ ### Reverts
9
+
10
+ - Revert "chore: setup refresh" ([23cf206](https://github.com/codsen/codsen/commit/23cf206970a087ff0fa04e61f94d919f59ab3881))
11
+
6
12
  ## 3.0.1 (2021-01-28)
7
13
 
8
14
  ### Bug Fixes
@@ -1,10 +1,10 @@
1
1
  /**
2
- * util-nonempty
3
- * Is the input (plain object, array, string or whatever) not empty?
4
- * Version: 3.0.12
5
- * Author: Roy Revelt, Codsen Ltd
6
- * License: MIT
7
- * Homepage: https://codsen.com/os/util-nonempty/
2
+ * @name util-nonempty
3
+ * @fileoverview Is the input (plain object, array, string or whatever) not empty?
4
+ * @version 3.0.16
5
+ * @author Roy Revelt, Codsen Ltd
6
+ * @license MIT
7
+ * {@link https://codsen.com/os/util-nonempty/}
8
8
  */
9
9
 
10
10
  'use strict';
@@ -17,7 +17,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
17
17
 
18
18
  var isPlainObject__default = /*#__PURE__*/_interopDefaultLegacy(isPlainObject);
19
19
 
20
- var version$1 = "3.0.12";
20
+ var version$1 = "3.0.16";
21
21
 
22
22
  var version = version$1;
23
23
  function nonEmpty(input) {
@@ -1,10 +1,10 @@
1
1
  /**
2
- * util-nonempty
3
- * Is the input (plain object, array, string or whatever) not empty?
4
- * Version: 3.0.12
5
- * Author: Roy Revelt, Codsen Ltd
6
- * License: MIT
7
- * Homepage: https://codsen.com/os/util-nonempty/
2
+ * @name util-nonempty
3
+ * @fileoverview Is the input (plain object, array, string or whatever) not empty?
4
+ * @version 3.0.16
5
+ * @author Roy Revelt, Codsen Ltd
6
+ * @license MIT
7
+ * {@link https://codsen.com/os/util-nonempty/}
8
8
  */
9
9
 
10
10
  (function (global, factory) {
@@ -152,7 +152,7 @@ function isPlainObject(value) {
152
152
 
153
153
  var lodash_isplainobject = isPlainObject;
154
154
 
155
- var version$1 = "3.0.12";
155
+ var version$1 = "3.0.16";
156
156
 
157
157
  /* eslint @typescript-eslint/no-explicit-any:0, @typescript-eslint/explicit-module-boundary-types:0 */
158
158
  const version = version$1;
@@ -1,15 +1,15 @@
1
1
  /**
2
- * util-nonempty
3
- * Is the input (plain object, array, string or whatever) not empty?
4
- * Version: 3.0.12
5
- * Author: Roy Revelt, Codsen Ltd
6
- * License: MIT
7
- * Homepage: https://codsen.com/os/util-nonempty/
2
+ * @name util-nonempty
3
+ * @fileoverview Is the input (plain object, array, string or whatever) not empty?
4
+ * @version 3.0.16
5
+ * @author Roy Revelt, Codsen Ltd
6
+ * @license MIT
7
+ * {@link https://codsen.com/os/util-nonempty/}
8
8
  */
9
9
 
10
10
  import isPlainObject from 'lodash.isplainobject';
11
11
 
12
- var version$1 = "3.0.12";
12
+ var version$1 = "3.0.16";
13
13
 
14
14
  const version = version$1;
15
15
  function nonEmpty(input) {
@@ -1,10 +1,10 @@
1
1
  /**
2
- * util-nonempty
3
- * Is the input (plain object, array, string or whatever) not empty?
4
- * Version: 3.0.12
5
- * Author: Roy Revelt, Codsen Ltd
6
- * License: MIT
7
- * Homepage: https://codsen.com/os/util-nonempty/
2
+ * @name util-nonempty
3
+ * @fileoverview Is the input (plain object, array, string or whatever) not empty?
4
+ * @version 3.0.16
5
+ * @author Roy Revelt, Codsen Ltd
6
+ * @license MIT
7
+ * {@link https://codsen.com/os/util-nonempty/}
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).utilNonempty={})}(this,(function(t){"use strict";var e,n,o=Object.prototype,r=Function.prototype.toString,c=o.hasOwnProperty,i=r.call(Object),f=o.toString,u=(e=Object.getPrototypeOf,n=Object,function(t){return e(n(t))});var l=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=f.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=u(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&r.call(n)==i};t.nonEmpty=function(t){return null!=t&&(Array.isArray(t)||"string"==typeof t?!!t.length:l(t)?!!Object.keys(t).length:"number"==typeof t)},t.version="3.0.12",Object.defineProperty(t,"__esModule",{value:!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).utilNonempty={})}(this,(function(t){"use strict";var e,n,o=Object.prototype,r=Function.prototype.toString,c=o.hasOwnProperty,i=r.call(Object),f=o.toString,u=(e=Object.getPrototypeOf,n=Object,function(t){return e(n(t))});var l=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=f.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=u(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&r.call(n)==i};t.nonEmpty=function(t){return null!=t&&(Array.isArray(t)||"string"==typeof t?!!t.length:l(t)?!!Object.keys(t).length:"number"==typeof t)},t.version="3.0.16",Object.defineProperty(t,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "util-nonempty",
3
- "version": "3.0.12",
3
+ "version": "3.0.16",
4
4
  "description": "Is the input (plain object, array, string or whatever) not empty?",
5
5
  "keywords": [
6
6
  "array",
@@ -29,9 +29,11 @@
29
29
  "types": "types/index.d.ts",
30
30
  "scripts": {
31
31
  "build": "rollup -c",
32
+ "esbuild": "node '../../scripts/esbuild.js'",
33
+ "esbuild_dev": "cross-env MODE=dev node '../../scripts/esbuild.js'",
32
34
  "ci_test": "npm run build && npm run format && tap --no-only --reporter=silent --output-file=testStats.md && npm run clean_cov",
33
35
  "dev": "rollup -c --dev",
34
- "devunittest": "npm run dev && ./node_modules/.bin/tap --only -R 'base' && npm run tsd && npm run clean_cov",
36
+ "devunittest": "npm run dev && tap --only -R 'base'",
35
37
  "format": "npm run lect && npm run prettier && npm run lint",
36
38
  "lect": "lect",
37
39
  "lint": "../../node_modules/eslint/bin/eslint.js . --ext .js --ext .ts --fix --config \"../../.eslintrc.json\" --quiet",
@@ -40,11 +42,10 @@
40
42
  "republish": "npm publish || :",
41
43
  "tap": "tap",
42
44
  "tsc": "tsc",
43
- "tsd": "test ! -f index.d.ts || tsd",
44
45
  "pretest": "npm run build",
45
46
  "test": "npm run lint && npm run unittest && npm run test:examples && npm run clean_cov && npm run format",
46
47
  "test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier",
47
- "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",
48
+ "unittest": "./node_modules/.bin/tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf",
48
49
  "clean_cov": "../../scripts/leaveCoverageTotalOnly.js",
49
50
  "clean_types": "../../scripts/cleanTypes.js"
50
51
  },
@@ -101,8 +102,10 @@
101
102
  "@types/tap": "^14.10.3",
102
103
  "@typescript-eslint/eslint-plugin": "^4.20.0",
103
104
  "@typescript-eslint/parser": "^4.20.0",
105
+ "core-js": "^3.10.0",
106
+ "cross-env": "^7.0.3",
104
107
  "eslint": "^7.23.0",
105
- "lect": "^0.16.12",
108
+ "lect": "^0.16.16",
106
109
  "rollup": "^2.44.0",
107
110
  "rollup-plugin-ascii": "^0.0.3",
108
111
  "rollup-plugin-banner": "^0.2.1",
@@ -110,7 +113,6 @@
110
113
  "rollup-plugin-dts": "^3.0.1",
111
114
  "rollup-plugin-terser": "^7.0.2",
112
115
  "tap": "^14.11.0",
113
- "tsd": "^0.14.0",
114
116
  "tslib": "^2.1.0",
115
117
  "typescript": "^4.2.3"
116
118
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * util-nonempty
3
- * Is the input (plain object, array, string or whatever) not empty?
4
- * Version: 3.0.12
5
- * Author: Roy Revelt, Codsen Ltd
6
- * License: MIT
7
- * Homepage: https://codsen.com/os/util-nonempty/
8
- */
9
-
10
- import t from"lodash.isplainobject";const r="3.0.12";function e(r){return null!=r&&(Array.isArray(r)||"string"==typeof r?!!r.length:t(r)?!!Object.keys(r).length:"number"==typeof r)}export{e as nonEmpty,r as version};