New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

esbuild-sass-plugin

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-sass-plugin - npm Package Compare versions

Comparing version 2.0.0-alpha.0 to 2.0.0-alpha.1

0

lib/index.d.ts

@@ -0,0 +0,0 @@ import { OnLoadResult } from "esbuild";

@@ -0,0 +0,0 @@ "use strict";

import { Plugin } from "esbuild";
import { SassPluginOptions } from "./index";
export declare function sassPlugin(options?: SassPluginOptions): Plugin;

4

lib/plugin.js

@@ -84,3 +84,3 @@ "use strict";

load(canonicalUrl) {
const filename = canonicalUrl.pathname.slice(1);
const filename = path_1.sep === "/" ? canonicalUrl.pathname : canonicalUrl.pathname.slice(1);
let contents = fs.readFileSync(filename, "utf8");

@@ -105,3 +105,3 @@ if (options.precompile) {

else if (url.startsWith("file://")) {
filename = url.slice(8);
filename = path_1.sep === "/" ? url.slice(7) : url.slice(8);
}

@@ -108,0 +108,0 @@ else {

@@ -0,0 +0,0 @@ import { Type } from "./index";

@@ -0,0 +0,0 @@ "use strict";

{
"name": "esbuild-sass-plugin",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"description": "esbuild plugin for sass/scss files supporting both css loader and css result import (lit-element)",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -0,0 +0,0 @@ ![cooltext394785080075403](https://user-images.githubusercontent.com/160981/136289874-26ce7269-ea08-47dd-be31-9bf0ef7a0b8d.png)

@@ -0,0 +0,0 @@ import {OnLoadResult} from "esbuild"

@@ -88,3 +88,3 @@ import {OnLoadArgs, OnLoadResult, OnResolveArgs, Plugin} from "esbuild"

load(canonicalUrl: URL): ImporterResult | null {
const filename = canonicalUrl.pathname.slice(1)
const filename = sep === "/" ? canonicalUrl.pathname : canonicalUrl.pathname.slice(1)
let contents = fs.readFileSync(filename, "utf8")

@@ -108,3 +108,3 @@ if (options.precompile) {

} else if (url.startsWith("file://")) {
filename = url.slice(8)
filename = sep === "/" ? url.slice(7) : url.slice(8)
} else {

@@ -111,0 +111,0 @@ filename = url

@@ -0,0 +0,0 @@ import {Type} from "./index"

Sorry, the diff of this file is not supported yet

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