ranges-iterate 4.0.29 → 4.0.31

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/.eslintcache ADDED
@@ -0,0 +1 @@
1
+ [{"/home/runner/work/codsen/codsen/packages/ranges-iterate/examples/_quickTake.js":"1","/home/runner/work/codsen/codsen/packages/ranges-iterate/perf/check.js":"2","/home/runner/work/codsen/codsen/packages/ranges-iterate/rollup.config.js":"3","/home/runner/work/codsen/codsen/packages/ranges-iterate/src/main.ts":"4","/home/runner/work/codsen/codsen/packages/ranges-iterate/test/test.js":"5"},{"size":572,"mtime":1760280945947,"results":"6","hashOfConfig":"7"},{"size":482,"mtime":1760280945947,"results":"8","hashOfConfig":"9"},{"size":373,"mtime":1760280945947,"results":"10","hashOfConfig":"7"},{"size":6960,"mtime":1760280945947,"results":"11","hashOfConfig":"9"},{"size":10592,"mtime":1760280945947,"results":"12","hashOfConfig":"13"},{"filePath":"14","messages":"15","suppressedMessages":"16","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1f1u168",{"filePath":"17","messages":"18","suppressedMessages":"19","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"91l1rm",{"filePath":"20","messages":"21","suppressedMessages":"22","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"23","messages":"24","suppressedMessages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","suppressedMessages":"28","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"ns3qdb","/home/runner/work/codsen/codsen/packages/ranges-iterate/examples/_quickTake.js",[],[],"/home/runner/work/codsen/codsen/packages/ranges-iterate/perf/check.js",[],["29","30"],"/home/runner/work/codsen/codsen/packages/ranges-iterate/rollup.config.js",[],[],"/home/runner/work/codsen/codsen/packages/ranges-iterate/src/main.ts",[],[],"/home/runner/work/codsen/codsen/packages/ranges-iterate/test/test.js",["31"],["32","33","34","35","36"],{"ruleId":"37","severity":2,"message":"38","line":11,"column":5,"nodeType":null,"messageId":"39","endLine":11,"endColumn":11,"suppressions":"40"},{"ruleId":"37","severity":2,"message":"41","line":12,"column":5,"nodeType":null,"messageId":"39","endLine":12,"endColumn":10,"suppressions":"42"},{"ruleId":"43","severity":1,"message":"44","line":347,"column":1,"nodeType":"45","messageId":"46","endLine":347,"endColumn":99},{"ruleId":"37","severity":2,"message":"47","line":3,"column":17,"nodeType":null,"messageId":"39","endLine":3,"endColumn":19,"suppressions":"48"},{"ruleId":"37","severity":2,"message":"49","line":3,"column":21,"nodeType":null,"messageId":"39","endLine":3,"endColumn":23,"suppressions":"50"},{"ruleId":"37","severity":2,"message":"51","line":3,"column":33,"nodeType":null,"messageId":"39","endLine":3,"endColumn":37,"suppressions":"52"},{"ruleId":"37","severity":2,"message":"53","line":3,"column":39,"nodeType":null,"messageId":"39","endLine":3,"endColumn":42,"suppressions":"54"},{"ruleId":"37","severity":2,"message":"55","line":3,"column":44,"nodeType":null,"messageId":"39","endLine":3,"endColumn":49,"suppressions":"56"},"@typescript-eslint/no-unused-vars","'pinged' is assigned a value but never used.","unusedVar",["57"],"'index' is assigned a value but never used.",["58"],"jest/no-commented-out-tests","Do not comment out tests","Line","commentedTests","'is' is defined but never used.",["59"],"'ok' is defined but never used.",["60"],"'type' is defined but never used.",["61"],"'not' is defined but never used.",["62"],"'match' is defined but never used.",["63"],{"kind":"64","justification":"65"},{"kind":"64","justification":"65"},{"kind":"64","justification":"65"},{"kind":"64","justification":"65"},{"kind":"64","justification":"65"},{"kind":"64","justification":"65"},{"kind":"64","justification":"65"},"directive",""]
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2010-2025 Roy Revelt and other contributors
3
+ Copyright © 2010-2025 Roy Revelt and other contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -66,8 +66,8 @@ To report bugs or request features or assistance, [raise an issue](https://githu
66
66
 
67
67
  ## Licence
68
68
 
69
- MIT License.
69
+ MIT License
70
70
 
71
- Copyright © 2010-2025 Roy Revelt and other contributors.
71
+ Copyright © 2010-2025 Roy Revelt and other contributors
72
72
 
73
73
  <p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @name ranges-iterate
3
3
  * @fileoverview Iterate a string and any changes within given string index ranges
4
- * @version 4.0.29
5
- * @author Roy Revelt, Codsen Ltd
4
+ * @version 4.0.31
5
+ * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/ranges-iterate/}
8
8
  */
9
9
 
10
- var m="4.0.29";var f=m;function b(t,i,r,a=0){if(typeof t!="string")throw new TypeError(`ranges-iterate: [THROW_ID_01] Input string must be a string! It was given as ${typeof t}, equal to: ${JSON.stringify(t,null,0)}`);if(!t.length)throw new TypeError("ranges-iterate: [THROW_ID_02] Input string must be non-empty!");if(i&&!Array.isArray(i))throw new TypeError(`ranges-iterate: [THROW_ID_03] Input ranges must be an array, consisting of zero or more arrays! Currently its type is: ${typeof i}, equal to: ${JSON.stringify(i,null,0)}`);if(r){if(typeof r!="function")throw new TypeError(`ranges-iterate: [THROW_ID_05] The callback function (third input argument) must be a function. It was given as: ${typeof r}, equal to: ${JSON.stringify(r,null,0)}`)}else throw new TypeError("ranges-iterate: [THROW_ID_04] You should provide a callback function as third input argument!");if(i?.length){let e=Array.from(i),o=a,n=a;if(n<e[0][0])for(;n<e[0][0]&&t[n];n++,o++)r({i:n,val:t[n]});e[0][0]<=o&&e.forEach((s,u)=>{if(s[2])for(let l=0,$=s[2].length;l<$;l++)r({i:n,val:s[2][l]}),n+=1;for(;o<s[1];)o+=1;let p=t.length;for(e[u+1]&&(p=e[u+1][0]);o<p;n++,o++)r({i:n,val:t[o]})})}else for(let e=0;e<t.length;e++)r({i:e,val:t[e]})}export{b as rIterate,f as version};
10
+ var c="4.0.31";var f=c;function b(t,i,r,a=0){if(typeof t!="string")throw new TypeError(`ranges-iterate: [THROW_ID_01] Input string must be a string! It was given as ${typeof t}, equal to: ${JSON.stringify(t,null,0)}`);if(!t.length)throw new TypeError("ranges-iterate: [THROW_ID_02] Input string must be non-empty!");if(i&&!Array.isArray(i))throw new TypeError(`ranges-iterate: [THROW_ID_03] Input ranges must be an array, consisting of zero or more arrays! Currently its type is: ${typeof i}, equal to: ${JSON.stringify(i,null,0)}`);if(r){if(typeof r!="function")throw new TypeError(`ranges-iterate: [THROW_ID_05] The callback function (third input argument) must be a function. It was given as: ${typeof r}, equal to: ${JSON.stringify(r,null,0)}`)}else throw new TypeError("ranges-iterate: [THROW_ID_04] You should provide a callback function as third input argument!");if(i?.length){let e=Array.from(i),o=a,n=a;if(n<e[0][0])for(;n<e[0][0]&&t[n];n++,o++)r({i:n,val:t[n]});e[0][0]<=o&&e.forEach((s,u)=>{if(s[2])for(let l=0,m=s[2].length;l<m;l++)r({i:n,val:s[2][l]}),n+=1;for(;o<s[1];)o+=1;let p=t.length;for(e[u+1]&&(p=e[u+1][0]);o<p;n++,o++)r({i:n,val:t[o]})})}else for(let e=0;e<t.length;e++)r({i:e,val:t[e]})}export{b as rIterate,f as version};
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @name ranges-iterate
3
3
  * @fileoverview Iterate a string and any changes within given string index ranges
4
- * @version 4.0.29
5
- * @author Roy Revelt, Codsen Ltd
4
+ * @version 4.0.31
5
+ * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/ranges-iterate/}
8
8
  */
9
9
 
10
- "use strict";var rangesIterate=(()=>{var u=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var b=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of g(t))!f.call(e,r)&&r!==n&&u(e,r,{get:()=>t[r],enumerable:!(i=d(t,r))||i.enumerable});return e};var y=e=>x(u({},"__esModule",{value:!0}),e);var E={};b(E,{rIterate:()=>v,version:()=>h});var $="4.0.29";var h=$;function v(e,t,n,i=0){if(typeof e!="string")throw new TypeError("ranges-iterate: [THROW_ID_01] Input string must be a string! It was given as ".concat(typeof e,", equal to: ").concat(JSON.stringify(e,null,0)));if(!e.length)throw new TypeError("ranges-iterate: [THROW_ID_02] Input string must be non-empty!");if(t&&!Array.isArray(t))throw new TypeError("ranges-iterate: [THROW_ID_03] Input ranges must be an array, consisting of zero or more arrays! Currently its type is: ".concat(typeof t,", equal to: ").concat(JSON.stringify(t,null,0)));if(n){if(typeof n!="function")throw new TypeError("ranges-iterate: [THROW_ID_05] The callback function (third input argument) must be a function. It was given as: ".concat(typeof n,", equal to: ").concat(JSON.stringify(n,null,0)))}else throw new TypeError("ranges-iterate: [THROW_ID_04] You should provide a callback function as third input argument!");if(t!=null&&t.length){let r=Array.from(t),s=i,o=i;if(o<r[0][0])for(;o<r[0][0]&&e[o];o++,s++)n({i:o,val:e[o]});r[0][0]<=s&&r.forEach((l,p)=>{if(l[2])for(let a=0,c=l[2].length;a<c;a++)n({i:o,val:l[2][a]}),o+=1;for(;s<l[1];)s+=1;let m=e.length;for(r[p+1]&&(m=r[p+1][0]);s<m;o++,s++)n({i:o,val:e[s]})})}else for(let r=0;r<e.length;r++)n({i:r,val:e[r]})}return y(E);})();
10
+ "use strict";var rangesIterate=(()=>{var u=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var b=(e,r)=>{for(var n in r)u(e,n,{get:r[n],enumerable:!0})},x=(e,r,n,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of g(r))!f.call(e,t)&&t!==n&&u(e,t,{get:()=>r[t],enumerable:!(i=d(r,t))||i.enumerable});return e};var y=e=>x(u({},"__esModule",{value:!0}),e);var E={};b(E,{rIterate:()=>v,version:()=>h});var m="4.0.31";var h=m;function v(e,r,n,i=0){if(typeof e!="string")throw new TypeError("ranges-iterate: [THROW_ID_01] Input string must be a string! It was given as ".concat(typeof e,", equal to: ").concat(JSON.stringify(e,null,0)));if(!e.length)throw new TypeError("ranges-iterate: [THROW_ID_02] Input string must be non-empty!");if(r&&!Array.isArray(r))throw new TypeError("ranges-iterate: [THROW_ID_03] Input ranges must be an array, consisting of zero or more arrays! Currently its type is: ".concat(typeof r,", equal to: ").concat(JSON.stringify(r,null,0)));if(n){if(typeof n!="function")throw new TypeError("ranges-iterate: [THROW_ID_05] The callback function (third input argument) must be a function. It was given as: ".concat(typeof n,", equal to: ").concat(JSON.stringify(n,null,0)))}else throw new TypeError("ranges-iterate: [THROW_ID_04] You should provide a callback function as third input argument!");if(r!=null&&r.length){let t=Array.from(r),s=i,o=i;if(o<t[0][0])for(;o<t[0][0]&&e[o];o++,s++)n({i:o,val:e[o]});t[0][0]<=s&&t.forEach((l,p)=>{if(l[2])for(let a=0,$=l[2].length;a<$;a++)n({i:o,val:l[2][a]}),o+=1;for(;s<l[1];)s+=1;let c=e.length;for(t[p+1]&&(c=t[p+1][0]);s<c;o++,s++)n({i:o,val:e[s]})})}else for(let t=0;t<e.length;t++)n({i:t,val:e[t]})}return y(E);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ranges-iterate",
3
- "version": "4.0.29",
3
+ "version": "4.0.31",
4
4
  "description": "Iterate a string and any changes within given string index ranges",
5
5
  "keywords": [
6
6
  "array",
@@ -43,7 +43,7 @@
43
43
  "examples": "node '../../ops/scripts/run-examples.js'",
44
44
  "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
45
45
  "letspublish": "npm publish --provenance || :",
46
- "lint": "eslint . --fix",
46
+ "lint": "eslint . --fix --concurrency=auto --cache",
47
47
  "perf": "node perf/check.js",
48
48
  "prep": "echo 'ready'",
49
49
  "prettier": "prettier",
@@ -70,8 +70,8 @@
70
70
  }
71
71
  },
72
72
  "devDependencies": {
73
- "ranges-apply": "^7.0.29",
74
- "ranges-merge": "^9.0.28"
73
+ "ranges-apply": "^7.0.31",
74
+ "ranges-merge": "^9.0.30"
75
75
  },
76
76
  "publishConfig": {
77
77
  "registry": "https://registry.npmjs.org/"