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.3.3 to 3.4.0

5

changelog.md

@@ -8,2 +8,6 @@ # Change Log

## [3.4.0] - 2018-10-12
- ✨ Updated all dependencies and restored coverage tracking both via terminal when testing and through coveralls.io
## [3.3.0] - 2018-06-15

@@ -49,1 +53,2 @@

[3.3.0]: https://bitbucket.org/codsen/arrayiffy-if-string/branches/compare/v3.3.0%0Dv3.2.1#diff
[3.4.0]: https://bitbucket.org/codsen/arrayiffy-if-string/branches/compare/v3.4.0%0Dv3.3.3#diff

1

dist/arrayiffy-if-string.cjs.js
'use strict';
// If a string is given, put it into an array. Bypass everything else.
function arrayiffyString(something) {

@@ -5,0 +4,0 @@ if (typeof something === "string") {

@@ -1,2 +0,1 @@

// If a string is given, put it into an array. Bypass everything else.
function arrayiffyString(something) {

@@ -3,0 +2,0 @@ if (typeof something === "string") {

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.arrayiffyIfString=t()}(this,function(){"use strict";return function(e){return"string"==typeof e?0<e.length?[e]:[]:e}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.arrayiffyIfString=t()}(this,function(){"use strict";return function(e){return"string"==typeof e?e.length>0?[e]:[]:e}});
{
"name": "arrayiffy-if-string",
"version": "3.3.3",
"version": "3.4.0",
"description": "Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.",

@@ -29,6 +29,5 @@ "license": "MIT",

"format": "prettier '*.{js,ts,css,less,scss,vue,gql,md}' --write && ./node_modules/.bin/eslint src/*.js test/*.js --fix",
"precommit": "npm run format && npm test",
"prepare": "npm run build",
"pretest": "npm run build",
"test": "./node_modules/.bin/eslint src/*.js test/*.js && nyc --require esm --reporter=html --reporter=text ava"
"test": "./node_modules/.bin/eslint src/*.js test/*.js && nyc ava"
},

@@ -135,3 +134,5 @@ "ava": {

"licence": {
"extras": []
"extras": [
""
]
},

@@ -153,7 +154,16 @@ "npmignore": {

},
"nyc": {
"instrument": false,
"require": [
"@babel/register"
],
"sourceMap": false
},
"dependencies": {},
"devDependencies": {
"ava": "latest",
"babel-preset-env": "latest",
"codacy-coverage": "latest",
"@babel/core": "^7.1.2",
"@babel/preset-env": "^7.1.0",
"@babel/register": "^7.0.0",
"ava": "1.0.0-beta.8",
"babel-plugin-istanbul": "^5.0.1",
"coveralls": "latest",

@@ -168,3 +178,2 @@ "eslint": "latest",

"eslint-plugin-scanjs-rules": "latest",
"esm": "latest",
"husky": "latest",

@@ -174,8 +183,9 @@ "nyc": "latest",

"rollup": "latest",
"rollup-plugin-babel": "^3.0.5",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-strip": "^1.1.1",
"rollup-plugin-uglify": "^4.0.0"
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-cleanup": "^3.0.0",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-strip": "^1.2.0",
"rollup-plugin-terser": "^3.0.0"
}
}

@@ -38,4 +38,4 @@ # arrayiffy-if-string

| ------------------------------------------------------------------------------------------------------- | --------------------- | --------------------------------- | ----- |
| Main export - **CommonJS version**, transpiled to ES5, contains `require` and `module.exports` | `main` | `dist/arrayiffy-if-string.cjs.js` | 303 B |
| **ES module** build that Webpack/Rollup understands. Untranspiled ES6 code with `import`/`export`. | `module` | `dist/arrayiffy-if-string.esm.js` | 286 B |
| Main export - **CommonJS version**, transpiled to ES5, contains `require` and `module.exports` | `main` | `dist/arrayiffy-if-string.cjs.js` | 232 B |
| **ES module** build that Webpack/Rollup understands. Untranspiled ES6 code with `import`/`export`. | `module` | `dist/arrayiffy-if-string.esm.js` | 215 B |
| **UMD build** for browsers, transpiled, minified, containing `iife`'s and has all dependencies baked-in | `browser` | `dist/arrayiffy-if-string.umd.js` | 257 B |

@@ -42,0 +42,0 @@

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