From 2c4ae43e688a9873e86211ea0e7aeb9ba770dd77 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 18 Oct 2022 08:59:09 +0200 Subject: Update --- .../@babel/runtime/helpers/esm/createClass.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 alarm/node_modules/@babel/runtime/helpers/esm/createClass.js (limited to 'alarm/node_modules/@babel/runtime/helpers/esm/createClass.js') diff --git a/alarm/node_modules/@babel/runtime/helpers/esm/createClass.js b/alarm/node_modules/@babel/runtime/helpers/esm/createClass.js new file mode 100644 index 0000000..50f7f36 --- /dev/null +++ b/alarm/node_modules/@babel/runtime/helpers/esm/createClass.js @@ -0,0 +1,17 @@ +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} +export default function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; +} \ No newline at end of file -- cgit