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

@waiting/shared-types

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waiting/shared-types - npm Package Compare versions

Comparing version 5.6.0 to 5.6.1

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [5.6.1](https://github.com/waitingsong/shared-types/compare/v5.6.0...v5.6.1) (2021-02-08)
### Bug Fixes
* **types:** FormatCapitalize and FormatCamelCase ([755bdf8](https://github.com/waitingsong/shared-types/commit/755bdf845134f9d34b5d6c1297a6caee0cde9f10))
# [5.6.0](https://github.com/waitingsong/shared-types/compare/v5.5.1...v5.6.0) (2021-01-17)

@@ -8,0 +19,0 @@

2

dist/index.cjs.js

@@ -5,3 +5,3 @@ /**

*
* @version 5.5.1
* @version 5.6.0
* @author waiting

@@ -8,0 +8,0 @@ * @license MIT

@@ -6,8 +6,6 @@ declare type V = string | number | boolean | bigint;

export declare type TupleJoin<T extends V[], D extends string> = T extends [] ? '' : T extends [unknown] ? `${T[0]}` : T extends [unknown, ...infer U] ? `${T[0]}${D}${TupleJoin<U, D>}` : string;
declare type FormatCapitalize<T extends V[]> = T extends [] ? [] : T extends [string] ? [`${Capitalize<T[0]>}`] : T extends [string, ...infer U] ? [`${Capitalize<T[0]>}`, ...FormatCapitalize<U & V[]>] : [
];
declare type FormatCamelCase<T extends V[]> = T extends [] ? [] : T extends [unknown] ? [T[0]] : T extends [unknown, ...infer U] ? [T[0], ...FormatCapitalize<U & V[]>] : [
];
declare type FormatCapitalize<T extends unknown[]> = T extends [] ? [] : T extends [string] ? [`${Capitalize<T[0]>}`] : T extends [string, ...infer U] ? [`${Capitalize<T[0]>}`, ...FormatCapitalize<U>] : [];
declare type FormatCamelCase<T extends unknown[]> = T extends [] ? [] : T extends [unknown] ? [T[0]] : T extends [unknown, ...infer U] ? [T[0], ...FormatCapitalize<U>] : [];
export declare type SnakeToCamel<T extends string, D extends string = '_' | '-'> = TupleJoin<FormatCamelCase<StrSplit<T, D>>, ''>;
export declare type SnakeToPascal<T extends string, D extends string = '_' | '-'> = TupleJoin<FormatCapitalize<StrSplit<T, D>>, ''>;
export {};
{
"name": "@waiting/shared-types",
"author": "waiting",
"version": "5.6.0",
"version": "5.6.1",
"description": "shared typescript types",

@@ -74,3 +74,3 @@ "keywords": [

},
"gitHead": "82ea577a782aa9e25f181a48de55929065874ae1"
"gitHead": "feb52205583f0d483a2790e78a2034e9b3adf99d"
}
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