@lowdefy/operators 4.0.0-alpha.1 → 4.0.0-alpha.7

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.
Files changed (66) hide show
  1. package/dist/index.js +6 -2
  2. package/dist/nodeParser.js +10 -22
  3. package/dist/webParser.js +16 -37
  4. package/package.json +7 -14
  5. package/dist/common/and.js +0 -23
  6. package/dist/common/args.js +0 -25
  7. package/dist/common/array.js +0 -261
  8. package/dist/common/change_case.js +0 -139
  9. package/dist/common/date.js +0 -54
  10. package/dist/common/divide.js +0 -31
  11. package/dist/common/eq.js +0 -25
  12. package/dist/common/function.js +0 -46
  13. package/dist/common/get.js +0 -36
  14. package/dist/common/gt.js +0 -25
  15. package/dist/common/gte.js +0 -25
  16. package/dist/common/if.js +0 -24
  17. package/dist/common/if_none.js +0 -28
  18. package/dist/common/index.js +0 -54
  19. package/dist/common/json.js +0 -60
  20. package/dist/common/log.js +0 -20
  21. package/dist/common/lt.js +0 -25
  22. package/dist/common/lte.js +0 -25
  23. package/dist/common/math.js +0 -271
  24. package/dist/common/mql.js +0 -115
  25. package/dist/common/ne.js +0 -25
  26. package/dist/common/not.js +0 -18
  27. package/dist/common/number.js +0 -147
  28. package/dist/common/nunjucks.js +0 -40
  29. package/dist/common/object.js +0 -109
  30. package/dist/common/operator.js +0 -38
  31. package/dist/common/or.js +0 -23
  32. package/dist/common/product.js +0 -27
  33. package/dist/common/random.js +0 -97
  34. package/dist/common/regex.js +0 -42
  35. package/dist/common/string.js +0 -287
  36. package/dist/common/subtract.js +0 -28
  37. package/dist/common/sum.js +0 -27
  38. package/dist/common/switch.js +0 -30
  39. package/dist/common/type.js +0 -51
  40. package/dist/common/uri.js +0 -50
  41. package/dist/common/user.js +0 -25
  42. package/dist/common/uuid.js +0 -65
  43. package/dist/common/yaml.js +0 -63
  44. package/dist/node/base64.js +0 -52
  45. package/dist/node/diff.js +0 -49
  46. package/dist/node/hash.js +0 -84
  47. package/dist/node/index.js +0 -21
  48. package/dist/node/payload.js +0 -24
  49. package/dist/node/secret.js +0 -33
  50. package/dist/web/_index.js +0 -25
  51. package/dist/web/actions.js +0 -25
  52. package/dist/web/base64.js +0 -50
  53. package/dist/web/event.js +0 -25
  54. package/dist/web/event_log.js +0 -25
  55. package/dist/web/format.js +0 -30
  56. package/dist/web/global.js +0 -25
  57. package/dist/web/index.js +0 -32
  58. package/dist/web/input.js +0 -25
  59. package/dist/web/js.js +0 -25
  60. package/dist/web/location.js +0 -59
  61. package/dist/web/media.js +0 -61
  62. package/dist/web/menu.js +0 -25
  63. package/dist/web/request.js +0 -35
  64. package/dist/web/request_details.js +0 -25
  65. package/dist/web/state.js +0 -25
  66. package/dist/web/url_query.js +0 -25
@@ -1,30 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import { type } from '@lowdefy/helpers';
16
- function _switch({ location , params }) {
17
- if (!type.isArray(params.branches)) {
18
- throw new Error(`Operator Error: switch takes an array type as input for the branches. Received: ${JSON.stringify(params)} at ${location}.`);
19
- }
20
- for (const branch of params.branches){
21
- if (!type.isBoolean(branch.if)) {
22
- throw new Error(`Operator Error: switch takes a boolean type for parameter test. Received: ${JSON.stringify(params)} at ${location}.`);
23
- }
24
- if (branch.if === true) {
25
- return branch.then;
26
- }
27
- }
28
- return params.default;
29
- }
30
- export default _switch;
@@ -1,51 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import { get, type } from '@lowdefy/helpers';
16
- function _type({ location , params , state }) {
17
- const typeName = type.isObject(params) ? params.type : params;
18
- if (!type.isString(typeName)) {
19
- throw new Error(`Operator Error: _type.type must be a string. Received: ${JSON.stringify(params)} at ${location}.`);
20
- }
21
- const on = Object.prototype.hasOwnProperty.call(params, 'on') ? params.on : get(state, get(params, 'key', {
22
- default: location
23
- }));
24
- switch(typeName){
25
- case 'string':
26
- return type.isString(on);
27
- case 'array':
28
- return type.isArray(on);
29
- case 'date':
30
- return type.isDate(on); // Testing for date is problematic due to stringify
31
- case 'object':
32
- return type.isObject(on);
33
- case 'boolean':
34
- return type.isBoolean(on);
35
- case 'number':
36
- return type.isNumber(on);
37
- case 'integer':
38
- return type.isInt(on);
39
- case 'null':
40
- return type.isNull(on);
41
- case 'undefined':
42
- return type.isUndefined(on);
43
- case 'none':
44
- return type.isNone(on);
45
- case 'primitive':
46
- return type.isPrimitive(on);
47
- default:
48
- throw new Error(`Operator Error: "${typeName}" is not a valid _type test. Received: ${JSON.stringify(params)} at ${location}.`);
49
- }
50
- }
51
- export default _type;
@@ -1,50 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import runClass from '../runClass.js';
16
- function decode(input) {
17
- return decodeURIComponent(input);
18
- }
19
- function encode(input) {
20
- return encodeURIComponent(input);
21
- }
22
- const functions = {
23
- encode,
24
- decode
25
- };
26
- const meta = {
27
- encode: {
28
- singleArg: true,
29
- validTypes: [
30
- 'string'
31
- ]
32
- },
33
- decode: {
34
- singleArg: true,
35
- validTypes: [
36
- 'string'
37
- ]
38
- }
39
- };
40
- function _uri({ params , location , methodName }) {
41
- return runClass({
42
- functions,
43
- location,
44
- meta,
45
- methodName,
46
- operator: '_uri',
47
- params
48
- });
49
- }
50
- export default _uri;
@@ -1,25 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import getFromObject from '../getFromObject.js';
16
- function _user({ arrayIndices , location , params , user }) {
17
- return getFromObject({
18
- arrayIndices,
19
- location,
20
- object: user,
21
- operator: '_user',
22
- params
23
- });
24
- }
25
- export default _user;
@@ -1,65 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import { v1, v3, v4, v5 } from 'uuid';
16
- import { type } from '@lowdefy/helpers';
17
- import runClass from '../runClass.js';
18
- const meta = {
19
- v1: {
20
- noArgs: true
21
- },
22
- v3: {
23
- namedArgs: [
24
- 'name',
25
- 'namespace'
26
- ],
27
- validTypes: [
28
- 'array',
29
- 'object'
30
- ]
31
- },
32
- v4: {
33
- noArgs: true
34
- },
35
- v5: {
36
- namedArgs: [
37
- 'name',
38
- 'namespace'
39
- ],
40
- validTypes: [
41
- 'array',
42
- 'object'
43
- ]
44
- }
45
- };
46
- const functions = {
47
- v1,
48
- v3,
49
- v4,
50
- v5
51
- };
52
- function _uuid({ params , location , methodName }) {
53
- if (type.isNone(methodName) && (type.isNone(params) || params === true)) {
54
- return v4();
55
- }
56
- return runClass({
57
- functions: functions,
58
- location,
59
- meta,
60
- methodName,
61
- operator: '_uuid',
62
- params
63
- });
64
- }
65
- export default _uuid;
@@ -1,63 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import YAML from 'js-yaml';
16
- import { serializer } from '@lowdefy/helpers';
17
- import runClass from '../runClass.js';
18
- function parse(input) {
19
- if (input === 'undefined') return undefined;
20
- const loaded = YAML.load(input);
21
- return serializer.deserialize(loaded);
22
- }
23
- function stringify(input, options) {
24
- return YAML.dump(serializer.serialize(input, {
25
- isoStringDates: true
26
- }), {
27
- sortKeys: true,
28
- ...options
29
- });
30
- }
31
- const functions = {
32
- parse,
33
- stringify
34
- };
35
- const meta = {
36
- stringify: {
37
- namedArgs: [
38
- 'on',
39
- 'options'
40
- ],
41
- validTypes: [
42
- 'object',
43
- 'array'
44
- ]
45
- },
46
- parse: {
47
- singleArg: true,
48
- validTypes: [
49
- 'string'
50
- ]
51
- }
52
- };
53
- function _yaml({ params , location , methodName }) {
54
- return runClass({
55
- functions,
56
- location,
57
- meta,
58
- methodName,
59
- operator: '_yaml',
60
- params
61
- });
62
- }
63
- export default _yaml;
@@ -1,52 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import runClass from '../runClass.js';
16
- function decode(input) {
17
- const buff = Buffer.from(input, 'base64');
18
- return buff.toString('utf8');
19
- }
20
- function encode(input) {
21
- const buff = Buffer.from(input, 'utf8');
22
- return buff.toString('base64');
23
- }
24
- const functions = {
25
- encode,
26
- decode
27
- };
28
- const meta = {
29
- encode: {
30
- singleArg: true,
31
- validTypes: [
32
- 'string'
33
- ]
34
- },
35
- decode: {
36
- singleArg: true,
37
- validTypes: [
38
- 'string'
39
- ]
40
- }
41
- };
42
- function _base64({ params , location , methodName }) {
43
- return runClass({
44
- functions,
45
- location,
46
- meta,
47
- methodName,
48
- operator: '_base64',
49
- params
50
- });
51
- }
52
- export default _base64;
package/dist/node/diff.js DELETED
@@ -1,49 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import { diff } from 'deep-diff';
16
- import runClass from '../runClass.js';
17
- function deep(lhs, rhs) {
18
- const result = diff(lhs, rhs);
19
- if (!result) {
20
- return [];
21
- }
22
- return result;
23
- }
24
- const functions = {
25
- deep
26
- };
27
- const meta = {
28
- deep: {
29
- namedArgs: [
30
- 'lhs',
31
- 'rhs'
32
- ],
33
- validTypes: [
34
- 'object',
35
- 'array'
36
- ]
37
- }
38
- };
39
- function _diff({ params , location , methodName }) {
40
- return runClass({
41
- functions,
42
- location,
43
- meta,
44
- methodName,
45
- operator: '_diff',
46
- params
47
- });
48
- }
49
- export default _diff;
package/dist/node/hash.js DELETED
@@ -1,84 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import crypto from 'crypto';
16
- import runClass from '../runClass.js';
17
- function hash(algorithm, data) {
18
- return crypto.createHash(algorithm).update(data).digest('hex');
19
- }
20
- function md5(data) {
21
- return hash('md5', data);
22
- }
23
- function sha1(data) {
24
- return hash('sha1', data);
25
- }
26
- function sha256(data) {
27
- return hash('sha256', data);
28
- }
29
- function sha512(data) {
30
- return hash('sha512', data);
31
- }
32
- function ripemd160(data) {
33
- return hash('ripemd160', data);
34
- }
35
- const functions = {
36
- md5,
37
- sha1,
38
- sha256,
39
- sha512,
40
- ripemd160
41
- };
42
- const meta = {
43
- md5: {
44
- validTypes: [
45
- 'string'
46
- ],
47
- singleArg: true
48
- },
49
- sha1: {
50
- validTypes: [
51
- 'string'
52
- ],
53
- singleArg: true
54
- },
55
- sha256: {
56
- validTypes: [
57
- 'string'
58
- ],
59
- singleArg: true
60
- },
61
- sha512: {
62
- validTypes: [
63
- 'string'
64
- ],
65
- singleArg: true
66
- },
67
- ripemd160: {
68
- validTypes: [
69
- 'string'
70
- ],
71
- singleArg: true
72
- }
73
- };
74
- function _hash({ params , location , methodName }) {
75
- return runClass({
76
- functions,
77
- location,
78
- meta,
79
- methodName,
80
- operator: '_hash',
81
- params
82
- });
83
- }
84
- export default _hash;
@@ -1,21 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ export default {
16
- _base64: 'node/base64',
17
- _diff: 'node/diff',
18
- _hash: 'node/hash',
19
- _payload: 'node/payload',
20
- _secret: 'node/secret'
21
- };
@@ -1,24 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import getFromObject from '../getFromObject.js';
16
- function _payload({ location , params , payload }) {
17
- return getFromObject({
18
- location,
19
- object: payload,
20
- operator: '_payload',
21
- params
22
- });
23
- }
24
- export default _payload;
@@ -1,33 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import getFromObject from '../getFromObject.js';
16
- function _secret({ location , params , secrets ={
17
- } }) {
18
- if (params === true || params.all) {
19
- throw new Error(`Operator Error: Getting all secrets is not allowed. Received: ${JSON.stringify(params)} at ${location}.`);
20
- }
21
- // Filter out OpenID Connect and JSON web token secrets
22
- // eslint-disable-next-line no-unused-vars
23
- const { OPENID_CLIENT_SECRET , JWT_SECRET , ...rest } = secrets;
24
- return getFromObject({
25
- location,
26
- object: {
27
- ...rest
28
- },
29
- operator: '_secret',
30
- params
31
- });
32
- }
33
- export default _secret;
@@ -1,25 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import getFromObject from '../getFromObject.js';
16
- function _index({ arrayIndices , location , params }) {
17
- return getFromObject({
18
- arrayIndices,
19
- location,
20
- object: arrayIndices,
21
- operator: '_index',
22
- params
23
- });
24
- }
25
- export default _index;
@@ -1,25 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import getFromObject from '../getFromObject.js';
16
- function _actions({ actions , arrayIndices , location , params }) {
17
- return getFromObject({
18
- arrayIndices,
19
- location,
20
- object: actions,
21
- operator: '_actions',
22
- params
23
- });
24
- }
25
- export default _actions;
@@ -1,50 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import runClass from '../runClass.js';
16
- function decode(input) {
17
- return atob(input);
18
- }
19
- function encode(input) {
20
- return btoa(input);
21
- }
22
- const functions = {
23
- encode,
24
- decode
25
- };
26
- const meta = {
27
- encode: {
28
- singleArg: true,
29
- validTypes: [
30
- 'string'
31
- ]
32
- },
33
- decode: {
34
- singleArg: true,
35
- validTypes: [
36
- 'string'
37
- ]
38
- }
39
- };
40
- function _base64({ params , location , methodName }) {
41
- return runClass({
42
- functions,
43
- location,
44
- meta,
45
- methodName,
46
- operator: '_base64',
47
- params
48
- });
49
- }
50
- export default _base64;
package/dist/web/event.js DELETED
@@ -1,25 +0,0 @@
1
- /*
2
- Copyright 2020-2021 Lowdefy, Inc
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- */ import getFromObject from '../getFromObject.js';
16
- function _event({ arrayIndices , event , location , params }) {
17
- return getFromObject({
18
- arrayIndices,
19
- location,
20
- object: event,
21
- operator: '_event',
22
- params
23
- });
24
- }
25
- export default _event;