New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

edge-core-js

Package Overview
Dependencies
Maintainers
5
Versions
292
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge-core-js - npm Package Compare versions

Comparing version 0.9.6 to 0.9.7

src/modules/account/plugin-data-api.js

5

CHANGELOG.md
# edge-core-js
## 0.9.7
* Fix payment request Flow types.
* Implement plugin data API.
## 0.9.5

@@ -4,0 +9,0 @@

2

package.json
{
"name": "edge-core-js",
"version": "0.9.6",
"version": "0.9.7",
"description": "Edge account & wallet management library",

@@ -5,0 +5,0 @@ "keywords": [

@@ -352,2 +352,13 @@ // @flow

export type EdgePluginData = {
deleteItem(pluginId: string, itemId: string): Promise<mixed>,
deletePlugin(pluginId: string): Promise<mixed>,
listItemIds(pluginId: string): Promise<Array<string>>,
listPluginIds(): Promise<Array<string>>,
getItem(pluginId: string, itemId: string): Promise<string>,
setItem(pluginId: string, itemId: string, value: string): Promise<mixed>
}
export type EdgeAccount = {

@@ -361,4 +372,5 @@ // Basic login information:

// Exchange-rate info:
// Special-purpose API's:
+exchangeCache: any,
+pluginData: EdgePluginData,

@@ -530,3 +542,3 @@ // What login method was used?

paymentProtocolUrl: string
) => EdgePaymentProtocolInfo,
) => Promise<EdgePaymentProtocolInfo>,

@@ -743,5 +755,5 @@ // Wallet management:

dumpData(): EdgeDataDump,
getPaymentProtocolInfo?: (
+getPaymentProtocolInfo?: (
paymentProtocolUrl: string
) => EdgePaymentProtocolInfo,
) => Promise<EdgePaymentProtocolInfo>,
getDisplayPrivateSeed(): string | null,

@@ -748,0 +760,0 @@ getDisplayPublicSeed(): string | null,

@@ -9,2 +9,3 @@ // @flow

EdgeLobby,
EdgePluginData,
EdgeWalletInfo,

@@ -26,2 +27,3 @@ EdgeWalletInfoFull,

import { makeLobbyApi } from './lobby-api.js'
import { makePluginDataApi } from './plugin-data-api.js'

@@ -55,2 +57,3 @@ /**

const exchangeCache = makeExchangeCache(ai)
const pluginData = makePluginDataApi(ai, state)

@@ -78,6 +81,9 @@ const rawAccount: EdgeAccount = {

// Exchange cache:
// Speciality API's:
get exchangeCache (): any {
return exchangeCache
},
get pluginData (): EdgePluginData {
return pluginData
},

@@ -84,0 +90,0 @@ // What login method was used?

@@ -443,6 +443,5 @@ // @flow

'@getPaymentProtocolInfo': { sync: true },
getPaymentProtocolInfo (
paymentProtocolUrl: string
): EdgePaymentProtocolInfo {
): Promise<EdgePaymentProtocolInfo> {
if (!engine.getPaymentProtocolInfo) {

@@ -449,0 +448,0 @@ throw new Error(

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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