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.126.19a4397.0 to 0.3.0--canary.129.45448ed.0

11

dist/index.cjs.js

@@ -434,2 +434,12 @@ 'use strict';

}
function getColorScheme(theme) {
var themeType = getThemeType(theme);
if (themeType === "dark") {
return "dark";
}
else if (themeType === "light") {
return "light";
}
return undefined;
}
function transparent(color, opacity) {

@@ -471,2 +481,3 @@ var _opacity = Math.round(Math.min(Math.max(opacity || 1, 0), 1) * 255);

exports.getColor = getColor;
exports.getColorScheme = getColorScheme;
exports.getFocusIndexes = getFocusIndexes;

@@ -473,0 +484,0 @@ exports.hasColumns = hasColumns;

12

dist/index.esm.js

@@ -430,2 +430,12 @@ function map(tween, fn) {

}
function getColorScheme(theme) {
var themeType = getThemeType(theme);
if (themeType === "dark") {
return "dark";
}
else if (themeType === "light") {
return "light";
}
return undefined;
}
function transparent(color, opacity) {

@@ -465,2 +475,2 @@ var _opacity = Math.round(Math.min(Math.max(opacity || 1, 0), 1) * 255);

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

@@ -46,2 +46,3 @@ /**

export declare function getColor(theme: EditorTheme, colorName: ColorName): Color;
export declare function getColorScheme(theme: EditorTheme): string | undefined;
export declare function transparent(color: Color, opacity: number): Color;

@@ -48,0 +49,0 @@ export declare function getCodeColors(theme: EditorTheme): {

6

package.json
{
"name": "@code-hike/utils",
"version": "0.3.0--canary.126.19a4397.0",
"version": "0.3.0--canary.129.45448ed.0",
"main": "dist/index.cjs.js",

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

"devDependencies": {
"@code-hike/script": "0.3.0--canary.126.19a4397.0",
"@code-hike/script": "0.3.0--canary.129.45448ed.0",
"@types/jest": "^24.0.15",

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

},
"gitHead": "19a439797d7dc2abd29bc671d282b1022540eb0e"
"gitHead": "45448ed8ae120c2c40cb7a951c6bc448b5d31301"
}
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