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

@esbuild-kit/cjs-loader

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esbuild-kit/cjs-loader - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

2

dist/index.js

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

"use strict";var g=require("path"),S=require("fs"),y=require("module"),n=require("@esbuild-kit/core-utils"),i=require("get-tsconfig");function f(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var p=f(g),T=f(S),u=f(y);const F=/^\.{0,2}\//,P=/\.[cm]?tsx?$/,b=`${p.default.sep}node_modules${p.default.sep}`,l=process.env.ESBK_TSCONFIG_PATH?{path:process.env.ESBK_TSCONFIG_PATH,config:i.parseTsconfig(process.env.ESBK_TSCONFIG_PATH)}:i.getTsconfig(),M=l==null?void 0:l.config,m=l&&i.createPathsMatcher(l),_=n.installSourceMapSupport(),r=process.versions.node.split(".").map(Number),O=r[0]>=13&&r[1]>=2||r[0]>=12&&r[1]>=20&&r[0]<13&&r[1]<0;function v(e,s){process.send&&process.send({type:"dependency",path:s});let t=T.default.readFileSync(s,"utf8");if(s.endsWith(".cjs")&&O){const o=n.transformDynamicImport(t);o&&(t=n.applySourceMap(o,s,_))}else{const o=n.transformSync(t,s,{tsconfigRaw:M});t=n.applySourceMap(o,s,_)}e._compile(t,s)}const h=u.default._extensions;[".js",".ts",".tsx",".jsx"].forEach(e=>{h[e]=v}),Object.defineProperty(h,".mjs",{value:v,enumerable:!1});const d=u.default._resolveFilename;u.default._resolveFilename=function(e,s,t,o){if(e.startsWith("node:")&&(e=e.slice(5)),m&&!F.test(e)&&!(s!=null&&s.filename.includes(b))){const c=m(e);for(const a of c)try{return d.call(this,a,s,t,o)}catch{}}if(s&&P.test(s.filename)){const c=n.resolveTsPath(e);if(c)try{return d.call(this,c,s,t,o)}catch(a){if(a.code!=="MODULE_NOT_FOUND")throw a}}return d.call(this,e,s,t,o)};
"use strict";var v=require("path"),g=require("fs"),S=require("module"),o=require("@esbuild-kit/core-utils"),i=require("get-tsconfig");function l(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var u=l(v),y=l(g),f=l(S);const T=/^\.{0,2}\//,N=/\.[cm]?tsx?$/,F=`${u.default.sep}node_modules${u.default.sep}`,a=process.env.ESBK_TSCONFIG_PATH?{path:process.env.ESBK_TSCONFIG_PATH,config:i.parseTsconfig(process.env.ESBK_TSCONFIG_PATH)}:i.getTsconfig(),P=a==null?void 0:a.config,p=a&&i.createPathsMatcher(a),m=o.installSourceMapSupport(),M=o.compareNodeVersion([13,2,0])>=0||o.compareNodeVersion([12,20,0])>=0&&o.compareNodeVersion([13,0,0])<0;function _(e,s){process.send&&process.send({type:"dependency",path:s});let t=y.default.readFileSync(s,"utf8");if(s.endsWith(".cjs")&&M){const r=o.transformDynamicImport(t);r&&(t=o.applySourceMap(r,s,m))}else{const r=o.transformSync(t,s,{tsconfigRaw:P});t=o.applySourceMap(r,s,m)}e._compile(t,s)}const h=f.default._extensions;[".js",".ts",".tsx",".jsx"].forEach(e=>{h[e]=_}),Object.defineProperty(h,".mjs",{value:_,enumerable:!1});const O=o.compareNodeVersion([16,0,0])>=0||o.compareNodeVersion([14,18,0])>=0,d=f.default._resolveFilename;f.default._resolveFilename=function(e,s,t,r){if(!O&&e.startsWith("node:")&&(e=e.slice(5)),p&&!T.test(e)&&!(s!=null&&s.filename.includes(F))){const c=p(e);for(const n of c)try{return d.call(this,n,s,t,r)}catch{}}if(s&&N.test(s.filename)){const c=o.resolveTsPath(e);if(c)try{return d.call(this,c,s,t,r)}catch(n){if(n.code!=="MODULE_NOT_FOUND")throw n}}return d.call(this,e,s,t,r)};
{
"name": "@esbuild-kit/cjs-loader",
"version": "2.3.0",
"version": "2.3.1",
"publishConfig": {

@@ -35,14 +35,14 @@ "access": "public"

"dependencies": {
"@esbuild-kit/core-utils": "^2.0.0",
"@esbuild-kit/core-utils": "^2.1.0",
"get-tsconfig": "^4.1.0"
},
"devDependencies": {
"@pvtnbr/eslint-config": "^0.22.0",
"@types/node": "^17.0.33",
"@types/semver": "^7.3.9",
"eslint": "^8.15.0",
"@pvtnbr/eslint-config": "^0.26.2",
"@types/node": "^18.0.0",
"@types/semver": "^7.3.10",
"eslint": "^8.18.0",
"execa": "^6.1.0",
"get-node": "^12.1.0",
"manten": "^0.1.0",
"pkgroll": "^1.3.0",
"get-node": "^13.1.0",
"manten": "^0.2.1",
"pkgroll": "^1.3.1",
"semver": "^7.3.7",

@@ -58,14 +58,5 @@ "source-map-support": "^0.5.21",

"rules": {
"import/no-unresolved": "off",
"@typescript-eslint/no-shadow": [
"error",
{
"allow": [
"test",
"describe"
]
}
]
"import/no-unresolved": "off"
}
}
}
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