ast-monkey-util
Advanced tools
Comparing version 2.0.11 to 2.0.12
/** | ||
* @name ast-monkey-util | ||
* @fileoverview Utility library of AST helper functions | ||
* @version 2.0.11 | ||
* @version 2.0.12 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -10,2 +10,2 @@ * @license MIT | ||
function r(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 l=r;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 u(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 a=u;function p(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 c=p;var i="2.0.11";var j=i;export{c as parent,l as pathNext,o as pathPrev,a as pathUp,j as version}; | ||
function i(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 l=i;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 u(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 a=u;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 r="2.0.12";var j=r;export{d as parent,l as pathNext,o as pathPrev,a as pathUp,j as version}; |
/** | ||
* @name ast-monkey-util | ||
* @fileoverview Utility library of AST helper functions | ||
* @version 2.0.11 | ||
* @version 2.0.12 | ||
* @author Roy Revelt, Codsen Ltd | ||
@@ -10,2 +10,2 @@ * @license MIT | ||
var astMonkeyUtil=(()=>{var r=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var m=e=>r(e,"__esModule",{value:!0});var y=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of d(t))!f.call(e,i)&&(n||i!=="default")&&r(e,i,{get:()=>t[i],enumerable:!(l=c(t,i))||l.enumerable});return e};var h=(e=>(t,n)=>e&&e.get(t)||(n=x(m({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var I={};y(I,{parent:()=>a,pathNext:()=>s,pathPrev:()=>o,pathUp:()=>u,version:()=>j});function g(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=g;function v(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=v;function $(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=$;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 a=b;var p="2.0.11";var j=p;return h(I);})(); | ||
var astMonkeyUtil=(()=>{var i=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var m=e=>i(e,"__esModule",{value:!0});var y=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},x=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of p(t))!f.call(e,r)&&(n||r!=="default")&&i(e,r,{get:()=>t[r],enumerable:!(l=d(t,r))||l.enumerable});return e};var h=(e=>(t,n)=>e&&e.get(t)||(n=x(m({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var I={};y(I,{parent:()=>a,pathNext:()=>s,pathPrev:()=>o,pathUp:()=>u,version:()=>j});function g(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=g;function v(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=v;function b(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=b;function $(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 a=$;var c="2.0.12";var j=c;return h(I);})(); |
{ | ||
"name": "ast-monkey-util", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "Utility library of AST helper functions", | ||
@@ -44,5 +44,6 @@ "keywords": [ | ||
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts", | ||
"devtest": "c8 yarn run unit && yarn run examples && yarn run lint", | ||
"dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write", | ||
"examples": "node '../../ops/scripts/run-examples.js'", | ||
"lect": "node '../../ops/lect/lect.js'", | ||
"lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write", | ||
"letspublish": "yarn publish || :", | ||
@@ -55,3 +56,3 @@ "lint": "eslint . --fix", | ||
"pretest": "yarn run lect && yarn run build", | ||
"test": "c8 yarn run unit && yarn run examples && yarn run lint", | ||
"test": "yarn run devtest", | ||
"unit": "uvu test" | ||
@@ -58,0 +59,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
11046