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.0186a87.0 to 0.3.0--canary.116.11d0cf6.0

23

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:

@@ -404,0 +425,0 @@ return "#f00";

@@ -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:

@@ -400,0 +421,0 @@ return "#f00";

5

dist/theme.d.ts

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

ActiveTabBottomBorder = 11,
LineNumberForeground = 12
LineNumberForeground = 12,
InputForeground = 13,
InputBackground = 14,
InputBorder = 15
}

@@ -41,0 +44,0 @@ declare type Color = string | undefined;

{
"name": "@code-hike/utils",
"version": "0.3.0--canary.116.0186a87.0",
"version": "0.3.0--canary.116.11d0cf6.0",
"main": "dist/index.cjs.js",

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

"devDependencies": {
"@code-hike/script": "0.3.0--canary.116.0186a87.0",
"@code-hike/script": "0.3.0--canary.116.11d0cf6.0",
"@types/jest": "^24.0.15",

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

},
"gitHead": "0186a8722f3e14c54e147a04d3911ba83ba817e6"
"gitHead": "11d0cf6b389c59c2064aea2dc38517699b9d7620"
}
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