summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/actions/node16/node_modules/is-plain-object
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-20 23:07:42 +0200
committerDaniel Baumann <daniel@debian.org>2024-11-09 15:38:42 +0100
commit714c83b2736d7e308bc33c49057952490eb98be2 (patch)
tree1d9ba7035798368569cd49056f4d596efc908cd8 /pkg/runner/testdata/actions/node16/node_modules/is-plain-object
parentInitial commit. (diff)
downloadforgejo-act-debian.tar.xz
forgejo-act-debian.zip
Adding upstream version 1.21.4.HEADupstream/1.21.4upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'pkg/runner/testdata/actions/node16/node_modules/is-plain-object')
-rw-r--r--pkg/runner/testdata/actions/node16/node_modules/is-plain-object/LICENSE21
-rw-r--r--pkg/runner/testdata/actions/node16/node_modules/is-plain-object/README.md125
-rw-r--r--pkg/runner/testdata/actions/node16/node_modules/is-plain-object/dist/is-plain-object.js38
-rw-r--r--pkg/runner/testdata/actions/node16/node_modules/is-plain-object/dist/is-plain-object.mjs34
-rw-r--r--pkg/runner/testdata/actions/node16/node_modules/is-plain-object/is-plain-object.d.ts1
-rw-r--r--pkg/runner/testdata/actions/node16/node_modules/is-plain-object/package.json85
6 files changed, 304 insertions, 0 deletions
diff --git a/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/LICENSE b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/LICENSE
new file mode 100644
index 0000000..3f2eca1
--- /dev/null
+++ b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2017, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/README.md b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/README.md
new file mode 100644
index 0000000..5c074ab
--- /dev/null
+++ b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/README.md
@@ -0,0 +1,125 @@
+# 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, 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.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save is-plain-object
+```
+
+Use [isobject](https://github.com/jonschlinkert/isobject) if you only want to check if the value is an object and not an array or null.
+
+## Usage
+
+with es modules
+```js
+import { isPlainObject } from 'is-plain-object';
+```
+
+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({}));
+//=> true
+isPlainObject(Object.create(Object.prototype));
+//=> true
+isPlainObject({foo: 'bar'});
+//=> true
+isPlainObject({});
+//=> true
+isPlainObject(null);
+//=> true
+```
+
+**false** when not created by the `Object` constructor.
+
+```js
+isPlainObject(1);
+//=> false
+isPlainObject(['foo', 'bar']);
+//=> false
+isPlainObject([]);
+//=> false
+isPlainObject(new Foo);
+//=> false
+isPlainObject(Object.create(null));
+//=> false
+```
+
+## About
+
+<details>
+<summary><strong>Contributing</strong></summary>
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+</details>
+
+<details>
+<summary><strong>Running Tests</strong></summary>
+
+Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
+
+```sh
+$ npm install && npm test
+```
+
+</details>
+
+<details>
+<summary><strong>Building docs</strong></summary>
+
+_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
+
+To generate the readme, run the following command:
+
+```sh
+$ npm install -g verbose/verb#dev verb-generate-readme && verb
+```
+
+</details>
+
+### Related projects
+
+You might also be interested in these projects:
+
+* [is-number](https://www.npmjs.com/package/is-number): Returns true if a number or string value is a finite number. Useful for regex… [more](https://github.com/jonschlinkert/is-number) | [homepage](https://github.com/jonschlinkert/is-number "Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.")
+* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.")
+* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.")
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 19 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 6 | [TrySound](https://github.com/TrySound) |
+| 6 | [stevenvachon](https://github.com/stevenvachon) |
+| 3 | [onokumus](https://github.com/onokumus) |
+| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |
+
+### Author
+
+**Jon Schlinkert**
+
+* [GitHub Profile](https://github.com/jonschlinkert)
+* [Twitter Profile](https://twitter.com/jonschlinkert)
+* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
+
+### License
+
+Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert).
+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._
diff --git a/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/dist/is-plain-object.js b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/dist/is-plain-object.js
new file mode 100644
index 0000000..d134e4f
--- /dev/null
+++ b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/dist/is-plain-object.js
@@ -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;
diff --git a/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/dist/is-plain-object.mjs b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/dist/is-plain-object.mjs
new file mode 100644
index 0000000..c2d9f35
--- /dev/null
+++ b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/dist/is-plain-object.mjs
@@ -0,0 +1,34 @@
+/*!
+ * 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;
+}
+
+export { isPlainObject };
diff --git a/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/is-plain-object.d.ts b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/is-plain-object.d.ts
new file mode 100644
index 0000000..a359940
--- /dev/null
+++ b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/is-plain-object.d.ts
@@ -0,0 +1 @@
+export function isPlainObject(o: any): boolean;
diff --git a/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/package.json b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/package.json
new file mode 100644
index 0000000..3ea169a
--- /dev/null
+++ b/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/package.json
@@ -0,0 +1,85 @@
+{
+ "name": "is-plain-object",
+ "description": "Returns true if an object was created by the `Object` constructor, or Object.create(null).",
+ "version": "5.0.0",
+ "homepage": "https://github.com/jonschlinkert/is-plain-object",
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
+ "contributors": [
+ "Jon Schlinkert (http://twitter.com/jonschlinkert)",
+ "Osman Nuri Okumuş (http://onokumus.com)",
+ "Steven Vachon (https://svachon.com)",
+ "(https://github.com/wtgtybhertgeghgtwtg)",
+ "Bogdan Chadkin (https://github.com/TrySound)"
+ ],
+ "repository": "jonschlinkert/is-plain-object",
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/is-plain-object/issues"
+ },
+ "license": "MIT",
+ "main": "dist/is-plain-object.js",
+ "module": "dist/is-plain-object.mjs",
+ "types": "is-plain-object.d.ts",
+ "files": [
+ "is-plain-object.d.ts",
+ "dist"
+ ],
+ "exports": {
+ ".": {
+ "import": "./dist/is-plain-object.mjs",
+ "require": "./dist/is-plain-object.js"
+ },
+ "./package.json": "./package.json"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "scripts": {
+ "build": "rollup -c",
+ "test_browser": "mocha-headless-chrome --args=disable-web-security -f test/browser.html",
+ "test_node": "mocha -r esm",
+ "test": "npm run test_node && npm run build && npm run test_browser",
+ "prepare": "rollup -c"
+ },
+ "devDependencies": {
+ "chai": "^4.2.0",
+ "esm": "^3.2.22",
+ "gulp-format-md": "^1.0.0",
+ "mocha": "^6.1.4",
+ "mocha-headless-chrome": "^3.1.0",
+ "rollup": "^2.22.1"
+ },
+ "keywords": [
+ "check",
+ "is",
+ "is-object",
+ "isobject",
+ "javascript",
+ "kind",
+ "kind-of",
+ "object",
+ "plain",
+ "type",
+ "typeof",
+ "value"
+ ],
+ "verb": {
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "is-number",
+ "isobject",
+ "kind-of"
+ ]
+ },
+ "lint": {
+ "reflinks": true
+ }
+ }
+}