Fix dependabot issues
This commit is contained in:
parent
c89d9bd8b0
commit
531c6ba7c8
705 changed files with 53406 additions and 20466 deletions
4
node_modules/dot-prop/index.d.ts
generated
vendored
4
node_modules/dot-prop/index.d.ts
generated
vendored
|
|
@ -35,6 +35,7 @@ declare const dotProp: {
|
|||
@param object - Object to set the `path` value.
|
||||
@param path - Path of the property in the object, using `.` to separate each nested key. Use `\\.` if you have a `.` in the key.
|
||||
@param value - Value to set at `path`.
|
||||
@returns The object.
|
||||
|
||||
@example
|
||||
```
|
||||
|
|
@ -77,6 +78,7 @@ declare const dotProp: {
|
|||
/**
|
||||
@param object - Object to delete the `path` value.
|
||||
@param path - Path of the property in the object, using `.` to separate each nested key. Use `\\.` if you have a `.` in the key.
|
||||
@returns A boolean of whether the property existed before being deleted.
|
||||
|
||||
@example
|
||||
```
|
||||
|
|
@ -93,7 +95,7 @@ declare const dotProp: {
|
|||
//=> {foo: {bar: {y: 'x'}}}
|
||||
```
|
||||
*/
|
||||
delete(object: {[key: string]: any}, path: string): void;
|
||||
delete(object: {[key: string]: any}, path: string): boolean;
|
||||
};
|
||||
|
||||
export = dotProp;
|
||||
|
|
|
|||
6
node_modules/dot-prop/index.js
generated
vendored
6
node_modules/dot-prop/index.js
generated
vendored
|
|
@ -93,7 +93,7 @@ module.exports = {
|
|||
|
||||
delete(object, path) {
|
||||
if (!isObj(object) || typeof path !== 'string') {
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
const pathArray = getPathSegments(path);
|
||||
|
|
@ -103,13 +103,13 @@ module.exports = {
|
|||
|
||||
if (i === pathArray.length - 1) {
|
||||
delete object[p];
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
|
||||
object = object[p];
|
||||
|
||||
if (!isObj(object)) {
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
2
node_modules/dot-prop/package.json
generated
vendored
2
node_modules/dot-prop/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "dot-prop",
|
||||
"version": "5.2.0",
|
||||
"version": "5.3.0",
|
||||
"description": "Get, set, or delete a property from a nested object using a dot path",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/dot-prop",
|
||||
|
|
|
|||
2
node_modules/dot-prop/readme.md
generated
vendored
2
node_modules/dot-prop/readme.md
generated
vendored
|
|
@ -71,6 +71,8 @@ Returns the object.
|
|||
|
||||
### delete(object, path)
|
||||
|
||||
Returns a boolean of whether the property existed before being deleted.
|
||||
|
||||
#### object
|
||||
|
||||
Type: `object`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue