@code-inspector/mako
Advanced tools
+1
-1
@@ -1,1 +0,1 @@ | ||
| "use strict";var p=(e,l,o)=>new Promise((t,s)=>{var i=r=>{try{a(o.next(r))}catch(n){s(n)}},u=r=>{try{a(o.throw(r))}catch(n){s(n)}},a=r=>r.done?t(r.value):Promise.resolve(r.value).then(i,u);a((o=o.apply(e,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@code-inspector/core"),f=require("path");function m(e){const l={port:0,entry:"",output:e.output};return e.close||!c.isDev(e.dev,process.env.NODE_ENV==="development")?{name:"@code-inspector/mako"}:{name:"@code-inspector/mako",enforce:e.enforcePre===!1?"post":"pre",transform:(o,t)=>p(this,null,function*(){if(c.isExcludedFile(t,e)||t.includes("/.umi/"))return;const{escapeTags:s=[],mappings:i,match:u}=e||{};if(u&&!u.test(t))return;const a=yield c.getCodeWithWebComponent({options:e,file:t,code:o,record:l});if(c.isJsTypeFile(t)){const r=f.extname(t).slice(1);let n=c.normalizePath(t);return n=c.getMappingFilePath(n,i),{content:yield c.transformCode({content:a,filePath:n,fileType:"jsx",escapeTags:s,pathType:e.pathType}),type:r}}})}}exports.MakoCodeInspectorPlugin=m; | ||
| "use strict";var p=(e,l,o)=>new Promise((t,s)=>{var i=r=>{try{a(o.next(r))}catch(n){s(n)}},u=r=>{try{a(o.throw(r))}catch(n){s(n)}},a=r=>r.done?t(r.value):Promise.resolve(r.value).then(i,u);a((o=o.apply(e,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@code-inspector/core"),f=require("path");function m(e){const l={port:0,entry:"",output:e.output};return e.close||!c.isDev(e.dev,process.env.NODE_ENV==="development")?{name:"@code-inspector/mako"}:{name:"@code-inspector/mako",enforce:e.enforcePre===!1?"post":"pre",transform:(o,t)=>p(this,null,function*(){if(c.isExcludedFile(t,e)||t.includes("/.umi/"))return;const{escapeTags:s=[],mappings:i,match:u}=e;if(u&&!u.test(t))return;const a=yield c.getCodeWithWebComponent({options:e,file:t,code:o,record:l});if(c.isJsTypeFile(t)){const r=f.extname(t).slice(1);let n=c.normalizePath(t);return n=c.getMappingFilePath(n,i),{content:yield c.transformCode({content:a,filePath:n,fileType:"jsx",escapeTags:s,pathType:e.pathType}),type:r}}})}}exports.MakoCodeInspectorPlugin=m; |
+1
-1
@@ -33,3 +33,3 @@ var m = (e, p, o) => new Promise((t, c) => { | ||
| return; | ||
| const { escapeTags: c = [], mappings: l, match: s } = e || {}; | ||
| const { escapeTags: c = [], mappings: l, match: s } = e; | ||
| if (s && !s.test(t)) | ||
@@ -36,0 +36,0 @@ return; |
+2
-2
| { | ||
| "name": "@code-inspector/mako", | ||
| "version": "1.4.5", | ||
| "version": "1.4.6", | ||
| "main": "./dist/index.js", | ||
@@ -40,3 +40,3 @@ "module": "./dist/index.mjs", | ||
| "dependencies": { | ||
| "@code-inspector/core": "1.4.5" | ||
| "@code-inspector/core": "1.4.6" | ||
| }, | ||
@@ -43,0 +43,0 @@ "devDependencies": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
16104
-0.06%+ Added
- Removed
Updated