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

ranges-set

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ranges-set - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

2

index.js

@@ -1,2 +0,2 @@

var n=/^(?:0|[1-9]\d*)$/,r=/^(0|[1-9]\d*)\s*-\s*(0|[1-9]\d*)$/;function t(n,r){if(n.t!==r.t)return n.t-r.t;switch(n.t){case 0:return n.u>=r.u?n.u>r.u?1:0:-1;case 1:return n.i-r.i||n.o-r.o}}function u(n,r){var t,u,e,i,f,c,o=[];n:for(t=0;t<n.length;++t){switch((u=n[t]).t){case 0:for(e=0;e<r.length;++e)if(0===(i=r[e]).t&&i.u===u.u)continue n;break;case 1:for(f=0;f<r.length;++f)if(1===(c=r[f]).t){if(u.i>=c.i&&u.o<=c.o)continue n;if(u.i<=c.i&&u.o>=c.o){u.o>c.o&&n.splice(t+1,0,{t:1,i:c.o+1,o:u.o}),u.i<c.i&&n.splice(t+1,0,{t:1,i:u.i,o:c.i-1});continue n}u.i>=c.i&&u.i<=c.o?u.i=c.o+1:u.o>=c.i&&u.o<=c.o&&(u.o=c.i-1)}}o.push(u)}return o}function e(n,r){if(n.length!==r.length)return!1;for(var u=0;u<n.length;++u)if(t(n[u],r[u]))return!1;return!0}function i(n){var r,t,u,e=[];for(r=0;r<n.length;++r)switch((t=n[r]).t){case 0:e.push(t.u);break;case 1:for(u=t.i;u<=t.o;++u)e.push(""+u)}return e}function f(n,r){var t,u;if(n.t!==r.t)return null;switch(n.t){case 0:return n.u===r.u?n:null;case 1:return(t=Math.max(n.i,r.i))>(u=Math.min(n.o,r.o))?null:{t:1,i:t,o:u}}}function c(n,r){var t,u,e,i,c=[];for(t=0;t<n.length;++t)for(u=n[t],e=0;e<r.length;++e)null!==(i=f(u,r[e]))&&c.push(i);return c}function o(n){var r,t,u=[],e=n.split(",");for(r=0;r<e.length;++r)(t=e[r].trim())&&v(u,a(t));return u}function a(t){var u,e;return n.test(t)?{t:1,i:u=+t,o:u}:(e=r.exec(t))?{t:1,i:+e[1],o:+e[2]}:{t:0,u:t}}function s(n){return n.map(_).join()}function _(n){switch(n.t){case 0:return n.u;case 1:return n.i===n.o?""+n.i:n.i+"-"+n.o}}function x(n,r){var t,u,e,i,f,c;n:for(t=0;t<r.length;++t)switch((u=r[t]).t){case 0:for(e=0;e<n.length;++e)if(0===(i=n[e]).t&&i.u===u.u)continue n;return!1;case 1:for(f=0;f<n.length;++f)if(1===(c=n[f]).t&&c.i<=u.i&&c.o>=u.o)continue n;return!1}return!0}function h(n,r){var t;if(n.t!==r.t)return!1;switch(n.t){case 0:return n.u===r.u;case 1:return(t=n.i<=r.o+1&&n.o>=r.i||r.i<=n.o+1&&r.o>=n.i)&&(n.i=Math.min(n.i,r.i),n.o=Math.max(n.o,r.o)),t}}function v(n,r){for(var u,e,i=0,f=n.length;i<f;){if(!(e=t(r,n[u=i+f>>>1])))return;e<0?f=u:i=u+1}m(n,r,i)||m(n,r,i+1)||n.splice(i,0,r)}function m(n,r,t){if(t&&t<=n.length&&h(n[t-1],r)){for(;t<n.length&&h(n[t-1],n[t]);)n.splice(t,1);return!0}return!1}exports.difference=function(n,r){return s(u(o(n),o(r)))},exports.equal=function(n,r){return e(o(n),o(r))},exports.expand=function(n){return i(o(n))},exports.intersection=function(n,r){return s(c(o(n),o(r)))},exports.normalize=function(n){return s(o(n))},exports.subset=function(n,r){return x(o(n),o(r))},exports.union=function(n,r){return s(o(n+","+r))};
var n=/^(?:0|[1-9]\d*)$/,r=/^(0|[1-9]\d*)\s*-\s*(0|[1-9]\d*)$/;function t(n,r){if(n.t!==r.t)return n.t-r.t;switch(n.t){case 0:return n.u>=r.u?n.u>r.u?1:0:-1;case 1:return n.i-r.i||n.o-r.o}}function u(n,r){var t,u,e,i,f,c,o=[];n:for(t=0;t<n.length;++t){switch((u=n[t]).t){case 0:for(e=0;e<r.length;++e)if(0===(i=r[e]).t&&i.u===u.u)continue n;break;case 1:for(f=0;f<r.length;++f)if(1===(c=r[f]).t){if(u.i>=c.i&&u.o<=c.o)continue n;if(u.i<=c.i&&u.o>=c.o){u.o>c.o&&n.splice(t+1,0,{t:1,i:c.o+1,o:u.o}),u.i<c.i&&n.splice(t+1,0,{t:1,i:u.i,o:c.i-1});continue n}u.i>=c.i&&u.i<=c.o?u.i=c.o+1:u.o>=c.i&&u.o<=c.o&&(u.o=c.i-1)}}o.push(u)}return o}function e(n,r){if(n.length!==r.length)return!1;for(var u=0;u<n.length;++u)if(t(n[u],r[u]))return!1;return!0}function i(n){var r,t,u,e=[];for(r=0;r<n.length;++r)switch((t=n[r]).t){case 0:e.push(t.u);break;case 1:for(u=t.i;u<=t.o;++u)e.push(""+u)}return e}function f(n,r){var t,u;if(n.t!==r.t)return null;switch(n.t){case 0:return n.u===r.u?n:null;case 1:return(t=Math.max(n.i,r.i))>(u=Math.min(n.o,r.o))?null:{t:1,i:t,o:u}}}function c(n,r){var t,u,e,i,c=[];for(t=0;t<n.length;++t)for(u=n[t],e=0;e<r.length;++e)null!==(i=f(u,r[e]))&&c.push(i);return c}function o(n){var r,t,u=[],e=n.split(",");for(r=0;r<e.length;++r)(t=e[r].trim())&&v(u,a(t));return u}function a(t){var u,e,i,f;return n.test(t)?{t:1,i:u=+t,o:u}:(e=r.exec(t))?(i=+e[1],f=+e[2],{t:1,i:Math.min(i,f),o:Math.max(i,f)}):{t:0,u:t}}function s(n){return n.map(_).join()}function _(n){switch(n.t){case 0:return n.u;case 1:return n.i===n.o?""+n.i:n.i+"-"+n.o}}function h(n,r){var t,u,e,i,f,c;n:for(t=0;t<r.length;++t)switch((u=r[t]).t){case 0:for(e=0;e<n.length;++e)if(0===(i=n[e]).t&&i.u===u.u)continue n;return!1;case 1:for(f=0;f<n.length;++f)if(1===(c=n[f]).t&&c.i<=u.i&&c.o>=u.o)continue n;return!1}return!0}function x(n,r){var t;if(n.t!==r.t)return!1;switch(n.t){case 0:return n.u===r.u;case 1:return(t=n.i<=r.o+1&&n.o>=r.i||r.i<=n.o+1&&r.o>=n.i)&&(n.i=Math.min(n.i,r.i),n.o=Math.max(n.o,r.o)),t}}function v(n,r){for(var u,e,i=0,f=n.length;i<f;){if(!(e=t(r,n[u=i+f>>>1])))return;e<0?f=u:i=u+1}m(n,r,i)||m(n,r,i+1)||n.splice(i,0,r)}function m(n,r,t){if(t&&t<=n.length&&x(n[t-1],r)){for(;t<n.length&&x(n[t-1],n[t]);)n.splice(t,1);return!0}return!1}exports.difference=function(n,r){return s(u(o(n),o(r)))},exports.equal=function(n,r){return e(o(n),o(r))},exports.expand=function(n){return i(o(n))},exports.intersection=function(n,r){return s(c(o(n),o(r)))},exports.normalize=function(n){return s(o(n))},exports.subset=function(n,r){return h(o(n),o(r))},exports.union=function(n,r){return s(o(n+","+r))};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

const n=/^(?:0|[1-9]\d*)$/,t=/^(0|[1-9]\d*)\s*-\s*(0|[1-9]\d*)$/;function r(n,t){if(n.t!==t.t)return n.t-t.t;switch(n.t){case 0:return n.u>=t.u?n.u>t.u?1:0:-1;case 1:return n.o-t.o||n.i-t.i}}function e(n,t){return d(c(h(n),h(t)))}function c(n,t){const r=[];n:for(let e=0;e<n.length;++e){const c=n[e];switch(c.t){case 0:for(let n=0;n<t.length;++n){const r=t[n];if(0===r.t&&r.u===c.u)continue n}break;case 1:for(let r=0;r<t.length;++r){const u=t[r];if(1===u.t){if(c.o>=u.o&&c.i<=u.i)continue n;if(c.o<=u.o&&c.i>=u.i){c.i>u.i&&n.splice(e+1,0,{t:1,o:u.i+1,i:c.i}),c.o<u.o&&n.splice(e+1,0,{t:1,o:c.o,i:u.o-1});continue n}c.o>=u.o&&c.o<=u.i?c.o=u.i+1:c.i>=u.o&&c.i<=u.i&&(c.i=u.o-1)}}}r.push(c)}return r}function u(n,t){return o(h(n),h(t))}function o(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(r(n[e],t[e]))return!1;return!0}function i(n){return f(h(n))}function f(n){const t=[];for(let r=0;r<n.length;++r){const e=n[r];switch(e.t){case 0:t.push(e.u);break;case 1:for(let n=e.o;n<=e.i;++n)t.push(`${n}`)}}return t}function s(n,t){return d(l(h(n),h(t)))}function a(n,t){if(n.t!==t.t)return null;switch(n.t){case 0:return n.u===t.u?n:null;case 1:{const r=Math.max(n.o,t.o),e=Math.min(n.i,t.i);return r>e?null:{t:1,o:r,i:e}}}}function l(n,t){const r=[];for(let e=0;e<n.length;++e){const c=n[e];for(let n=0;n<t.length;++n){const e=a(c,t[n]);null!==e&&r.push(e)}}return r}function _(n){return d(h(n))}function h(n){const t=[],r=n.split(",");for(let n=0;n<r.length;++n){const e=r[n].trim();e&&b(t,m(e))}return t}function m(r){if(n.test(r)){const n=+r;return{t:1,o:n,i:n}}const e=t.exec(r);return e?{t:1,o:+e[1],i:+e[2]}:{t:0,u:r}}function d(n){return n.map(k).join()}function k(n){switch(n.t){case 0:return n.u;case 1:return n.o===n.i?`${n.o}`:`${n.o}-${n.i}`}}function $(n,t){return w(h(n),h(t))}function w(n,t){n:for(let r=0;r<t.length;++r){const e=t[r];switch(e.t){case 0:for(let t=0;t<n.length;++t){const r=n[t];if(0===r.t&&r.u===e.u)continue n}return!1;case 1:for(let t=0;t<n.length;++t){const r=n[t];if(1===r.t&&r.o<=e.o&&r.i>=e.i)continue n}return!1}}return!0}function x(n,t){return d(h(`${n},${t}`))}function M(n,t){if(n.t!==t.t)return!1;switch(n.t){case 0:return n.u===t.u;case 1:{const r=n.o<=t.i+1&&n.i>=t.o||t.o<=n.i+1&&t.i>=n.o;return r&&(n.o=Math.min(n.o,t.o),n.i=Math.max(n.i,t.i)),r}}}function b(n,t){let e=0,c=n.length;for(;e<c;){const u=e+c>>>1,o=r(t,n[u]);if(!o)return;o<0?c=u:e=u+1}p(n,t,e)||p(n,t,e+1)||n.splice(e,0,t)}function p(n,t,r){if(r&&r<=n.length&&M(n[r-1],t)){for(;r<n.length&&M(n[r-1],n[r]);)n.splice(r,1);return!0}return!1}export{e as difference,u as equal,i as expand,s as intersection,_ as normalize,$ as subset,x as union};
const n=/^(?:0|[1-9]\d*)$/,t=/^(0|[1-9]\d*)\s*-\s*(0|[1-9]\d*)$/;function r(n,t){if(n.t!==t.t)return n.t-t.t;switch(n.t){case 0:return n.u>=t.u?n.u>t.u?1:0:-1;case 1:return n.o-t.o||n.i-t.i}}function e(n,t){return d(c(h(n),h(t)))}function c(n,t){const r=[];n:for(let e=0;e<n.length;++e){const c=n[e];switch(c.t){case 0:for(let n=0;n<t.length;++n){const r=t[n];if(0===r.t&&r.u===c.u)continue n}break;case 1:for(let r=0;r<t.length;++r){const u=t[r];if(1===u.t){if(c.o>=u.o&&c.i<=u.i)continue n;if(c.o<=u.o&&c.i>=u.i){c.i>u.i&&n.splice(e+1,0,{t:1,o:u.i+1,i:c.i}),c.o<u.o&&n.splice(e+1,0,{t:1,o:c.o,i:u.o-1});continue n}c.o>=u.o&&c.o<=u.i?c.o=u.i+1:c.i>=u.o&&c.i<=u.i&&(c.i=u.o-1)}}}r.push(c)}return r}function u(n,t){return o(h(n),h(t))}function o(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(r(n[e],t[e]))return!1;return!0}function i(n){return f(h(n))}function f(n){const t=[];for(let r=0;r<n.length;++r){const e=n[r];switch(e.t){case 0:t.push(e.u);break;case 1:for(let n=e.o;n<=e.i;++n)t.push(`${n}`)}}return t}function s(n,t){return d(l(h(n),h(t)))}function a(n,t){if(n.t!==t.t)return null;switch(n.t){case 0:return n.u===t.u?n:null;case 1:{const r=Math.max(n.o,t.o),e=Math.min(n.i,t.i);return r>e?null:{t:1,o:r,i:e}}}}function l(n,t){const r=[];for(let e=0;e<n.length;++e){const c=n[e];for(let n=0;n<t.length;++n){const e=a(c,t[n]);null!==e&&r.push(e)}}return r}function _(n){return d(h(n))}function h(n){const t=[],r=n.split(",");for(let n=0;n<r.length;++n){const e=r[n].trim();e&&b(t,m(e))}return t}function m(r){if(n.test(r)){const n=+r;return{t:1,o:n,i:n}}const e=t.exec(r);if(e){const n=+e[1],t=+e[2];return{t:1,o:Math.min(n,t),i:Math.max(n,t)}}return{t:0,u:r}}function d(n){return n.map(k).join()}function k(n){switch(n.t){case 0:return n.u;case 1:return n.o===n.i?`${n.o}`:`${n.o}-${n.i}`}}function $(n,t){return w(h(n),h(t))}function w(n,t){n:for(let r=0;r<t.length;++r){const e=t[r];switch(e.t){case 0:for(let t=0;t<n.length;++t){const r=n[t];if(0===r.t&&r.u===e.u)continue n}return!1;case 1:for(let t=0;t<n.length;++t){const r=n[t];if(1===r.t&&r.o<=e.o&&r.i>=e.i)continue n}return!1}}return!0}function x(n,t){return d(h(`${n},${t}`))}function M(n,t){if(n.t!==t.t)return!1;switch(n.t){case 0:return n.u===t.u;case 1:{const r=n.o<=t.i+1&&n.i>=t.o||t.o<=n.i+1&&t.i>=n.o;return r&&(n.o=Math.min(n.o,t.o),n.i=Math.max(n.i,t.i)),r}}}function b(n,t){let e=0,c=n.length;for(;e<c;){const u=e+c>>>1,o=r(t,n[u]);if(!o)return;o<0?c=u:e=u+1}p(n,t,e)||p(n,t,e+1)||n.splice(e,0,t)}function p(n,t,r){if(r&&r<=n.length&&M(n[r-1],t)){for(;r<n.length&&M(n[r-1],n[r]);)n.splice(r,1);return!0}return!1}export{e as difference,u as equal,i as expand,s as intersection,_ as normalize,$ as subset,x as union};
//# sourceMappingURL=index.modern.js.map

@@ -1,2 +0,2 @@

var n=/^(?:0|[1-9]\d*)$/,r=/^(0|[1-9]\d*)\s*-\s*(0|[1-9]\d*)$/;function t(n,r){if(n.t!==r.t)return n.t-r.t;switch(n.t){case 0:return n.u>=r.u?n.u>r.u?1:0:-1;case 1:return n.i-r.i||n.o-r.o}}function u(n,r){return d(i(v(n),v(r)))}function i(n,r){var t,u,i,e,f,c,o=[];n:for(t=0;t<n.length;++t){switch((u=n[t]).t){case 0:for(i=0;i<r.length;++i)if(0===(e=r[i]).t&&e.u===u.u)continue n;break;case 1:for(f=0;f<r.length;++f)if(1===(c=r[f]).t){if(u.i>=c.i&&u.o<=c.o)continue n;if(u.i<=c.i&&u.o>=c.o){u.o>c.o&&n.splice(t+1,0,{t:1,i:c.o+1,o:u.o}),u.i<c.i&&n.splice(t+1,0,{t:1,i:u.i,o:c.i-1});continue n}u.i>=c.i&&u.i<=c.o?u.i=c.o+1:u.o>=c.i&&u.o<=c.o&&(u.o=c.i-1)}}o.push(u)}return o}function e(n,r){return f(v(n),v(r))}function f(n,r){if(n.length!==r.length)return!1;for(var u=0;u<n.length;++u)if(t(n[u],r[u]))return!1;return!0}function c(n){return o(v(n))}function o(n){var r,t,u,i=[];for(r=0;r<n.length;++r)switch((t=n[r]).t){case 0:i.push(t.u);break;case 1:for(u=t.i;u<=t.o;++u)i.push(""+u)}return i}function a(n,r){return d(_(v(n),v(r)))}function s(n,r){var t,u;if(n.t!==r.t)return null;switch(n.t){case 0:return n.u===r.u?n:null;case 1:return(t=Math.max(n.i,r.i))>(u=Math.min(n.o,r.o))?null:{t:1,i:t,o:u}}}function _(n,r){var t,u,i,e,f=[];for(t=0;t<n.length;++t)for(u=n[t],i=0;i<r.length;++i)null!==(e=s(u,r[i]))&&f.push(e);return f}function h(n){return d(v(n))}function v(n){var r,t,u=[],i=n.split(",");for(r=0;r<i.length;++r)(t=i[r].trim())&&b(u,m(t));return u}function m(t){var u,i;return n.test(t)?{t:1,i:u=+t,o:u}:(i=r.exec(t))?{t:1,i:+i[1],o:+i[2]}:{t:0,u:t}}function d(n){return n.map(k).join()}function k(n){switch(n.t){case 0:return n.u;case 1:return n.i===n.o?""+n.i:n.i+"-"+n.o}}function l(n,r){return w(v(n),v(r))}function w(n,r){var t,u,i,e,f,c;n:for(t=0;t<r.length;++t)switch((u=r[t]).t){case 0:for(i=0;i<n.length;++i)if(0===(e=n[i]).t&&e.u===u.u)continue n;return!1;case 1:for(f=0;f<n.length;++f)if(1===(c=n[f]).t&&c.i<=u.i&&c.o>=u.o)continue n;return!1}return!0}function x(n,r){return d(v(n+","+r))}function M(n,r){var t;if(n.t!==r.t)return!1;switch(n.t){case 0:return n.u===r.u;case 1:return(t=n.i<=r.o+1&&n.o>=r.i||r.i<=n.o+1&&r.o>=n.i)&&(n.i=Math.min(n.i,r.i),n.o=Math.max(n.o,r.o)),t}}function b(n,r){for(var u,i,e=0,f=n.length;e<f;){if(!(i=t(r,n[u=e+f>>>1])))return;i<0?f=u:e=u+1}$(n,r,e)||$(n,r,e+1)||n.splice(e,0,r)}function $(n,r,t){if(t&&t<=n.length&&M(n[t-1],r)){for(;t<n.length&&M(n[t-1],n[t]);)n.splice(t,1);return!0}return!1}export{u as difference,e as equal,c as expand,a as intersection,h as normalize,l as subset,x as union};
var n=/^(?:0|[1-9]\d*)$/,r=/^(0|[1-9]\d*)\s*-\s*(0|[1-9]\d*)$/;function t(n,r){if(n.t!==r.t)return n.t-r.t;switch(n.t){case 0:return n.u>=r.u?n.u>r.u?1:0:-1;case 1:return n.i-r.i||n.o-r.o}}function u(n,r){return d(i(v(n),v(r)))}function i(n,r){var t,u,i,e,f,c,o=[];n:for(t=0;t<n.length;++t){switch((u=n[t]).t){case 0:for(i=0;i<r.length;++i)if(0===(e=r[i]).t&&e.u===u.u)continue n;break;case 1:for(f=0;f<r.length;++f)if(1===(c=r[f]).t){if(u.i>=c.i&&u.o<=c.o)continue n;if(u.i<=c.i&&u.o>=c.o){u.o>c.o&&n.splice(t+1,0,{t:1,i:c.o+1,o:u.o}),u.i<c.i&&n.splice(t+1,0,{t:1,i:u.i,o:c.i-1});continue n}u.i>=c.i&&u.i<=c.o?u.i=c.o+1:u.o>=c.i&&u.o<=c.o&&(u.o=c.i-1)}}o.push(u)}return o}function e(n,r){return f(v(n),v(r))}function f(n,r){if(n.length!==r.length)return!1;for(var u=0;u<n.length;++u)if(t(n[u],r[u]))return!1;return!0}function c(n){return o(v(n))}function o(n){var r,t,u,i=[];for(r=0;r<n.length;++r)switch((t=n[r]).t){case 0:i.push(t.u);break;case 1:for(u=t.i;u<=t.o;++u)i.push(""+u)}return i}function a(n,r){return d(_(v(n),v(r)))}function s(n,r){var t,u;if(n.t!==r.t)return null;switch(n.t){case 0:return n.u===r.u?n:null;case 1:return(t=Math.max(n.i,r.i))>(u=Math.min(n.o,r.o))?null:{t:1,i:t,o:u}}}function _(n,r){var t,u,i,e,f=[];for(t=0;t<n.length;++t)for(u=n[t],i=0;i<r.length;++i)null!==(e=s(u,r[i]))&&f.push(e);return f}function h(n){return d(v(n))}function v(n){var r,t,u=[],i=n.split(",");for(r=0;r<i.length;++r)(t=i[r].trim())&&b(u,m(t));return u}function m(t){var u,i,e,f;return n.test(t)?{t:1,i:u=+t,o:u}:(i=r.exec(t))?(e=+i[1],f=+i[2],{t:1,i:Math.min(e,f),o:Math.max(e,f)}):{t:0,u:t}}function d(n){return n.map(k).join()}function k(n){switch(n.t){case 0:return n.u;case 1:return n.i===n.o?""+n.i:n.i+"-"+n.o}}function l(n,r){return w(v(n),v(r))}function w(n,r){var t,u,i,e,f,c;n:for(t=0;t<r.length;++t)switch((u=r[t]).t){case 0:for(i=0;i<n.length;++i)if(0===(e=n[i]).t&&e.u===u.u)continue n;return!1;case 1:for(f=0;f<n.length;++f)if(1===(c=n[f]).t&&c.i<=u.i&&c.o>=u.o)continue n;return!1}return!0}function x(n,r){return d(v(n+","+r))}function M(n,r){var t;if(n.t!==r.t)return!1;switch(n.t){case 0:return n.u===r.u;case 1:return(t=n.i<=r.o+1&&n.o>=r.i||r.i<=n.o+1&&r.o>=n.i)&&(n.i=Math.min(n.i,r.i),n.o=Math.max(n.o,r.o)),t}}function b(n,r){for(var u,i,e=0,f=n.length;e<f;){if(!(i=t(r,n[u=e+f>>>1])))return;i<0?f=u:e=u+1}$(n,r,e)||$(n,r,e+1)||n.splice(e,0,r)}function $(n,r,t){if(t&&t<=n.length&&M(n[t-1],r)){for(;t<n.length&&M(n[t-1],n[t]);)n.splice(t,1);return!0}return!1}export{u as difference,e as equal,c as expand,a as intersection,h as normalize,l as subset,x as union};
//# sourceMappingURL=index.module.js.map

@@ -217,3 +217,5 @@ const enum Kind {

if (rangeMatch) {
return { _kind: Kind.Range, _min: +rangeMatch[1], _max: +rangeMatch[2] };
const a = +rangeMatch[1];
const b = +rangeMatch[2];
return { _kind: Kind.Range, _min: Math.min(a, b), _max: Math.max(a, b) };
}

@@ -220,0 +222,0 @@

{
"name": "ranges-set",
"version": "1.1.4",
"version": "1.1.5",
"description": "Set operations on human-friendly ranges.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -52,2 +52,4 @@ import test from 'ava';

['3', '1', '3'],
['3-1', '1-3', ''],
['3-1', '2', '1,3'],
['a', 'a', ''],

@@ -131,2 +133,3 @@ ['a', 'b', 'a'],

['3,2,1', ['1', '2', '3']],
['3-1', ['1', '2', '3']],
['a', ['a']],

@@ -185,2 +188,3 @@ ['a,', ['a']],

['3,2,1', '1-3'],
['3-1', '1-3'],
['a ', 'a'],

@@ -187,0 +191,0 @@ ['a a ', 'a a'],

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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