@lowdefy/operators-uuid 4.0.0-alpha.26 → 4.0.0-alpha.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/operators-uuid",
3
- "version": "4.0.0-alpha.26",
3
+ "version": "4.0.0-alpha.29",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -36,15 +36,14 @@
36
36
  "dist/*"
37
37
  ],
38
38
  "scripts": {
39
- "build": "yarn swc",
39
+ "build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
40
40
  "clean": "rm -rf dist",
41
- "prepare": "yarn build",
42
- "swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
41
+ "prepublishOnly": "pnpm build",
43
42
  "test": "jest --coverage"
44
43
  },
45
44
  "dependencies": {
46
- "@lowdefy/helpers": "4.0.0-alpha.26",
47
- "@lowdefy/operators": "4.0.0-alpha.26",
45
+ "@lowdefy/helpers": "4.0.0-alpha.29",
46
+ "@lowdefy/operators": "4.0.0-alpha.29",
48
47
  "uuid": "8.3.2"
49
48
  },
50
49
  "devDependencies": {
@@ -57,5 +56,5 @@
57
56
  "publishConfig": {
58
57
  "access": "public"
59
58
  },
60
- "gitHead": "ef60e34f87b95204d103db4a65e4ba3c54a5a1b5"
59
+ "gitHead": "621a191ebc0a1569ee6669dc74c12f8be5a8c7f3"
61
60
  }
@@ -1,65 +0,0 @@
1
- /*
2
- Copyright 2020-2022 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 '@lowdefy/operators';
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,15 +0,0 @@
1
- /*
2
- Copyright 2020-2022 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 _uuid } from './operators/shared/uuid.js';
@@ -1,15 +0,0 @@
1
- /*
2
- Copyright 2020-2022 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 _uuid } from './operators/shared/uuid.js';
package/dist/types.js DELETED
@@ -1,22 +0,0 @@
1
- /*
2
- Copyright 2020-2022 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
- };