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

@unspent/psi

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unspent/psi - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

23

dist/main/query/provider.js

@@ -29,2 +29,5 @@ import axios from 'axios';

delete param.version;
//@ts-ignore
if ("after" in param)
delete param.after;
const response = await axios({

@@ -40,3 +43,2 @@ url: host,

$offset: Int
$after: bigint
) {

@@ -51,8 +53,4 @@ search_output_prefix(

{ locking_bytecode_pattern: { _nlike: $exclude_pattern } }
{
transaction: {
block_inclusions: { block: { height: { _gt: $after } } }
}
}
{
_or: [

@@ -306,10 +304,9 @@ {

$node: String!
$lockingBytecode: _text!
$lockingBytecode: String!
$limit: Int
$offset: Int
) {
search_output(
args: {
locking_bytecode_hex: $lockingBytecode
}
search_output_prefix(
args: { locking_bytecode_prefix_hex: $lockingBytecode }
where: {

@@ -365,3 +362,3 @@ _and: [

...param,
"lockingBytecode": `{${lockingBytecode}}`,
"lockingBytecode": `${lockingBytecode.substring(0, 24)}`,
},

@@ -379,3 +376,3 @@ }

}
return response.data.data.search_output.map((o) => {
return response.data.data.search_output_prefix.map((o) => {
//console.log(JSON.stringify(o,undefined, 2))

@@ -382,0 +379,0 @@ let height = o.transaction.block_inclusions.length > 0 ? o.transaction.block_inclusions[0].block.height : -1;

{
"name": "@unspent/psi",
"version": "0.1.3",
"version": "0.2.0",
"description": "A persistent storage IndexedDB wrapper for ₿∙ϕ contracts and data using Dexie.js",

@@ -32,3 +32,3 @@ "author": "2qx",

"axios": "1.4.0",
"cashscript": "0.8.0-next.2",
"cashscript": "0.8.1",
"dexie": "4.0.1-alpha.8",

@@ -35,0 +35,0 @@ "electrum-cash": "^2.0.10",

@@ -56,2 +56,4 @@ import axios from 'axios';

if ("version" in param) delete param.version
//@ts-ignore
if ("after" in param) delete param.after

@@ -68,3 +70,2 @@ const response = await axios({

$offset: Int
$after: bigint
) {

@@ -79,8 +80,4 @@ search_output_prefix(

{ locking_bytecode_pattern: { _nlike: $exclude_pattern } }
{
transaction: {
block_inclusions: { block: { height: { _gt: $after } } }
}
}
{
_or: [

@@ -350,10 +347,9 @@ {

$node: String!
$lockingBytecode: _text!
$lockingBytecode: String!
$limit: Int
$offset: Int
) {
search_output(
args: {
locking_bytecode_hex: $lockingBytecode
}
search_output_prefix(
args: { locking_bytecode_prefix_hex: $lockingBytecode }
where: {

@@ -410,3 +406,3 @@ _and: [

...param,
"lockingBytecode": `{${lockingBytecode}}`,
"lockingBytecode": `${lockingBytecode.substring(0, 24)}`,
},

@@ -427,3 +423,3 @@ }

return response.data.data.search_output.map((o: any) => {
return response.data.data.search_output_prefix.map((o: any) => {
//console.log(JSON.stringify(o,undefined, 2))

@@ -430,0 +426,0 @@ let height = o.transaction.block_inclusions.length > 0 ? o.transaction.block_inclusions[0].block.height : -1

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