omni-sync-sdk 0.7.5 → 0.7.6
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/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -190,6 +190,9 @@ var OmniSyncClient = class {
|
|
|
190
190
|
"X-SDK-Version": "0.3.0",
|
|
191
191
|
"ngrok-skip-browser-warning": "true"
|
|
192
192
|
};
|
|
193
|
+
if (this.customerToken) {
|
|
194
|
+
headers["Authorization"] = `Bearer ${this.customerToken}`;
|
|
195
|
+
}
|
|
193
196
|
const response = await fetch(url.toString(), {
|
|
194
197
|
method,
|
|
195
198
|
headers,
|
package/dist/index.mjs
CHANGED
|
@@ -165,6 +165,9 @@ var OmniSyncClient = class {
|
|
|
165
165
|
"X-SDK-Version": "0.3.0",
|
|
166
166
|
"ngrok-skip-browser-warning": "true"
|
|
167
167
|
};
|
|
168
|
+
if (this.customerToken) {
|
|
169
|
+
headers["Authorization"] = `Bearer ${this.customerToken}`;
|
|
170
|
+
}
|
|
168
171
|
const response = await fetch(url.toString(), {
|
|
169
172
|
method,
|
|
170
173
|
headers,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omni-sync-sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "Official SDK for building e-commerce storefronts with OmniSync Platform. Perfect for vibe-coded sites, AI-built stores (Cursor, Lovable, v0), and custom storefronts.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|