summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/actions/node16/node_modules/is-plain-object/dist/is-plain-object.mjs
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/dist/is-plain-object.mjs
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/dist/is-plain-object.mjs')
-rw-r--r--pkg/runner/testdata/actions/node16/node_modules/is-plain-object/dist/is-plain-object.mjs34
1 files changed, 34 insertions, 0 deletions
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 };