insomnia-common
Advanced tools
Comparing version 2.4.1 to 2.4.2-alpha.0
import { HttpVersion } from '../constants'; | ||
import { HotKeyRegistry } from './hotkeys'; | ||
declare type Sides = 'top' | 'bottom' | 'left' | 'right'; | ||
declare type WindowSides = `window-${Sides}`; | ||
declare type SidebarSides = `sidebar-${'edge' | 'indicator'}`; | ||
export declare type EnvironmentHighlightColorStyle = WindowSides | SidebarSides; | ||
export declare enum UpdateChannel { | ||
stable = "stable", | ||
beta = "beta" | ||
} | ||
/** Gets a subset of Settings where the values match a condition */ | ||
export declare type SettingsOfType<MatchType> = NonNullable<{ | ||
[Key in keyof Settings]: Settings[Key] extends MatchType ? Key : never; | ||
}[keyof Settings]>; | ||
export interface PluginConfig { | ||
@@ -29,3 +41,3 @@ disabled: boolean; | ||
enableAnalytics: boolean; | ||
environmentHighlightColorStyle: string; | ||
environmentHighlightColorStyle: EnvironmentHighlightColorStyle; | ||
filterResponsesByEnv: boolean; | ||
@@ -39,3 +51,2 @@ followRedirects: boolean; | ||
hasPromptedAnalytics: boolean; | ||
hasPromptedOnboarding: boolean; | ||
hasPromptedToMigrateFromDesigner: boolean; | ||
@@ -45,3 +56,3 @@ hotKeyRegistry: HotKeyRegistry; | ||
httpsProxy: string; | ||
isVariableUncovered?: boolean; | ||
showVariableSourceAndValue: boolean; | ||
lightTheme: string; | ||
@@ -64,3 +75,3 @@ lineWrapping?: boolean; | ||
updateAutomatically: boolean; | ||
updateChannel: string; | ||
updateChannel: UpdateChannel; | ||
useBulkHeaderEditor: boolean; | ||
@@ -71,2 +82,3 @@ useBulkParametersEditor: boolean; | ||
} | ||
export {}; | ||
//# sourceMappingURL=settings.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UpdateChannel = void 0; | ||
var UpdateChannel; | ||
(function (UpdateChannel) { | ||
UpdateChannel["stable"] = "stable"; | ||
UpdateChannel["beta"] = "beta"; | ||
})(UpdateChannel = exports.UpdateChannel || (exports.UpdateChannel = {})); | ||
//# sourceMappingURL=settings.js.map |
{ | ||
"name": "insomnia-common", | ||
"version": "2.4.1", | ||
"version": "2.4.2-alpha.0", | ||
"homepage": "https://insomnia.rest", | ||
@@ -20,3 +20,3 @@ "description": "Top-level entities and utilities for Insomnia", | ||
"bootstrap": "npm run build", | ||
"lint": "eslint . --ext .js,.ts,.tsx", | ||
"lint": "eslint . --ext .js,.ts,.tsx --cache", | ||
"lint:fix": "npm run lint -- --fix", | ||
@@ -32,3 +32,3 @@ "clean": "tsc --build tsconfig.build.json --clean", | ||
}, | ||
"gitHead": "dc442174c0fa62c9d3d72801112b6c153920f453" | ||
"gitHead": "71853f77afff202d2c4b8f1152a979f3ed65c7a9" | ||
} |
import { HttpVersion } from '../constants'; | ||
import { HotKeyRegistry } from './hotkeys'; | ||
type Sides = 'top' | 'bottom' | 'left' | 'right'; | ||
type WindowSides = `window-${Sides}`; | ||
type SidebarSides = `sidebar-${'edge' | 'indicator'}`; | ||
export type EnvironmentHighlightColorStyle = WindowSides | SidebarSides; | ||
export enum UpdateChannel { | ||
stable = 'stable', | ||
beta = 'beta', | ||
} | ||
/** Gets a subset of Settings where the values match a condition */ | ||
export type SettingsOfType<MatchType> = NonNullable<{ | ||
[Key in keyof Settings]: Settings[Key] extends MatchType ? Key : never; | ||
}[keyof Settings]>; | ||
export interface PluginConfig { | ||
@@ -35,3 +50,3 @@ disabled: boolean; | ||
enableAnalytics: boolean; | ||
environmentHighlightColorStyle: string; | ||
environmentHighlightColorStyle: EnvironmentHighlightColorStyle; | ||
filterResponsesByEnv: boolean; | ||
@@ -45,3 +60,2 @@ followRedirects: boolean; | ||
hasPromptedAnalytics: boolean; | ||
hasPromptedOnboarding: boolean; | ||
hasPromptedToMigrateFromDesigner: boolean; | ||
@@ -51,3 +65,3 @@ hotKeyRegistry: HotKeyRegistry; | ||
httpsProxy: string; | ||
isVariableUncovered?: boolean; | ||
showVariableSourceAndValue: boolean; | ||
lightTheme: string; | ||
@@ -71,3 +85,3 @@ lineWrapping?: boolean; | ||
updateAutomatically: boolean; | ||
updateChannel: string; | ||
updateChannel: UpdateChannel; | ||
useBulkHeaderEditor: boolean; | ||
@@ -74,0 +88,0 @@ useBulkParametersEditor: boolean; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
101247
322
1