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

utilium

Package Overview
Dependencies
Maintainers
0
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utilium - npm Package Compare versions

Comparing version 0.7.6 to 0.7.7

3

dist/version.d.ts
export type Sep = '_' | '-';
export type Part = `${number}.${number}.${number}`;
export type Full = Part | `${Part}${Sep}${string}${Sep | '.'}${Part | number}`;
export type WithPre = `${Part}${Sep}${string}${Sep | '.'}${Part | number}`;
export type Full = Part | WithPre;
type Type<S extends string, Acc extends string = ''> = S extends `${infer First}${infer Rest}` ? (First extends Sep | '.' ? Acc : Type<Rest, `${Acc}${First}`>) : Acc;

@@ -5,0 +6,0 @@ export type Parse<T extends Full, StripCore extends boolean> = T extends `${infer Core}${Sep}${infer Rest}` ? Rest extends `${infer U}` ? {

{
"name": "utilium",
"version": "0.7.6",
"version": "0.7.7",
"description": "Typescript utilies",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -7,4 +7,6 @@ import { capitalize } from './string.js';

export type Full = Part | `${Part}${Sep}${string}${Sep | '.'}${Part | number}`;
export type WithPre = `${Part}${Sep}${string}${Sep | '.'}${Part | number}`;
export type Full = Part | WithPre;
type Type<S extends string, Acc extends string = ''> = S extends `${infer First}${infer Rest}` ? (First extends Sep | '.' ? Acc : Type<Rest, `${Acc}${First}`>) : Acc;

@@ -11,0 +13,0 @@

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