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

@pushprotocol/restapi

Package Overview
Dependencies
Maintainers
1
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pushprotocol/restapi - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Changelog

## [0.2.2](https://github.com/ethereum-push-notification-service/push-sdk/compare/restapi-0.2.1...restapi-0.2.2) (2022-11-11)
### Bug Fixes
* added throw Error in remaining sdk endpoints ([f78e3d6](https://github.com/ethereum-push-notification-service/push-sdk/commit/f78e3d66684f8941315b21ac9876a18f37fdf1d0))
## [0.2.1](https://github.com/ethereum-push-notification-service/push-sdk/compare/restapi-0.2.0...restapi-0.2.1) (2022-11-03)

@@ -7,0 +16,0 @@

2

package.json
{
"name": "@pushprotocol/restapi",
"version": "0.2.1",
"version": "0.2.2",
"type": "commonjs",

@@ -5,0 +5,0 @@ "publishConfig": {

@@ -9,3 +9,3 @@ import { AccountEnvOptionsType } from '../types';

}
export declare const approve: (options: ApproveRequestOptionsType) => Promise<void | import("axios").AxiosResponse<any, any>>;
export declare const approve: (options: ApproveRequestOptionsType) => Promise<import("axios").AxiosResponse<any, any>>;
export {};

@@ -32,2 +32,3 @@ "use strict";

console.error(`[EPNS-SDK] - API ${requestUrl}: `, err);
throw Error(`[EPNS-SDK] - API ${requestUrl}: ${err}`);
});

@@ -34,0 +35,0 @@ });

import { ConversationHashOptionsType } from '../types';
export declare const conversationHash: (options: ConversationHashOptionsType) => Promise<unknown>;
export declare const conversationHash: (options: ConversationHashOptionsType) => Promise<string>;

@@ -22,4 +22,4 @@ "use strict";

catch (err) {
console.error('[EPNS-SDK] - Error - conversationHash() - ', err);
return err;
console.error('[EPNS-SDK] - Error - API conversationHash() - ', err);
throw Error(`[EPNS-SDK] - Error - API conversationHash(): ${err}`);
}

@@ -26,0 +26,0 @@ });

@@ -28,2 +28,3 @@ "use strict";

console.error(`[EPNS-SDK] - API ${requestUrl}: `, err);
throw Error(`[EPNS-SDK] - API ${requestUrl}: ${err}`);
});

@@ -30,0 +31,0 @@ });

@@ -66,3 +66,4 @@ "use strict";

catch (err) {
console.error(`[EPNS-SDK] - API - Error - send() -: `, err);
console.error(`[EPNS-SDK] - API - Error - API send() -: `, err);
throw Error(`[EPNS-SDK] - API - Error - API send() -: ${err}`);
}

@@ -69,0 +70,0 @@ });

@@ -10,2 +10,2 @@ /**

};
export declare const updateUser: (options: ChatUpdateUserOptionsType) => Promise<void | import("axios").AxiosResponse<any, any>>;
export declare const updateUser: (options: ChatUpdateUserOptionsType) => Promise<import("axios").AxiosResponse<any, any>>;

@@ -21,2 +21,3 @@ "use strict";

console.error(`[EPNS-SDK] - API ${requestUrl}: `, err);
throw Error(`[EPNS-SDK] - API ${requestUrl}: ${err}`);
});

@@ -23,0 +24,0 @@ });

@@ -19,5 +19,5 @@ "use strict";

const API_BASE_URL = (0, helpers_1.getAPIBaseUrls)(env);
const apiEndpoint = `${API_BASE_URL}/v1/users/?caip10=${caip10}`;
const requestUrl = `${API_BASE_URL}/v1/users/?caip10=${caip10}`;
return axios_1.default
.get(apiEndpoint)
.get(requestUrl)
.then((response) => {

@@ -27,3 +27,4 @@ return response.data;

.catch((err) => {
console.error(`[EPNS-SDK] - API ${apiEndpoint}: `, err);
console.error(`[EPNS-SDK] - API ${requestUrl}: `, err);
throw Error(`[EPNS-SDK] - API ${requestUrl}: ${err}`);
});

@@ -30,0 +31,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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