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.4.2 to 2.4.3

4

lib/cache.d.ts
import { SassPluginOptions } from './index';
import { OnLoadArgs, OnLoadResult } from 'esbuild';
declare type OnLoadCallback = (args: OnLoadArgs) => (OnLoadResult | Promise<OnLoadResult>);
declare type PluginLoadCallback = (path: string) => (OnLoadResult | Promise<OnLoadResult>);
type OnLoadCallback = (args: OnLoadArgs) => (OnLoadResult | Promise<OnLoadResult>);
type PluginLoadCallback = (path: string) => (OnLoadResult | Promise<OnLoadResult>);
export declare function useCache(options: SassPluginOptions | undefined, loadCallback: PluginLoadCallback): OnLoadCallback;
export {};
import { OnLoadResult } from 'esbuild';
import { StringOptions } from 'sass';
import { sassPlugin } from './plugin';
export declare type Type = 'css' | 'style' | 'css-text' | 'lit-css';
export declare type SassPluginOptions = StringOptions<'sync'> & {
export type Type = 'css' | 'style' | 'css-text' | 'lit-css';
export type SassPluginOptions = StringOptions<'sync'> & {
filter?: RegExp;

@@ -21,5 +21,5 @@ importMapper?: (url: string) => string;

export { makeModule, postcssModules } from './utils';
export declare type CachedResult = {
export type CachedResult = {
mtimeMs: number;
result: OnLoadResult;
};
import { SassPluginOptions } from './index';
export declare type RenderSync = (path: string) => RenderResult;
export declare type RenderResult = {
export type RenderSync = (path: string) => RenderResult;
export type RenderResult = {
cssText: string;

@@ -5,0 +5,0 @@ watchFiles: string[];

@@ -83,2 +83,3 @@ "use strict";

const { css, loadedUrls, sourceMap } = sass.compileString(source, {
sourceMapIncludeSources: true,
...options,

@@ -85,0 +86,0 @@ syntax,

@@ -9,3 +9,3 @@ import { SassPluginOptions, Type } from './index';

export declare function fileSyntax(filename: string): Syntax;
export declare type PluginContext = {
export type PluginContext = {
instance: number;

@@ -22,3 +22,3 @@ namespace: string;

export declare function parseNonce(nonce: string | undefined): string | undefined;
export declare type PostcssModulesParams = Parameters<PostcssModulesPlugin>[0] & {
export type PostcssModulesParams = Parameters<PostcssModulesPlugin>[0] & {
basedir?: string;

@@ -25,0 +25,0 @@ };

{
"name": "esbuild-sass-plugin",
"version": "2.4.2",
"version": "2.4.3",
"description": "esbuild plugin for sass/scss files supporting both css loader and css result import (lit-element)",

@@ -43,18 +43,18 @@ "main": "lib/index.js",

"dependencies": {
"esbuild": "^0.15.12",
"esbuild": "^0.15.17",
"resolve": "^1.22.1",
"sass": "^1.55.0"
"sass": "^1.56.1"
},
"devDependencies": {
"@types/node": "^18.11.3",
"@types/node": "^18.11.10",
"@types/resolve": "^1.20.2",
"@types/sass": "^1.43.1",
"mocha-toolkit": "^1.0.7",
"postcss": "^8.4.18",
"postcss-modules": "^5.0.0",
"postcss": "^8.4.19",
"postcss-modules": "^6.0.0",
"postcss-url": "^10.1.3",
"source-map": "^0.7.4",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
"typescript": "^4.9.3"
}
}

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