Update node modules

This commit is contained in:
marocchino 2021-01-21 07:02:35 +09:00
parent d10bd849a0
commit 56ced276ec
No known key found for this signature in database
GPG key ID: AFF521DBDB122570
585 changed files with 125490 additions and 100312 deletions

View file

@ -1,6 +1,6 @@
# is-plain-object [![NPM version](https://img.shields.io/npm/v/is-plain-object.svg?style=flat)](https://www.npmjs.com/package/is-plain-object) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![NPM total downloads](https://img.shields.io/npm/dt/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-plain-object.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-plain-object)
> Returns true if an object was created by the `Object` constructor.
> Returns true if an object was created by the `Object` constructor, or Object.create(null).
Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
@ -16,11 +16,17 @@ Use [isobject](https://github.com/jonschlinkert/isobject) if you only want to ch
## Usage
with es modules
```js
import isPlainObject from 'is-plain-object';
import { isPlainObject } from 'is-plain-object';
```
**true** when created by the `Object` constructor.
or with commonjs
```js
const { isPlainObject } = require('is-plain-object');
```
**true** when created by the `Object` constructor, or Object.create(null).
```js
isPlainObject(Object.create({}));
@ -31,6 +37,8 @@ isPlainObject({foo: 'bar'});
//=> true
isPlainObject({});
//=> true
isPlainObject(null);
//=> true
```
**false** when not created by the `Object` constructor.
@ -44,8 +52,6 @@ isPlainObject([]);
//=> false
isPlainObject(new Foo);
//=> false
isPlainObject(null);
//=> false
isPlainObject(Object.create(null));
//=> false
```
@ -116,4 +122,4 @@ Released under the [MIT License](LICENSE).
***
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 28, 2019._
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 28, 2019._

38
node_modules/is-plain-object/dist/is-plain-object.js generated vendored Normal file
View file

@ -0,0 +1,38 @@
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function isObject(o) {
return Object.prototype.toString.call(o) === '[object Object]';
}
function isPlainObject(o) {
var ctor,prot;
if (isObject(o) === false) return false;
// If has modified constructor
ctor = o.constructor;
if (ctor === undefined) return true;
// If has modified prototype
prot = ctor.prototype;
if (isObject(prot) === false) return false;
// If constructor does not have an Object-specific method
if (prot.hasOwnProperty('isPrototypeOf') === false) {
return false;
}
// Most likely a plain Object
return true;
}
exports.isPlainObject = isPlainObject;

View file

@ -5,25 +5,22 @@
* Released under the MIT License.
*/
import isObject from 'isobject';
function isObjectObject(o) {
return isObject(o) === true
&& Object.prototype.toString.call(o) === '[object Object]';
function isObject(o) {
return Object.prototype.toString.call(o) === '[object Object]';
}
export default function isPlainObject(o) {
function isPlainObject(o) {
var ctor,prot;
if (isObjectObject(o) === false) return false;
if (isObject(o) === false) return false;
// If has modified constructor
ctor = o.constructor;
if (typeof ctor !== 'function') return false;
if (ctor === undefined) return true;
// If has modified prototype
prot = ctor.prototype;
if (isObjectObject(prot) === false) return false;
if (isObject(prot) === false) return false;
// If constructor does not have an Object-specific method
if (prot.hasOwnProperty('isPrototypeOf') === false) {
@ -32,4 +29,6 @@ export default function isPlainObject(o) {
// Most likely a plain Object
return true;
};
}
export { isPlainObject };

View file

@ -1,48 +0,0 @@
'use strict';
/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function isObject(val) {
return val != null && typeof val === 'object' && Array.isArray(val) === false;
}
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
function isObjectObject(o) {
return isObject(o) === true
&& Object.prototype.toString.call(o) === '[object Object]';
}
function isPlainObject(o) {
var ctor,prot;
if (isObjectObject(o) === false) return false;
// If has modified constructor
ctor = o.constructor;
if (typeof ctor !== 'function') return false;
// If has modified prototype
prot = ctor.prototype;
if (isObjectObject(prot) === false) return false;
// If constructor does not have an Object-specific method
if (prot.hasOwnProperty('isPrototypeOf') === false) {
return false;
}
// Most likely a plain Object
return true;
}
module.exports = isPlainObject;

View file

@ -1,3 +0,0 @@
declare function isPlainObject(o: any): boolean;
export default isPlainObject;

1
node_modules/is-plain-object/is-plain-object.d.ts generated vendored Normal file
View file

@ -0,0 +1 @@
export function isPlainObject(o: any): boolean;

View file

@ -1,28 +1,33 @@
{
"_from": "is-plain-object@^3.0.0",
"_id": "is-plain-object@3.0.0",
"_args": [
[
"is-plain-object@5.0.0",
"."
]
],
"_from": "is-plain-object@5.0.0",
"_id": "is-plain-object@5.0.0",
"_inBundle": false,
"_integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==",
"_integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
"_location": "/is-plain-object",
"_phantomChildren": {},
"_requested": {
"type": "range",
"type": "version",
"registry": true,
"raw": "is-plain-object@^3.0.0",
"raw": "is-plain-object@5.0.0",
"name": "is-plain-object",
"escapedName": "is-plain-object",
"rawSpec": "^3.0.0",
"rawSpec": "5.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
"fetchSpec": "5.0.0"
},
"_requiredBy": [
"/@octokit/endpoint",
"/@octokit/request"
],
"_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz",
"_shasum": "47bfc5da1b5d50d64110806c199359482e75a928",
"_spec": "is-plain-object@^3.0.0",
"_where": "/Users/shim.taewon/Documents/sticky-pull-request-comment/node_modules/@octokit/request",
"_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
"_spec": "5.0.0",
"_where": ".",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
@ -30,7 +35,6 @@
"bugs": {
"url": "https://github.com/jonschlinkert/is-plain-object/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Jon Schlinkert",
@ -46,29 +50,34 @@
},
{
"url": "https://github.com/wtgtybhertgeghgtwtg"
},
{
"name": "Bogdan Chadkin",
"url": "https://github.com/TrySound"
}
],
"dependencies": {
"isobject": "^4.0.0"
},
"deprecated": false,
"description": "Returns true if an object was created by the `Object` constructor.",
"description": "Returns true if an object was created by the `Object` constructor, or Object.create(null).",
"devDependencies": {
"chai": "^4.2.0",
"esm": "^3.2.22",
"gulp-format-md": "^1.0.0",
"mocha": "^6.1.4",
"mocha-headless-chrome": "^2.0.2",
"rollup": "^1.10.1",
"rollup-plugin-node-resolve": "^4.2.3"
"mocha-headless-chrome": "^3.1.0",
"rollup": "^2.22.1"
},
"engines": {
"node": ">=0.10.0"
},
"exports": {
".": {
"import": "./dist/is-plain-object.mjs",
"require": "./dist/is-plain-object.js"
},
"./package.json": "./package.json"
},
"files": [
"index.d.ts",
"index.js",
"index.cjs.js"
"is-plain-object.d.ts",
"dist"
],
"homepage": "https://github.com/jonschlinkert/is-plain-object",
"keywords": [
@ -86,8 +95,8 @@
"value"
],
"license": "MIT",
"main": "index.cjs.js",
"module": "index.js",
"main": "dist/is-plain-object.js",
"module": "dist/is-plain-object.mjs",
"name": "is-plain-object",
"repository": {
"type": "git",
@ -100,7 +109,7 @@
"test_browser": "mocha-headless-chrome --args=disable-web-security -f test/browser.html",
"test_node": "mocha -r esm"
},
"types": "index.d.ts",
"types": "is-plain-object.d.ts",
"verb": {
"toc": false,
"layout": "default",
@ -121,5 +130,5 @@
"reflinks": true
}
},
"version": "3.0.0"
"version": "5.0.0"
}