Socket
Socket
Sign inDemoInstall

vowelz

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.2.4

tests/accepts-only-string-arg.test.js

10

dist/index.js

@@ -99,4 +99,4 @@ "use strict";

}, {
key: "setAllVowelsToUppercase",
value: function setAllVowelsToUppercase(arg) {
key: "setAllVowelsToUpperCase",
value: function setAllVowelsToUpperCase(arg) {
var $this = this;

@@ -114,4 +114,4 @@ if (!$this.checkIfPropIsString(arg)) {

}, {
key: "getCount",
value: function getCount(arg) {
key: "getTotalCount",
value: function getTotalCount(arg) {
var $this = this;

@@ -163,3 +163,3 @@ if (!$this.checkIfPropIsString(arg)) {

}
var uniqueVowels = new Set(arg.match(/[aeiou]/gi));
var uniqueVowels = new Set(arg.toLowerCase().match(/[aeiou]/g));
return uniqueVowels.size;

@@ -166,0 +166,0 @@ }

{
"name": "vowelz",
"version": "1.1.2",
"version": "1.2.4",
"description": "A JavaScript library for efficient manipulation of vowels within strings. Count, transform case, extract positions, and perform various operations on vowels with ease. Enhance your text processing and string transformations using Vowelz.",
"main": "index.js",
"homepage": "https://github.com/sricharankrishnan/vowelz",
"type": "module",
"scripts": {
"build": "babel ./src -d ./dist"
"build": "babel ./src -d ./dist",
"test" : "jest --verbose"
},

@@ -30,4 +32,5 @@ "author": "Sricharan Krishnan | https://github.com/sricharankrishnan",

"babel-cli": "^6.26.0",
"babel-preset-es2015": "^6.24.1"
"babel-preset-es2015": "^6.24.1",
"jest": "^29.7.0"
}
}

@@ -78,3 +78,3 @@ class Vowelz {

/* sets all vowels to upper case */
setAllVowelsToUppercase(arg) {
setAllVowelsToUpperCase(arg) {
var $this = this;

@@ -92,3 +92,3 @@ if (!$this.checkIfPropIsString(arg)) {

/* get how many vowels are there in a string value */
getCount(arg) {
getTotalCount(arg) {
var $this = this;

@@ -138,3 +138,3 @@ if (!$this.checkIfPropIsString(arg)) {

const uniqueVowels = new Set(arg.match(/[aeiou]/gi));
const uniqueVowels = new Set(arg.toLowerCase().match(/[aeiou]/g));
return uniqueVowels.size;

@@ -141,0 +141,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc