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
6
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 1.4.2 to 1.5.0

android/src/main/assets/edge-core-js/index.html

6

CHANGELOG.md
# edge-core-js
## v1.5.0 (2023-09-06)
- added: New infoServer and syncServer options for EdgeContextOptions
## v1.4.2 (2023-08-16)

@@ -29,3 +33,3 @@

- changed: Remove `fetch` fallback logic. No proxy servers will be used.
- changed: The `fetchCors` method is no longer deprecated. Use this if CORS might be an issue. Do *not* use this for any secrets or credentials.
- changed: The `fetchCors` method is no longer deprecated. Use this if CORS might be an issue. Do _not_ use this for any secrets or credentials.

@@ -32,0 +36,0 @@ ## v1.3.4 (2023-07-26)

6

lib/core/account/lobby-api.js

@@ -6,2 +6,3 @@ import { asObject, asOptional, asString, uncleaner } from 'cleaners'

import { shuffle } from '../../util/shuffle'
import { asLobbyLoginPayload } from '../login/edge'

@@ -32,4 +33,2 @@ import { fetchLobbyRequest, sendLobbyReply } from '../login/lobby'

const infoServerUri = 'https://info1.edge.app'
/**

@@ -43,2 +42,5 @@ * Translate an appId into a user-presentable icon and string.

try {
const infoServerUri = shuffle(
ai.props.state.contextConfig.edgeServers.infoServers
)[0]
const url = `${infoServerUri}/v1/appIdInfo/${appId}`

@@ -45,0 +47,0 @@ const response = await ai.props.io.fetch(url)

@@ -396,1 +396,3 @@

@@ -6,2 +6,3 @@ import { buildReducer, mapReducer } from 'redux-keto'

import { contextConfig, } from './context/context-reducer'
import { currency, } from './currency/currency-reducer'

@@ -34,2 +35,3 @@ import { DEFAULT_RATE_HINTS } from './exchange/exchange-pixie'

export const defaultLogSettings = {

@@ -106,2 +108,3 @@ sources: {},

contextConfig,
currency,

@@ -108,0 +111,0 @@ exchangeCache,

@@ -38,2 +38,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }import { makeSyncClient } from 'edge-sync-client'

authServer = 'https://login.edge.app/api',
infoServer = ['https://info-eu1.edge.app', 'https://info-us1.edge.app'],
syncServer = [
'https://sync-us1.edge.app',
'https://sync-us2.edge.app',
'https://sync-us3.edge.app',
'https://sync-us4.edge.app',
'https://sync-us5.edge.app',
'https://sync-us6.edge.app',
'https://sync-eu.edge.app'
],
deviceDescription = null,

@@ -44,2 +54,4 @@ hideKeys = false,

} = opts
const infoServers = Array.isArray(infoServer) ? infoServer : [infoServer]
const syncServers = Array.isArray(syncServer) ? syncServer : [syncServer]
const logSettings = { ...defaultLogSettings, ...opts.logSettings }

@@ -51,2 +63,4 @@ if (apiKey == null) {

validateServer(authServer)
infoServers.map(server => validateServer(server))
syncServers.map(server => validateServer(server))

@@ -84,2 +98,4 @@ // Create a redux store:

authServer,
infoServers,
syncServers,
clientId: clientInfo.clientId,

@@ -105,3 +121,7 @@ deviceDescription,

// Create sync client:
const syncClient = await makeSyncClient({ log, fetch: io.fetch })
const syncClient = await makeSyncClient({
log,
fetch: io.fetch,
edgeServers: { infoServers, syncServers }
})

@@ -108,0 +128,0 @@ // Start the pixie tree:

@@ -85,2 +85,4 @@ // @flow

authServer?: string;
infoServer?: string | string[];
syncServer?: string | string[];
deviceDescription?: string;

@@ -87,0 +89,0 @@ hideKeys?: boolean;

@@ -1497,2 +1497,4 @@ // @flow

authServer?: string;
infoServer?: string | string[];
syncServer?: string | string[];
hideKeys?: boolean;

@@ -1499,0 +1501,0 @@

@@ -43,5 +43,7 @@ const _jsxFileName = "src/react-native.tsx";import { makeReactNativeDisklet } from 'disklet'

hideKeys,
infoServer,
logSettings,
plugins,
skipBlockHeight
skipBlockHeight,
syncServer
} = props

@@ -69,9 +71,11 @@ if (onLoad == null) {

hideKeys,
infoServer,
logSettings,
plugins,
skipBlockHeight
skipBlockHeight,
syncServer
}
)
await onLoad(context)
}, __self: this, __source: {fileName: _jsxFileName, lineNumber: 52}}
}, __self: this, __source: {fileName: _jsxFileName, lineNumber: 54}}
)

@@ -111,3 +115,3 @@ )

await onLoad(fakeWorld)
}, __self: this, __source: {fileName: _jsxFileName, lineNumber: 96}}
}, __self: this, __source: {fileName: _jsxFileName, lineNumber: 100}}
)

@@ -114,0 +118,0 @@ )

@@ -124,1 +124,3 @@

@@ -1743,1 +1743,3 @@

{
"name": "edge-core-js",
"version": "1.4.2",
"version": "1.5.0",
"description": "Edge account & wallet management library",

@@ -86,3 +86,3 @@ "keywords": [

"disklet": "^0.5.2",
"edge-sync-client": "^0.2.7",
"edge-sync-client": "^0.2.8",
"elliptic": "^6.4.0",

@@ -89,0 +89,0 @@ "hash.js": "^1.1.7",

@@ -82,2 +82,4 @@ import type {

authServer?: string
infoServer?: string | string[]
syncServer?: string | string[]
deviceDescription?: string

@@ -84,0 +86,0 @@ hideKeys?: boolean

@@ -1489,2 +1489,4 @@ import type { Disklet } from 'disklet'

authServer?: string
infoServer?: string | string[]
syncServer?: string | string[]
hideKeys?: boolean

@@ -1491,0 +1493,0 @@

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

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