abi-wan-kanabi
Advanced tools
Comparing version 2.1.0-rc.1 to 2.1.0-rc.2
@@ -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); |
@@ -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. */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68991
1610