@sogni-ai/sogni-client-wrapper 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Sogni Client Wrapper
2
2
 
3
- [![NPM version](https://img.shields.io/npm/v/sogni-client-wrapper.svg)](https://www.npmjs.com/package/sogni-client-wrapper) [![License](https://img.shields.io/npm/l/sogni-client-wrapper.svg)](https://www.npmjs.com/package/sogni-client-wrapper)
3
+ [![NPM version](https://img.shields.io/npm/v/@sogni-ai/sogni-client-wrapper.svg)](https://www.npmjs.com/package/@sogni-ai/sogni-client-wrapper) [![License](https://img.shields.io/npm/l/@sogni-ai/sogni-client-wrapper.svg)](https://www.npmjs.com/package/@sogni-ai/sogni-client-wrapper)
4
4
 
5
5
  An enhanced Node.js wrapper for the [`@sogni-ai/sogni-client`](https://sdk-docs.sogni.ai/) library, designed for robustness, ease of use, and seamless integration with platforms like [n8n](https://n8n.io/).
6
6
 
@@ -19,13 +19,13 @@ This library simplifies interaction with the Sogni AI Supernet by providing a pr
19
19
  ## Installation
20
20
 
21
21
  ```bash
22
- npm install sogni-client-wrapper
22
+ npm install @sogni-ai/sogni-client-wrapper
23
23
  ```
24
24
 
25
25
  Or with Yarn:
26
26
 
27
27
  ```bash
28
- yarn add sogni-client-wrapper
28
+ yarn add @sogni-ai/sogni-client-wrapper
29
29
  ```
30
30
 
31
31
  ## Quick Start
@@ -33,7 +33,7 @@ yarn add sogni-client-wrapper
33
33
  Here is a simple example of how to generate an image using the wrapper:
34
34
 
35
35
  ```typescript
36
- import { SogniClientWrapper } from 'sogni-client-wrapper';
36
+ import { SogniClientWrapper } from '@sogni-ai/sogni-client-wrapper';
37
37
 
38
38
  async function main() {
39
39
  // 1. Create and connect the client
@@ -122,7 +122,7 @@ Creates a new client instance.
122
122
  The wrapper is an `EventEmitter` and provides type-safe events.
123
123
 
124
124
  ```typescript
125
- import { ClientEvent } from 'sogni-client-wrapper';
125
+ import { ClientEvent } from '@sogni-ai/sogni-client-wrapper';
126
126
 
127
127
  client.on(ClientEvent.CONNECTED, () => {
128
128
  console.log('Client is connected!');
@@ -159,7 +159,7 @@ The library throws custom errors that extend `SogniError`. This allows you to ca
159
159
  - `SogniBalanceError`: Insufficient token balance.
160
160
 
161
161
  ```typescript
162
- import { SogniAuthenticationError, SogniProjectError } from 'sogni-client-wrapper';
162
+ import { SogniAuthenticationError, SogniProjectError } from '@sogni-ai/sogni-client-wrapper';
163
163
 
164
164
  try {
165
165
  // ... your code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sogni-ai/sogni-client-wrapper",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Enhanced Node.js wrapper for Sogni AI SDK with n8n compatibility and improved developer experience",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",