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

arc-check

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-check - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

16

index.js

@@ -1,7 +0,5 @@

"use strict";
const is = require('arc-is');
const ArcArray = require('arc-array');
const ArcObject = require('arc-object');
var is = require('arc-is');
var ArcArray = require('arc-array');
var ArcObject = require('arc-object');
class ArcCheck{

@@ -62,3 +60,3 @@ constructor(){

if(is(_string) === 'string'){
this.includes.each(function(_key,_RX){
this.includes.forEach(function(_RX){
let rxResult = _RX.exec(_string);

@@ -76,3 +74,3 @@ if(is(rxResult) === 'array' && rxResult[0] !== ''){

iCallbackCheck = false;
this.iCallbacks.each(function(_index,_callback){
this.iCallbacks.forEach(function(_callback){
if(_callback(_string)){

@@ -91,3 +89,3 @@ iCallbackCheck = true;

if(is(_string) === 'string'){
this.excludes.each(function(_key,_RX){
this.excludes.forEach(function(_RX){
let rxResult = _RX.exec(_string);

@@ -106,3 +104,3 @@ if(is(rxResult) === 'array' && rxResult[0] !== ''){

//Default xCallback check is true
this.xCallbacks.each(function(_index,_callback){
this.xCallbacks.forEach(function(_callback){
if(_callback(_string)){

@@ -109,0 +107,0 @@ xCallbackCheck = false;

{
"name": "arc-check",
"version": "1.0.3",
"version": "1.1.0",
"description": "An ES6 class to evaluate values against multiple complex inclusion/exclusion rules",

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

"dependencies": {
"arc-array": "3.2.1",
"arc-array": "^4.0.1",
"arc-is": "1.0.5",
"arc-object": "^1.2.0"
"arc-object": "^2.0.0"
},

@@ -28,0 +28,0 @@ "devDependencies": {

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