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

verif-string

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

verif-string - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

index.d.ts

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

declare type Possibility = "lower" | "upper" | "lowerAndUpper" | "containsNumeric";
declare type Possibility = "lower" | "upper" | "lowerAndUpper";
export declare class StringManipulator {

@@ -8,4 +8,4 @@ private data;

match(choice: Possibility): boolean;
isNumeric(): RegExpMatchArray;
isAlpha(): RegExpMatchArray;
isNumeric(): boolean;
isAlpha(): boolean;
}

@@ -12,0 +12,0 @@ export declare class SM extends StringManipulator {

@@ -53,10 +53,19 @@ "use strict";

return hasLowerCase(this.data) && hasUpperCase(this.data);
case "containsNumeric":
}
};
StringManipulator.prototype.isNumeric = function () {
return this.data.match(regexp);
if (this.data.match(regexp)) {
return true;
}
else {
return false;
}
};
StringManipulator.prototype.isAlpha = function () {
return this.data.match(/[a-zA-Z]+/);
if (this.data.match(/[a-zA-Z]+/)) {
return true;
}
else {
return false;
}
};

@@ -63,0 +72,0 @@ return StringManipulator;

{
"name": "verif-string",
"version": "1.0.2",
"version": "1.0.3",
"description": "A package for manipulate string for verifications",

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

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