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

fi-is

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fi-is - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

.eslintrc

14

lib/index.js

@@ -24,3 +24,3 @@ /**

url: /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i,
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/i,
email: /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i,
creditCard: /^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/,

@@ -106,3 +106,3 @@ alphaNumeric: /^[A-Za-z0-9]+$/,

function not(func) {
return function () {
return function() {
return !func.apply(null, Array.prototype.slice.call(arguments));

@@ -121,3 +121,3 @@ };

function all(func) {
return function () {
return function() {
var args = Array.prototype.slice.call(arguments);

@@ -150,3 +150,3 @@ var len = args.length;

function any(func) {
return function () {
return function() {
var args = Array.prototype.slice.call(arguments);

@@ -228,5 +228,5 @@ var len = args.length;

*/
is.setRegexp = function (reg, key) {
is.setRegexp = function(reg, key) {
for (var name in regexps) {
if (regexps.hasOwnProperty(name) && (key === name)) {
if (regexps.hasOwnProperty(name) && key === name) {
regexps[name] = reg;

@@ -242,3 +242,3 @@ }

*/
is.setNamespace = function () {
is.setNamespace = function() {
root.is = previousIs;

@@ -245,0 +245,0 @@ return this;

@@ -6,4 +6,3 @@ /**

module.exports = function (is, regexps) {
module.exports = function(is, regexps) {
/**

@@ -17,3 +16,3 @@ * Creates the regexp check methods from the defined properties on the

function create(name) {
is[name] = function (val) {
is[name] = function(val) {
return regexps[name].test(val);

@@ -24,7 +23,7 @@ };

/* Create regexp checks methods from the 'regexps' object */
for (var reg in regexps) {
Object.keys(regexps).forEach(function(reg) {
if (regexps.hasOwnProperty(reg)) {
create(reg);
}
}
});

@@ -47,3 +46,2 @@ /**

/**

@@ -286,3 +284,2 @@ * Checks for a valid URL.

*/
};
{
"name": "fi-is",
"title": "Fi is",
"version": "1.2.0",
"version": "1.3.0",
"main": "index.js",

@@ -20,18 +20,18 @@ "license": "MIT",

"devDependencies": {
"browserify": "^14.1.0",
"chai": "^3.5.0",
"del": "^2.2.0",
"browserify": "^16.2.3",
"chai": "^4.2.0",
"del": "^3.0.0",
"gulp": "^3.9.1",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^2.1.0",
"gulp-uglify": "^3.0.1",
"gulp-util": "^3.0.8",
"jsdox": "^0.4.9",
"karma": "^1.5.0",
"karma": "^3.1.3",
"karma-chai": "^0.1.0",
"karma-firefox-launcher": "^1.0.1",
"karma-mocha": "^1.3.0",
"mocha": "^3.2.0",
"mocha": "^5.2.0",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
"vinyl-source-stream": "^2.0.0"
}
}

@@ -101,3 +101,3 @@ # fi-is [![Build Status](https://travis-ci.org/FinalDevStudio/fi-is.svg?branch=master)](https://travis-ci.org/FinalDevStudio/fi-is)

####Contributors:
#### Contributors:
Many thanks to the [contributors](https://github.com/finaldevstudio/fi-is/graphs/contributors).
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