@andco/sdk-script 0.0.1 → 0.0.2

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 +10 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -58,7 +58,11 @@ pnpm add @andco/sdk-script
58
58
  ```
59
59
 
60
60
  ```ts
61
- import { andcoInstance, andcoSessionFor, AndcoButtonElement } from "@andco/sdk-script";
61
+ import {
62
+ andcoInstance,
63
+ andcoSessionFor,
64
+ AndcoButtonElement,
65
+ } from "@andco/sdk-script";
62
66
 
63
67
  const andco = andcoInstance({
64
68
  clientId: "client_123",
@@ -97,12 +101,13 @@ attribute counterpart:
97
101
 
98
102
  ```ts
99
103
  const button = document.querySelector<AndcoButtonElement>("andco-button")!;
100
- button.authorizations = [resourceServer.authorization({ scopes: ["..."] })];
104
+ button.authorizations = [
105
+ bank.authorization({ scopes: ["bank_accounts:read"] }),
106
+ ];
101
107
  ```
102
108
 
103
- (`resourceServer` above is a Resource Server Definition — an object implementing
104
- `AndcoResourceServer` from `@andco/sdk` — and `.authorization(...)` is the method each such
105
- definition exposes to produce this contribution.)
109
+ (`bank` above is a `Bank` Resource Server Definition from `@andco/bank-sdk`;
110
+ `.authorization(...)` is how it produces that contribution.)
106
111
 
107
112
  ## Events
108
113
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andco/sdk-script",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,7 +22,7 @@
22
22
  "!dist/*.map"
23
23
  ],
24
24
  "dependencies": {
25
- "@andco/sdk": "0.0.1"
25
+ "@andco/sdk": "0.0.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "typescript": "^6.0.3",