New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

util-array-object-or-both

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util-array-object-or-both - npm Package Compare versions

Comparing version 4.0.10 to 4.0.11

2

dist/util-array-object-or-both.esm.js
/**
* @name util-array-object-or-both
* @fileoverview Validate and normalise user choice: array, object or both?
* @version 4.0.10
* @version 4.0.11
* @author Roy Revelt, Codsen Ltd

@@ -6,0 +6,0 @@ * @license MIT

/**
* @name util-array-object-or-both
* @fileoverview Validate and normalise user choice: array, object or both?
* @version 4.0.10
* @version 4.0.11
* @author Roy Revelt, Codsen Ltd

@@ -6,0 +6,0 @@ * @license MIT

{
"name": "util-array-object-or-both",
"version": "4.0.10",
"version": "4.0.11",
"description": "Validate and normalise user choice: array, object or both?",

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

"dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
"dts": "rollup -c",
"dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
"examples": "node '../../ops/scripts/run-examples.js'",

@@ -45,2 +45,4 @@ "lect": "node '../../ops/lect/lect.js'",

"prepare": "echo 'ready'",
"prettier": "prettier",
"prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
"pretest": "yarn run lect && yarn run build",

@@ -47,0 +49,0 @@ "test": "c8 yarn run unit && yarn run examples && yarn run lint",

@@ -29,3 +29,3 @@ # util-array-object-or-both

This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required:
The latest version is **ESM only**: Node 12+ is needed to use it and it must be `import`ed instead of `require`d. If your project is not on ESM yet and you want to use `require`, use an older version of this program, `3.1.0`.

@@ -36,4 +36,2 @@ ```bash

If you need a legacy version which works with `require`, use version 3.1.0
## Quick Take

@@ -78,6 +76,4 @@

Copyright (c) 2010-2021 Roy Revelt and other contributors
Copyright (c) 2010-2022 Roy Revelt and other contributors
<img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center">
interface Opts {
msg?: string;
optsVarName?: string;
msg?: string;
optsVarName?: string;
}
declare function arrObjOrBoth(str: string, originalOpts?: Opts): "array" | "object" | "any";
declare function arrObjOrBoth(
str: string,
originalOpts?: Opts
): "array" | "object" | "any";
export { arrObjOrBoth };

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