@lowdefy/operators 3.23.2 → 4.0.0-alpha.10
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/getFromArray.js +23 -45
- package/dist/getFromObject.js +26 -71
- package/dist/index.js +18 -20
- package/dist/nodeParser.js +77 -146
- package/dist/runClass.js +58 -83
- package/dist/runInstance.js +61 -85
- package/dist/webParser.js +81 -157
- package/package.json +17 -19
- package/dist/common/_index.js +0 -45
- package/dist/common/and.js +0 -39
- package/dist/common/args.js +0 -46
- package/dist/common/array.js +0 -170
- package/dist/common/change_case.js +0 -185
- package/dist/common/date.js +0 -75
- package/dist/common/divide.js +0 -51
- package/dist/common/eq.js +0 -43
- package/dist/common/event.js +0 -46
- package/dist/common/function.js +0 -78
- package/dist/common/get.js +0 -61
- package/dist/common/global.js +0 -50
- package/dist/common/gt.js +0 -43
- package/dist/common/gte.js +0 -43
- package/dist/common/if.js +0 -41
- package/dist/common/if_none.js +0 -47
- package/dist/common/index.js +0 -69
- package/dist/common/input.js +0 -50
- package/dist/common/json.js +0 -64
- package/dist/common/log.js +0 -33
- package/dist/common/lt.js +0 -43
- package/dist/common/lte.js +0 -43
- package/dist/common/math.js +0 -210
- package/dist/common/mql.js +0 -124
- package/dist/common/ne.js +0 -43
- package/dist/common/not.js +0 -31
- package/dist/common/number.js +0 -125
- package/dist/common/nunjucks.js +0 -60
- package/dist/common/object.js +0 -118
- package/dist/common/operator.js +0 -49
- package/dist/common/or.js +0 -39
- package/dist/common/product.js +0 -45
- package/dist/common/random.js +0 -132
- package/dist/common/regex.js +0 -65
- package/dist/common/state.js +0 -50
- package/dist/common/string.js +0 -188
- package/dist/common/subtract.js +0 -47
- package/dist/common/sum.js +0 -45
- package/dist/common/switch.js +0 -49
- package/dist/common/type.js +0 -82
- package/dist/common/uri.js +0 -67
- package/dist/common/url_query.js +0 -50
- package/dist/common/user.js +0 -50
- package/dist/common/uuid.js +0 -76
- package/dist/common/yaml.js +0 -70
- package/dist/getFromOtherContext.js +0 -96
- package/dist/node/base64.js +0 -69
- package/dist/node/diff.js +0 -66
- package/dist/node/hash.js +0 -100
- package/dist/node/index.js +0 -29
- package/dist/node/secret.js +0 -54
- package/dist/web/actions.js +0 -46
- package/dist/web/base64.js +0 -67
- package/dist/web/event_log.js +0 -50
- package/dist/web/format.js +0 -52
- package/dist/web/index.js +0 -36
- package/dist/web/js.js +0 -45
- package/dist/web/list_contexts.js +0 -31
- package/dist/web/location.js +0 -74
- package/dist/web/media.js +0 -90
- package/dist/web/menu.js +0 -43
- package/dist/web/request.js +0 -56
- package/dist/web/request_details.js +0 -50
package/dist/common/global.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _getFromObject = _interopRequireDefault(require("../getFromObject"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
/*
|
|
13
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
14
|
-
|
|
15
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
16
|
-
you may not use this file except in compliance with the License.
|
|
17
|
-
You may obtain a copy of the License at
|
|
18
|
-
|
|
19
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
-
|
|
21
|
-
Unless required by applicable law or agreed to in writing, software
|
|
22
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
23
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24
|
-
See the License for the specific language governing permissions and
|
|
25
|
-
limitations under the License.
|
|
26
|
-
*/
|
|
27
|
-
function _global(_ref) {
|
|
28
|
-
var {
|
|
29
|
-
arrayIndices,
|
|
30
|
-
context,
|
|
31
|
-
contexts,
|
|
32
|
-
env,
|
|
33
|
-
location,
|
|
34
|
-
lowdefyGlobal,
|
|
35
|
-
params
|
|
36
|
-
} = _ref;
|
|
37
|
-
return (0, _getFromObject.default)({
|
|
38
|
-
arrayIndices,
|
|
39
|
-
context,
|
|
40
|
-
contexts,
|
|
41
|
-
env,
|
|
42
|
-
location,
|
|
43
|
-
object: lowdefyGlobal,
|
|
44
|
-
operator: '_global',
|
|
45
|
-
params
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
var _default = _global;
|
|
50
|
-
exports.default = _default;
|
package/dist/common/gt.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
/*
|
|
11
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
12
|
-
|
|
13
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
you may not use this file except in compliance with the License.
|
|
15
|
-
You may obtain a copy of the License at
|
|
16
|
-
|
|
17
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
|
|
19
|
-
Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
See the License for the specific language governing permissions and
|
|
23
|
-
limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
function _gt(_ref) {
|
|
26
|
-
var {
|
|
27
|
-
params,
|
|
28
|
-
location
|
|
29
|
-
} = _ref;
|
|
30
|
-
|
|
31
|
-
if (!_helpers.type.isArray(params)) {
|
|
32
|
-
throw new Error("Operator Error: _gt takes an array type as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (params.length !== 2) {
|
|
36
|
-
throw new Error("Operator Error: _gt takes an array of length 2 as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return params[0] > params[1];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
var _default = _gt;
|
|
43
|
-
exports.default = _default;
|
package/dist/common/gte.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
/*
|
|
11
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
12
|
-
|
|
13
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
you may not use this file except in compliance with the License.
|
|
15
|
-
You may obtain a copy of the License at
|
|
16
|
-
|
|
17
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
|
|
19
|
-
Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
See the License for the specific language governing permissions and
|
|
23
|
-
limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
function _gte(_ref) {
|
|
26
|
-
var {
|
|
27
|
-
params,
|
|
28
|
-
location
|
|
29
|
-
} = _ref;
|
|
30
|
-
|
|
31
|
-
if (!_helpers.type.isArray(params)) {
|
|
32
|
-
throw new Error("Operator Error: _gte takes an array type as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (params.length !== 2) {
|
|
36
|
-
throw new Error("Operator Error: _gte takes an array of length 2 as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return params[0] >= params[1];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
var _default = _gte;
|
|
43
|
-
exports.default = _default;
|
package/dist/common/if.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
/*
|
|
9
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
10
|
-
|
|
11
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
you may not use this file except in compliance with the License.
|
|
13
|
-
You may obtain a copy of the License at
|
|
14
|
-
|
|
15
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
|
|
17
|
-
Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
See the License for the specific language governing permissions and
|
|
21
|
-
limitations under the License.
|
|
22
|
-
*/
|
|
23
|
-
function _if(_ref) {
|
|
24
|
-
var {
|
|
25
|
-
location,
|
|
26
|
-
params
|
|
27
|
-
} = _ref;
|
|
28
|
-
|
|
29
|
-
if (params.test === true) {
|
|
30
|
-
return params.then;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if (params.test === false) {
|
|
34
|
-
return params.else;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
throw new Error("Operator Error: _if takes a boolean type for parameter test. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
var _default = _if;
|
|
41
|
-
exports.default = _default;
|
package/dist/common/if_none.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
/*
|
|
11
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
12
|
-
|
|
13
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
you may not use this file except in compliance with the License.
|
|
15
|
-
You may obtain a copy of the License at
|
|
16
|
-
|
|
17
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
|
|
19
|
-
Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
See the License for the specific language governing permissions and
|
|
23
|
-
limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
function _if_none(_ref) {
|
|
26
|
-
var {
|
|
27
|
-
params,
|
|
28
|
-
location
|
|
29
|
-
} = _ref;
|
|
30
|
-
|
|
31
|
-
if (!_helpers.type.isArray(params)) {
|
|
32
|
-
throw new Error("Operator Error: _if_none takes an array type as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (params.length !== 2) {
|
|
36
|
-
throw new Error("Operator Error: _if_none takes an array of length 2 as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (_helpers.type.isNone(params[0])) {
|
|
40
|
-
return params[1];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return params[0];
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
var _default = _if_none;
|
|
47
|
-
exports.default = _default;
|
package/dist/common/index.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
/*
|
|
9
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
10
|
-
|
|
11
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
you may not use this file except in compliance with the License.
|
|
13
|
-
You may obtain a copy of the License at
|
|
14
|
-
|
|
15
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
|
|
17
|
-
Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
See the License for the specific language governing permissions and
|
|
21
|
-
limitations under the License.
|
|
22
|
-
*/
|
|
23
|
-
var _default = {
|
|
24
|
-
_and: 'common/and',
|
|
25
|
-
_args: 'common/args',
|
|
26
|
-
_array: 'common/array',
|
|
27
|
-
_change_case: 'common/change_case',
|
|
28
|
-
_date: 'common/date',
|
|
29
|
-
_divide: 'common/divide',
|
|
30
|
-
_eq: 'common/eq',
|
|
31
|
-
_event: 'common/event',
|
|
32
|
-
_function: 'common/function',
|
|
33
|
-
_get: 'common/get',
|
|
34
|
-
_global: 'common/global',
|
|
35
|
-
_gt: 'common/gt',
|
|
36
|
-
_gte: 'common/gte',
|
|
37
|
-
_if_none: 'common/if_none',
|
|
38
|
-
_if: 'common/if',
|
|
39
|
-
_index: 'common/_index',
|
|
40
|
-
_input: 'common/input',
|
|
41
|
-
_json: 'common/json',
|
|
42
|
-
_log: 'common/log',
|
|
43
|
-
_lt: 'common/lt',
|
|
44
|
-
_lte: 'common/lte',
|
|
45
|
-
_math: 'common/math',
|
|
46
|
-
_mql: 'common/mql',
|
|
47
|
-
_ne: 'common/ne',
|
|
48
|
-
_not: 'common/not',
|
|
49
|
-
_number: 'common/number',
|
|
50
|
-
_nunjucks: 'common/nunjucks',
|
|
51
|
-
_object: 'common/object',
|
|
52
|
-
_operator: 'common/operator',
|
|
53
|
-
_or: 'common/or',
|
|
54
|
-
_product: 'common/product',
|
|
55
|
-
_random: 'common/random',
|
|
56
|
-
_regex: 'common/regex',
|
|
57
|
-
_state: 'common/state',
|
|
58
|
-
_string: 'common/string',
|
|
59
|
-
_subtract: 'common/subtract',
|
|
60
|
-
_sum: 'common/sum',
|
|
61
|
-
_switch: 'common/switch',
|
|
62
|
-
_type: 'common/type',
|
|
63
|
-
_uri: 'common/uri',
|
|
64
|
-
_url_query: 'common/url_query',
|
|
65
|
-
_user: 'common/user',
|
|
66
|
-
_uuid: 'common/uuid',
|
|
67
|
-
_yaml: 'common/yaml'
|
|
68
|
-
};
|
|
69
|
-
exports.default = _default;
|
package/dist/common/input.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _getFromObject = _interopRequireDefault(require("../getFromObject"));
|
|
9
|
-
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
|
|
12
|
-
/*
|
|
13
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
14
|
-
|
|
15
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
16
|
-
you may not use this file except in compliance with the License.
|
|
17
|
-
You may obtain a copy of the License at
|
|
18
|
-
|
|
19
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
20
|
-
|
|
21
|
-
Unless required by applicable law or agreed to in writing, software
|
|
22
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
23
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
24
|
-
See the License for the specific language governing permissions and
|
|
25
|
-
limitations under the License.
|
|
26
|
-
*/
|
|
27
|
-
function _input(_ref) {
|
|
28
|
-
var {
|
|
29
|
-
arrayIndices,
|
|
30
|
-
context,
|
|
31
|
-
contexts,
|
|
32
|
-
env,
|
|
33
|
-
input,
|
|
34
|
-
location,
|
|
35
|
-
params
|
|
36
|
-
} = _ref;
|
|
37
|
-
return (0, _getFromObject.default)({
|
|
38
|
-
arrayIndices,
|
|
39
|
-
context,
|
|
40
|
-
contexts,
|
|
41
|
-
env,
|
|
42
|
-
location,
|
|
43
|
-
object: input,
|
|
44
|
-
operator: '_input',
|
|
45
|
-
params
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
var _default = _input;
|
|
50
|
-
exports.default = _default;
|
package/dist/common/json.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
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 _runClass = _interopRequireDefault(require("../runClass"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
-
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
17
|
-
|
|
18
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
-
|
|
20
|
-
function parse(input) {
|
|
21
|
-
if (input === 'undefined') return undefined;
|
|
22
|
-
return _helpers.serializer.deserializeFromString(input);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function stringify(input, options) {
|
|
26
|
-
return _helpers.serializer.serializeToString(input, _objectSpread({
|
|
27
|
-
space: 2,
|
|
28
|
-
isoStringDates: true
|
|
29
|
-
}, options));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
var functions = {
|
|
33
|
-
parse,
|
|
34
|
-
stringify
|
|
35
|
-
};
|
|
36
|
-
var meta = {
|
|
37
|
-
stringify: {
|
|
38
|
-
namedArgs: ['on', 'options'],
|
|
39
|
-
validTypes: ['object', 'array']
|
|
40
|
-
},
|
|
41
|
-
parse: {
|
|
42
|
-
singleArg: true,
|
|
43
|
-
validTypes: ['string']
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
function _json(_ref) {
|
|
48
|
-
var {
|
|
49
|
-
params,
|
|
50
|
-
location,
|
|
51
|
-
methodName
|
|
52
|
-
} = _ref;
|
|
53
|
-
return (0, _runClass.default)({
|
|
54
|
-
functions,
|
|
55
|
-
location,
|
|
56
|
-
meta,
|
|
57
|
-
methodName,
|
|
58
|
-
operator: '_json',
|
|
59
|
-
params
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
var _default = _json;
|
|
64
|
-
exports.default = _default;
|
package/dist/common/log.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
/*
|
|
9
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
10
|
-
|
|
11
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
-
you may not use this file except in compliance with the License.
|
|
13
|
-
You may obtain a copy of the License at
|
|
14
|
-
|
|
15
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
-
|
|
17
|
-
Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
-
See the License for the specific language governing permissions and
|
|
21
|
-
limitations under the License.
|
|
22
|
-
*/
|
|
23
|
-
function _log(_ref) {
|
|
24
|
-
var {
|
|
25
|
-
params
|
|
26
|
-
} = _ref;
|
|
27
|
-
// eslint-disable-next-line no-console
|
|
28
|
-
console.log(params);
|
|
29
|
-
return params;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
var _default = _log;
|
|
33
|
-
exports.default = _default;
|
package/dist/common/lt.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
/*
|
|
11
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
12
|
-
|
|
13
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
you may not use this file except in compliance with the License.
|
|
15
|
-
You may obtain a copy of the License at
|
|
16
|
-
|
|
17
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
|
|
19
|
-
Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
See the License for the specific language governing permissions and
|
|
23
|
-
limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
function _lt(_ref) {
|
|
26
|
-
var {
|
|
27
|
-
params,
|
|
28
|
-
location
|
|
29
|
-
} = _ref;
|
|
30
|
-
|
|
31
|
-
if (!_helpers.type.isArray(params)) {
|
|
32
|
-
throw new Error("Operator Error: _lt takes an array type as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (params.length !== 2) {
|
|
36
|
-
throw new Error("Operator Error: _lt takes an array of length 2 as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return params[0] < params[1];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
var _default = _lt;
|
|
43
|
-
exports.default = _default;
|
package/dist/common/lte.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
/*
|
|
11
|
-
Copyright 2020-2021 Lowdefy, Inc
|
|
12
|
-
|
|
13
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
14
|
-
you may not use this file except in compliance with the License.
|
|
15
|
-
You may obtain a copy of the License at
|
|
16
|
-
|
|
17
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
-
|
|
19
|
-
Unless required by applicable law or agreed to in writing, software
|
|
20
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
21
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
22
|
-
See the License for the specific language governing permissions and
|
|
23
|
-
limitations under the License.
|
|
24
|
-
*/
|
|
25
|
-
function _lte(_ref) {
|
|
26
|
-
var {
|
|
27
|
-
params,
|
|
28
|
-
location
|
|
29
|
-
} = _ref;
|
|
30
|
-
|
|
31
|
-
if (!_helpers.type.isArray(params)) {
|
|
32
|
-
throw new Error("Operator Error: _lte takes an array type as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (params.length !== 2) {
|
|
36
|
-
throw new Error("Operator Error: _lte takes an array of length 2 as input. Received: ".concat(JSON.stringify(params), " at ").concat(location, "."));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return params[0] <= params[1];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
var _default = _lte;
|
|
43
|
-
exports.default = _default;
|