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

validate-glob-opts

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validate-glob-opts - npm Package Compare versions

Comparing version 0.5.0 to 1.0.0

12

index.js

@@ -147,3 +147,3 @@ /*!

INVALID_CACHE_MESSAGE
}, but found an invalid value ${inspect(val)} in \`${field}\` property.`));
}, but found an invalid value ${inspectWithKind(val)} in \`${field}\` property.`));
}

@@ -182,4 +182,4 @@ } else if (val !== 'FILE' && val !== 'DIR') {

results.push(new TypeError(`node-glob expected \`statCache\` option to be an object, but got ${
inspect(obj.statCache
)}.`));
inspectWithKind(obj.statCache)
}.`));
} else {

@@ -209,4 +209,4 @@ for (const field of Object.keys(obj.statCache)) {

results.push(new TypeError(`node-glob expected \`symlinks\` option to be an object, but got ${
inspect(obj.symlinks
)}.`));
inspectWithKind(obj.symlinks)
}.`));
} else {

@@ -219,3 +219,3 @@ for (const field of Object.keys(obj.symlinks)) {

`Expected every value in the \`symlink\` option to be Boolean, but found an invalid value ${
inspect(val)
inspectWithKind(val)
} in \`${field}\` property.`

@@ -222,0 +222,0 @@ ));

{
"name": "validate-glob-opts",
"version": "0.5.0",
"version": "1.0.0",
"description": "Validate glob options",

@@ -5,0 +5,0 @@ "repository": "shinnn/validate-glob-opts",

@@ -17,3 +17,3 @@ # validate-glob-opts

Error: `sync` option is deprecated and there’s no need to pass any values to that option, but true was provided.,
TypeError: node-glob expected `mark` option to be a Boolean value, but got '/'.,
TypeError: node-glob expected `mark` option to be a Boolean value, but got '/' (string).,
Error: node-glob doesn't have `caches` option. Probably you meant `cache`.

@@ -41,3 +41,3 @@ ] */

*customValidations*: `Array<function>`
Return: `Array` of errors
Return: `Array<Error>`

@@ -78,5 +78,5 @@ It strictly validates `glob` options, for example,

results[1];
//=> TypeError: node-glob expected `nodir` option to be a Boolean value, but got NaN.
//=> TypeError: node-glob expected `nodir` option to be a Boolean value, but got NaN (number).
results[2];
//=> TypeError: Expected every value in the `ignore` option to be a string, but the array includes a non-string value 1.
//=> TypeError: Expected every value in the `ignore` option to be a string, but the array includes a non-string value 1 (number).
results[3];

@@ -83,0 +83,0 @@ //=> Error: node-glob doesn't have `symlink` option. Probably you meant `symlinks`.

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