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.4 to 2.1.5

4

dist/ast-monkey-util.esm.js
/**
* @name ast-monkey-util
* @fileoverview Utility library of AST helper functions
* @version 2.1.4
* @version 2.1.5
* @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 s=i;function l(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=l;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.4";var k=r;export{a as parent,s as pathNext,o as pathPrev,d as pathUp,k 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 s=i;function l(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=l;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.5";var k=r;export{a as parent,s as pathNext,o as pathPrev,d as pathUp,k as version};
/**
* @name ast-monkey-util
* @fileoverview Utility library of AST helper functions
* @version 2.1.4
* @version 2.1.5
* @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,s)=>{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:!(s=a(t,r))||s.enumerable});return e};var x=e=>y(i({},"__esModule",{value:!0}),e);var k={};m(k,{parent:()=>d,pathNext:()=>l,pathPrev:()=>o,pathUp:()=>u,version:()=>j});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 l=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.4";var j=p;return x(k);})();
"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,s)=>{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:!(s=a(t,r))||s.enumerable});return e};var x=e=>y(i({},"__esModule",{value:!0}),e);var k={};m(k,{parent:()=>d,pathNext:()=>l,pathPrev:()=>o,pathUp:()=>u,version:()=>j});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 l=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.5";var j=p;return x(k);})();
{
"name": "ast-monkey-util",
"version": "2.1.4",
"version": "2.1.5",
"description": "Utility library of AST helper functions",

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

@@ -1,12 +0,12 @@

# ast-monkey-util
<h1 align="center">ast-monkey-util</h1>
> Utility library of AST helper functions
<p align="center">Utility library of AST helper functions</p>
<div class="package-badges">
<p align="center">
<a href="https://codsen.com/os/ast-monkey-util" rel="nofollow noreferrer noopener">
<img src="https://img.shields.io/badge/-codsen-blue?style=flat-square" alt="page on codsen.com">
</a>
<a href="https://www.npmjs.com/package/ast-monkey-util" rel="nofollow noreferrer noopener">
<img src="https://img.shields.io/badge/-npm-blue?style=flat-square" alt="page on npm">
</a>
<a href="https://codsen.com/os/ast-monkey-util" rel="nofollow noreferrer noopener">
<img src="https://img.shields.io/badge/-codsen-blue?style=flat-square" alt="page on codsen.com">
</a>
<a href="https://github.com/codsen/codsen/tree/main/packages/ast-monkey-util" rel="nofollow noreferrer noopener">

@@ -18,10 +18,7 @@ <img src="https://img.shields.io/badge/-github-blue?style=flat-square" alt="page on github">

</a>
<a href="https://prettier.io" rel="nofollow noreferrer noopener" target="_blank">
<img src="https://img.shields.io/badge/code_style-prettier-brightgreen.svg?style=flat-square" alt="Code style: prettier">
<a href="https://codsen.com/os/ast-monkey-util/changelog" rel="nofollow noreferrer noopener">
<img src="https://img.shields.io/badge/changelog-here-brightgreen?style=flat-square" alt="changelog">
</a>
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT License">
<a href="https://liberamanifesto.com" rel="nofollow noreferrer noopener" target="_blank">
<img src="https://img.shields.io/badge/libera-manifesto-lightgrey.svg?style=flat-square" alt="libera manifesto">
</a>
</div>
<img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT Licence">
</p>

@@ -62,6 +59,6 @@ ## Install

MIT License
MIT License.
Copyright (c) 2010-2022 Roy Revelt and other contributors
Copyright © 2010-2022 Roy Revelt and other contributors.
<img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center">
<p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
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