@dereekb/util 13.6.17 → 13.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fetch/package.json +2 -2
- package/index.cjs.js +2 -3
- package/index.esm.js +2 -3
- package/package.json +1 -1
- package/test/package.json +2 -2
package/fetch/package.json
CHANGED
package/index.cjs.js
CHANGED
|
@@ -8482,7 +8482,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8482
8482
|
}
|
|
8483
8483
|
/**
|
|
8484
8484
|
* Regex matching common phone number formatting characters to strip: parentheses, hyphens, spaces, and dots.
|
|
8485
|
-
*/ var PHONE_NUMBER_FORMATTING_CHARACTERS_REGEX = /[()
|
|
8485
|
+
*/ var PHONE_NUMBER_FORMATTING_CHARACTERS_REGEX = /[() \-.]/g;
|
|
8486
8486
|
/**
|
|
8487
8487
|
* Attempts to convert a raw phone number string into a valid {@link E164PhoneNumber}.
|
|
8488
8488
|
*
|
|
@@ -10241,8 +10241,7 @@ function toReadableError(inputError) {
|
|
|
10241
10241
|
* @param buffer - Buffer-like object to check. Only requires the `includes` method.
|
|
10242
10242
|
* @returns true if the buffer contains a `/Encrypt` entry indicating password protection.
|
|
10243
10243
|
*/ function isPdfPasswordProtected(buffer) {
|
|
10244
|
-
|
|
10245
|
-
return result;
|
|
10244
|
+
return buffer.includes('/Encrypt');
|
|
10246
10245
|
}
|
|
10247
10246
|
|
|
10248
10247
|
function _array_like_to_array$i(arr, len) {
|
package/index.esm.js
CHANGED
|
@@ -8480,7 +8480,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
8480
8480
|
}
|
|
8481
8481
|
/**
|
|
8482
8482
|
* Regex matching common phone number formatting characters to strip: parentheses, hyphens, spaces, and dots.
|
|
8483
|
-
*/ var PHONE_NUMBER_FORMATTING_CHARACTERS_REGEX = /[()
|
|
8483
|
+
*/ var PHONE_NUMBER_FORMATTING_CHARACTERS_REGEX = /[() \-.]/g;
|
|
8484
8484
|
/**
|
|
8485
8485
|
* Attempts to convert a raw phone number string into a valid {@link E164PhoneNumber}.
|
|
8486
8486
|
*
|
|
@@ -10239,8 +10239,7 @@ function toReadableError(inputError) {
|
|
|
10239
10239
|
* @param buffer - Buffer-like object to check. Only requires the `includes` method.
|
|
10240
10240
|
* @returns true if the buffer contains a `/Encrypt` entry indicating password protection.
|
|
10241
10241
|
*/ function isPdfPasswordProtected(buffer) {
|
|
10242
|
-
|
|
10243
|
-
return result;
|
|
10242
|
+
return buffer.includes('/Encrypt');
|
|
10244
10243
|
}
|
|
10245
10244
|
|
|
10246
10245
|
function _array_like_to_array$i(arr, len) {
|
package/package.json
CHANGED