ast-monkey-util
Advanced tools
Comparing version 3.0.5 to 3.0.6
/** | ||
* @name ast-monkey-util | ||
* @fileoverview Utility library of AST helper functions | ||
* @version 3.0.5 | ||
* @version 3.0.6 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -10,2 +10,2 @@ * @license MIT | ||
function l(e){return e.includes(".")&&/^\d*$/.test(e.slice(e.lastIndexOf(".")+1))?`${e.slice(0,e.lastIndexOf(".")+1)}${+e.slice(e.lastIndexOf(".")+1)+1}`:/^\d*$/.test(e)?`${+e+1}`:e}var s=l;function r(e){if(!e)return null;let t=e.slice(e.lastIndexOf(".")+1);return t==="0"?null:e.includes(".")&&/^\d*$/.test(t)?`${e.slice(0,e.lastIndexOf(".")+1)}${+e.slice(e.lastIndexOf(".")+1)-1}`:/^\d*$/.test(e)?`${+e-1}`:null}var o=r;function p(e){if(e.includes(".")&&e.slice(e.indexOf(".")+1).includes(".")){let t=0;for(let n=e.length;n--;)if(e[n]==="."&&(t+=1),t===2)return e.slice(0,n)}return"0"}var u=p;function c(e){if(e.includes(".")){let t=e.lastIndexOf(".");if(!e.slice(0,t).includes("."))return e.slice(0,t);for(let n=t-1;n--;)if(e[n]===".")return e.slice(n+1,t)}return null}var d=c;var i="3.0.5";var k=i;export{d as parent,s as pathNext,o as pathPrev,u as pathUp,k as version}; | ||
function l(e){return e.includes(".")&&/^\d*$/.test(e.slice(e.lastIndexOf(".")+1))?`${e.slice(0,e.lastIndexOf(".")+1)}${+e.slice(e.lastIndexOf(".")+1)+1}`:/^\d*$/.test(e)?`${+e+1}`:e}var r=l;function s(e){if(!e)return null;let t=e.slice(e.lastIndexOf(".")+1);return t==="0"?null:e.includes(".")&&/^\d*$/.test(t)?`${e.slice(0,e.lastIndexOf(".")+1)}${+e.slice(e.lastIndexOf(".")+1)-1}`:/^\d*$/.test(e)?`${+e-1}`:null}var o=s;function p(e){if(e.includes(".")&&e.slice(e.indexOf(".")+1).includes(".")){let t=0;for(let n=e.length;n--;)if(e[n]==="."&&(t+=1),t===2)return e.slice(0,n)}return"0"}var u=p;function c(e){if(e.includes(".")){let t=e.lastIndexOf(".");if(!e.slice(0,t).includes("."))return e.slice(0,t);for(let n=t-1;n--;)if(e[n]===".")return e.slice(n+1,t)}return null}var d=c;var i="3.0.6";var k=i;export{d as parent,r as pathNext,o as pathPrev,u as pathUp,k as version}; |
/** | ||
* @name ast-monkey-util | ||
* @fileoverview Utility library of AST helper functions | ||
* @version 3.0.5 | ||
* @version 3.0.6 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -10,2 +10,2 @@ * @license MIT | ||
"use strict";var astMonkeyUtil=(()=>{var l=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of a(t))!m.call(e,i)&&i!==n&&l(e,i,{get:()=>t[i],enumerable:!(s=d(t,i))||s.enumerable});return e};var h=e=>x(l({},"__esModule",{value:!0}),e);var k={};f(k,{parent:()=>u,pathNext:()=>r,pathPrev:()=>o,pathUp:()=>p,version:()=>$});function y(e){return e.includes(".")&&/^\d*$/.test(e.slice(e.lastIndexOf(".")+1))?`${e.slice(0,e.lastIndexOf(".")+1)}${+e.slice(e.lastIndexOf(".")+1)+1}`:/^\d*$/.test(e)?`${+e+1}`:e}var r=y;function g(e){if(!e)return null;let t=e.slice(e.lastIndexOf(".")+1);return t==="0"?null:e.includes(".")&&/^\d*$/.test(t)?`${e.slice(0,e.lastIndexOf(".")+1)}${+e.slice(e.lastIndexOf(".")+1)-1}`:/^\d*$/.test(e)?`${+e-1}`:null}var o=g;function v(e){if(e.includes(".")&&e.slice(e.indexOf(".")+1).includes(".")){let t=0;for(let n=e.length;n--;)if(e[n]==="."&&(t+=1),t===2)return e.slice(0,n)}return"0"}var p=v;function b(e){if(e.includes(".")){let t=e.lastIndexOf(".");if(!e.slice(0,t).includes("."))return e.slice(0,t);for(let n=t-1;n--;)if(e[n]===".")return e.slice(n+1,t)}return null}var u=b;var c="3.0.5";var $=c;return h(k);})(); | ||
"use strict";var astMonkeyUtil=(()=>{var l=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var n in t)l(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of a(t))!m.call(e,i)&&i!==n&&l(e,i,{get:()=>t[i],enumerable:!(r=d(t,i))||r.enumerable});return e};var h=e=>x(l({},"__esModule",{value:!0}),e);var k={};f(k,{parent:()=>u,pathNext:()=>s,pathPrev:()=>o,pathUp:()=>p,version:()=>$});function y(e){return e.includes(".")&&/^\d*$/.test(e.slice(e.lastIndexOf(".")+1))?`${e.slice(0,e.lastIndexOf(".")+1)}${+e.slice(e.lastIndexOf(".")+1)+1}`:/^\d*$/.test(e)?`${+e+1}`:e}var s=y;function g(e){if(!e)return null;let t=e.slice(e.lastIndexOf(".")+1);return t==="0"?null:e.includes(".")&&/^\d*$/.test(t)?`${e.slice(0,e.lastIndexOf(".")+1)}${+e.slice(e.lastIndexOf(".")+1)-1}`:/^\d*$/.test(e)?`${+e-1}`:null}var o=g;function v(e){if(e.includes(".")&&e.slice(e.indexOf(".")+1).includes(".")){let t=0;for(let n=e.length;n--;)if(e[n]==="."&&(t+=1),t===2)return e.slice(0,n)}return"0"}var p=v;function b(e){if(e.includes(".")){let t=e.lastIndexOf(".");if(!e.slice(0,t).includes("."))return e.slice(0,t);for(let n=t-1;n--;)if(e[n]===".")return e.slice(n+1,t)}return null}var u=b;var c="3.0.6";var $=c;return h(k);})(); |
{ | ||
"name": "ast-monkey-util", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "Utility library of AST helper functions", | ||
@@ -77,6 +77,3 @@ "keywords": [ | ||
} | ||
}, | ||
"devDependencies": { | ||
"lodash.isequal": "^4.5.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
10504