email-all-chars-within-ascii 5.2.0 → 5.2.2
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/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 5.2.2 (2026-08-22)
|
|
7
|
+
|
|
8
|
+
### Performance Improvements
|
|
9
|
+
|
|
10
|
+
- optimise package hot paths and JSON editing ([f3112bd](https://github.com/codsen/codsen/commit/f3112bd7fc0d7c9bc09312d3744c950691d72ca5))
|
|
11
|
+
|
|
6
12
|
## 5.2.0 (2026-08-19)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
9
15
|
|
|
10
16
|
- make validation diagnostics safe ([7b01074](https://github.com/codsen/codsen/commit/7b0107476f12734aeb8e82852ba980b187280110))
|
|
11
|
-
- resolve review findings
|
|
17
|
+
- resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
|
|
12
18
|
- retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
|
|
13
19
|
|
|
14
20
|
### Features
|
|
@@ -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 5.2.
|
|
4
|
+
* @version 5.2.2
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/email-all-chars-within-ascii/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{formatDiagnosticValue as a}from"codsen-utils";var c="5.2.
|
|
10
|
+
import{formatDiagnosticValue as a}from"codsen-utils";var c="5.2.2";var f=c,m={lineLength:500};function b(e,s){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: ${a(e,4)}`);if(s&&typeof s!="object")throw new Error(`email-all-chars-within-ascii/within(): [THROW_ID_02] The resolvedOpts is not a plain object but ${typeof s}, equal to:
|
|
11
11
|
${a(s,4)}`);if(!e.length)return[];let l={...m,...s},n=0,r=1,o=[];for(let t=0,u=e.length;t<=u;t++)if(l.lineLength&&(!e[t]||e[t]==="\r"||e[t]===`
|
|
12
12
|
`)&&n>l.lineLength&&o.push({type:"line length",line:r,column:n,positionIdx:t,value:n}),e[t]==="\r"||e[t]===`
|
|
13
13
|
`?(n=0,(e[t]===`
|
|
@@ -1,17 +1,17 @@
|
|
|
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 5.2.
|
|
4
|
+
* @version 5.2.2
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/email-all-chars-within-ascii/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var emailAllCharsWithinAscii=(()=>{var m=Object.defineProperty;var
|
|
10
|
+
"use strict";var emailAllCharsWithinAscii=(()=>{var m=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames,$=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var x=(t,r,e)=>r in t?m(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,b=(t,r)=>{for(var e in r||(r={}))C.call(r,e)&&x(t,e,r[e]);if($)for(var e of $(r))P.call(r,e)&&x(t,e,r[e]);return t};var M=(t,r)=>{for(var e in r)m(t,e,{get:r[e],enumerable:!0})},B=(t,r,e,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of E(r))!C.call(t,o)&&o!==e&&m(t,o,{get:()=>r[o],enumerable:!(i=L(r,o))||i.enumerable});return t};var T=t=>B(m({},"__esModule",{value:!0}),t);var Q={};M(Q,{defaults:()=>D,version:()=>H,within:()=>_});function U(){let t=[],r=0,e=!1;return{append(i){return e?!1:r+i.length>1999?(t.push("\u2026"),r+=1,e=!0,!1):(t.push(i),r+=i.length,!0)},result(){return t.join("")},stopped(){return e}}}function F(t){return"\\u".concat(t.toString(16).padStart(4,"0"))}function y(t,r){if(t.append('"')){for(let e=0;e<r.length&&!t.stopped();e+=1){let i=r.charCodeAt(e);i===34?t.append('\\"'):i===92?t.append("\\\\"):i===8?t.append("\\b"):i===9?t.append("\\t"):i===10?t.append("\\n"):i===12?t.append("\\f"):i===13?t.append("\\r"):i<32||i===8232||i===8233||i>=55296&&i<=57343?t.append(F(i)):t.append(r[e])}t.append('"')}}function N(t){return t.get&&t.set?"[Getter/Setter]":t.get?"[Getter]":t.set?"[Setter]":"[Accessor]"}function k(t,r){t.append("Symbol(");let e=String(r);e.length>8&&y(t,e.slice(7,-1)),t.append(")")}function O(t,r){typeof r=="symbol"?k(t,r):y(t,String(r))}function v(t,r=0){let e=U(),i=r===4?4:0,o=new WeakSet,p=0;function w(n){i&&e.append(" ".repeat(n*i))}function s(n,l){n&&e.append(","),i&&(e.append("\n"),w(l+1))}function g(n,l,u){i&&l&&(e.append("\n"),w(u)),e.append(n)}function f(n,l){Object.prototype.hasOwnProperty.call(n,"value")?A(n.value,l):e.append(N(n))}function R(n,l){let u;try{u=Reflect.getOwnPropertyDescriptor(n,"length")}catch(c){e.append("[Uninspectable]");return}let a=u==null?void 0:u.value;if(!Number.isSafeInteger(a)||a<0){e.append("[Uninspectable]");return}e.append("[");let h=!1;for(let c=0;c<a&&!e.stopped();c+=1){if(s(h,l),h=!0,p>=50){e.append("[MaxEntries]");break}p+=1;let d;try{d=Reflect.getOwnPropertyDescriptor(n,String(c))}catch(q){e.append("[Uninspectable]");continue}d!=null&&d.enumerable?f(d,l+1):e.append("[Empty]")}g("]",h,l)}function I(n,l){let u;try{u=Reflect.ownKeys(n)}catch(h){e.append("[Uninspectable]");return}e.append("{");let a=!1;for(let h of u){if(e.stopped())break;if(p>=50){s(a,l),a=!0,y(e,"\u2026"),e.append(i?": ":":"),e.append("[MaxEntries]");break}p+=1;let c;try{c=Reflect.getOwnPropertyDescriptor(n,h)}catch(d){s(a,l),a=!0,O(e,h),e.append(i?": ":":"),e.append("[Uninspectable]");continue}c!=null&&c.enumerable&&(s(a,l),a=!0,O(e,h),e.append(i?": ":":"),f(c,l+1))}g("}",a,l)}function W(n,l){if(o.has(n)){e.append("[Circular]");return}if(l>=5){e.append("[MaxDepth]");return}let u;try{u=Array.isArray(n)}catch(a){e.append("[Uninspectable]");return}o.add(n);try{u?R(n,l):I(n,l)}finally{o.delete(n)}}function A(n,l){n===null?e.append("null"):typeof n=="string"?y(e,n):typeof n=="number"?e.append(Object.is(n,-0)?"-0":String(n)):typeof n=="boolean"?e.append(n?"true":"false"):typeof n>"u"?e.append("undefined"):typeof n=="bigint"?e.append("".concat(n,"n")):typeof n=="symbol"?k(e,n):typeof n=="function"?e.append("[Function]"):W(n,l)}try{return A(t,0),e.result()}catch(n){return"[Uninspectable]"}}var J=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]);var S,K=(S=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:S.get;var Z=Date.prototype.getTime;var j="5.2.2";var H=j,D={lineLength:500};function _(t,r){if(typeof t!="string")throw new Error("email-all-chars-within-ascii/within(): [THROW_ID_01] The input is not string but ".concat(typeof t,", equal to: ").concat(v(t,4)));if(r&&typeof r!="object")throw new Error("email-all-chars-within-ascii/within(): [THROW_ID_02] The resolvedOpts is not a plain object but ".concat(typeof r,", equal to:\n").concat(v(r,4)));if(!t.length)return[];let e=b(b({},D),r),i=0,o=1,p=[];for(let s=0,g=t.length;s<=g;s++)if(e.lineLength&&(!t[s]||t[s]==="\r"||t[s]==="\n")&&i>e.lineLength&&p.push({type:"line length",line:o,column:i,positionIdx:s,value:i}),t[s]==="\r"||t[s]==="\n"?(i=0,(t[s]==="\n"||t[s+1]!=="\n")&&(o+=1)):i+=1,t[s]){let f=t[s].codePointAt(0);(f===void 0||f>126||f<9||f===11||f===12||f>13&&f<32)&&p.push({type:"character",line:o,column:i,positionIdx:s,value:t[s],codePoint:f,UTF32Hex:t[s].charCodeAt(0).toString(16).padStart(4,"0").toLowerCase()})}return p}return T(Q);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name codsen-utils
|
|
13
13
|
* @fileoverview Various utility functions
|
|
14
|
-
* @version 1.
|
|
14
|
+
* @version 1.9.0
|
|
15
15
|
* @author Roy Revelt
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/codsen-utils/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "email-all-chars-within-ascii",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"description": "Scans all characters within a string and checks are they within ASCII range",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"7bit",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"codsen-utils": "^1.
|
|
68
|
+
"codsen-utils": "^1.9.0"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=18.20.8"
|