@instructure/ui-decorator 8.12.1-snapshot.45 → 8.12.1-snapshot.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/decorator.js CHANGED
@@ -33,7 +33,11 @@
33
33
  * @returns {Class} A decorated component class
34
34
  */
35
35
  function decorator(decorate) {
36
- return (...args) => {
36
+ return function () {
37
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
38
+ args[_key] = arguments[_key];
39
+ }
40
+
37
41
  // parameters when the decorator is used
38
42
  return ComposedComponent => {
39
43
  if (typeof decorate === 'function') {
package/lib/decorator.js CHANGED
@@ -41,7 +41,11 @@ exports.default = void 0;
41
41
  * @returns {Class} A decorated component class
42
42
  */
43
43
  function decorator(decorate) {
44
- return (...args) => {
44
+ return function () {
45
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
46
+ args[_key] = arguments[_key];
47
+ }
48
+
45
49
  // parameters when the decorator is used
46
50
  return ComposedComponent => {
47
51
  if (typeof decorate === 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-decorator",
3
- "version": "8.12.1-snapshot.45+9f4d9f91f",
3
+ "version": "8.12.1-snapshot.46+51e6aff75",
4
4
  "description": "A utility to wrap (decorates) a React component class adding functionality.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.12.1-snapshot.45+9f4d9f91f"
26
+ "@instructure/ui-babel-preset": "8.12.1-snapshot.46+51e6aff75"
27
27
  },
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.13.10"
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "9f4d9f91f603496ac87a04d953afe7fe9004874d"
34
+ "gitHead": "51e6aff7502e7b0b22b107c9d39c2a8dc2c267f4"
35
35
  }