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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11493
148
+ Addedarc-array@4.0.14.3.1(transitive)
+ Addedarc-check@1.2.0(transitive)
+ Addedarc-is@1.0.8(transitive)
+ Addedarc-object@2.1.0(transitive)
- Removedarc-array@3.2.1(transitive)
- Removedarc-object@1.5.0(transitive)
Updatedarc-array@^4.0.1
Updatedarc-object@^2.0.0