Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arrayiffy-if-string

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrayiffy-if-string - npm Package Compare versions

Comparing version 3.13.9 to 3.13.10

2

dist/arrayiffy-if-string.cjs.js
/**
* arrayiffy-if-string
* Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
* Version: 3.13.9
* Version: 3.13.10
* Author: Roy Revelt, Codsen Ltd

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

/**
* arrayiffy-if-string
* Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
* Version: 3.13.9
* Version: 3.13.10
* Author: Roy Revelt, Codsen Ltd

@@ -18,11 +18,9 @@ * 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;
}

@@ -29,0 +27,0 @@

/**
* arrayiffy-if-string
* Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
* Version: 3.13.9
* Version: 3.13.10
* Author: Roy Revelt, Codsen Ltd

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

/**
* arrayiffy-if-string
* Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
* Version: 3.13.9
* Version: 3.13.10
* Author: Roy Revelt, Codsen Ltd

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

{
"name": "arrayiffy-if-string",
"version": "3.13.9",
"version": "3.13.10",
"description": "Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.",

@@ -101,3 +101,3 @@ "keywords": [

"@rollup/plugin-typescript": "^8.2.0",
"@types/node": "^14.14.35",
"@types/node": "^14.14.36",
"@types/tap": "^14.10.3",

@@ -107,4 +107,4 @@ "@typescript-eslint/eslint-plugin": "^4.19.0",

"eslint": "^7.22.0",
"lect": "^0.16.9",
"rollup": "^2.42.3",
"lect": "^0.16.10",
"rollup": "^2.42.4",
"rollup-plugin-ascii": "^0.0.3",

@@ -111,0 +111,0 @@ "rollup-plugin-banner": "^0.2.1",

Sorry, the diff of this file is not supported yet

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