arrayiffy-if-string
Advanced tools
Comparing version 4.0.5 to 4.0.6
/** | ||
* @name arrayiffy-if-string | ||
* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else. | ||
* @version 4.0.5 | ||
* @version 4.0.6 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -11,11 +11,11 @@ * @license MIT | ||
function arrayiffy(something) { | ||
if (typeof something === "string") { | ||
if (something.length) { | ||
return [something]; | ||
if (typeof something === "string") { | ||
if (something.length) { | ||
return [something]; | ||
} | ||
return []; | ||
} | ||
return []; | ||
} | ||
return something; | ||
return something; | ||
} | ||
export { arrayiffy }; |
/** | ||
* @name arrayiffy-if-string | ||
* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else. | ||
* @version 4.0.5 | ||
* @version 4.0.6 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -6,0 +6,0 @@ * @license MIT |
{ | ||
"name": "arrayiffy-if-string", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.", | ||
@@ -40,9 +40,8 @@ "keywords": [ | ||
"build": "rollup -c", | ||
"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", | ||
"build:esbuild": "node '../../scripts/esbuild.js'", | ||
"build:esbuild:dev": "cross-env MODE=dev node '../../scripts/esbuild.js'", | ||
"ci_test": "npm run build && npm run format && tap --no-only --reporter=silent", | ||
"clean_types": "../../scripts/cleanTypes.js", | ||
"dev": "rollup -c --dev", | ||
"devunittest": "npm run dev && tap --only -R 'base'", | ||
"esbuild": "node '../../scripts/esbuild.js'", | ||
"esbuild_dev": "cross-env MODE=dev node '../../scripts/esbuild.js'", | ||
"format": "npm run lect && npm run prettier && npm run lint", | ||
@@ -56,13 +55,10 @@ "lect": "lect", | ||
"pretest": "npm run build", | ||
"test": "npm run lint && npm run unittest && npm run test:examples && npm run clean_cov && npm run format", | ||
"test": "npm run test:ci && npm run perf", | ||
"test:ci": "npm run unittest && npm run test:examples && npm run format", | ||
"test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier", | ||
"tsc": "tsc", | ||
"unittest": "tap --no-only --output-file=testStats.md --reporter=terse && tsc -p tsconfig.json --noEmit && npm run clean_cov && npm run perf" | ||
"unittest": "tap --no-only --reporter=terse && tsc -p tsconfig.json --noEmit" | ||
}, | ||
"tap": { | ||
"check-coverage": false, | ||
"coverage-report": [ | ||
"json-summary", | ||
"text" | ||
], | ||
"node-arg": [ | ||
@@ -87,3 +83,3 @@ "--no-warnings", | ||
"dependencies": { | ||
"@babel/runtime": "^7.16.0" | ||
"@babel/runtime": "^7.16.3" | ||
}, | ||
@@ -99,4 +95,4 @@ "devDependencies": { | ||
"@babel/plugin-proposal-optional-chaining": "^7.16.0", | ||
"@babel/plugin-transform-runtime": "^7.16.0", | ||
"@babel/preset-env": "^7.16.0", | ||
"@babel/plugin-transform-runtime": "^7.16.4", | ||
"@babel/preset-env": "^7.16.4", | ||
"@babel/preset-typescript": "^7.16.0", | ||
@@ -110,11 +106,11 @@ "@babel/register": "^7.16.0", | ||
"@rollup/plugin-typescript": "^8.3.0", | ||
"@types/node": "^16.11.6", | ||
"@types/node": "^16.11.9", | ||
"@types/tap": "^15.0.5", | ||
"@typescript-eslint/eslint-plugin": "^5.3.0", | ||
"@typescript-eslint/parser": "^5.3.0", | ||
"@typescript-eslint/eslint-plugin": "^5.4.0", | ||
"@typescript-eslint/parser": "^5.4.0", | ||
"core-js": "^3.19.1", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.2.0", | ||
"lect": "^0.18.5", | ||
"rollup": "^2.59.0", | ||
"eslint": "^8.3.0", | ||
"lect": "^0.18.6", | ||
"rollup": "^2.60.0", | ||
"rollup-plugin-ascii": "^0.0.3", | ||
@@ -125,9 +121,9 @@ "rollup-plugin-banner": "^0.2.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"tap": "^15.0.10", | ||
"tap": "^15.1.2", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.4.4" | ||
"typescript": "^4.5.2" | ||
}, | ||
"engines": { | ||
"node": ">=12" | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12461
Updated@babel/runtime@^7.16.3