Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@anttiviljami/dtsgenerator

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anttiviljami/dtsgenerator - npm Package Compare versions

Comparing version 3.19.3 to 3.20.0

3

dist/core/astBuilder.js

@@ -56,2 +56,5 @@ "use strict";

function buildNumericLiteralTypeNode(n) {
if (!isNaN(parseFloat(n)) && parseFloat(n) < 0) {
return ts.factory.createLiteralTypeNode(ts.factory.createPrefixUnaryExpression(ts.SyntaxKind.MinusToken, ts.factory.createNumericLiteral(Math.abs(parseFloat(n)))));
}
return ts.factory.createLiteralTypeNode(ts.factory.createNumericLiteral(n));

@@ -58,0 +61,0 @@ }

2

package.json
{
"name": "@anttiviljami/dtsgenerator",
"version": "3.19.3",
"version": "3.20.0",
"description": "TypeScript d.ts file generator for JSON Schema file",

@@ -5,0 +5,0 @@ "bin": {

@@ -51,2 +51,11 @@ import * as ts from 'typescript';

export function buildNumericLiteralTypeNode(n: string): ts.LiteralTypeNode {
if (!isNaN(parseFloat(n)) && parseFloat(n) < 0) {
return ts.factory.createLiteralTypeNode(
ts.factory.createPrefixUnaryExpression(
ts.SyntaxKind.MinusToken,
ts.factory.createNumericLiteral(Math.abs(parseFloat(n))),
),
);
}
return ts.factory.createLiteralTypeNode(ts.factory.createNumericLiteral(n));

@@ -53,0 +62,0 @@ }

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