@graph8/sdk 0.2.0 → 0.2.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 +4 -4
  2. package/package.json +11 -6
package/README.md CHANGED
@@ -5,7 +5,7 @@ The most comprehensive GTM SDK. One `npm install`. Every graph8 capability.
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install graph8
8
+ npm install @graph8/sdk
9
9
  ```
10
10
 
11
11
  ## Quick Start
@@ -13,7 +13,7 @@ npm install graph8
13
13
  ### Client-side (write key)
14
14
 
15
15
  ```typescript
16
- import { g8 } from 'graph8';
16
+ import { g8 } from '@graph8/sdk';
17
17
 
18
18
  g8.init({ writeKey: 'YOUR_WRITE_KEY' });
19
19
 
@@ -49,7 +49,7 @@ const known = await g8.forms.lookup('user@acme.com');
49
49
  ### Server-side (API key)
50
50
 
51
51
  ```typescript
52
- import { g8 } from 'graph8';
52
+ import { g8 } from '@graph8/sdk';
53
53
 
54
54
  g8.init({ apiKey: 'YOUR_API_KEY' });
55
55
 
@@ -105,7 +105,7 @@ g8.webhooks.on('reply_received', (event) => {
105
105
  ### React / Next.js
106
106
 
107
107
  ```tsx
108
- import { G8Provider, useG8 } from 'graph8/react';
108
+ import { G8Provider, useG8 } from '@graph8/sdk/react';
109
109
 
110
110
  // Layout
111
111
  <G8Provider writeKey="YOUR_WRITE_KEY"><App /></G8Provider>
package/package.json CHANGED
@@ -1,24 +1,29 @@
1
1
  {
2
2
  "name": "@graph8/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "graph8 SDK - CRM, enrichment, sequences, campaigns, and tracking for B2B",
5
5
  "license": "MIT",
6
+ "author": "graph8 <support@graph8.com> (https://graph8.com)",
7
+ "homepage": "https://graph8.com",
8
+ "bugs": {
9
+ "url": "https://github.com/graph8-com/g8/issues"
10
+ },
6
11
  "main": "dist/index.js",
7
12
  "module": "dist/index.mjs",
8
13
  "types": "dist/index.d.ts",
9
14
  "exports": {
10
15
  ".": {
16
+ "types": "./dist/index.d.ts",
11
17
  "import": "./dist/index.mjs",
12
- "require": "./dist/index.js",
13
- "types": "./dist/index.d.ts"
18
+ "require": "./dist/index.js"
14
19
  },
15
20
  "./react": {
21
+ "types": "./dist/react.d.ts",
16
22
  "import": "./dist/react.mjs",
17
- "require": "./dist/react.js",
18
- "types": "./dist/react.d.ts"
23
+ "require": "./dist/react.js"
19
24
  }
20
25
  },
21
- "files": ["dist"],
26
+ "files": ["dist", "README.md"],
22
27
  "scripts": {
23
28
  "build": "tsup",
24
29
  "test": "vitest run",