@hirosystems/clarinet-sdk
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -25,5 +25,9 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.vfs = void 0; | ||
const fs = __importStar(require("node:fs/promises")); | ||
const node_path_1 = __importDefault(require("node:path")); | ||
function fileArrayToString(bufferArray) { | ||
@@ -80,2 +84,5 @@ return Array.from(bufferArray) | ||
throw new Error("invalid write event"); | ||
const dir = node_path_1.default.dirname(event.path); | ||
if (dir !== ".") | ||
await fs.mkdir(dir, { recursive: true }); | ||
return fs.writeFile(event.path, Uint8Array.from(event.content)); | ||
@@ -82,0 +89,0 @@ } |
import * as fs from "node:fs/promises"; | ||
import path from "node:path"; | ||
function fileArrayToString(bufferArray) { | ||
@@ -53,2 +54,5 @@ return Array.from(bufferArray) | ||
throw new Error("invalid write event"); | ||
const dir = path.dirname(event.path); | ||
if (dir !== ".") | ||
await fs.mkdir(dir, { recursive: true }); | ||
return fs.writeFile(event.path, Uint8Array.from(event.content)); | ||
@@ -55,0 +59,0 @@ } |
{ | ||
"name": "@hirosystems/clarinet-sdk", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A SDK to interact with Clarity Smart Contracts", | ||
@@ -5,0 +5,0 @@ "homepage": "https://docs.hiro.so/clarinet/feature-guides/clarinet-js-sdk", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
95079
1719