email-all-chars-within-ascii 4.0.13 → 4.0.14
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/README.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
## Install
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
This package is [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). If you're not ready yet, install an older version of this program, 3.1.0 (`npm i email-all-chars-within-ascii@3.1.0`).
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
npm i email-all-chars-within-ascii
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name email-all-chars-within-ascii
|
|
3
3
|
* @fileoverview Scans all characters within a string and checks are they within ASCII range
|
|
4
|
-
* @version 4.0.
|
|
4
|
+
* @version 4.0.14
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/email-all-chars-within-ascii/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var a="4.0.
|
|
10
|
+
var a="4.0.14";var h=a,p={lineLength:500};function y(e,r){if(typeof e!="string")throw new Error(`email-all-chars-within-ascii/within(): [THROW_ID_01] The input is not string but ${typeof e}, equal to: ${JSON.stringify(e,null,4)}`);if(r&&typeof r!="object")throw new Error(`email-all-chars-within-ascii/within(): [THROW_ID_02] The opts is not a plain object but ${typeof r}, equal to:
|
|
11
11
|
${JSON.stringify(r,null,4)}`);if(!e.length)return[];let o={...p,...r},i=0,s=1,l=[];for(let t=0,c=e.length;t<=c;t++)if(o.lineLength&&(!e[t]||e[t]==="\r"||e[t]===`
|
|
12
12
|
`)&&i>o.lineLength&&l.push({type:"line length",line:s,column:i,positionIdx:t,value:i}),e[t]==="\r"||e[t]===`
|
|
13
13
|
`?(i=0,(e[t]===`
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name email-all-chars-within-ascii
|
|
3
3
|
* @fileoverview Scans all characters within a string and checks are they within ASCII range
|
|
4
|
-
* @version 4.0.
|
|
4
|
+
* @version 4.0.14
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/email-all-chars-within-ascii/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var emailAllCharsWithinAscii=(()=>{var o=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var p=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&p(e,n,t[n]);if(u)for(var n of u(t))f.call(t,n)&&p(e,n,t[n]);return e};var g=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},w=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $(t))!d.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=b(t,s))||r.enumerable});return e};var x=e=>w(o({},"__esModule",{value:!0}),e);var R={};g(R,{defaults:()=>h,version:()=>E,within:()=>j});var m="4.0.
|
|
10
|
+
var emailAllCharsWithinAscii=(()=>{var o=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var p=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&p(e,n,t[n]);if(u)for(var n of u(t))f.call(t,n)&&p(e,n,t[n]);return e};var g=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},w=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $(t))!d.call(e,s)&&s!==n&&o(e,s,{get:()=>t[s],enumerable:!(r=b(t,s))||r.enumerable});return e};var x=e=>w(o({},"__esModule",{value:!0}),e);var R={};g(R,{defaults:()=>h,version:()=>E,within:()=>j});var m="4.0.14";var E=m,h={lineLength:500};function j(e,t){if(typeof e!="string")throw new Error(`email-all-chars-within-ascii/within(): [THROW_ID_01] The input is not string but ${typeof e}, equal to: ${JSON.stringify(e,null,4)}`);if(t&&typeof t!="object")throw new Error(`email-all-chars-within-ascii/within(): [THROW_ID_02] The opts is not a plain object but ${typeof t}, equal to:
|
|
11
11
|
${JSON.stringify(t,null,4)}`);if(!e.length)return[];let n=c(c({},h),t),r=0,s=1,a=[];for(let i=0,y=e.length;i<=y;i++)if(n.lineLength&&(!e[i]||e[i]==="\r"||e[i]===`
|
|
12
12
|
`)&&r>n.lineLength&&a.push({type:"line length",line:s,column:r,positionIdx:i,value:r}),e[i]==="\r"||e[i]===`
|
|
13
13
|
`?(r=0,(e[i]===`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "email-all-chars-within-ascii",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.14",
|
|
4
4
|
"description": "Scans all characters within a string and checks are they within ASCII range",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"7bit",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"check-types-mini": "^7.1.
|
|
69
|
+
"check-types-mini": "^7.1.1"
|
|
70
70
|
}
|
|
71
71
|
}
|