Socket
Socket
Sign inDemoInstall

@shopware/api-client

Package Overview
Dependencies
Maintainers
1
Versions
418
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopware/api-client - npm Package Compare versions

Comparing version 0.0.0-canary-20230718191814 to 0.0.0-canary-20230720124540

6

package.json
{
"name": "@shopware/api-client",
"version": "0.0.0-canary-20230718191814",
"version": "0.0.0-canary-20230720124540",
"description": "Shopware client for API connection.",

@@ -34,4 +34,4 @@ "author": "Shopware",

"vitest": "^0.33.0",
"@shopware/api-gen": "0.0.0-canary-20230718191814",
"eslint-config-shopware": "0.0.0-canary-20230718191814",
"@shopware/api-gen": "0.0.5",
"eslint-config-shopware": "0.0.4",
"tsconfig": "0.0.0"

@@ -38,0 +38,0 @@ },

@@ -149,27 +149,6 @@ # shopware/frontends - api-client

### Latest changes: 0.0.0-canary-20230718191814
### Latest changes: 0.0.0-canary-20230720124540
### Minor Changes
- [#316](https://github.com/shopware/frontends/pull/316) [`589c09c`](https://github.com/shopware/frontends/commit/589c09cdd9dee0db172c371afc5ecd740bdb4723) Thanks [@patzick](https://github.com/patzick)! - Improved error handling. Api client now throws `ApiClientError` with detailed information about what went wrong with request.
example:
```typescript
import { ApiClientError } from "@shopware/api-client";
try {
// ... your request
} catch (error) {
if (error instanceof ApiClientError) {
console.error(error); // This prints message summary
console.error("Details:", error.details); // Raw response from API
} else {
console.error("==>", error); // Another type of error, not recognized by API client
}
}
```
### Patch Changes
- [#303](https://github.com/shopware/frontends/pull/303) [`aeb639a`](https://github.com/shopware/frontends/commit/aeb639a3244f812c275145345618e5bc0045be0d) Thanks [@patzick](https://github.com/patzick)! - Improved linting in packages. Types should be more reliable
- [#320](https://github.com/shopware/frontends/pull/320) [`8e499e3`](https://github.com/shopware/frontends/commit/8e499e35b3a1a7dc4d1382f8f99b8fc3426e4ac9) Thanks [@mkucmus](https://github.com/mkucmus)! - Prevent setting "null" or "undefined" as token on session init

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc