@lowdefy/operators 3.22.0 → 4.0.0-alpha.1
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/dist/common/and.js +8 -24
- package/dist/common/args.js +10 -31
- package/dist/common/array.js +244 -153
- package/dist/common/change_case.js +114 -160
- package/dist/common/date.js +33 -54
- package/dist/common/divide.js +16 -36
- package/dist/common/eq.js +10 -28
- package/dist/common/function.js +27 -59
- package/dist/common/get.js +21 -46
- package/dist/common/gt.js +10 -28
- package/dist/common/gte.js +10 -28
- package/dist/common/if.js +9 -26
- package/dist/common/if_none.js +13 -32
- package/dist/common/index.js +39 -53
- package/dist/common/json.js +53 -57
- package/dist/common/log.js +5 -18
- package/dist/common/lt.js +10 -28
- package/dist/common/lte.js +10 -28
- package/dist/common/math.js +255 -194
- package/dist/common/mql.js +93 -102
- package/dist/common/ne.js +10 -28
- package/dist/common/not.js +3 -16
- package/dist/common/number.js +130 -108
- package/dist/common/nunjucks.js +24 -44
- package/dist/common/object.js +89 -98
- package/dist/common/operator.js +33 -44
- package/dist/common/or.js +8 -24
- package/dist/common/product.js +11 -29
- package/dist/common/random.js +74 -109
- package/dist/common/regex.js +26 -49
- package/dist/common/string.js +270 -171
- package/dist/common/subtract.js +13 -32
- package/dist/common/sum.js +11 -29
- package/dist/common/switch.js +30 -0
- package/dist/common/type.js +36 -67
- package/dist/common/uri.js +29 -46
- package/dist/common/user.js +10 -35
- package/dist/common/uuid.js +48 -59
- package/dist/common/yaml.js +56 -63
- package/dist/getFromArray.js +22 -44
- package/dist/getFromObject.js +25 -70
- package/dist/index.js +14 -20
- package/dist/node/base64.js +31 -48
- package/dist/node/diff.js +30 -47
- package/dist/node/hash.js +55 -71
- package/dist/node/index.js +6 -14
- package/dist/{web/list_contexts.js → node/payload.js} +9 -16
- package/dist/node/secret.js +32 -53
- package/dist/nodeParser.js +95 -146
- package/dist/runClass.js +57 -82
- package/dist/runInstance.js +60 -84
- package/dist/web/_index.js +25 -0
- package/dist/web/actions.js +10 -31
- package/dist/web/base64.js +29 -46
- package/dist/{common/_index.js → web/event.js} +10 -30
- package/dist/web/event_log.js +10 -35
- package/dist/web/format.js +15 -37
- package/dist/web/global.js +25 -0
- package/dist/web/index.js +17 -21
- package/dist/{common/event.js → web/input.js} +10 -31
- package/dist/web/js.js +10 -30
- package/dist/web/location.js +44 -59
- package/dist/web/media.js +46 -75
- package/dist/web/menu.js +10 -28
- package/dist/web/request.js +19 -40
- package/dist/web/request_details.js +10 -35
- package/dist/web/state.js +25 -0
- package/dist/web/url_query.js +25 -0
- package/dist/webParser.js +115 -157
- package/package.json +16 -15
- package/dist/common/global.js +0 -50
- package/dist/common/input.js +0 -50
- package/dist/common/state.js +0 -50
- package/dist/common/url_query.js +0 -50
- package/dist/getFromOtherContext.js +0 -96
package/dist/common/ne.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _helpers = require("@lowdefy/helpers");
|
|
9
|
-
|
|
10
1
|
/*
|
|
11
2
|
Copyright 2020-2021 Lowdefy, Inc
|
|
12
3
|
|
|
@@ -21,23 +12,14 @@ var _helpers = require("@lowdefy/helpers");
|
|
|
21
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
13
|
See the License for the specific language governing permissions and
|
|
23
14
|
limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
function _ne(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (params.length !== 2) {
|
|
36
|
-
throw new Error("Operator Error: _ne takes an array of length 2 as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return params[0] !== params[1];
|
|
15
|
+
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
+
function _ne({ params , location }) {
|
|
17
|
+
if (!type.isArray(params)) {
|
|
18
|
+
throw new Error(`Operator Error: _ne takes an array type as input. Received: ${JSON.stringify(params)} at ${location}.`);
|
|
19
|
+
}
|
|
20
|
+
if (params.length !== 2) {
|
|
21
|
+
throw new Error(`Operator Error: _ne takes an array of length 2 as input. Received: ${JSON.stringify(params)} at ${location}.`);
|
|
22
|
+
}
|
|
23
|
+
return params[0] !== params[1];
|
|
40
24
|
}
|
|
41
|
-
|
|
42
|
-
var _default = _ne;
|
|
43
|
-
exports.default = _default;
|
|
25
|
+
export default _ne;
|
package/dist/common/not.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
1
|
/*
|
|
9
2
|
Copyright 2020-2021 Lowdefy, Inc
|
|
10
3
|
|
|
@@ -19,13 +12,7 @@ exports.default = void 0;
|
|
|
19
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
13
|
See the License for the specific language governing permissions and
|
|
21
14
|
limitations under the License.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
var {
|
|
25
|
-
params
|
|
26
|
-
} = _ref;
|
|
27
|
-
return !params;
|
|
15
|
+
*/ function _not({ params }) {
|
|
16
|
+
return !params;
|
|
28
17
|
}
|
|
29
|
-
|
|
30
|
-
var _default = _not;
|
|
31
|
-
exports.default = _default;
|
|
18
|
+
export default _not;
|
package/dist/common/number.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _runClass = _interopRequireDefault(require("../runClass"));
|
|
9
|
-
|
|
10
|
-
var _runInstance = _interopRequireDefault(require("../runInstance"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
1
|
/*
|
|
15
2
|
Copyright 2020-2021 Lowdefy, Inc
|
|
16
3
|
|
|
@@ -25,101 +12,136 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
25
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
26
13
|
See the License for the specific language governing permissions and
|
|
27
14
|
limitations under the License.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
15
|
+
*/ import runClass from '../runClass.js';
|
|
16
|
+
import runInstance from '../runInstance.js';
|
|
17
|
+
const meta = {
|
|
18
|
+
EPSILON: {
|
|
19
|
+
property: true
|
|
20
|
+
},
|
|
21
|
+
MAX_SAFE_INTEGER: {
|
|
22
|
+
property: true
|
|
23
|
+
},
|
|
24
|
+
MAX_VALUE: {
|
|
25
|
+
property: true
|
|
26
|
+
},
|
|
27
|
+
MIN_SAFE_INTEGER: {
|
|
28
|
+
property: true
|
|
29
|
+
},
|
|
30
|
+
MIN_VALUE: {
|
|
31
|
+
property: true
|
|
32
|
+
},
|
|
33
|
+
NaN: {
|
|
34
|
+
property: true
|
|
35
|
+
},
|
|
36
|
+
NEGATIVE_INFINITY: {
|
|
37
|
+
property: true
|
|
38
|
+
},
|
|
39
|
+
POSITIVE_INFINITY: {
|
|
40
|
+
property: true
|
|
41
|
+
},
|
|
42
|
+
isFinite: {
|
|
43
|
+
singleArg: true
|
|
44
|
+
},
|
|
45
|
+
isInteger: {
|
|
46
|
+
singleArg: true
|
|
47
|
+
},
|
|
48
|
+
isNaN: {
|
|
49
|
+
singleArg: true
|
|
50
|
+
},
|
|
51
|
+
isSafeInteger: {
|
|
52
|
+
singleArg: true
|
|
53
|
+
},
|
|
54
|
+
parseFloat: {
|
|
55
|
+
singleArg: true,
|
|
56
|
+
validTypes: [
|
|
57
|
+
'string'
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
parseInt: {
|
|
61
|
+
namedArgs: [
|
|
62
|
+
'on',
|
|
63
|
+
'radix'
|
|
64
|
+
],
|
|
65
|
+
validTypes: [
|
|
66
|
+
'array',
|
|
67
|
+
'object'
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
toExponential: {
|
|
71
|
+
namedArgs: [
|
|
72
|
+
'on',
|
|
73
|
+
'fractionDigits'
|
|
74
|
+
],
|
|
75
|
+
validTypes: [
|
|
76
|
+
'array',
|
|
77
|
+
'object'
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
toFixed: {
|
|
81
|
+
namedArgs: [
|
|
82
|
+
'on',
|
|
83
|
+
'digits'
|
|
84
|
+
],
|
|
85
|
+
validTypes: [
|
|
86
|
+
'array',
|
|
87
|
+
'object'
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
toLocaleString: {
|
|
91
|
+
namedArgs: [
|
|
92
|
+
'on',
|
|
93
|
+
'locales'
|
|
94
|
+
],
|
|
95
|
+
validTypes: [
|
|
96
|
+
'array',
|
|
97
|
+
'object'
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
toPrecision: {
|
|
101
|
+
namedArgs: [
|
|
102
|
+
'on',
|
|
103
|
+
'precision'
|
|
104
|
+
],
|
|
105
|
+
validTypes: [
|
|
106
|
+
'array',
|
|
107
|
+
'object'
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
toString: {
|
|
111
|
+
namedArgs: [
|
|
112
|
+
'on',
|
|
113
|
+
'radix'
|
|
114
|
+
],
|
|
115
|
+
validTypes: [
|
|
116
|
+
'array',
|
|
117
|
+
'object'
|
|
118
|
+
]
|
|
119
|
+
}
|
|
94
120
|
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
121
|
+
function _number({ params , location , methodName }) {
|
|
122
|
+
if ([
|
|
123
|
+
'toExponential',
|
|
124
|
+
'toFixed',
|
|
125
|
+
'toLocaleString',
|
|
126
|
+
'toPrecision',
|
|
127
|
+
'toString'
|
|
128
|
+
].includes(methodName)) {
|
|
129
|
+
return runInstance({
|
|
130
|
+
location,
|
|
131
|
+
meta: meta,
|
|
132
|
+
methodName,
|
|
133
|
+
operator: '_number',
|
|
134
|
+
params,
|
|
135
|
+
instanceType: 'number'
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
return runClass({
|
|
139
|
+
functions: Number,
|
|
140
|
+
location,
|
|
141
|
+
meta: meta,
|
|
142
|
+
methodName,
|
|
143
|
+
operator: '_number',
|
|
144
|
+
params
|
|
111
145
|
});
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return (0, _runClass.default)({
|
|
115
|
-
functions: Number,
|
|
116
|
-
location,
|
|
117
|
-
meta: meta,
|
|
118
|
-
methodName,
|
|
119
|
-
operator: '_number',
|
|
120
|
-
params
|
|
121
|
-
});
|
|
122
146
|
}
|
|
123
|
-
|
|
124
|
-
var _default = _number;
|
|
125
|
-
exports.default = _default;
|
|
147
|
+
export default _number;
|
package/dist/common/nunjucks.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _helpers = require("@lowdefy/helpers");
|
|
9
|
-
|
|
10
|
-
var _nunjucks2 = require("@lowdefy/nunjucks");
|
|
11
|
-
|
|
12
1
|
/*
|
|
13
2
|
Copyright 2020-2021 Lowdefy, Inc
|
|
14
3
|
|
|
@@ -23,38 +12,29 @@ var _nunjucks2 = require("@lowdefy/nunjucks");
|
|
|
23
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24
13
|
See the License for the specific language governing permissions and
|
|
25
14
|
limitations under the License.
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (_helpers.type.isObject(params) && _helpers.type.isString(params.template)) {
|
|
37
|
-
templateString = params.template;
|
|
38
|
-
on = _helpers.type.isObject(params.on) ? params.on : {};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
if (_helpers.type.isString(params)) {
|
|
42
|
-
templateString = params;
|
|
43
|
-
on = state;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (templateString) {
|
|
47
|
-
try {
|
|
48
|
-
var template = (0, _nunjucks2.nunjucksFunction)(templateString);
|
|
49
|
-
return template(on);
|
|
50
|
-
} catch (e) {
|
|
51
|
-
// log e to LowdefyError
|
|
52
|
-
throw new Error("Operator Error: _nunjucks failed to parse nunjucks template. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
15
|
+
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
+
import { nunjucksFunction } from '@lowdefy/nunjucks';
|
|
17
|
+
function _nunjucks({ location , params , state , payload , env }) {
|
|
18
|
+
let templateString;
|
|
19
|
+
let on;
|
|
20
|
+
if (type.isObject(params) && type.isString(params.template)) {
|
|
21
|
+
templateString = params.template;
|
|
22
|
+
on = type.isObject(params.on) ? params.on : {
|
|
23
|
+
};
|
|
53
24
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
25
|
+
if (type.isString(params)) {
|
|
26
|
+
templateString = params;
|
|
27
|
+
on = env === 'web' ? state : payload;
|
|
28
|
+
}
|
|
29
|
+
if (templateString) {
|
|
30
|
+
try {
|
|
31
|
+
const template = nunjucksFunction(templateString);
|
|
32
|
+
return template(on);
|
|
33
|
+
} catch (e) {
|
|
34
|
+
// log e to LowdefyError
|
|
35
|
+
throw new Error(`Operator Error: _nunjucks failed to parse nunjucks template. Received: ${JSON.stringify(params)} at ${location}.`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return null;
|
|
57
39
|
}
|
|
58
|
-
|
|
59
|
-
var _default = _nunjucks;
|
|
60
|
-
exports.default = _default;
|
|
40
|
+
export default _nunjucks;
|
package/dist/common/object.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _runInstance = _interopRequireDefault(require("../runInstance"));
|
|
9
|
-
|
|
10
|
-
var _runClass = _interopRequireDefault(require("../runClass"));
|
|
11
|
-
|
|
12
|
-
var _helpers = require("@lowdefy/helpers");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
1
|
/*
|
|
17
2
|
Copyright 2020-2021 Lowdefy, Inc
|
|
18
3
|
|
|
@@ -27,92 +12,98 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
27
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
28
13
|
See the License for the specific language governing permissions and
|
|
29
14
|
limitations under the License.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
15
|
+
*/ import { type } from '@lowdefy/helpers';
|
|
16
|
+
import runInstance from '../runInstance.js';
|
|
17
|
+
import runClass from '../runClass.js';
|
|
18
|
+
const prep = (args)=>{
|
|
19
|
+
if (type.isNone(args[0])) {
|
|
20
|
+
args[0] = {
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return args;
|
|
37
24
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
args[0] = {};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
return args;
|
|
25
|
+
const prepDescriptor = (args)=>{
|
|
26
|
+
const descriptor = args[2] || {
|
|
27
|
+
};
|
|
28
|
+
if (type.isNone(descriptor.enumerable)) {
|
|
29
|
+
descriptor.enumerable = true;
|
|
30
|
+
}
|
|
31
|
+
if (type.isNone(descriptor.configurable)) {
|
|
32
|
+
descriptor.configurable = true;
|
|
33
|
+
}
|
|
34
|
+
args[2] = descriptor;
|
|
35
|
+
if (type.isNone(args[0])) {
|
|
36
|
+
args[0] = {
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
return args;
|
|
57
40
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
41
|
+
const metaInstance = {
|
|
42
|
+
hasOwnProperty: {
|
|
43
|
+
namedArgs: [
|
|
44
|
+
'on',
|
|
45
|
+
'prop'
|
|
46
|
+
],
|
|
47
|
+
validTypes: [
|
|
48
|
+
'array',
|
|
49
|
+
'object'
|
|
50
|
+
],
|
|
51
|
+
prep
|
|
52
|
+
}
|
|
65
53
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
54
|
+
const metaClass = {
|
|
55
|
+
keys: {
|
|
56
|
+
singleArg: true,
|
|
57
|
+
validTypes: [
|
|
58
|
+
'object'
|
|
59
|
+
],
|
|
60
|
+
prep
|
|
61
|
+
},
|
|
62
|
+
values: {
|
|
63
|
+
singleArg: true,
|
|
64
|
+
validTypes: [
|
|
65
|
+
'object'
|
|
66
|
+
],
|
|
67
|
+
prep
|
|
68
|
+
},
|
|
69
|
+
assign: {
|
|
70
|
+
spreadArgs: true,
|
|
71
|
+
validTypes: [
|
|
72
|
+
'array'
|
|
73
|
+
],
|
|
74
|
+
prep
|
|
75
|
+
},
|
|
76
|
+
defineProperty: {
|
|
77
|
+
namedArgs: [
|
|
78
|
+
'on',
|
|
79
|
+
'key',
|
|
80
|
+
'descriptor'
|
|
81
|
+
],
|
|
82
|
+
validTypes: [
|
|
83
|
+
'array',
|
|
84
|
+
'object'
|
|
85
|
+
],
|
|
86
|
+
prep: prepDescriptor
|
|
87
|
+
}
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
89
|
+
function _object({ params , location , methodName }) {
|
|
90
|
+
if (methodName === 'hasOwnProperty') {
|
|
91
|
+
return runInstance({
|
|
92
|
+
location,
|
|
93
|
+
meta: metaInstance,
|
|
94
|
+
methodName,
|
|
95
|
+
operator: '_object',
|
|
96
|
+
params,
|
|
97
|
+
instanceType: 'object'
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
return runClass({
|
|
101
|
+
functions: Object,
|
|
102
|
+
location,
|
|
103
|
+
meta: metaClass,
|
|
104
|
+
methodName,
|
|
105
|
+
operator: '_object',
|
|
106
|
+
params
|
|
104
107
|
});
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return (0, _runClass.default)({
|
|
108
|
-
functions: Object,
|
|
109
|
-
location,
|
|
110
|
-
meta: metaClass,
|
|
111
|
-
methodName,
|
|
112
|
-
operator: '_object',
|
|
113
|
-
params
|
|
114
|
-
});
|
|
115
108
|
}
|
|
116
|
-
|
|
117
|
-
var _default = _object;
|
|
118
|
-
exports.default = _default;
|
|
109
|
+
export default _object;
|