Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hyperone/cli-core

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperone/cli-core - npm Package Compare versions

Comparing version 1.0.14 to 1.0.16

lib/json_schema.js

14

lib/openapi.js
import fetch from 'node-fetch';
import $RefParser from '@apidevtools/json-schema-ref-parser';
import {lazy_resolver} from './json_schema';

@@ -14,10 +15,17 @@ const spec = {};

let schema;
const openapiUrl = options.openapiUrl || 'https://api.hyperone.com/v2/openapi.json';
if (options.openapiSpec) {
schema = options.openapiSpec;
} else {
const url = options.openapiUrl || 'https://api.hyperone.com/v2/openapi.json';
const resp = await fetch(url);
const resp = await fetch(openapiUrl);
schema = await resp.json();
}
Object.assign(spec, await $RefParser.dereference(schema));
Object.assign(spec, await $RefParser.dereference(schema, {
resolve: {
lazy: lazy_resolver(openapiUrl),
file: false,
http: false,
},
}));
},

@@ -24,0 +32,0 @@ getNamespaces: () => {

{
"name": "@hyperone/cli-core",
"version": "1.0.14",
"version": "1.0.16",
"description": "",

@@ -29,3 +29,3 @@ "main": "index.js",

"license": "MIT",
"gitHead": "89c15fc66c5ac441bd909c77bb9e05fc8eb433ef"
"gitHead": "f965f99bb528f0d8a3aa513fe37d64627c6361d9"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc