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

string-ts

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-ts - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

8

dist/index.d.ts

@@ -178,3 +178,3 @@ /**

*/
declare function reverse<T extends string>(str: T): Reverse<T, "">;
declare function reverse<T extends string>(str: T): Reverse<T>;

@@ -311,3 +311,3 @@ /**

*/
type TrimStart<T extends string> = IsStringLiteral<T> extends true ? T extends ` ${infer rest}` ? TrimStart<rest> : T : string;
type TrimStart<T extends string> = T extends ` ${infer rest}` ? TrimStart<rest> : T;
/**

@@ -325,3 +325,3 @@ * A strongly-typed version of `String.prototype.trimStart`.

*/
type TrimEnd<T extends string> = IsStringLiteral<T> extends true ? T extends `${infer rest} ` ? TrimEnd<rest> : T : string;
type TrimEnd<T extends string> = T extends `${infer rest} ` ? TrimEnd<rest> : T;
/**

@@ -346,3 +346,3 @@ * A strongly-typed version of `String.prototype.trimEnd`.

*/
declare function trim<T extends string>(str: T): TrimEnd<TrimStart<T>>;
declare function trim<T extends string>(str: T): Trim<T>;

@@ -349,0 +349,0 @@ /**

@@ -63,3 +63,3 @@ 'use strict';

// src/native/slice.ts
function slice(str, start = 0, end = void 0) {
function slice(str, start = 0, end = undefined) {
return str.slice(start, end);

@@ -66,0 +66,0 @@ }

{
"name": "string-ts",
"version": "2.2.0",
"version": "2.2.1",
"description": "Strongly-typed string functions.",

@@ -20,7 +20,7 @@ "main": "./dist/index.js",

"@typescript-eslint/eslint-plugin": "latest",
"@vitest/coverage-v8": "^1.5.2",
"@vitest/coverage-v8": "^3.0.5",
"eslint": "latest",
"prettier": "latest",
"tsup": "latest",
"typescript": "^5.4.5",
"typescript": "^5.7.3",
"vitest": "latest"

@@ -27,0 +27,0 @@ },

Sorry, the diff of this file is not supported yet

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