@lowdefy/operators-js 0.0.0-experimental-20231123101256
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/LICENSE +201 -0
- package/README.md +3 -0
- package/dist/index.js +17 -0
- package/dist/operators/build/env.js +25 -0
- package/dist/operators/client/_index.js +25 -0
- package/dist/operators/client/actions.js +25 -0
- package/dist/operators/client/base64.js +50 -0
- package/dist/operators/client/event.js +25 -0
- package/dist/operators/client/event_log.js +25 -0
- package/dist/operators/client/global.js +25 -0
- package/dist/operators/client/input.js +25 -0
- package/dist/operators/client/location.js +60 -0
- package/dist/operators/client/media.js +62 -0
- package/dist/operators/client/menu.js +25 -0
- package/dist/operators/client/request.js +34 -0
- package/dist/operators/client/request_details.js +25 -0
- package/dist/operators/client/state.js +25 -0
- package/dist/operators/client/url_query.js +30 -0
- package/dist/operators/server/base64.js +52 -0
- package/dist/operators/server/hash.js +84 -0
- package/dist/operators/server/payload.js +24 -0
- package/dist/operators/server/secret.js +32 -0
- package/dist/operators/shared/and.js +22 -0
- package/dist/operators/shared/args.js +25 -0
- package/dist/operators/shared/array.js +263 -0
- package/dist/operators/shared/date.js +449 -0
- package/dist/operators/shared/divide.js +31 -0
- package/dist/operators/shared/eq.js +25 -0
- package/dist/operators/shared/function.js +32 -0
- package/dist/operators/shared/get.js +36 -0
- package/dist/operators/shared/gt.js +25 -0
- package/dist/operators/shared/gte.js +25 -0
- package/dist/operators/shared/if.js +24 -0
- package/dist/operators/shared/if_none.js +28 -0
- package/dist/operators/shared/intl.js +94 -0
- package/dist/operators/shared/json.js +60 -0
- package/dist/operators/shared/log.js +20 -0
- package/dist/operators/shared/lt.js +25 -0
- package/dist/operators/shared/lte.js +25 -0
- package/dist/operators/shared/math.js +271 -0
- package/dist/operators/shared/ne.js +25 -0
- package/dist/operators/shared/not.js +18 -0
- package/dist/operators/shared/number.js +146 -0
- package/dist/operators/shared/object.js +129 -0
- package/dist/operators/shared/operator.js +38 -0
- package/dist/operators/shared/or.js +22 -0
- package/dist/operators/shared/product.js +27 -0
- package/dist/operators/shared/random.js +97 -0
- package/dist/operators/shared/regex.js +42 -0
- package/dist/operators/shared/string.js +292 -0
- package/dist/operators/shared/subtract.js +28 -0
- package/dist/operators/shared/sum.js +27 -0
- package/dist/operators/shared/switch.js +30 -0
- package/dist/operators/shared/type.js +51 -0
- package/dist/operators/shared/uri.js +50 -0
- package/dist/operators/shared/user.js +25 -0
- package/dist/operatorsBuild.js +88 -0
- package/dist/operatorsClient.js +62 -0
- package/dist/operatorsServer.js +52 -0
- package/dist/types.js +22 -0
- package/package.json +64 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2023 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 "if". 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;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2023 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;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2023 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 '@lowdefy/operators';
|
|
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;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2023 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 '@lowdefy/operators';
|
|
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;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2023 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 _and from './operators/shared/and.js';
|
|
16
|
+
import _args from './operators/shared/args.js';
|
|
17
|
+
import _array from './operators/shared/array.js';
|
|
18
|
+
import _date from './operators/shared/date.js';
|
|
19
|
+
import _divide from './operators/shared/divide.js';
|
|
20
|
+
import _eq from './operators/shared/eq.js';
|
|
21
|
+
import _function from './operators/shared/function.js';
|
|
22
|
+
import _get from './operators/shared/get.js';
|
|
23
|
+
import _gt from './operators/shared/gt.js';
|
|
24
|
+
import _gte from './operators/shared/gte.js';
|
|
25
|
+
import _if_none from './operators/shared/if_none.js';
|
|
26
|
+
import _if from './operators/shared/if.js';
|
|
27
|
+
import _intl from './operators/shared/intl.js';
|
|
28
|
+
import _json from './operators/shared/json.js';
|
|
29
|
+
import _log from './operators/shared/log.js';
|
|
30
|
+
import _lt from './operators/shared/lt.js';
|
|
31
|
+
import _lte from './operators/shared/lte.js';
|
|
32
|
+
import _math from './operators/shared/math.js';
|
|
33
|
+
import _ne from './operators/shared/ne.js';
|
|
34
|
+
import _not from './operators/shared/not.js';
|
|
35
|
+
import _number from './operators/shared/number.js';
|
|
36
|
+
import _object from './operators/shared/object.js';
|
|
37
|
+
import _operator from './operators/shared/operator.js';
|
|
38
|
+
import _or from './operators/shared/or.js';
|
|
39
|
+
import _product from './operators/shared/product.js';
|
|
40
|
+
import _random from './operators/shared/random.js';
|
|
41
|
+
import _regex from './operators/shared/regex.js';
|
|
42
|
+
import _string from './operators/shared/string.js';
|
|
43
|
+
import _subtract from './operators/shared/subtract.js';
|
|
44
|
+
import _sum from './operators/shared/sum.js';
|
|
45
|
+
import _switch from './operators/shared/switch.js';
|
|
46
|
+
import _type from './operators/shared/type.js';
|
|
47
|
+
import _uri from './operators/shared/uri.js';
|
|
48
|
+
import _base64 from './operators/server/base64.js';
|
|
49
|
+
import _hash from './operators/server/hash.js';
|
|
50
|
+
import _env from './operators/build/env.js';
|
|
51
|
+
export default {
|
|
52
|
+
_and,
|
|
53
|
+
_args,
|
|
54
|
+
_array,
|
|
55
|
+
_base64,
|
|
56
|
+
_date,
|
|
57
|
+
_divide,
|
|
58
|
+
_env,
|
|
59
|
+
_eq,
|
|
60
|
+
_function,
|
|
61
|
+
_get,
|
|
62
|
+
_gt,
|
|
63
|
+
_gte,
|
|
64
|
+
_hash,
|
|
65
|
+
_if_none,
|
|
66
|
+
_if,
|
|
67
|
+
_intl,
|
|
68
|
+
_json,
|
|
69
|
+
_log,
|
|
70
|
+
_lt,
|
|
71
|
+
_lte,
|
|
72
|
+
_math,
|
|
73
|
+
_ne,
|
|
74
|
+
_not,
|
|
75
|
+
_number,
|
|
76
|
+
_object,
|
|
77
|
+
_operator,
|
|
78
|
+
_or,
|
|
79
|
+
_product,
|
|
80
|
+
_random,
|
|
81
|
+
_regex,
|
|
82
|
+
_string,
|
|
83
|
+
_subtract,
|
|
84
|
+
_sum,
|
|
85
|
+
_switch,
|
|
86
|
+
_type,
|
|
87
|
+
_uri
|
|
88
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2023 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 as _and } from './operators/shared/and.js';
|
|
16
|
+
export { default as _args } from './operators/shared/args.js';
|
|
17
|
+
export { default as _array } from './operators/shared/array.js';
|
|
18
|
+
export { default as _date } from './operators/shared/date.js';
|
|
19
|
+
export { default as _divide } from './operators/shared/divide.js';
|
|
20
|
+
export { default as _eq } from './operators/shared/eq.js';
|
|
21
|
+
export { default as _function } from './operators/shared/function.js';
|
|
22
|
+
export { default as _get } from './operators/shared/get.js';
|
|
23
|
+
export { default as _gt } from './operators/shared/gt.js';
|
|
24
|
+
export { default as _gte } from './operators/shared/gte.js';
|
|
25
|
+
export { default as _if_none } from './operators/shared/if_none.js';
|
|
26
|
+
export { default as _if } from './operators/shared/if.js';
|
|
27
|
+
export { default as _intl } from './operators/shared/intl.js';
|
|
28
|
+
export { default as _json } from './operators/shared/json.js';
|
|
29
|
+
export { default as _log } from './operators/shared/log.js';
|
|
30
|
+
export { default as _lt } from './operators/shared/lt.js';
|
|
31
|
+
export { default as _lte } from './operators/shared/lte.js';
|
|
32
|
+
export { default as _math } from './operators/shared/math.js';
|
|
33
|
+
export { default as _ne } from './operators/shared/ne.js';
|
|
34
|
+
export { default as _not } from './operators/shared/not.js';
|
|
35
|
+
export { default as _number } from './operators/shared/number.js';
|
|
36
|
+
export { default as _object } from './operators/shared/object.js';
|
|
37
|
+
export { default as _operator } from './operators/shared/operator.js';
|
|
38
|
+
export { default as _or } from './operators/shared/or.js';
|
|
39
|
+
export { default as _product } from './operators/shared/product.js';
|
|
40
|
+
export { default as _random } from './operators/shared/random.js';
|
|
41
|
+
export { default as _regex } from './operators/shared/regex.js';
|
|
42
|
+
export { default as _string } from './operators/shared/string.js';
|
|
43
|
+
export { default as _subtract } from './operators/shared/subtract.js';
|
|
44
|
+
export { default as _sum } from './operators/shared/sum.js';
|
|
45
|
+
export { default as _switch } from './operators/shared/switch.js';
|
|
46
|
+
export { default as _type } from './operators/shared/type.js';
|
|
47
|
+
export { default as _uri } from './operators/shared/uri.js';
|
|
48
|
+
export { default as _user } from './operators/shared/user.js';
|
|
49
|
+
export { default as _index } from './operators/client/_index.js';
|
|
50
|
+
export { default as _actions } from './operators/client/actions.js';
|
|
51
|
+
export { default as _base64 } from './operators/client/base64.js';
|
|
52
|
+
export { default as _event_log } from './operators/client/event_log.js';
|
|
53
|
+
export { default as _event } from './operators/client/event.js';
|
|
54
|
+
export { default as _global } from './operators/client/global.js';
|
|
55
|
+
export { default as _input } from './operators/client/input.js';
|
|
56
|
+
export { default as _location } from './operators/client/location.js';
|
|
57
|
+
export { default as _media } from './operators/client/media.js';
|
|
58
|
+
export { default as _menu } from './operators/client/menu.js';
|
|
59
|
+
export { default as _request_details } from './operators/client/request_details.js';
|
|
60
|
+
export { default as _request } from './operators/client/request.js';
|
|
61
|
+
export { default as _state } from './operators/client/state.js';
|
|
62
|
+
export { default as _url_query } from './operators/client/url_query.js';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2023 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 as _and } from './operators/shared/and.js';
|
|
16
|
+
export { default as _args } from './operators/shared/args.js';
|
|
17
|
+
export { default as _array } from './operators/shared/array.js';
|
|
18
|
+
export { default as _date } from './operators/shared/date.js';
|
|
19
|
+
export { default as _divide } from './operators/shared/divide.js';
|
|
20
|
+
export { default as _eq } from './operators/shared/eq.js';
|
|
21
|
+
export { default as _function } from './operators/shared/function.js';
|
|
22
|
+
export { default as _get } from './operators/shared/get.js';
|
|
23
|
+
export { default as _gt } from './operators/shared/gt.js';
|
|
24
|
+
export { default as _gte } from './operators/shared/gte.js';
|
|
25
|
+
export { default as _if_none } from './operators/shared/if_none.js';
|
|
26
|
+
export { default as _if } from './operators/shared/if.js';
|
|
27
|
+
export { default as _intl } from './operators/shared/intl.js';
|
|
28
|
+
export { default as _json } from './operators/shared/json.js';
|
|
29
|
+
export { default as _log } from './operators/shared/log.js';
|
|
30
|
+
export { default as _lt } from './operators/shared/lt.js';
|
|
31
|
+
export { default as _lte } from './operators/shared/lte.js';
|
|
32
|
+
export { default as _math } from './operators/shared/math.js';
|
|
33
|
+
export { default as _ne } from './operators/shared/ne.js';
|
|
34
|
+
export { default as _not } from './operators/shared/not.js';
|
|
35
|
+
export { default as _number } from './operators/shared/number.js';
|
|
36
|
+
export { default as _object } from './operators/shared/object.js';
|
|
37
|
+
export { default as _operator } from './operators/shared/operator.js';
|
|
38
|
+
export { default as _or } from './operators/shared/or.js';
|
|
39
|
+
export { default as _product } from './operators/shared/product.js';
|
|
40
|
+
export { default as _random } from './operators/shared/random.js';
|
|
41
|
+
export { default as _regex } from './operators/shared/regex.js';
|
|
42
|
+
export { default as _string } from './operators/shared/string.js';
|
|
43
|
+
export { default as _subtract } from './operators/shared/subtract.js';
|
|
44
|
+
export { default as _sum } from './operators/shared/sum.js';
|
|
45
|
+
export { default as _switch } from './operators/shared/switch.js';
|
|
46
|
+
export { default as _type } from './operators/shared/type.js';
|
|
47
|
+
export { default as _uri } from './operators/shared/uri.js';
|
|
48
|
+
export { default as _user } from './operators/shared/user.js';
|
|
49
|
+
export { default as _base64 } from './operators/server/base64.js';
|
|
50
|
+
export { default as _hash } from './operators/server/hash.js';
|
|
51
|
+
export { default as _payload } from './operators/server/payload.js';
|
|
52
|
+
export { default as _secret } from './operators/server/secret.js';
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2023 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 * as client from './operatorsClient.js';
|
|
16
|
+
import * as server from './operatorsServer.js';
|
|
17
|
+
export default {
|
|
18
|
+
operators: {
|
|
19
|
+
client: Object.keys(client),
|
|
20
|
+
server: Object.keys(server)
|
|
21
|
+
}
|
|
22
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lowdefy/operators-js",
|
|
3
|
+
"version": "0.0.0-experimental-20231123101256",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"description": "",
|
|
6
|
+
"homepage": "https://lowdefy.com",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"lowdefy",
|
|
9
|
+
"lowdefy operator",
|
|
10
|
+
"lowdefy plugin"
|
|
11
|
+
],
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/lowdefy/lowdefy/issues"
|
|
14
|
+
},
|
|
15
|
+
"contributors": [
|
|
16
|
+
{
|
|
17
|
+
"name": "Sam Tolmay",
|
|
18
|
+
"url": "https://github.com/SamTolmay"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "Gerrie van Wyk",
|
|
22
|
+
"url": "https://github.com/Gervwyk"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "Johann Möller",
|
|
26
|
+
"url": "https://github.com/JohannMoller"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/lowdefy/lowdefy.git"
|
|
32
|
+
},
|
|
33
|
+
"type": "module",
|
|
34
|
+
"exports": {
|
|
35
|
+
".": "./dist/index.js",
|
|
36
|
+
"./operators/build": "./dist/operatorsBuild.js",
|
|
37
|
+
"./operators/client": "./dist/operatorsClient.js",
|
|
38
|
+
"./operators/server": "./dist/operatorsServer.js",
|
|
39
|
+
"./types": "./dist/types.js"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist/*"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@lowdefy/helpers": "0.0.0-experimental-20231123101256",
|
|
46
|
+
"@lowdefy/operators": "0.0.0-experimental-20231123101256"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@jest/globals": "28.1.3",
|
|
50
|
+
"@swc/cli": "0.1.63",
|
|
51
|
+
"@swc/core": "1.3.99",
|
|
52
|
+
"@swc/jest": "0.2.29",
|
|
53
|
+
"jest": "28.1.3",
|
|
54
|
+
"jest-environment-jsdom": "28.1.3"
|
|
55
|
+
},
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
|
|
61
|
+
"clean": "rm -rf dist",
|
|
62
|
+
"test": "TZ=UTC node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
63
|
+
}
|
|
64
|
+
}
|