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

svelte-ts-preprocess

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-ts-preprocess - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "svelte-ts-preprocess",
"version": "1.0.0",
"version": "1.0.1",
"description": "Typescript preprocessor for Svelte 3",

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

@@ -48,3 +48,3 @@ ***!!! THIS PREPROCESSOR IS VERY EXPERIMENTAL !!!***

preprocess: preprocess({
transformers: {
transformers: {
ts: ts().script

@@ -51,0 +51,0 @@ },

@@ -5,3 +5,3 @@ const fs = require('fs'),

function printDiagnostics(diagnostics) {
function printDiagnostics(diagnostics = []) {
diagnostics.forEach(diagnostic => {

@@ -21,7 +21,7 @@ if (diagnostic.file) {

script: ({ content, attributes, filename }) => {
if (attributes && ['ts', 'typescript'].includes(attributes.lang)) return;
if (attributes && ! ['ts', 'typescript'].includes(attributes.lang)) return;
return new Promise(resolve => {
options ?
resolve(options) :
options ?
resolve(options) :
fs.readFile('tsconfig.json', (err, content) => {

@@ -28,0 +28,0 @@ if (err) throw err;

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