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

ts-blank-space

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-blank-space - npm Package Compare versions

Comparing version 0.4.4 to 0.5.0

12

out/index.js

@@ -319,10 +319,2 @@ // Copyright 2024 Bloomberg Finance L.P.

function isAsync(modifiers ) {
if (!modifiers) return false;
for (let i = 0; i < modifiers.length; i++) {
if (modifiers[i].kind === SK.AsyncKeyword) return true;
}
return false;
}
/**

@@ -413,4 +405,5 @@ * prop: T

let moveOpenParen = false;
const params = node.parameters;
if (node.typeParameters && node.typeParameters.length) {
moveOpenParen = isAsync(node.modifiers) && spansLines(node.typeParameters.pos, node.typeParameters.end);
moveOpenParen = spansLines(node.typeParameters.pos, params.pos);
blankGenerics(node, node.typeParameters, moveOpenParen);

@@ -422,3 +415,2 @@ }

const params = node.parameters;
if (moveOpenParen) {

@@ -425,0 +417,0 @@ str.blank(params.pos - 1, params.pos);

2

package.json
{
"name": "ts-blank-space",
"description": "A small, fast, pure JavaScript type-stripper that uses the official TypeScript parser.",
"version": "0.4.4",
"version": "0.5.0",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "homepage": "https://bloomberg.github.io/ts-blank-space",

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