Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clerc/utils

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clerc/utils - npm Package Compare versions

Comparing version 0.19.0 to 0.20.0

2

dist/index.js
const toArray = (a) => Array.isArray(a) ? a : [a];
const camelCase = (s) => s.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
const kebabCase = (s) => s.replace(/([A-Z])/g, (_, c) => `-${c.toLowerCase()}`);
const gracefulFlagName = (n) => n.length <= 1 ? `-${n}` : `--${n}`;
const gracefulFlagName = (n) => n.length <= 1 ? `-${n}` : `--${kebabCase(n)}`;
const gracefulVersion = (v) => v.length === 0 ? "" : v.startsWith("v") ? v : `v${v}`;

@@ -6,0 +6,0 @@ const arrayEquals = (arr1, arr2) => {

{
"name": "@clerc/utils",
"version": "0.19.0",
"version": "0.20.0",
"author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",

@@ -5,0 +5,0 @@ "description": "Clerc utils",

Sorry, the diff of this file is not supported yet

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