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

@useoptic/cli-config

Package Overview
Dependencies
Maintainers
3
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@useoptic/cli-config - npm Package Compare versions

Comparing version 8.2.8 to 8.2.9

build/deprecations.d.ts

3

build/index.d.ts

@@ -1,4 +0,3 @@

/// <reference types="debug" />
import { parseRule, parseIgnore, IIgnoreRunnable } from './helpers/ignore-parser';
export declare const warnDeprecation: import("debug").Debugger;
export { deprecationLogger } from './deprecations';
export interface IUserCredentials {

@@ -5,0 +4,0 @@ token: string;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -6,3 +25,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

Object.defineProperty(exports, "__esModule", { value: true });
exports.parseRule = exports.parseIgnore = exports.createFileTree = exports.getPathsRelativeToCwd = exports.pathsFromCwd = exports.getPathsRelativeToConfig = exports.TaskToStartConfig = exports.TaskNotFoundError = exports.TargetPortUnavailableError = exports.CommandExecutionFailure = exports.OpticConfigurationLocationFailure = exports.InvalidOpticConfigurationSyntaxError = exports.readTestingConfig = exports.readApiConfig = exports.warnDeprecation = void 0;
exports.parseRule = exports.parseIgnore = exports.createFileTree = exports.getPathsRelativeToCwd = exports.pathsFromCwd = exports.getPathsRelativeToConfig = exports.TaskToStartConfig = exports.TaskNotFoundError = exports.TargetPortUnavailableError = exports.CommandExecutionFailure = exports.OpticConfigurationLocationFailure = exports.InvalidOpticConfigurationSyntaxError = exports.readTestingConfig = exports.readApiConfig = void 0;
const fs_extra_1 = __importDefault(require("fs-extra"));

@@ -17,4 +36,5 @@ const path_1 = __importDefault(require("path"));

Object.defineProperty(exports, "parseIgnore", { enumerable: true, get: function () { return ignore_parser_1.parseIgnore; } });
const debug_1 = require("debug");
exports.warnDeprecation = debug_1.debug('optic-cli-config-deprecations');
const deprecations_1 = __importStar(require("./deprecations"));
var deprecations_2 = require("./deprecations");
Object.defineProperty(exports, "deprecationLogger", { enumerable: true, get: function () { return deprecations_2.deprecationLogger; } });
async function readApiConfig(configPath) {

@@ -59,3 +79,3 @@ const rawFile = await fs_extra_1.default.readFile(configPath);

if (task.proxy) {
exports.warnDeprecation(`task.proxy field has been deprecated in favor of task.targetUrl field.`);
deprecations_1.warnDeprecation(deprecations_1.default.taskProxyField);
}

@@ -62,0 +82,0 @@ const serviceProtocol = (targetUrl && targetUrl.protocol) || baseUrl.protocol || 'http:';

{
"name": "@useoptic/cli-config",
"version": "8.2.8",
"version": "8.2.9",
"scripts": {

@@ -5,0 +5,0 @@ "ws:test": "echo config",

Sorry, the diff of this file is not supported yet

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