node_modules/es-abstract/2021/IsWordChar.js in immosquare-cleaner-0.1.32 vs node_modules/es-abstract/2021/IsWordChar.js in immosquare-cleaner-0.1.38

- old
+ new

@@ -1,18 +1,15 @@ 'use strict'; -var GetIntrinsic = require('get-intrinsic'); +var $TypeError = require('es-errors/type'); -var $TypeError = GetIntrinsic('%TypeError%'); - var callBound = require('call-bind/callBound'); var $indexOf = callBound('String.prototype.indexOf'); var IsArray = require('./IsArray'); var IsIntegralNumber = require('./IsIntegralNumber'); -var Type = require('./Type'); var WordCharacters = require('./WordCharacters'); var every = require('../helpers/every'); var isChar = function isChar(c) { @@ -30,10 +27,10 @@ throw new $TypeError('Assertion failed: `InputLength` must be an integer'); } if (!IsArray(Input) || !every(Input, isChar)) { throw new $TypeError('Assertion failed: `Input` must be a List of characters'); } - if (Type(IgnoreCase) !== 'Boolean' || Type(Unicode) !== 'Boolean') { + if (typeof IgnoreCase !== 'boolean' || typeof Unicode !== 'boolean') { throw new $TypeError('Assertion failed: `IgnoreCase` and `Unicode` must be booleans'); } if (e === -1 || e === InputLength) { return false; // step 1