@hyperone/cli-core
Advanced tools
Comparing version 2.0.11 to 2.0.12
import $RefParser from '@apidevtools/json-schema-ref-parser'; | ||
import {lazy_resolver} from './json_schema'; | ||
import { lazy_resolver } from './json_schema'; | ||
@@ -59,6 +59,13 @@ const spec = {}; | ||
spec, // TODO: Remove me | ||
getChild: (prefix) => Object | ||
.entries(spec.paths) | ||
.filter(([path]) => path.match(new RegExp(`^${prefix}/[a-zA-Z]+?$`))) | ||
.map(([path]) => ({ | ||
getChild: (prefix) => Array | ||
.from(new Set(Object | ||
.entries(spec.paths) | ||
.map(([path]) => { | ||
const match = path.match(new RegExp(`^(${prefix}/[a-zA-Z]+?)/({[A-Za-z_]+}){0,1}$`)); | ||
if (!match) return; | ||
return match[1]; | ||
}) | ||
.filter(x => !!x) | ||
)) | ||
.map((path) => ({ | ||
type: path.split('/').pop(), | ||
@@ -65,0 +72,0 @@ path, |
{ | ||
"name": "@hyperone/cli-core", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"@apidevtools/json-schema-ref-parser": "^9.0.3", | ||
"@hyperone/cli-framework": "^2.0.11", | ||
"@hyperone/cli-framework": "^2.0.12", | ||
"abort-controller": "^3.0.0", | ||
@@ -31,3 +31,3 @@ "camel-case": "^4.1.1", | ||
"license": "MIT", | ||
"gitHead": "8f6fcf0c65a08aa58646750179acef64eac2c5c2" | ||
"gitHead": "e22e39d7d1eb78f58a5a8fb2589ab7f825a04416" | ||
} |
@@ -11,3 +11,3 @@ import http from '../lib/http'; | ||
typeLabel: 'path', | ||
description: 'Passport file. Default value is ~/.h1/passport.json, if available.', | ||
description: 'Passport file. Default value is ```~/.h1/passport.json```, if available.', | ||
group: ['global'], | ||
@@ -14,0 +14,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27829
693