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

tshy

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tshy - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

7

dist/esm/package.js
// get the package.json data for the cwd
import { readFileSync } from 'fs';
import { parse, stringify } from 'polite-json';
import fail from './fail.js';
const isPackage = (pkg) => !!pkg && typeof pkg === 'object' && !Array.isArray(pkg);
const readPkg = () => {
try {
return JSON.parse(readFileSync('package.json', 'utf8'));
const res = parse(readFileSync('package.json', 'utf8'));
if (isPackage(res))
return res;
throw new Error('Invalid package.json contents: ' + stringify(res));
}

@@ -8,0 +13,0 @@ catch (er) {

3

dist/esm/write-package.js
import { writeFileSync } from 'fs';
import { stringify } from 'polite-json';
import pkg from './package.js';
export default () => writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
export default () => writeFileSync('package.json', stringify(pkg));
//# sourceMappingURL=write-package.js.map
{
"name": "tshy",
"version": "1.11.0",
"version": "1.11.1",
"description": "TypeScript HYbridizer - Hybrid (CommonJS/ESM) TypeScript node package builder",

@@ -17,2 +17,3 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",

"mkdirp": "^3.0.1",
"polite-json": "^4.0.1",
"resolve-import": "^1.4.4",

@@ -19,0 +20,0 @@ "rimraf": "^5.0.1",

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

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