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

@esbuild-kit/core-utils

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esbuild-kit/core-utils - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

dist/index.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Yt=require("source-map-support"),Gt=require("url"),Ht=require("path"),re=require("esbuild"),Ot=require("crypto"),jt=require("fs"),qt=require("os");function _(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var _t=_(Yt),Y=_(Ht),Pt=_(Ot),x=_(jt),Xt=_(qt);const Ke="setSourceMapsEnabled"in process;function Tt(){if(Ke){process.setSourceMapsEnabled(!0);return}const r=new Map;return _t.default.install({environment:"node",retrieveSourceMap(e){const A=r.get(e);return A?{url:e,map:A}:null}}),r}for(var $t={},Ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ne=0;ne<Ce.length;ne++)$t[Ce.charCodeAt(ne)]=ne;function Wt(r){for(var e=0,A=0,i=0,s=0,o="",c=0;c<r.length;c++){var g=r[c];if(c>0&&(o+=";"),g.length!==0){for(var h=0,C=[],f=0,n=g;f<n.length;f++){var B=n[f],m=P(B[0]-h);h=B[0],B.length>1&&(m+=P(B[1]-e)+P(B[2]-A)+P(B[3]-i),e=B[1],A=B[2],i=B[3]),B.length===5&&(m+=P(B[4]-s),s=B[4]),C.push(m)}o+=C.join(",")}}return o}function P(r){var e="";r=r<0?-r<<1|1:r<<1;do{var A=r&31;r>>>=5,r>0&&(A|=32),e+=Ce[A]}while(r>0);return e}class le{constructor(e){this.bits=e instanceof le?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class Z{constructor(e,A,i){this.start=e,this.end=A,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new Z(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let A=this;for(;A;)e(A),A=A.next}eachPrevious(e){let A=this;for(;A;)e(A),A=A.previous}edit(e,A,i){return this.content=e,i||(this.intro="",this.outro=""),this.storeName=A,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){const A=e-this.start,i=this.original.slice(0,A),s=this.original.slice(A);this.original=i;const o=new Z(e,this.end,s);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=i,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const A=this.content.replace(e,"");if(A.length)return A!==this.content&&this.split(this.start+A.length).edit("",void 0,!0),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const A=this.content.replace(e,"");if(A.length)return A!==this.content&&(this.split(this.end-A.length),this.edit("",void 0,!0)),!0;if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}}let Be=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};typeof window<"u"&&typeof window.btoa=="function"?Be=r=>window.btoa(unescape(encodeURIComponent(r))):typeof Buffer=="function"&&(Be=r=>Buffer.from(r,"utf-8").toString("base64"));class Vt{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Wt(e.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Be(this.toString())}}function Zt(r){const e=r.split(`
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Yt=require("source-map-support"),Gt=require("url"),Ht=require("path"),re=require("esbuild"),Ot=require("crypto"),jt=require("fs"),qt=require("os");function _(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var _t=_(Yt),Y=_(Ht),Pt=_(Ot),x=_(jt),Xt=_(qt);const Ke="setSourceMapsEnabled"in process&&!("prepareStackTrace"in Error);function Tt(){if(Ke){process.setSourceMapsEnabled(!0);return}const r=new Map;return _t.default.install({environment:"node",retrieveSourceMap(e){const A=r.get(e);return A?{url:e,map:A}:null}}),r}for(var $t={},Ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ne=0;ne<Ce.length;ne++)$t[Ce.charCodeAt(ne)]=ne;function Wt(r){for(var e=0,A=0,i=0,s=0,o="",c=0;c<r.length;c++){var g=r[c];if(c>0&&(o+=";"),g.length!==0){for(var h=0,C=[],f=0,n=g;f<n.length;f++){var B=n[f],m=P(B[0]-h);h=B[0],B.length>1&&(m+=P(B[1]-e)+P(B[2]-A)+P(B[3]-i),e=B[1],A=B[2],i=B[3]),B.length===5&&(m+=P(B[4]-s),s=B[4]),C.push(m)}o+=C.join(",")}}return o}function P(r){var e="";r=r<0?-r<<1|1:r<<1;do{var A=r&31;r>>>=5,r>0&&(A|=32),e+=Ce[A]}while(r>0);return e}class le{constructor(e){this.bits=e instanceof le?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class Z{constructor(e,A,i){this.start=e,this.end=A,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new Z(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let A=this;for(;A;)e(A),A=A.next}eachPrevious(e){let A=this;for(;A;)e(A),A=A.previous}edit(e,A,i){return this.content=e,i||(this.intro="",this.outro=""),this.storeName=A,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){const A=e-this.start,i=this.original.slice(0,A),s=this.original.slice(A);this.original=i;const o=new Z(e,this.end,s);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=i,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const A=this.content.replace(e,"");if(A.length)return A!==this.content&&this.split(this.start+A.length).edit("",void 0,!0),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const A=this.content.replace(e,"");if(A.length)return A!==this.content&&(this.split(this.end-A.length),this.edit("",void 0,!0)),!0;if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}}let Be=()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};typeof window<"u"&&typeof window.btoa=="function"?Be=r=>window.btoa(unescape(encodeURIComponent(r))):typeof Buffer=="function"&&(Be=r=>Buffer.from(r,"utf-8").toString("base64"));class Vt{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Wt(e.mappings)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Be(this.toString())}}function Zt(r){const e=r.split(`
`),A=e.filter(o=>/^\t+/.test(o)),i=e.filter(o=>/^ {2,}/.test(o));if(A.length===0&&i.length===0)return null;if(A.length>=i.length)return" ";const s=i.reduce((o,c)=>{const g=/^ +/.exec(c)[0].length;return Math.min(g,o)},1/0);return new Array(s+1).join(" ")}function zt(r,e){const A=r.split(/[/\\]/),i=e.split(/[/\\]/);for(A.pop();A[0]===i[0];)A.shift(),i.shift();if(A.length){let s=A.length;for(;s--;)A[s]=".."}return A.concat(i).join("/")}const eA=Object.prototype.toString;function tA(r){return eA.call(r)==="[object Object]"}function Le(r){const e=r.split(`

@@ -3,0 +3,0 @@ `),A=[];for(let i=0,s=0;i<e.length;i++)A.push(s),s+=e[i].length+1;return function(s){let o=0,c=A.length;for(;o<c;){const C=o+c>>1;s<A[C]?c=C:o=C+1}const g=o-1,h=s-A[g];return{line:g,column:h}}}class AA{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,A,i,s){if(A.length){const o=[this.generatedCodeColumn,e,i.line,i.column];s>=0&&o.push(s),this.rawSegments.push(o)}else this.pending&&this.rawSegments.push(this.pending);this.advance(A),this.pending=null}addUneditedChunk(e,A,i,s,o){let c=A.start,g=!0;for(;c<A.end;)(this.hires||g||o.has(c))&&this.rawSegments.push([this.generatedCodeColumn,e,s.line,s.column]),i[c]===`

{
"name": "@esbuild-kit/core-utils",
"version": "1.3.1",
"version": "1.3.2",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

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