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

@channel.io/bezier-codemod

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@channel.io/bezier-codemod - npm Package Compare versions

Comparing version 0.5.0-alpha.6 to 0.5.0-alpha.7

dist/transforms/v2-enum-member-to-string-literal/transform.d.ts

6

dist/App.js

@@ -5,5 +5,5 @@ import React, { useCallback, useEffect, useState, } from 'react';

import project from './project.js';
import enumMemberToStringLiteral from './transforms/enum-member-to-string-literal/transform.js';
import iconNameToBezierIcon from './transforms/icon-name-to-bezier-icons/transform.js';
import iconsToBezierIcons from './transforms/icons-to-bezier-icons/transform.js';
import enumMemberToStringLiteral from './transforms/v2-enum-member-to-string-literal/transform.js';
import foundationToCssVariableBorder from './transforms/v2-foundation-to-css-variable/border.js';

@@ -35,3 +35,3 @@ import foundationToCssVariableElevation from './transforms/v2-foundation-to-css-variable/elevation.js';

Option["IconNameToBezierIcon"] = "icon-name-to-bezier-icon";
Option["EnumMemberToStringLiteral"] = "enum-member-to-string-literal";
Option["V2EnumMemberToStringLiteral"] = "v2-enum-member-to-string-literal";
Option["V2FoundationToCssVariable"] = "v2-foundation-to-css-variable";

@@ -57,3 +57,3 @@ Option["V2FoundationToCssVariableTheme"] = "v2-foundation-to-css-variable-theme";

[Option.IconNameToBezierIcon]: iconNameToBezierIcon,
[Option.EnumMemberToStringLiteral]: enumMemberToStringLiteral,
[Option.V2EnumMemberToStringLiteral]: enumMemberToStringLiteral,
[Option.V2FoundationToCssVariableTheme]: foundationToCssVariableTheme,

@@ -60,0 +60,0 @@ [Option.V2FoundationToCssVariableBorder]: foundationToCssVariableBorder,

import { type SourceFile } from 'ts-morph';
type Name = string;
type Member = string;
type Value = string;
type Value = string | number;
export type EnumTransformMap = Record<Name, Record<Member, Value>>;
export declare const transformEnumToStringLiteralInBezier: (sourceFile: SourceFile, enumTransforms: EnumTransformMap) => true | undefined;
export {};
import { type PropertyAccessExpression } from 'ts-morph';
export declare const renameEnumMember: (node: PropertyAccessExpression, to: string) => void;
export declare const renameEnumMember: (node: PropertyAccessExpression, to: string | number) => void;
{
"name": "@channel.io/bezier-codemod",
"version": "0.5.0-alpha.6",
"description": "Codemod transformations to help upgrade app using Bezier design system.",
"repository": {
"type": "git",
"url": "https://github.com/channel-io/bezier-react",
"directory": "packages/bezier-codemod"
},
"author": "Channel Corp.",
"license": "Apache-2.0",
"bin": "dist/cli.js",
"type": "module",
"engines": {
"node": ">=16"
},
"scripts": {
"build": "tsc --build --verbose",
"dev": "tsc --watch",
"lint": "TIMING=1 eslint --cache .",
"typecheck": "tsc --noEmit",
"test": "jest",
"clean": "rm -rf dist node_modules .turbo .eslintcache .jestcache"
},
"files": [
"dist"
],
"dependencies": {
"@inkjs/ui": "^1.0.0",
"ink": "^4.4.1",
"meow": "^12.1.1",
"react": "^18.2.0",
"ts-morph": "^19.0.0"
},
"devDependencies": {
"@types/node": "^20.6.0",
"@types/react": "^18.2.21",
"eslint-config-bezier": "workspace:*",
"tsconfig": "workspace:*"
},
"keywords": [
"codemod",
"channel"
]
"name": "@channel.io/bezier-codemod",
"version": "0.5.0-alpha.7",
"description": "Codemod transformations to help upgrade app using Bezier design system.",
"repository": {
"type": "git",
"url": "https://github.com/channel-io/bezier-react",
"directory": "packages/bezier-codemod"
},
"author": "Channel Corp.",
"license": "Apache-2.0",
"bin": "dist/cli.js",
"type": "module",
"engines": {
"node": ">=16"
},
"scripts": {
"build": "tsc --build --verbose",
"dev": "tsc --watch",
"lint": "TIMING=1 eslint --cache .",
"typecheck": "tsc --noEmit",
"test": "jest",
"clean": "rm -rf dist node_modules .turbo .eslintcache .jestcache"
},
"files": [
"dist"
],
"dependencies": {
"@inkjs/ui": "^1.0.0",
"ink": "^4.4.1",
"meow": "^13.2.0",
"react": "^18.2.0",
"ts-morph": "^21.0.1"
},
"devDependencies": {
"@types/node": "^20.11.20",
"@types/react": "^18.2.59",
"eslint-config-bezier": "workspace:*",
"tsconfig": "workspace:*"
},
"keywords": [
"codemod",
"channel"
]
}

@@ -53,3 +53,3 @@ # Bezier Codemod

**`enum-member-to-string-literal`**
**`v2-enum-member-to-string-literal`**

@@ -56,0 +56,0 @@ Replace deprecated enum usage to string literal.

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