New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@code-hike/utils

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-hike/utils - npm Package Compare versions

Comparing version 0.3.0--canary.116.9c7c33a.0 to 0.3.0--canary.116.ba9be7d.0

24

dist/index.cjs.js

@@ -317,6 +317,10 @@ 'use strict';

ColorName[ColorName["LineNumberForeground"] = 12] = "LineNumberForeground";
ColorName[ColorName["InputForeground"] = 13] = "InputForeground";
ColorName[ColorName["InputBackground"] = 14] = "InputBackground";
ColorName[ColorName["InputBorder"] = 15] = "InputBorder";
})(exports.ColorName || (exports.ColorName = {}));
var contrastBorder = "#6FC3DF";
// defaults from: https://github.com/microsoft/vscode/blob/main/src/vs/workbench/common/theme.ts
// and: https://github.com/microsoft/vscode/blob/main/src/vs/editor/common/view/editorColorRegistry.ts
// and: https://github.com/microsoft/vscode/blob/main/src/vs/editor/common/core/editorColorRegistry.ts
// and: https://github.com/microsoft/vscode/blob/main/src/vs/platform/theme/common/colorRegistry.ts
// keys from : https://code.visualstudio.com/api/references/theme-color#editor-groups-tabs

@@ -402,2 +406,19 @@ function getColor(theme, colorName) {

}));
case exports.ColorName.InputBackground:
return (colors["input.background"] ||
getDefault(theme, {
dark: "#3C3C3C",
light: "#fffffe",
hc: "#000000",
}));
case exports.ColorName.InputForeground:
return (colors["input.foreground"] ||
getColor(theme, exports.ColorName.EditorForeground));
case exports.ColorName.InputBorder:
return (colors["input.border"] ||
getDefault(theme, {
dark: undefined,
light: undefined,
hc: contrastBorder,
}));
default:

@@ -453,2 +474,3 @@ return "#f00";

exports.splitParts = splitParts;
exports.transparent = transparent;
exports.withDefault = withDefault;

@@ -313,6 +313,10 @@ function map(tween, fn) {

ColorName[ColorName["LineNumberForeground"] = 12] = "LineNumberForeground";
ColorName[ColorName["InputForeground"] = 13] = "InputForeground";
ColorName[ColorName["InputBackground"] = 14] = "InputBackground";
ColorName[ColorName["InputBorder"] = 15] = "InputBorder";
})(ColorName || (ColorName = {}));
var contrastBorder = "#6FC3DF";
// defaults from: https://github.com/microsoft/vscode/blob/main/src/vs/workbench/common/theme.ts
// and: https://github.com/microsoft/vscode/blob/main/src/vs/editor/common/view/editorColorRegistry.ts
// and: https://github.com/microsoft/vscode/blob/main/src/vs/editor/common/core/editorColorRegistry.ts
// and: https://github.com/microsoft/vscode/blob/main/src/vs/platform/theme/common/colorRegistry.ts
// keys from : https://code.visualstudio.com/api/references/theme-color#editor-groups-tabs

@@ -398,2 +402,19 @@ function getColor(theme, colorName) {

}));
case ColorName.InputBackground:
return (colors["input.background"] ||
getDefault(theme, {
dark: "#3C3C3C",
light: "#fffffe",
hc: "#000000",
}));
case ColorName.InputForeground:
return (colors["input.foreground"] ||
getColor(theme, ColorName.EditorForeground));
case ColorName.InputBorder:
return (colors["input.border"] ||
getDefault(theme, {
dark: undefined,
light: undefined,
hc: contrastBorder,
}));
default:

@@ -437,2 +458,2 @@ return "#f00";

export { ColorName, getCodeColors, getColor, getFocusIndexes, hasColumns, map, mapFocusToLineNumbers, mapWithDefault, mergeFocus, parseExtremes, parsePartToObject, relativeToAbsolute, splitParts, withDefault };
export { ColorName, getCodeColors, getColor, getFocusIndexes, hasColumns, map, mapFocusToLineNumbers, mapWithDefault, mergeFocus, parseExtremes, parsePartToObject, relativeToAbsolute, splitParts, transparent, withDefault };

@@ -38,6 +38,10 @@ /**

ActiveTabBottomBorder = 11,
LineNumberForeground = 12
LineNumberForeground = 12,
InputForeground = 13,
InputBackground = 14,
InputBorder = 15
}
declare type Color = string | undefined;
export declare function getColor(theme: EditorTheme, colorName: ColorName): Color;
export declare function transparent(color: Color, opacity: number): Color;
export declare function getCodeColors(theme: EditorTheme): {

@@ -44,0 +48,0 @@ fg: string;

6

package.json
{
"name": "@code-hike/utils",
"version": "0.3.0--canary.116.9c7c33a.0",
"version": "0.3.0--canary.116.ba9be7d.0",
"main": "dist/index.cjs.js",

@@ -16,3 +16,3 @@ "typings": "dist/index.d.ts",

"devDependencies": {
"@code-hike/script": "0.3.0--canary.116.9c7c33a.0",
"@code-hike/script": "0.3.0--canary.116.ba9be7d.0",
"@types/jest": "^24.0.15",

@@ -41,3 +41,3 @@ "@types/react": "^17.0.2",

},
"gitHead": "9c7c33a1dea75eaa3bda350f7e95cfee102f23da"
"gitHead": "ba9be7d9dd7e3e6a7d8278d815c606eb7e4c6a12"
}
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