@vansite/ts-sharetribe-flex-sdk 3.0.0 → 3.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.
- package/README.md +7 -7
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/sdkTypes/UUID.d.ts.map +1 -1
- package/dist/types/utils/prepare-axios-instance.d.ts +1 -1
- package/dist/types/utils/prepare-axios-instance.d.ts.map +1 -1
- package/dist/types/utils/stores/BrowserStore.d.ts.map +1 -1
- package/dist/types/utils/stores/ExpressStore.d.ts.map +1 -1
- package/dist/utils/prepare-axios-instance.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|

|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
This is a **TypeScript SDK** for the [Sharetribe Flex API](https://www.sharetribe.com/api-reference/). It simplifies interaction with the API, providing a more user-friendly and intuitive interface for developers and reduces the size of the SDK.
|
|
8
8
|
|
|
@@ -36,7 +36,7 @@ See also the migration section to see how things changed.
|
|
|
36
36
|
```typescript
|
|
37
37
|
import {
|
|
38
38
|
SharetribeSdk,
|
|
39
|
-
|
|
39
|
+
IntegrationSdk,
|
|
40
40
|
} from "@vansite/ts-sharetribe-flex-sdk";
|
|
41
41
|
|
|
42
42
|
// Regular SDK for client-side operations
|
|
@@ -49,7 +49,7 @@ sharetribeSdk.authInfo().then((response) => {
|
|
|
49
49
|
});
|
|
50
50
|
|
|
51
51
|
// Integration SDK for server-side operations
|
|
52
|
-
const integrationSdk = new
|
|
52
|
+
const integrationSdk = new IntegrationSdk({
|
|
53
53
|
clientId: "your-client-id",
|
|
54
54
|
clientSecret: "your-client-secret",
|
|
55
55
|
});
|
|
@@ -130,15 +130,15 @@ const store = sharetribeSdk.tokenStore.memoryStore();
|
|
|
130
130
|
**after:**
|
|
131
131
|
|
|
132
132
|
```javascript
|
|
133
|
-
const {
|
|
134
|
-
const store = new
|
|
133
|
+
const { TokenStores } = require("@vansite/ts-sharetribe-flex-sdk");
|
|
134
|
+
const store = new TokenStores.MemoryStore();
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
or
|
|
138
138
|
|
|
139
139
|
```javascript
|
|
140
|
-
const {
|
|
141
|
-
const cookieTokenStore = new
|
|
140
|
+
const { TokenStores } = require("@vansite/ts-sharetribe-flex-sdk");
|
|
141
|
+
const cookieTokenStore = new TokenStores.ExpressStore({
|
|
142
142
|
clientId: "client-id",
|
|
143
143
|
req,
|
|
144
144
|
secure: true,
|