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

ntils

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ntils - npm Package Compare versions

Comparing version 3.1.10 to 3.1.11

7

dist/ntils.js

@@ -686,3 +686,3 @@ (function (global, factory) {

function firstUpper(str) {
if (isNull(str)) return;
if (!isString(str)) return '';
return str.substring(0, 1).toUpperCase() + str.substring(1);

@@ -695,2 +695,3 @@ }

function escapeRegExp(str) {
if (!isString(str)) return '';
return str.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');

@@ -706,2 +707,3 @@ }

function toCamelCase(str, mode) {
if (!isString(str)) return '';
if (str) {

@@ -724,2 +726,3 @@ str = str.replace(/\-[a-z0-9]/g, function ($1) {

function toSplitCase(str) {
if (!isString(str)) return '';
if (str) {

@@ -729,3 +732,3 @@ str = str.replace(/([A-Z])/g, '-$1');

}
return str;
return str.toLowerCase();
}

@@ -732,0 +735,0 @@

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

function firstUpper(str) {
if (isNull(str)) return;
if (!isString(str)) return '';
return str.substring(0, 1).toUpperCase() + str.substring(1);

@@ -693,2 +693,3 @@ }

function escapeRegExp(str) {
if (!isString(str)) return '';
return str.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');

@@ -704,2 +705,3 @@ }

function toCamelCase(str, mode) {
if (!isString(str)) return '';
if (str) {

@@ -722,2 +724,3 @@ str = str.replace(/\-[a-z0-9]/g, function ($1) {

function toSplitCase(str) {
if (!isString(str)) return '';
if (str) {

@@ -727,3 +730,3 @@ str = str.replace(/([A-Z])/g, '-$1');

}
return str;
return str.toLowerCase();
}

@@ -730,0 +733,0 @@

{
"name": "ntils",
"version": "3.1.10",
"version": "3.1.11",
"description": "一个 Node & Browser 工具函数集",

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

@@ -680,3 +680,3 @@ /**

export function firstUpper(str) {
if (isNull(str)) return;
if (!isString(str)) return '';
return str.substring(0, 1).toUpperCase() + str.substring(1);

@@ -689,2 +689,3 @@ };

export function escapeRegExp(str) {
if (!isString(str)) return '';
return str.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');

@@ -700,2 +701,3 @@ };

export function toCamelCase(str, mode) {
if (!isString(str)) return '';
if (str) {

@@ -718,2 +720,3 @@ str = str.replace(/\-[a-z0-9]/g, function ($1) {

export function toSplitCase(str) {
if (!isString(str)) return '';
if (str) {

@@ -723,3 +726,3 @@ str = str.replace(/([A-Z])/g, '-$1');

}
return str;
return str.toLowerCase();
}

@@ -726,0 +729,0 @@

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