New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2 to 1.0.3

6

index.js

@@ -36,8 +36,2 @@ import openapi from './lib/openapi';

program.addCommand(new Category({
name: 'config',
summary: 'Management of CLI configuration',
extensions: ['cli-ext-config'],
}));
return {

@@ -44,0 +38,0 @@ program,

20

lib/config.js

@@ -1,20 +0,10 @@

import { get, set, unset } from './transform';
export default (device) => {
const config = device.configLoad() || {
parameter: {
location: {
value: 'pl-waw-1',
},
},
};
const api = {};
api.get = async (key, defaultValue) => get(await config, key, defaultValue);
api.set = async (key, value) => set(await config, key, value);
api.unset = async key => unset(await config, key);
api.store = async () => device.configSave(await config);
api.all = () => config;
api.get = (key, defaultValue) => device.configGet(key, defaultValue);
api.set = (key, value) => device.configSet(key, value);
api.unset = key => device.configUnset(key);
api.store = () => device.configStore();
api.all = () => device.configLoad();
return api;
};

@@ -6,3 +6,3 @@ import fetch from 'node-fetch';

const baseRequest = async (method, uri, {json, headers, body, query}={}) => {
const baseRequest = async (method, uri, { json, headers, body, query } = {}) => {
headers = {

@@ -17,2 +17,5 @@ ...headers,

}
if (query) {
uri = `${uri}?${new URLSearchParams(query)}`;
}

@@ -19,0 +22,0 @@ uri = device.mapUrl(uri);

{
"name": "@hyperone/cli-core",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

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

"@apidevtools/json-schema-ref-parser": "^9.0.3",
"@hyperone/cli-framework": "^1.0.2",
"@hyperone/cli-framework": "^1.0.3",
"camel-case": "^4.1.1",

@@ -30,3 +30,3 @@ "command-line-args": "^5.1.1",

"license": "MIT",
"gitHead": "a1f4646802ff375cf76525b67a8defdfba6cc5a4"
"gitHead": "a29a3896594a8d151caddae859dbbd9a50969fe6"
}
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