Socket
Socket
Sign inDemoInstall

@kaze-style/swc-plugin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaze-style/swc-plugin - npm Package Compare versions

Comparing version 0.12.0 to 0.13.0

2

dist/cjs/transform.js

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

"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var y=(s,t)=>{for(var r in t)a(s,r,{get:t[r],enumerable:!0})},f=(s,t,r,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of m(t))!c.call(s,n)&&n!==r&&a(s,n,{get:()=>t[n],enumerable:!(e=l(t,n))||e.enumerable});return s};var u=s=>f(a({},"__esModule",{value:!0}),s);var g={};y(g,{transform:()=>d});module.exports=u(g);var o=require("@swc/core");const d=async(s,{filename:t,transformOptions:r,swcOptions:e={}})=>{const n=r.styles.map(({classesObject:i,index:p})=>({classesObject:i,index:p}));return[(await(0,o.transform)(s,{filename:t,swcrc:!1,...e,jsc:{...e.jsc,parser:e.jsc?.parser??{syntax:"typescript",tsx:!0},experimental:{...e.jsc?.experimental,plugins:[["@kaze-style/swc-plugin/_transform",{...r,styles:n}],...e.jsc?.experimental?.plugins||[]]}}})).code,void 0]};0&&(module.exports={transform});
"use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var y=(t,s)=>{for(var r in s)a(t,r,{get:s[r],enumerable:!0})},f=(t,s,r,e)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of m(s))!c.call(t,n)&&n!==r&&a(t,n,{get:()=>s[n],enumerable:!(e=l(s,n))||e.enumerable});return t};var u=t=>f(a({},"__esModule",{value:!0}),t);var g={};y(g,{transform:()=>d});module.exports=u(g);var o=require("@swc/core");const d=async(t,{filename:s,transformOptions:r,swcOptions:e={}})=>{const n=r.styles.map(([p,i])=>({classes:p,index:i}));return[(await(0,o.transform)(t,{filename:s,swcrc:!1,...e,jsc:{...e.jsc,parser:e.jsc?.parser??{syntax:"typescript",tsx:!0},experimental:{...e.jsc?.experimental,plugins:[["@kaze-style/swc-plugin/_transform",{...r,styles:n}],...e.jsc?.experimental?.plugins||[]]}}})).code,void 0]};0&&(module.exports={transform});

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

import type { ForBuildStyle } from '@kaze-style/core';
import type { ForBuild } from '@kaze-style/core';
import type { Options as SwcOptions } from '@swc/core';
type TransformOptions = {
styles: ForBuildStyle<string>[];
styles: ForBuild[2];
};

@@ -6,0 +6,0 @@ type Options = {

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

import{transform as i}from"@swc/core";var m=async(e,{filename:r,transformOptions:s,swcOptions:t={}})=>{let n=s.styles.map(({classesObject:a,index:o})=>({classesObject:a,index:o}));return[(await i(e,{filename:r,swcrc:!1,...t,jsc:{...t.jsc,parser:t.jsc?.parser??{syntax:"typescript",tsx:!0},experimental:{...t.jsc?.experimental,plugins:[["@kaze-style/swc-plugin/_transform",{...s,styles:n}],...t.jsc?.experimental?.plugins||[]]}}})).code,void 0]};export{m as transform};
import{transform as p}from"@swc/core";var m=async(e,{filename:r,transformOptions:t,swcOptions:s={}})=>{let n=t.styles.map(([a,o])=>({classes:a,index:o}));return[(await p(e,{filename:r,swcrc:!1,...s,jsc:{...s.jsc,parser:s.jsc?.parser??{syntax:"typescript",tsx:!0},experimental:{...s.jsc?.experimental,plugins:[["@kaze-style/swc-plugin/_transform",{...t,styles:n}],...s.jsc?.experimental?.plugins||[]]}}})).code,void 0]};export{m as transform};
{
"name": "@kaze-style/swc-plugin",
"version": "0.12.0",
"version": "0.13.0",
"license": "MIT",

@@ -45,4 +45,4 @@ "author": "Taishi Naritomi",

"devDependencies": {
"@kaze-style/core": "^0.12.0"
"@kaze-style/core": "^0.13.0"
}
}

Sorry, the diff of this file is not supported yet

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