@redocly/realm 0.128.0 → 0.128.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/CHANGELOG.md +13 -0
- package/dist/client/runtime/generated/browser-plugins.js +12 -0
- package/dist/client/runtime/generated/package.json +1 -0
- package/dist/client/runtime/generated/routes.js +6 -0
- package/dist/client/runtime/generated/templates.js +27 -0
- package/dist/server/plugins/scorecard-classic/loaders/scorecard.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @redocly/realm
|
|
2
2
|
|
|
3
|
+
## 0.128.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7a73a9957a: Fixed a bug where scorecard custom targets did not match.
|
|
8
|
+
- fe3253dabb: Fixed an issue where the product picker was not properly aligned in the navbar.
|
|
9
|
+
- Updated dependencies [fe3253dabb]
|
|
10
|
+
- @redocly/theme@0.60.1
|
|
11
|
+
- @redocly/asyncapi-docs@1.5.1
|
|
12
|
+
- @redocly/graphql-docs@1.5.0
|
|
13
|
+
- @redocly/openapi-docs@3.16.1
|
|
14
|
+
- @redocly/portal-plugin-mock-server@0.13.1
|
|
15
|
+
|
|
3
16
|
## 0.128.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@redocly/portal/ssr-entry"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const templates = {
|
|
2
|
+
"scorecardClassic": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/packages/portal/products/realm/dist/server/plugins/scorecard-classic/template/index.js"),
|
|
3
|
+
|
|
4
|
+
"openapi_docs": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/packages/portal/products/realm/dist/server/plugins/openapi-docs/template/OpenAPIDocs.js"),
|
|
5
|
+
|
|
6
|
+
"markdown": () => import("@redocly/theme/core/templates/Markdown"),
|
|
7
|
+
|
|
8
|
+
"invite": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/packages/portal/products/realm/dist/client/app/pages/Invite/Invite.js"),
|
|
9
|
+
|
|
10
|
+
"graphql_docs": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/packages/portal/products/realm/dist/server/plugins/graphql-docs/template/GraphQLDocs.js"),
|
|
11
|
+
|
|
12
|
+
"error": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/packages/portal/products/realm/dist/client/app/Error/ErrorDetails.js"),
|
|
13
|
+
|
|
14
|
+
"compilation-error": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/packages/portal/products/realm/dist/client/app/pages/CompilationError/CompilationError.js"),
|
|
15
|
+
|
|
16
|
+
"changelog.page.tsx": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/docs/public/changelog.page.tsx"),
|
|
17
|
+
|
|
18
|
+
"catalogClassic": () => import("@redocly/theme/components/CatalogClassic/CatalogClassic"),
|
|
19
|
+
|
|
20
|
+
"asyncapi_docs": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/packages/portal/products/realm/dist/server/plugins/asyncapi-docs/template/AsyncApiDocs.js"),
|
|
21
|
+
|
|
22
|
+
"404": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/packages/portal/products/realm/dist/client/app/pages/404/404.js"),
|
|
23
|
+
|
|
24
|
+
"403OIDC": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/packages/portal/products/realm/dist/client/app/pages/403/403OIDC.js"),
|
|
25
|
+
|
|
26
|
+
"403": () => import("/Users/volodymyrrutskyi/repos/redocly/redocly/packages/portal/products/realm/dist/client/app/pages/403/403.js"),
|
|
27
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import w from"node:path";import{reporter as x}from"../../../tools/notifiers/reporter.js";import{lintDefinition as h}from"../lint.js";import{ExternalResolver as
|
|
1
|
+
import w from"node:path";import{reporter as x}from"../../../tools/notifiers/reporter.js";import{lintDefinition as h}from"../lint.js";import{ExternalResolver as b}from"../../../fs/utils/external-ref-resolver.js";const v="Non-conformant";async function O(o,e){const{data:{levelsConfig:s,configs:n,targets:t}}=await e.cache.load("","scorecard-config"),a={};let i=v,f=!1;const c=await e.fs.read(o),{data:l}=await e.cache.load(o,"yaml"),m=new b(e.fs);let g={};if(t.length){const r=await e.getConfig(w.posix.dirname(o)),d=l?.info?.["x-metadata"],p={title:l.info.title,version:l.info.version,...d,...r.metadata};g=(await k(t,p))?.configs||{}}for(const r of s){const d=await h({parsed:l,content:c,relativePath:o},g[r.name]||n[r.name],e,m);a[r.name]=d,d.errors===0&&!f?i=r.name:f=!0}let u=s.findIndex(r=>r.name===i);return{levels:a,scorecardLevel:i,scorecardLevelIdx:u+1}}async function k(o,e){if(o)for(const s of o){let n=!0;for(const[t,a]of Object.entries(s.where?.metadata||{}))if(String(a).match(/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}Z)?\/(\d{4}-\d{2}-\d{2})?$/)){if(!e[t]){n=!1;break}const[i,f]=a.split("/"),c=new Date(e[t]);if(c<new Date(i)||f&&c>new Date(f)){n=!1;break}}else if(String(a).match(/^\/.*\//)){if(!e[t]){n=!1;break}try{if(!new RegExp(a.slice(1,-1)).test(e[t])){n=!1;break}}catch{await x.panicOnBuild(`Invalid regex in scorecard target "${t}": ${a}`),n=!1;break}}else if(e[t]!==a){n=!1;break}if(n)return s}}export{k as getTarget,O as scorecardLoader};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/realm",
|
|
3
|
-
"version": "0.128.
|
|
3
|
+
"version": "0.128.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -92,14 +92,14 @@
|
|
|
92
92
|
"xml-crypto": "6.0.1",
|
|
93
93
|
"xpath": "0.0.34",
|
|
94
94
|
"yaml-ast-parser": "0.0.43",
|
|
95
|
-
"@redocly/asyncapi-docs": "1.5.0",
|
|
96
95
|
"@redocly/config": "0.41.0",
|
|
97
|
-
"@redocly/
|
|
98
|
-
"@redocly/
|
|
99
|
-
"@redocly/
|
|
96
|
+
"@redocly/graphql-docs": "1.5.0",
|
|
97
|
+
"@redocly/openapi-docs": "3.16.1",
|
|
98
|
+
"@redocly/portal-plugin-mock-server": "0.13.1",
|
|
99
|
+
"@redocly/theme": "0.60.1",
|
|
100
100
|
"@redocly/portal-legacy-ui": "0.11.0",
|
|
101
|
-
"@redocly/
|
|
102
|
-
"@redocly/
|
|
101
|
+
"@redocly/asyncapi-docs": "1.5.1",
|
|
102
|
+
"@redocly/realm-asyncapi-sdk": "0.6.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"react": "^19.2.1",
|