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

check-types-mini

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-types-mini - npm Package Compare versions

Comparing version 7.0.10 to 7.0.11

2

dist/check-types-mini.esm.js
/**
* @name check-types-mini
* @fileoverview Validate options object
* @version 7.0.10
* @version 7.0.11
* @author Roy Revelt, Codsen Ltd

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

/**
* @name check-types-mini
* @fileoverview Validate options object
* @version 7.0.10
* @version 7.0.11
* @author Roy Revelt, Codsen Ltd

@@ -28,3 +28,3 @@ * @license MIT

* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
* @version 4.0.10
* @version 4.0.11
* @author Roy Revelt, Codsen Ltd

@@ -37,3 +37,3 @@ * @license MIT

* @fileoverview Utility library to traverse AST
* @version 3.0.10
* @version 3.0.11
* @author Roy Revelt, Codsen Ltd

@@ -46,3 +46,3 @@ * @license MIT

* @fileoverview Utility library of AST helper functions
* @version 2.0.10
* @version 2.0.11
* @author Roy Revelt, Codsen Ltd

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

{
"name": "check-types-mini",
"version": "7.0.10",
"version": "7.0.11",
"description": "Validate options object",

@@ -40,3 +40,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'",

@@ -48,2 +48,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",

@@ -71,4 +73,4 @@ "test": "c8 yarn run unit && yarn run examples && yarn run lint",

"dependencies": {
"arrayiffy-if-string": "^4.0.10",
"ast-monkey-traverse": "^3.0.10",
"arrayiffy-if-string": "^4.0.11",
"ast-monkey-traverse": "^3.0.11",
"lodash.intersection": "^4.4.0",

@@ -75,0 +77,0 @@ "lodash.pullall": "^4.2.0",

@@ -29,3 +29,3 @@ # check-types-mini

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, `6.1.0`.

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

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

@@ -79,6 +77,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 Obj {
[key: string]: any;
[key: string]: any;
}
interface Opts {
ignoreKeys: string | string[];
ignorePaths: string | string[];
acceptArrays: boolean;
acceptArraysIgnore: string | string[];
enforceStrictKeyset: boolean;
schema: Obj;
msg: string;
optsVarName: string;
ignoreKeys: string | string[];
ignorePaths: string | string[];
acceptArrays: boolean;
acceptArraysIgnore: string | string[];
enforceStrictKeyset: boolean;
schema: Obj;
msg: string;
optsVarName: string;
}

@@ -17,4 +17,8 @@ /**

*/
declare function checkTypesMini(obj: Obj, ref: Obj | null, originalOptions?: Partial<Opts>): void;
declare function checkTypesMini(
obj: Obj,
ref: Obj | null,
originalOptions?: Partial<Opts>
): void;
export { checkTypesMini };

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