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

@dofiltra/helpers

Package Overview
Dependencies
Maintainers
0
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dofiltra/helpers - npm Package Compare versions

Comparing version 1.0.65 to 1.0.66

2

lib/index.d.ts

@@ -78,3 +78,3 @@ import type { TDodecoratorSettings, TResultError, TTrackMetadata } from '@dofiltra/types';

static rmNumberingAndPunctuation: (str: string) => string;
static rmWhileChars({ text, search, replace, replacebles }: {
static rmWhileChars({ text, replacebles }: {
text: string;

@@ -81,0 +81,0 @@ search?: string[];

@@ -177,14 +177,10 @@ /* tslint:disable:max-classes-per-file */

};
static rmWhileChars({ text = '', search = [], replace = ' ', replacebles = [] }) {
static rmWhileChars({ text = '', replacebles = [] }) {
text = text?.trim?.() || '';
const regex = new RegExp(search.join('|'), 'g');
while (regex.test(text)) {
text = text.replaceAll(regex, replace);
}
let v = !!replacebles.length;
while (v) {
let hasReplaceble = !!replacebles.length;
while (hasReplaceble) {
replacebles.forEach(({ search, value }) => {
text = text.replaceAll(search, value);
});
v = replacebles.some(({ search, value }) => text.includes(search));
hasReplaceble = replacebles.some(({ search }) => text.includes(search));
}

@@ -191,0 +187,0 @@ return text;

{
"name": "@dofiltra/helpers",
"version": "1.0.65",
"version": "1.0.66",
"license": "MIT",

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

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