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

ast-monkey-util

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ast-monkey-util - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

2

CHANGELOG.md

@@ -64,2 +64,2 @@ # Change Log

- ✨ First public release.
- First public release.
/**
* @name ast-monkey-util
* @fileoverview Utility library of AST helper functions
* @version 2.1.1
* @version 2.1.2
* @author Roy Revelt, Codsen Ltd

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

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 d=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 a=p;var r="2.1.1";var j=r;export{a as parent,l as pathNext,o as pathPrev,d 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 d=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 a=p;var r="2.1.2";var j=r;export{a as parent,l as pathNext,o as pathPrev,d as pathUp,j as version};
/**
* @name ast-monkey-util
* @fileoverview Utility library of AST helper functions
* @version 2.1.1
* @version 2.1.2
* @author Roy Revelt, Codsen Ltd

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

"use strict";var astMonkeyUtil=(()=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var m=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},y=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of c(t))!f.call(e,r)&&r!==n&&i(e,r,{get:()=>t[r],enumerable:!(l=a(t,r))||l.enumerable});return e};var x=e=>y(i({},"__esModule",{value:!0}),e);var j={};m(j,{parent:()=>d,pathNext:()=>s,pathPrev:()=>o,pathUp:()=>u,version:()=>k});function h(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=h;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 u=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 d=b;var p="2.1.1";var k=p;return x(j);})();
"use strict";var astMonkeyUtil=(()=>{var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var m=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},y=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of c(t))!f.call(e,r)&&r!==n&&i(e,r,{get:()=>t[r],enumerable:!(l=a(t,r))||l.enumerable});return e};var x=e=>y(i({},"__esModule",{value:!0}),e);var j={};m(j,{parent:()=>d,pathNext:()=>s,pathPrev:()=>o,pathUp:()=>u,version:()=>k});function h(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=h;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 u=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 d=b;var p="2.1.2";var k=p;return x(j);})();
{
"name": "ast-monkey-util",
"version": "2.1.1",
"version": "2.1.2",
"description": "Utility library of AST helper functions",

@@ -5,0 +5,0 @@ "keywords": [

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