@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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/util/fetch",
3
- "version": "13.6.17",
3
+ "version": "13.7.0",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.6.17",
5
+ "@dereekb/util": "13.7.0",
6
6
  "make-error": "^1.3.0",
7
7
  "fast-content-type-parse": "^3.0.0"
8
8
  },
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 = /[() \-\.]/g;
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
- var result = buffer.includes('/Encrypt');
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 = /[() \-\.]/g;
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
- var result = buffer.includes('/Encrypt');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "13.6.17",
3
+ "version": "13.7.0",
4
4
  "exports": {
5
5
  "./test": {
6
6
  "module": "./test/index.esm.js",
package/test/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "13.6.17",
3
+ "version": "13.7.0",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.6.17",
5
+ "@dereekb/util": "13.7.0",
6
6
  "make-error": "^1.3.0"
7
7
  },
8
8
  "exports": {