Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rest-client-sdk

Package Overview
Dependencies
Maintainers
0
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rest-client-sdk - npm Package Versions

1
11

6.6.1

Diff

Changelog

Source

6.6.1

Do not use async / await to avoid regeneratorRuntime issue

jdeniau
published 6.6.0 •

Changelog

Source

6.6.0

  • Add Authorization code flow token generator
  • Better compatibility with the oauth spec: https://tools.ietf.org/html/rfc6749
  • handle oauth error even if the TokenGenerator does not extends AbstractTokenGenator or call _manageOauthError
  • [Minor BC] TokenGenerator.generateToken and TokenGenerator.generateToken might return a Response instead of a plain object. This should not break anything as the response is handled by the TokenStorage unless you call directly the TokenGenerator (which you should not). Returning an object has been deprecated and is only used in the ProvidedTokenGenerator (which is also deprecated)
  • [Minor BC] OauthError.previousError might be undefined
  • [Deprecation] Deprecate ProvidedTokenGenerator. You should use one of the oauth2 generator or implement your own custom generator.
  • [Deprecation] Calling AbstractTokenGenerator._manageOauthError is deprecated. You should return the Response instead :
   generateToken() {
     const body = // … generate body

     return fetch(url, {
       method: 'POST',
       body,
+    });
-    }).then((response) => {
-      if (response.status < 400) {
-        return response;
-      }

-      return this._manageOauthError(response);
-    });
   }
jdeniau
published 6.5.2 •

Changelog

Source

6.5.2

Fix regression from 6.5.1 : TokenStorage.refreshToken does now throws an Error anymore if there is no token stored in the storage.

jdeniau
published 6.5.1 •

Changelog

Source

6.5.1

  • getItem from AsyncStorage interface might return null
  • TokenStorage.refreshToken now throws an Error if there is no token stored in the storage.
jdeniau
published 6.5.0 •

Changelog

Source

6.5.0

Added

Accept Relation.ONE_TO_ONE relation. It is basically handled the same way as MANY_TO_ONE, but has been added for semantic purpose. The comportment may differ later.

jdeniau
published 6.4.1 •

Changelog

Source

6.4.1

Fixed

  • withUnitOfWork returns a clone of the base repository to avoid race condition on isUnitOfWorkEnabled
jdeniau
published 6.4.0 •

Changelog

Source

6.4.0

  • allow unitOfWork deactivation on find* calls
jdeniau
published 6.3.0 •

Changelog

Source

6.3.0

Added

Accept Relation.MANY_TO_MANY relation. It is basically handled the same way as ONE_TO_MANY, but has been added for semantic purpose. The comportment may differ later.

jdeniau
published 6.2.0 •

Changelog

Source

6.2.0

Changed

  • [TypeScript] better handle deserializeResponse method definition
jdeniau
published 6.1.0 •

Changelog

Source

6.1.0

Added

Export MetadataDefinition for AbstractClient inheritance

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