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

@latticexyz/abi-ts

Package Overview
Dependencies
Maintainers
4
Versions
1061
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@latticexyz/abi-ts - npm Package Compare versions

Comparing version 2.0.0-main-4e0200f6 to 2.0.0-main-4e2a170f

dist/chunk-V5CSSX4G.js

2

dist/abi-ts.js
#!/usr/bin/env node
import{a as r}from"./chunk-7FDMKCOK.js";import o from"yargs";import{hideBin as i}from"yargs/helpers";import e from"chalk";r.command="$0";o(i(process.argv)).scriptName("abi-ts").command(r).strict().fail((a,s)=>{console.error(e.red(a)),a.includes("Missing required argument")&&console.log(e.yellow(`Run 'pnpm abi-ts ${process.argv[2]} --help' for a list of available and required arguments.`)),process.exit(1)}).alias({h:"help"}).argv;
import{a as r}from"./chunk-V5CSSX4G.js";import o from"yargs";import{hideBin as i}from"yargs/helpers";import e from"chalk";r.command="$0";o(i(process.argv)).scriptName("abi-ts").command(r).strict().fail((a,s)=>{console.error(e.red(a)),a.includes("Missing required argument")&&console.log(e.yellow(`Run 'pnpm abi-ts ${process.argv[2]} --help' for a list of available and required arguments.`)),process.exit(1)}).alias({h:"help"}).argv;
//# sourceMappingURL=abi-ts.js.map

@@ -1,2 +0,2 @@

import{a}from"./chunk-7FDMKCOK.js";export{a as default};
import{a}from"./chunk-V5CSSX4G.js";export{a as default};
//# sourceMappingURL=index.js.map
{
"name": "@latticexyz/abi-ts",
"version": "2.0.0-main-4e0200f6",
"version": "2.0.0-main-4e2a170f",
"description": "Create TypeScript type declaration files (`.d.ts`) for your ABI JSON files.",

@@ -27,2 +27,3 @@ "repository": {

"chalk": "^5.3.0",
"debug": "^4.3.4",
"execa": "^7.0.0",

@@ -33,2 +34,3 @@ "glob": "^8.0.3",

"devDependencies": {
"@types/debug": "^4.1.7",
"@types/glob": "^7.2.0",

@@ -35,0 +37,0 @@ "@types/node": "^18.15.11",

import type { CommandModule } from "yargs";
import { readFileSync, writeFileSync } from "fs";
import glob from "glob";
import path from "path";
import { debug } from "./debug";

@@ -37,3 +37,3 @@ type Options = {

if (json === "[]") {
console.log("Skipping empty ABI file", jsonFilename);
debug("Skipping empty ABI file", jsonFilename);
continue;

@@ -45,3 +45,3 @@ }

console.log("Writing", tsFilename);
debug("Writing", tsFilename);
writeFileSync(tsFilename, ts);

@@ -48,0 +48,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