@instructure/ui-decorator 8.12.1-snapshot.45 → 8.12.1-snapshot.51
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 +5 -1
- package/lib/decorator.js +5 -1
- package/package.json +3 -3
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 (
|
|
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 (
|
|
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.
|
|
3
|
+
"version": "8.12.1-snapshot.51+4d3697334",
|
|
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.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.51+4d3697334"
|
|
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": "
|
|
34
|
+
"gitHead": "4d369733414715a70bae0628378e8d82214eab3e"
|
|
35
35
|
}
|