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

extra-utilities

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extra-utilities - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

19

dist/extra-utilities.js

@@ -183,2 +183,10 @@ (function(global, factory) {

var regExpFlags = {
global: "g",
multiline: "m",
ignoreCase: "i",
sticky: "y",
unicode: "u"
};
utilities.isValid = function(value) {

@@ -1668,2 +1676,13 @@ return value !== undefined && value !== null;

}
else if(value instanceof RegExp) {
var flags = "";
for(var flag in regExpFlags) {
if(value[flag]) {
flags += regExpFlags[flag]
}
}
return new RegExp(value.source, flags);
}
else if(typeof Buffer !== "undefined" && value instanceof Buffer) {

@@ -1670,0 +1689,0 @@ return new Buffer(value);

2

package.json
{
"name": "extra-utilities",
"version": "1.1.2",
"version": "1.1.3",
"description": "A collection of useful helper functions.",

@@ -5,0 +5,0 @@ "main": "dist/extra-utilities.js",

@@ -175,2 +175,10 @@ if(typeof require !== "undefined") {

var regExpFlags = {
global: "g",
multiline: "m",
ignoreCase: "i",
sticky: "y",
unicode: "u"
};
utilities.isValid = function(value) {

@@ -1660,2 +1668,13 @@ return value !== undefined && value !== null;

}
else if(value instanceof RegExp) {
var flags = "";
for(var flag in regExpFlags) {
if(value[flag]) {
flags += regExpFlags[flag]
}
}
return new RegExp(value.source, flags);
}
else if(typeof Buffer !== "undefined" && value instanceof Buffer) {

@@ -1662,0 +1681,0 @@ return new Buffer(value);

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