Socket
Socket
Sign inDemoInstall

abi-wan-kanabi

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abi-wan-kanabi - npm Package Compare versions

Comparing version 2.1.0-rc.1 to 2.1.0-rc.2

5

dist/generate.js

@@ -46,12 +46,7 @@ #!/usr/bin/env node

async function run() {
console.log("Wech ya wsmk, rana jina !");
const json = await fs.readJson(argv.input);
let abi = json.abi;
if (typeof abi === 'string') {
console.log('String dab ben dab');
abi = JSON.parse(abi);
}
else {
console.log('machi string ya jeddek');
}
const content = `export const ABI = ${JSON.stringify(abi, null, 2)} as const;\n`;

@@ -58,0 +53,0 @@ await fs.writeFile(argv.output, content);

8

generate.ts

@@ -24,4 +24,10 @@ #!/usr/bin/env node

const json: { abi: object } = await fs.readJson(argv.input)
let abi = json.abi
if (typeof abi === 'string') {
abi = JSON.parse(abi)
}
const content = `export const ABI = ${JSON.stringify(
json.abi,
abi,
null,

@@ -28,0 +34,0 @@ 2,

{
"name": "abi-wan-kanabi",
"version": "2.1.0-rc.1",
"version": "2.1.0-rc.2",
"description": "Abi parser for Cairo smart contracts, based on wagmi abitype",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -50,3 +50,3 @@ {

// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
// "outDir": "./", /* Specify an output folder for all emitted files. */
"outDir": "./dist", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */

@@ -53,0 +53,0 @@ // "noEmit": true, /* Disable emitting files from a compilation. */

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