🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@code-inspector/mako

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-inspector/mako - npm Package Compare versions

Comparing version
1.4.5
to
1.4.6
+1
-1
dist/index.js

@@ -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;

@@ -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;

{
"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": {