Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ranges-push

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ranges-push - npm Package Compare versions

Comparing version 7.0.10 to 7.0.11

4

dist/ranges-push.esm.js
/**
* @name ranges-push
* @fileoverview Gather string index ranges
* @version 7.0.10
* @version 7.0.11
* @author Roy Revelt, Codsen Ltd

@@ -10,4 +10,4 @@ * @license MIT

import{collWhitespace as m}from"string-collapse-leading-whitespace";import{existy as a,isStr as u,isInt as g}from"codsen-utils";import{rSort as c}from"ranges-sort";var d="7.0.10";var f={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function $(p,t){function r(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}if(!Array.isArray(p)||!p.length)return null;let s;if(t)if(r(t)){if(s={...f,...t},s.progressFn&&r(s.progressFn)&&!Object.keys(s.progressFn).length)s.progressFn=null;else if(s.progressFn&&typeof s.progressFn!="function")throw new Error(`ranges-merge: [THROW_ID_01] resolvedOpts.progressFn must be a function! It was given of a type: "${typeof s.progressFn}", equal to ${JSON.stringify(s.progressFn,null,4)}`);if(![1,2,"1","2"].includes(s.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "${typeof s.mergeType}", equal to ${JSON.stringify(s.mergeType,null,4)}`);if(typeof s.joinRangesThatTouchEdges!="boolean")throw new Error(`ranges-merge: [THROW_ID_04] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof s.joinRangesThatTouchEdges}", equal to ${JSON.stringify(s.joinRangesThatTouchEdges,null,4)}`)}else throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:
import{collWhitespace as m}from"string-collapse-leading-whitespace";import{existy as a,isStr as u,isInt as g}from"codsen-utils";import{rSort as c}from"ranges-sort";var d="7.0.11";var f={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function $(p,t){function r(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}if(!Array.isArray(p)||!p.length)return null;let s;if(t)if(r(t)){if(s={...f,...t},s.progressFn&&r(s.progressFn)&&!Object.keys(s.progressFn).length)s.progressFn=null;else if(s.progressFn&&typeof s.progressFn!="function")throw new Error(`ranges-merge: [THROW_ID_01] resolvedOpts.progressFn must be a function! It was given of a type: "${typeof s.progressFn}", equal to ${JSON.stringify(s.progressFn,null,4)}`);if(![1,2,"1","2"].includes(s.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "${typeof s.mergeType}", equal to ${JSON.stringify(s.mergeType,null,4)}`);if(typeof s.joinRangesThatTouchEdges!="boolean")throw new Error(`ranges-merge: [THROW_ID_04] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof s.joinRangesThatTouchEdges}", equal to ${JSON.stringify(s.joinRangesThatTouchEdges,null,4)}`)}else throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:
${JSON.stringify(t,null,4)} (type ${typeof t})`);else s={...f};let i=p.filter(e=>Array.isArray(e)).map(e=>[...e]).filter(e=>e[2]!==void 0||e[0]!==e[1]),n,o,l;s.progressFn?n=c(i,{progressFn:e=>{l=Math.floor(e/5),l!==o&&(o=l,s.progressFn(l))}}):n=c(i);let h=n.length-1;for(let e=h;e>0;e--)s.progressFn&&(l=Math.floor((1-e/h)*78)+21,l!==o&&l>o&&(o=l,s.progressFn(l))),(n[e][0]<=n[e-1][0]||!s.joinRangesThatTouchEdges&&n[e][0]<n[e-1][1]||s.joinRangesThatTouchEdges&&n[e][0]<=n[e-1][1])&&(n[e-1][0]=Math.min(n[e][0],n[e-1][0]),n[e-1][1]=Math.max(n[e][1],n[e-1][1]),n[e][2]!==void 0&&(n[e-1][0]>=n[e][0]||n[e-1][1]<=n[e][1])&&n[e-1][2]!==null&&(n[e][2]===null&&n[e-1][2]!==null?n[e-1][2]=null:n[e-1][2]!=null?+s.mergeType==2&&n[e-1][0]===n[e][0]?n[e-1][2]=n[e][2]:n[e-1][2]+=n[e][2]:n[e-1][2]=n[e][2]),n.splice(e,1),e=n.length);return n.length?n:null}var v=d,R={limitToBeAddedWhitespace:!1,limitLinebreaksCount:1,mergeType:1},y=class{constructor(t){let r={...R,...t};if(r.mergeType&&r.mergeType!==1&&r.mergeType!==2)if(u(r.mergeType)&&r.mergeType.trim()==="1")r.mergeType=1;else if(u(r.mergeType)&&r.mergeType.trim()==="2")r.mergeType=2;else throw new Error(`ranges-push: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "${typeof r.mergeType}", equal to ${JSON.stringify(r.mergeType,null,4)}`);this.opts=r,this.ranges=[]}ranges;opts;add(t,r,s){if(t==null&&r==null)return;if(a(t)&&!a(r)){if(Array.isArray(t)){if(t.length){if(t.some(o=>Array.isArray(o))){t.forEach(o=>{Array.isArray(o)&&this.add(...o)});return}t.length&&g(+t[0])&&g(+t[1])&&this.add(...t)}return}throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_12] the first input argument, "from" is set (${JSON.stringify(t,null,0)}) but second-one, "to" is not (${JSON.stringify(r,null,0)})`)}else if(!a(t)&&a(r))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_13] the second input argument, "to" is set (${JSON.stringify(r,null,0)}) but first-one, "from" is not (${JSON.stringify(t,null,0)})`);let i=+t,n=+r;if(g(s)&&(s=String(s)),g(i)&&g(n)){if(a(s)&&!u(s)&&!g(s))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_08] The third argument, the value to add, was given not as string but ${typeof s}, equal to:
${JSON.stringify(s,null,4)}`);if(a(this.ranges)&&Array.isArray(this.last())&&i===this.last()[1]){if(this.last()[1]=n,this.last()[2],this.last()[2]!==null&&a(s)){let o=this.last()[2]&&this.last()[2].length&&(!this.opts?.mergeType||this.opts.mergeType===1)?`${this.last()[2]}${s}`:s;this.opts.limitToBeAddedWhitespace&&(o=m(o,this.opts.limitLinebreaksCount)),u(o)&&!o.length||(this.last()[2]=o)}}else{this.ranges||(this.ranges=[]);let o=s!==void 0&&!(u(s)&&!s.length)?[i,n,s&&this.opts.limitToBeAddedWhitespace?m(s,this.opts.limitLinebreaksCount):s]:[i,n];this.ranges.push(o)}}else throw g(i)&&i>=0?new TypeError(`ranges-push/Ranges/add(): [THROW_ID_10] "to" value, the second input argument, must be a natural number or zero! Currently it's of a type "${typeof n}" equal to: ${JSON.stringify(n,null,4)}`):new TypeError(`ranges-push/Ranges/add(): [THROW_ID_09] "from" value, the first input argument, must be a natural number or zero! Currently it's of a type "${typeof i}" equal to: ${JSON.stringify(i,null,4)}`)}push(t,r,s){this.add(t,r,s)}current(){return Array.isArray(this.ranges)&&this.ranges.length?(this.ranges=$(this.ranges,{mergeType:this.opts.mergeType}),this.ranges&&this.opts.limitToBeAddedWhitespace?this.ranges.map(t=>a(t[2])?[t[0],t[1],m(t[2],this.opts.limitLinebreaksCount)]:t):this.ranges):null}wipe(){this.ranges=[]}replace(t){if(Array.isArray(t)&&t.length)if(Array.isArray(t[0])&&g(t[0][0]))this.ranges=Array.from(t);else throw new Error(`ranges-push/Ranges/replace(): [THROW_ID_11] Single range was given but we expected array of arrays! The first element, ${JSON.stringify(t[0],null,4)} should be an array and its first element should be an integer, a string index.`);else this.ranges=[]}last(){return Array.isArray(this.ranges)&&this.ranges.length?this.ranges[this.ranges.length-1]:null}};export{y as Ranges,R as defaults,v as version};
/**
* @name ranges-push
* @fileoverview Gather string index ranges
* @version 7.0.10
* @version 7.0.11
* @author Roy Revelt, Codsen Ltd

@@ -13,3 +13,3 @@ * @license MIT

`;if(!e)return e;let f=0,c=0,p="";for(let g=0,M=e.length;g<M;g++)(e[g]===u||e[g]===n&&e[g-1]!==u)&&c++,`\r
`.includes(e[g])||e[g]===o?(f=0,e[g]===o?p+=e[g]:e[g]===u?c<=a&&(p+=e[g],e[g+1]===n&&(p+=e[g+1],g++)):e[g]===n&&(e==null?void 0:e[g-1])!==u&&c<=a&&(p+=e[g])):(f++,!e[g+1]&&!c&&(p+=" "));return p}if(typeof s=="string"&&s.length){let e=1;typeof+t=="number"&&Number.isInteger(+t)&&+t>=0&&(e=+t);let a="",r="";if(!s.trim())a=s;else if(!s[0].trim()){for(let u=0,n=s.length;u<n;u++)if(s[u].trim()){a=s.slice(0,u);break}}if(s.trim()&&(s.slice(-1).trim()===""||s.slice(-1)===o)){for(let u=s.length;u--;)if(s[u].trim()){r=s.slice(u+1);break}}return`${l(a,e,!1)}${s.trim()}${i(l(i(r),e,!0))}`}return s}var x=P(N(),1);var ee=(0,x.default)();function b(s){return typeof s=="string"}function y(s){return Number.isSafeInteger(s)&&s>=0}function h(s){return s!=null}var Q={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function D(s,t){if(!Array.isArray(s)||!s.length)return s;let o=m(m({},Q),t),i,l;if(o.strictlyTwoElementsInRangeArrays&&!s.every((r,u)=>!Array.isArray(r)||r.length!==2?(i=u,l=r.length,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${i}th range (${JSON.stringify(s[i],null,4)}) has not two but ${l} elements!`);if(!s.every((r,u)=>!Array.isArray(r)||!Number.isInteger(r[0])||r[0]<0||!Number.isInteger(r[1])||r[1]<0?(i=u,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${i}th range (${JSON.stringify(s[i],null,4)}) does not consist of only natural numbers!`);let e=s.length**2,a=0;return Array.from(s).sort((r,u)=>(o.progressFn&&(a+=1,o.progressFn(Math.floor(a*100/e))),r[0]===u[0]?r[1]<u[1]?-1:r[1]>u[1]?1:0:r[0]<u[0]?-1:1))}var V="7.0.10";var j={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function C(s,t){function o(n){return!!n&&typeof n=="object"&&!Array.isArray(n)}if(!Array.isArray(s)||!s.length)return null;let i;if(t)if(o(t)){if(i=m(m({},j),t),i.progressFn&&o(i.progressFn)&&!Object.keys(i.progressFn).length)i.progressFn=null;else if(i.progressFn&&typeof i.progressFn!="function")throw new Error(`ranges-merge: [THROW_ID_01] resolvedOpts.progressFn must be a function! It was given of a type: "${typeof i.progressFn}", equal to ${JSON.stringify(i.progressFn,null,4)}`);if(![1,2,"1","2"].includes(i.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "${typeof i.mergeType}", equal to ${JSON.stringify(i.mergeType,null,4)}`);if(typeof i.joinRangesThatTouchEdges!="boolean")throw new Error(`ranges-merge: [THROW_ID_04] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof i.joinRangesThatTouchEdges}", equal to ${JSON.stringify(i.joinRangesThatTouchEdges,null,4)}`)}else throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:
`.includes(e[g])||e[g]===o?(f=0,e[g]===o?p+=e[g]:e[g]===u?c<=a&&(p+=e[g],e[g+1]===n&&(p+=e[g+1],g++)):e[g]===n&&(e==null?void 0:e[g-1])!==u&&c<=a&&(p+=e[g])):(f++,!e[g+1]&&!c&&(p+=" "));return p}if(typeof s=="string"&&s.length){let e=1;typeof+t=="number"&&Number.isInteger(+t)&&+t>=0&&(e=+t);let a="",r="";if(!s.trim())a=s;else if(!s[0].trim()){for(let u=0,n=s.length;u<n;u++)if(s[u].trim()){a=s.slice(0,u);break}}if(s.trim()&&(s.slice(-1).trim()===""||s.slice(-1)===o)){for(let u=s.length;u--;)if(s[u].trim()){r=s.slice(u+1);break}}return`${l(a,e,!1)}${s.trim()}${i(l(i(r),e,!0))}`}return s}var x=P(N(),1);var ee=(0,x.default)();function b(s){return typeof s=="string"}function y(s){return Number.isSafeInteger(s)&&s>=0}function h(s){return s!=null}var Q={strictlyTwoElementsInRangeArrays:!1,progressFn:null};function D(s,t){if(!Array.isArray(s)||!s.length)return s;let o=m(m({},Q),t),i,l;if(o.strictlyTwoElementsInRangeArrays&&!s.every((r,u)=>!Array.isArray(r)||r.length!==2?(i=u,l=r.length,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_03] The first argument should be an array and must consist of arrays which are natural number indexes representing TWO string index ranges. However, ${i}th range (${JSON.stringify(s[i],null,4)}) has not two but ${l} elements!`);if(!s.every((r,u)=>!Array.isArray(r)||!Number.isInteger(r[0])||r[0]<0||!Number.isInteger(r[1])||r[1]<0?(i=u,!1):!0))throw new TypeError(`ranges-sort: [THROW_ID_04] The first argument should be an array and must consist of arrays which are natural number indexes representing string index ranges. However, ${i}th range (${JSON.stringify(s[i],null,4)}) does not consist of only natural numbers!`);let e=s.length**2,a=0;return Array.from(s).sort((r,u)=>(o.progressFn&&(a+=1,o.progressFn(Math.floor(a*100/e))),r[0]===u[0]?r[1]<u[1]?-1:r[1]>u[1]?1:0:r[0]<u[0]?-1:1))}var V="7.0.11";var j={mergeType:1,progressFn:null,joinRangesThatTouchEdges:!0};function C(s,t){function o(n){return!!n&&typeof n=="object"&&!Array.isArray(n)}if(!Array.isArray(s)||!s.length)return null;let i;if(t)if(o(t)){if(i=m(m({},j),t),i.progressFn&&o(i.progressFn)&&!Object.keys(i.progressFn).length)i.progressFn=null;else if(i.progressFn&&typeof i.progressFn!="function")throw new Error(`ranges-merge: [THROW_ID_01] resolvedOpts.progressFn must be a function! It was given of a type: "${typeof i.progressFn}", equal to ${JSON.stringify(i.progressFn,null,4)}`);if(![1,2,"1","2"].includes(i.mergeType))throw new Error(`ranges-merge: [THROW_ID_02] resolvedOpts.mergeType was customised to a wrong thing! It was given of a type: "${typeof i.mergeType}", equal to ${JSON.stringify(i.mergeType,null,4)}`);if(typeof i.joinRangesThatTouchEdges!="boolean")throw new Error(`ranges-merge: [THROW_ID_04] resolvedOpts.joinRangesThatTouchEdges was customised to a wrong thing! It was given of a type: "${typeof i.joinRangesThatTouchEdges}", equal to ${JSON.stringify(i.joinRangesThatTouchEdges,null,4)}`)}else throw new Error(`emlint: [THROW_ID_03] the second input argument must be a plain object. It was given as:
${JSON.stringify(t,null,4)} (type ${typeof t})`);else i=m({},j);let l=s.filter(n=>Array.isArray(n)).map(n=>[...n]).filter(n=>n[2]!==void 0||n[0]!==n[1]),e,a,r;i.progressFn?e=D(l,{progressFn:n=>{r=Math.floor(n/5),r!==a&&(a=r,i.progressFn(r))}}):e=D(l);let u=e.length-1;for(let n=u;n>0;n--)i.progressFn&&(r=Math.floor((1-n/u)*78)+21,r!==a&&r>a&&(a=r,i.progressFn(r))),(e[n][0]<=e[n-1][0]||!i.joinRangesThatTouchEdges&&e[n][0]<e[n-1][1]||i.joinRangesThatTouchEdges&&e[n][0]<=e[n-1][1])&&(e[n-1][0]=Math.min(e[n][0],e[n-1][0]),e[n-1][1]=Math.max(e[n][1],e[n-1][1]),e[n][2]!==void 0&&(e[n-1][0]>=e[n][0]||e[n-1][1]<=e[n][1])&&e[n-1][2]!==null&&(e[n][2]===null&&e[n-1][2]!==null?e[n-1][2]=null:e[n-1][2]!=null?+i.mergeType==2&&e[n-1][0]===e[n][0]?e[n-1][2]=e[n][2]:e[n-1][2]+=e[n][2]:e[n-1][2]=e[n][2]),e.splice(n,1),n=e.length);return e.length?e:null}var K=V,I={limitToBeAddedWhitespace:!1,limitLinebreaksCount:1,mergeType:1},E=class{constructor(t){R(this,"ranges");R(this,"opts");let o=m(m({},I),t);if(o.mergeType&&o.mergeType!==1&&o.mergeType!==2)if(b(o.mergeType)&&o.mergeType.trim()==="1")o.mergeType=1;else if(b(o.mergeType)&&o.mergeType.trim()==="2")o.mergeType=2;else throw new Error(`ranges-push: [THROW_ID_02] opts.mergeType was customised to a wrong thing! It was given of a type: "${typeof o.mergeType}", equal to ${JSON.stringify(o.mergeType,null,4)}`);this.opts=o,this.ranges=[]}add(t,o,i){var a;if(t==null&&o==null)return;if(h(t)&&!h(o)){if(Array.isArray(t)){if(t.length){if(t.some(r=>Array.isArray(r))){t.forEach(r=>{Array.isArray(r)&&this.add(...r)});return}t.length&&y(+t[0])&&y(+t[1])&&this.add(...t)}return}throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_12] the first input argument, "from" is set (${JSON.stringify(t,null,0)}) but second-one, "to" is not (${JSON.stringify(o,null,0)})`)}else if(!h(t)&&h(o))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_13] the second input argument, "to" is set (${JSON.stringify(o,null,0)}) but first-one, "from" is not (${JSON.stringify(t,null,0)})`);let l=+t,e=+o;if(y(i)&&(i=String(i)),y(l)&&y(e)){if(h(i)&&!b(i)&&!y(i))throw new TypeError(`ranges-push/Ranges/add(): [THROW_ID_08] The third argument, the value to add, was given not as string but ${typeof i}, equal to:

@@ -20,3 +20,3 @@ ${JSON.stringify(i,null,4)}`);if(h(this.ranges)&&Array.isArray(this.last())&&l===this.last()[1]){if(this.last()[1]=e,this.last()[2],this.last()[2]!==null&&h(i)){let r=this.last()[2]&&this.last()[2].length&&(!((a=this.opts)!=null&&a.mergeType)||this.opts.mergeType===1)?`${this.last()[2]}${i}`:i;this.opts.limitToBeAddedWhitespace&&(r=A(r,this.opts.limitLinebreaksCount)),b(r)&&!r.length||(this.last()[2]=r)}}else{this.ranges||(this.ranges=[]);let r=i!==void 0&&!(b(i)&&!i.length)?[l,e,i&&this.opts.limitToBeAddedWhitespace?A(i,this.opts.limitLinebreaksCount):i]:[l,e];this.ranges.push(r)}}else throw y(l)&&l>=0?new TypeError(`ranges-push/Ranges/add(): [THROW_ID_10] "to" value, the second input argument, must be a natural number or zero! Currently it's of a type "${typeof e}" equal to: ${JSON.stringify(e,null,4)}`):new TypeError(`ranges-push/Ranges/add(): [THROW_ID_09] "from" value, the first input argument, must be a natural number or zero! Currently it's of a type "${typeof l}" equal to: ${JSON.stringify(l,null,4)}`)}push(t,o,i){this.add(t,o,i)}current(){return Array.isArray(this.ranges)&&this.ranges.length?(this.ranges=C(this.ranges,{mergeType:this.opts.mergeType}),this.ranges&&this.opts.limitToBeAddedWhitespace?this.ranges.map(t=>h(t[2])?[t[0],t[1],A(t[2],this.opts.limitLinebreaksCount)]:t):this.ranges):null}wipe(){this.ranges=[]}replace(t){if(Array.isArray(t)&&t.length)if(Array.isArray(t[0])&&y(t[0][0]))this.ranges=Array.from(t);else throw new Error(`ranges-push/Ranges/replace(): [THROW_ID_11] Single range was given but we expected array of arrays! The first element, ${JSON.stringify(t[0],null,4)} should be an array and its first element should be an integer, a string index.`);else this.ranges=[]}last(){return Array.isArray(this.ranges)&&this.ranges.length?this.ranges[this.ranges.length-1]:null}};return U(Y);})();

* @fileoverview Collapse the leading and trailing whitespace of a string
* @version 7.0.5
* @version 7.0.6
* @author Roy Revelt, Codsen Ltd

@@ -29,3 +29,3 @@ * @license MIT

* @fileoverview Various utility functions
* @version 1.6.0
* @version 1.6.1
* @author Roy Revelt, Codsen Ltd

@@ -38,3 +38,3 @@ * @license MIT

* @fileoverview Sort string index ranges
* @version 6.0.8
* @version 6.0.9
* @author Roy Revelt, Codsen Ltd

@@ -41,0 +41,0 @@ * @license MIT

{
"name": "ranges-push",
"version": "7.0.10",
"version": "7.0.11",
"description": "Gather string index ranges",

@@ -42,3 +42,3 @@ "keywords": [

"devtest": "c8 npm run unit && npm run examples && npm run lint",
"dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --loglevel 'silent'",
"dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --log-level 'silent'",
"examples": "node '../../ops/scripts/run-examples.js'",

@@ -51,3 +51,3 @@ "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",

"prettier": "prettier",
"prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --loglevel 'silent'",
"prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
"pretest": "npm run lect && npm run build",

@@ -76,7 +76,7 @@ "test": "npm run devtest",

"dependencies": {
"codsen-utils": "^1.6.0",
"ranges-sort": "^6.0.8",
"string-collapse-leading-whitespace": "^7.0.5",
"string-trim-spaces-only": "^5.0.7"
"codsen-utils": "^1.6.1",
"ranges-sort": "^6.0.9",
"string-collapse-leading-whitespace": "^7.0.6",
"string-trim-spaces-only": "^5.0.8"
}
}

@@ -56,3 +56,3 @@ <h1 align="center">ranges-push</h1>

rApply(oldString, gatheredRanges.current()),
"The bad grey wolf jumps over the little Red Riding Hood."
"The bad grey wolf jumps over the little Red Riding Hood.",
);

@@ -59,0 +59,0 @@

@@ -19,3 +19,3 @@ type Range =

originalTo?: number,
addVal?: undefined | null | string
addVal?: undefined | null | string,
): void;

@@ -26,3 +26,3 @@ add(originalFrom: Range[] | Range | null): void;

originalTo?: number,
addVal?: undefined | null | string
addVal?: undefined | null | string,
): void;

@@ -29,0 +29,0 @@ push(originalFrom: Range[] | Range | null): void;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc