Socket
Socket
Sign inDemoInstall

tsconfck

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsconfck - npm Package Compare versions

Comparing version 1.0.0-0 to 1.0.0-1

7

dist/index.js

@@ -77,3 +77,8 @@ var __create = Object.create;

function toJson(tsconfigJson) {
return stripDanglingComma(stripJsonComments(stripBom(tsconfigJson)));
const stripped = stripDanglingComma(stripJsonComments(stripBom(tsconfigJson)));
if (stripped.trim() === "") {
return "{}\n";
} else {
return stripped;
}
}

@@ -80,0 +85,0 @@ function stripDanglingComma(pseudoJson) {

2

package.json
{
"name": "tsconfck",
"version": "1.0.0-0",
"version": "1.0.0-1",
"description": "A utility to work with tsconfig.json without typescript",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -11,3 +11,9 @@ import stripBom from 'strip-bom';

export function toJson(tsconfigJson: string): string {
return stripDanglingComma(stripJsonComments(stripBom(tsconfigJson)));
const stripped = stripDanglingComma(stripJsonComments(stripBom(tsconfigJson)));
if (stripped.trim() === '') {
// only whitespace left after stripping, return empty object
return '{}\n';
} else {
return stripped;
}
}

@@ -14,0 +20,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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