@shopware-ag/app-server-sdk
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -150,3 +150,4 @@ "use strict"; | ||
constructor(shopId, response) { | ||
super(`The api request failed with status code: ${response.statusCode} for shop with id: ${shopId}`); | ||
const message = response.body.errors.map((e) => e.detail).join(", "); | ||
super(`Request failed with error: ${message} for shop with id: ${shopId}`); | ||
this.response = response; | ||
@@ -153,0 +154,0 @@ } |
@@ -144,3 +144,4 @@ /** | ||
constructor(shopId, response) { | ||
super(`The api request failed with status code: ${response.statusCode} for shop with id: ${shopId}`); | ||
const message = response.body.errors.map((e) => e.detail).join(", "); | ||
super(`Request failed with error: ${message} for shop with id: ${shopId}`); | ||
this.response = response; | ||
@@ -147,0 +148,0 @@ } |
{ | ||
"name": "@shopware-ag/app-server-sdk", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "App Server SDK for JavaScript", | ||
@@ -33,2 +33,32 @@ "type": "module", | ||
}, | ||
"./helper/criteria": { | ||
"import": { | ||
"types": "./dist/esm/helper/criteria.d.ts", | ||
"default": "./dist/esm/helper/criteria.js" | ||
}, | ||
"require": { | ||
"types": "./dist/commonjs/helper/criteria.d.ts", | ||
"default": "./dist/commonjs/helper/criteria.js" | ||
} | ||
}, | ||
"./helper/admin-api": { | ||
"import": { | ||
"types": "./dist/esm/helper/admin-api.d.ts", | ||
"default": "./dist/esm/helper/admin-api.js" | ||
}, | ||
"require": { | ||
"types": "./dist/commonjs/helper/admin-api.d.ts", | ||
"default": "./dist/commonjs/helper/admin-api.js" | ||
} | ||
}, | ||
"./helper/uuid": { | ||
"import": { | ||
"types": "./dist/esm/helper/uuid.d.ts", | ||
"default": "./dist/esm/helper/uuid.js" | ||
}, | ||
"require": { | ||
"types": "./dist/commonjs/helper/uuid.d.ts", | ||
"default": "./dist/commonjs/helper/uuid.js" | ||
} | ||
}, | ||
"./integration/hono": { | ||
@@ -154,2 +184,5 @@ "import": { | ||
"./helper/app-actions": "./src/helper/app-actions.ts", | ||
"./helper/criteria": "./src/helper/criteria.ts", | ||
"./helper/admin-api": "./src/helper/admin-api.ts", | ||
"./helper/uuid": "./src/helper/uuid.ts", | ||
"./integration/hono": "./src/integration/hono.ts", | ||
@@ -156,0 +189,0 @@ "./integration/cloudflare-kv": "./src/integration/cloudflare-kv.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
433194
141
4610