@permaweb/aoconnect
Advanced tools
+6
-3
| { | ||
| "name": "@permaweb/aoconnect", | ||
| "version": "0.0.55", | ||
| "version": "0.0.56", | ||
| "repository": { | ||
@@ -13,2 +13,3 @@ "type": "git", | ||
| ".": { | ||
| "webpack": "./dist/browser.js", | ||
| "browser": "./dist/browser.js", | ||
@@ -19,3 +20,4 @@ "import": "./dist/index.js", | ||
| }, | ||
| "./browser": "./dist/browser.js" | ||
| "./browser": "./dist/browser.js", | ||
| "./node": "./dist/index.js" | ||
| }, | ||
@@ -63,4 +65,5 @@ "main": "./dist/index.cjs", | ||
| "engines": { | ||
| "node": ">=18" | ||
| "node": ">=18", | ||
| "yarn": "please-use-npm" | ||
| } | ||
| } |
+11
-1
@@ -17,2 +17,3 @@ # `ao` Connect | ||
| - [CJS (Node) type: `commonjs`](#cjs-node-type-commonjs) | ||
| - [Usage with Webpack](#usage-with-webpack) | ||
| - [API](#api) | ||
@@ -54,2 +55,10 @@ - [`result`](#result) | ||
| #### Usage with Webpack | ||
| AOConnect by default exposes a file designed to be used in the browser. If you're using Webpack to bundle an app for the server and are having issues, you may need to update import statements to point at an implementation for node like so. | ||
| ```js | ||
| import { createDataItemSigner, message } from "@permaweb/aoconnect/node"; | ||
| ``` | ||
| ### API | ||
@@ -64,3 +73,4 @@ | ||
| let { messages, spawns, output, error } = await result({ | ||
| let { Messages, Spawns, Output, Error } = await result({ | ||
| message: "l3hbt-rIJ_dr9at-eQ3EVajHWMnxPNm9eBtXpzsFWZc", | ||
@@ -67,0 +77,0 @@ process: "5SGJUlPwlenkyuG9-xWh0Rcf0azm8XEd5RBTiutgWAg", |
519393
0.1%364
2.82%