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

@spare/lange

Package Overview
Dependencies
Maintainers
1
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spare/lange - npm Package Compare versions

Comparing version 0.13.1 to 0.13.2

13

dist/index.js

@@ -1,3 +0,2 @@

import { ANSI_G, ASTRAL_G } from '@spare/regex-charset';
export { clearAnsi, clearAstral, hasAnsi, hasAstral } from '@spare/charset';
import { ANSI_G, ASTRAL_G, ANSI, ASTRAL } from '@spare/regex-charset';

@@ -13,2 +12,10 @@ /**

export { Lange, lange };
const clearAnsi = tx => tx.replace(ANSI_G, '');
const clearAstral = tx => tx.replace(ASTRAL_G, '_');
const hasAnsi = tx => ANSI.test(tx);
const hasAstral = tx => ASTRAL.test(tx);
export { Lange, clearAnsi, clearAstral, hasAnsi, hasAstral, lange };
{
"name": "@spare/lange",
"version": "0.13.1",
"version": "0.13.2",
"description": "Get string length s.t. correcting astral codes and skipping ansi codes",

@@ -22,3 +22,3 @@ "type": "module",

"dependencies": {
"@spare/regex-charset": "^0.13.1"
"@spare/regex-charset": "^0.13.2"
},

@@ -41,3 +41,3 @@ "repository": {

"homepage": "https://github.com/gadge/spare#readme",
"gitHead": "e71ebde264ddded38617c95ee924b407aaf95fff"
"gitHead": "1edc5966f384bef387867de6603990bdd6eb1721"
}

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