Socket
Socket
Sign inDemoInstall

svelte-preprocess

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-preprocess - npm Package Compare versions

Comparing version 4.7.0 to 4.7.1

9

CHANGELOG.md

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

## [4.7.1](https://github.com/sveltejs/svelte-preprocess/compare/v4.7.0...v4.7.1) (2021-04-18)
### Features
* export autopreprocess options type ([f5e1a63](https://github.com/sveltejs/svelte-preprocess/commit/f5e1a635f586a9780b0a71db979f6ffb30b31221))
# [4.7.0](https://github.com/sveltejs/svelte-preprocess/compare/v4.6.9...v4.7.0) (2021-03-26)

@@ -2,0 +11,0 @@

33

dist/autoProcess.d.ts

@@ -1,34 +0,3 @@

import type { PreprocessorGroup, Processed, TransformerArgs, TransformerOptions, Options } from './types';
declare type AutoPreprocessGroup = PreprocessorGroup & {
defaultLanguages: Readonly<{
markup: string;
style: string;
script: string;
}>;
};
declare type AutoPreprocessOptions = {
markupTagName?: string;
aliases?: Array<[string, string]>;
preserve?: string[];
defaults?: {
markup?: string;
style?: string;
script?: string;
};
sourceMap?: boolean;
babel?: TransformerOptions<Options.Babel>;
typescript?: TransformerOptions<Options.Typescript>;
scss?: TransformerOptions<Options.Sass>;
sass?: TransformerOptions<Options.Sass>;
less?: TransformerOptions<Options.Less>;
stylus?: TransformerOptions<Options.Stylus>;
postcss?: TransformerOptions<Options.Postcss>;
coffeescript?: TransformerOptions<Options.Coffeescript>;
pug?: TransformerOptions<Options.Pug>;
globalStyle?: Options.GlobalStyle | boolean;
replace?: Options.Replace;
[languageName: string]: TransformerOptions;
};
import type { AutoPreprocessGroup, AutoPreprocessOptions, Processed, TransformerArgs, TransformerOptions } from './types';
export declare const transform: (name: string, options: TransformerOptions, { content, map, filename, attributes }: TransformerArgs<any>) => Promise<Processed>;
export declare function sveltePreprocess({ aliases, markupTagName, preserve, defaults, sourceMap, ...rest }?: AutoPreprocessOptions): AutoPreprocessGroup;
export {};

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

import type { Processed as SvelteProcessed, Preprocessor } from 'svelte/types/compiler/preprocess';
import type { Processed as SvelteProcessed, Preprocessor, PreprocessorGroup } from 'svelte/types/compiler/preprocess';
import * as Options from './options';

@@ -33,1 +33,31 @@ export { Options };

}
export declare type AutoPreprocessGroup = PreprocessorGroup & {
defaultLanguages: Readonly<{
markup: string;
style: string;
script: string;
}>;
};
export declare type AutoPreprocessOptions = {
markupTagName?: string;
aliases?: Array<[string, string]>;
preserve?: string[];
defaults?: {
markup?: string;
style?: string;
script?: string;
};
sourceMap?: boolean;
babel?: TransformerOptions<Options.Babel>;
typescript?: TransformerOptions<Options.Typescript>;
scss?: TransformerOptions<Options.Sass>;
sass?: TransformerOptions<Options.Sass>;
less?: TransformerOptions<Options.Less>;
stylus?: TransformerOptions<Options.Stylus>;
postcss?: TransformerOptions<Options.Postcss>;
coffeescript?: TransformerOptions<Options.Coffeescript>;
pug?: TransformerOptions<Options.Pug>;
globalStyle?: Options.GlobalStyle | boolean;
replace?: Options.Replace;
[languageName: string]: TransformerOptions;
};
{
"name": "svelte-preprocess",
"version": "4.7.0",
"version": "4.7.1",
"license": "MIT",

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

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