@webiny/api-headless-cms-workflows 6.4.11 → 6.4.12-beta.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/package.json +13 -13
- package/utils/modelAllowed.js +1 -1
- package/utils/modelAllowed.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-headless-cms-workflows",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.12-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@webiny/api": "6.4.
|
|
21
|
-
"@webiny/api-core": "6.4.
|
|
22
|
-
"@webiny/api-headless-cms": "6.4.
|
|
23
|
-
"@webiny/api-workflows": "6.4.
|
|
24
|
-
"@webiny/error": "6.4.
|
|
25
|
-
"@webiny/feature": "6.4.
|
|
20
|
+
"@webiny/api": "6.4.12-beta.1",
|
|
21
|
+
"@webiny/api-core": "6.4.12-beta.1",
|
|
22
|
+
"@webiny/api-headless-cms": "6.4.12-beta.1",
|
|
23
|
+
"@webiny/api-workflows": "6.4.12-beta.1",
|
|
24
|
+
"@webiny/error": "6.4.12-beta.1",
|
|
25
|
+
"@webiny/feature": "6.4.12-beta.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@webiny/build-tools": "6.4.
|
|
29
|
-
"@webiny/plugins": "6.4.
|
|
30
|
-
"@webiny/project-utils": "6.4.
|
|
31
|
-
"@webiny/testing": "6.4.
|
|
32
|
-
"@webiny/wcp": "6.4.
|
|
28
|
+
"@webiny/build-tools": "6.4.12-beta.1",
|
|
29
|
+
"@webiny/plugins": "6.4.12-beta.1",
|
|
30
|
+
"@webiny/project-utils": "6.4.12-beta.1",
|
|
31
|
+
"@webiny/testing": "6.4.12-beta.1",
|
|
32
|
+
"@webiny/wcp": "6.4.12-beta.1",
|
|
33
33
|
"typescript": "6.0.3",
|
|
34
|
-
"vitest": "
|
|
34
|
+
"vitest": "5.0.1"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
package/utils/modelAllowed.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CMS_MODEL_SINGLETON_TAG } from "@webiny/api-headless-cms/constants.js";
|
|
2
2
|
const isModelAllowed = (model)=>{
|
|
3
3
|
if (model.isPrivate) return false;
|
|
4
|
-
if (model.tags?.includes(CMS_MODEL_SINGLETON_TAG)) return false;
|
|
4
|
+
else if (model.tags?.includes(CMS_MODEL_SINGLETON_TAG)) return false;
|
|
5
5
|
return true;
|
|
6
6
|
};
|
|
7
7
|
export { isModelAllowed };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils/modelAllowed.js","sources":["../../src/utils/modelAllowed.ts"],"sourcesContent":["import type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\nimport { CMS_MODEL_SINGLETON_TAG } from \"@webiny/api-headless-cms/constants.js\";\n\nexport const isModelAllowed = (model: Pick<CmsModel, \"isPrivate\" | \"tags\">): boolean => {\n if (model.isPrivate) {\n return false;\n }\n // TODO remove when we allow singleton models to have workflows.\n else if (model.tags?.includes(CMS_MODEL_SINGLETON_TAG)) {\n return false;\n }\n return true;\n};\n"],"names":["isModelAllowed","model","CMS_MODEL_SINGLETON_TAG"],"mappings":";AAGO,MAAMA,iBAAiB,CAACC;IAC3B,IAAIA,MAAM,SAAS,EACf,OAAO;
|
|
1
|
+
{"version":3,"file":"utils/modelAllowed.js","sources":["../../src/utils/modelAllowed.ts"],"sourcesContent":["import type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\nimport { CMS_MODEL_SINGLETON_TAG } from \"@webiny/api-headless-cms/constants.js\";\n\nexport const isModelAllowed = (model: Pick<CmsModel, \"isPrivate\" | \"tags\">): boolean => {\n if (model.isPrivate) {\n return false;\n }\n // TODO remove when we allow singleton models to have workflows.\n else if (model.tags?.includes(CMS_MODEL_SINGLETON_TAG)) {\n return false;\n }\n return true;\n};\n"],"names":["isModelAllowed","model","CMS_MODEL_SINGLETON_TAG"],"mappings":";AAGO,MAAMA,iBAAiB,CAACC;IAC3B,IAAIA,MAAM,SAAS,EACf,OAAO;SAGN,IAAIA,MAAM,IAAI,EAAE,SAASC,0BAC1B,OAAO;IAEX,OAAO;AACX"}
|