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

resolvewithplus

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolvewithplus - npm Package Compare versions

Comparing version 0.8.8 to 0.8.9

2

package.json
{
"name": "resolvewithplus",
"version": "0.8.8",
"version": "0.8.9",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=12.16.0"

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

import u from"fs";import c from"path";import f from"module";const g=f.createRequire(import.meta.url),x=u.realpathSync.native,p=new RegExp("^(?:node:)?("+f.builtinModules.join("|").replace("/","/")+")$"),b=/^\.?\.?([a-zA-Z]:)?(\/|\\)/,R=/^.\.?(?=\/|\\)/,m=/\\/g,h=/^[a-zA-Z]:/,_=/index.[tj]sx?$/,k=/[\\/]resolvewithplus[\\/]/,y=[".js",".mjs",".ts",".tsx",".json",".node"],j="node_modules",v="package.json";export default(s=>(s=(e,t,i)=>{let n=s.cache[e+t];return n||(n=s.begin(e,t,i||{}),s.cache[e+t]=n)},s.cache={},s.pathToPosix=e=>m.test(e)?e.replace(h,"").replace(m,c.posix.sep):e,s.begin=(e,t,i)=>{var n=null;return t=typeof t=="string"?s.getasdirname(decodeURI(t)):process.cwd(),p.test(e)?n=e:(n=b.test(e)?s.getasfileordir(s.pathToPosix(e),t,i):s.getasnode_module(e,t),n=n&&x(n)),n},s.iscoremodule=e=>p.test(e),s.isfilesync=(e,t)=>{try{t=u.statSync(e)}catch{t=!1}return t&&(t.isFile()||t.isFIFO())},s.gettargetindex=(e,t)=>{let n=t&&t.ismodule&&e.module||t&&t.browser&&e.browser,r=e.exports,o,l;return n&&(typeof n=="string"?l=n:typeof n=="object"&&([o]=Object.keys(n).filter(a=>_.test(a)),l=o in n&&n[o])),r&&(typeof r=="string"?l=r:typeof r.import=="string"?l=r.import:r["."]&&(typeof r["."]=="string"&&(l=r["."]),typeof r["."].import=="string"&&(l=r["."].import),Array.isArray(r["."])&&(l=r["."].reduce((a,d)=>typeof d=="object"&&d.import?d.import:a,null)))),l},s.getpackagepath=(e,t)=>s.isfilesync(e)&&(e=g(e))&&(s.gettargetindex(e,t)||e.main),s.getasfilesync=e=>{var t=null;return s.isfilesync(e)?t=e:y.some(i=>s.isfilesync(e+i)&&(t=e+i)),t},s.getasdirsync=(e,t)=>{let i=null,n,r=c.join(e,v);return(n=s.getpackagepath(r,t))?i=s.getasfilesync(c.join(e,n)):y.some(o=>(o=c.join(e,`index${o}`))&&s.isfilesync(o)&&(i=o)),i},s.getasfileordir=(e,t,i)=>{const n=R.test(e)?c.join(t,e):e;return s.getasfilesync(n,i)||s.getasdirsync(n,i)},s.getasnode_module=(e,t,i)=>{const n=s.getasnode_module_paths(t).sort((r,o)=>r.length>o.length);return function r(o,l,a=l-1){return l--?s.getasfileordir(c.join(o[a-l],e),null,i)||r(o,l,a):null}(n,n.length)},s.getfirstparent_packagejson=e=>{let{join:t,sep:i}=c,n=e.split(i),r,o;for(let l=n.length;l--;)if(n[l]&&(o=t(i,t.apply(l,n.slice(0,l+1)),r),s.isfilesync(o))){r=g(o);break}return r},s.getasnode_module_paths=e=>e.split(c.sep).slice(1).reduce((t,i,n)=>(i===j&&!k.test(e)||(i=c.resolve(c.join(n?t[0][n-1]:c.sep,i)),t[0].push(i),t[1].push(c.join(i,j))),t),[[],[]])[1].reverse(),s.getasdirname=e=>c.resolve(c.extname(e)?c.dirname(e):e),s))();
import d from"fs";import o from"path";import u from"module";const g=u.createRequire(import.meta.url),x=d.realpathSync.native,m=new RegExp("^(?:node:)?("+u.builtinModules.join("|").replace("/","/")+")$"),b=/^\.?\.?([a-zA-Z]:)?(\/|\\)/,R=/^.\.?(?=\/|\\)/,p=/\\/g,_=/^[a-zA-Z]:/,h=/index.[tj]sx?$/,v=/[\\/]resolvewithplus[\\/]/,j=[".js",".mjs",".ts",".tsx",".json",".node"],y="node_modules",P="package.json";export default(n=>(n=(e,s,i)=>{let t=n.cache[e+s];return t||(t=n.begin(e,s,i||{}),n.cache[e+s]=t)},n.cache={},n.pathToPosix=e=>p.test(e)?e.replace(_,"").replace(p,o.posix.sep):e,n.begin=(e,s,i)=>{var t=null;return s=typeof s=="string"?n.getasdirname(decodeURI(s)):process.cwd(),m.test(e)?t=e:(t=b.test(e)?n.getasfileordir(n.pathToPosix(e),s,i):n.getasnode_module(e,s),t=t&&x(t)),t},n.iscoremodule=e=>m.test(e),n.isfilesync=(e,s)=>{try{s=d.statSync(e)}catch{s=!1}return s&&(s.isFile()||s.isFIFO())},n.gettargetindex=(e,s)=>{let t=s&&s.ismodule&&e.module||s&&s.browser&&e.browser,l=e.exports,c,r;return t&&(typeof t=="string"?r=t:typeof t=="object"&&([c]=Object.keys(t).filter(a=>h.test(a)),r=c in t&&t[c])),l&&(typeof l=="string"?r=l:typeof l.import=="string"?r=l.import:l["."]&&(typeof l["."]=="string"&&(r=l["."]),typeof l["."].import=="string"&&(r=l["."].import),Array.isArray(l["."])&&(r=l["."].reduce((a,f)=>typeof f=="object"&&f.import?f.import:a,null)))),r},n.getasfilesync=e=>{var s=null;return n.isfilesync(e)?s=e:j.some(i=>n.isfilesync(e+i)&&(s=e+i)),s},n.getasdirsync=(e,s)=>{let i=null,t,l=o.join(e,P),c=n.isfilesync(l)&&g(l);return(t=n.gettargetindex(c,s))?i=n.getasfilesync(o.join(e,t)):(t=c.main)?i=n.getasfilesync(o.join(e,t))||n.getasfilesync(o.join(e,o.join(t,"index"))):j.some(r=>(r=o.join(e,`index${r}`))&&n.isfilesync(r)&&(i=r)),i},n.getasfileordir=(e,s,i)=>{const t=R.test(e)?o.join(s,e):e;return n.getasfilesync(t,i)||n.getasdirsync(t,i)},n.getasnode_module=(e,s,i)=>{const t=n.getasnode_module_paths(s).sort((l,c)=>l.length>c.length);return function l(c,r,a=r-1){return r--?n.getasfileordir(o.join(c[a-r],e),null,i)||l(c,r,a):null}(t,t.length)},n.getfirstparent_packagejson=e=>{let{join:s,sep:i}=o,t=e.split(i),l,c;for(let r=t.length;r--;)if(t[r]&&(c=s(i,s.apply(r,t.slice(0,r+1)),l),n.isfilesync(c))){l=g(c);break}return l},n.getasnode_module_paths=e=>e.split(o.sep).slice(1).reduce((s,i,t)=>(i===y&&!v.test(e)||(i=o.resolve(o.join(t?s[0][t-1]:o.sep,i)),s[0].push(i),s[1].push(o.join(i,y))),s),[[],[]])[1].reverse(),n.getasdirname=e=>o.resolve(o.extname(e)?o.dirname(e):e),n))();
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