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

@poap-xyz/poaps

Package Overview
Dependencies
Maintainers
5
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poap-xyz/poaps - npm Package Compare versions

Comparing version 0.2.1-beta-v5 to 0.2.1-beta-v6

3

dist/cjs/types/input.d.ts

@@ -16,3 +16,4 @@ import { Order, Chain, PaginationInput } from '@poap-xyz/utils';

sortDir?: Order;
filterByZeroAddress?: boolean;
filterZeroAddress?: boolean;
filterDeadAddress?: boolean;
}

@@ -19,0 +20,0 @@ export interface WalletMintInput {

@@ -16,3 +16,4 @@ import { Order, Chain, PaginationInput } from '@poap-xyz/utils';

sortDir?: Order;
filterByZeroAddress?: boolean;
filterZeroAddress?: boolean;
filterDeadAddress?: boolean;
}

@@ -19,0 +20,0 @@ export interface WalletMintInput {

@@ -105,9 +105,20 @@ (function (global, factory) {

}
function createAddressFilter(key, filterZeroAddress, value) {
return filterZeroAddress || value
function createAddressFilter(key, value, filterZeroAddress, filterDeadAddress) {
return filterZeroAddress || filterDeadAddress || value
? {
[key]: {
...(filterZeroAddress
...(filterZeroAddress && filterDeadAddress
? {
_nin: [
'0x0000000000000000000000000000000000000000',
'0x000000000000000000000000000000000000dead',
],
}
: {}),
...(filterZeroAddress && !filterDeadAddress
? { _neq: '0x0000000000000000000000000000000000000000' }
: {}),
...(!filterZeroAddress && filterDeadAddress
? { _neq: '0x000000000000000000000000000000000000dead' }
: {}),
...(value ? { _eq: value.toLowerCase() } : {}),

@@ -250,3 +261,3 @@ },

async fetch(input) {
const { limit, offset, chain, collectorAddress, mintedDateFrom, mintedDateTo, ids, dropId, sortField, sortDir, filterByZeroAddress = true, } = input;
const { limit, offset, chain, collectorAddress, mintedDateFrom, mintedDateTo, ids, dropId, sortField, sortDir, filterZeroAddress = true, filterDeadAddress = true, } = input;
const variables = {

@@ -257,3 +268,3 @@ limit,

where: {
...createAddressFilter('collector_address', filterByZeroAddress, collectorAddress),
...createAddressFilter('collector_address', collectorAddress, filterZeroAddress, filterDeadAddress),
...createEqFilter('chain', chain),

@@ -260,0 +271,0 @@ ...createEqFilter('drop_id', dropId),

@@ -16,3 +16,4 @@ import { Order, Chain, PaginationInput } from '@poap-xyz/utils';

sortDir?: Order;
filterByZeroAddress?: boolean;
filterZeroAddress?: boolean;
filterDeadAddress?: boolean;
}

@@ -19,0 +20,0 @@ export interface WalletMintInput {

{
"name": "@poap-xyz/poaps",
"version": "0.2.1-beta-v5",
"version": "0.2.1-beta-v6",
"description": "Poaps module for the poap.js library",

@@ -29,4 +29,4 @@ "main": "dist/cjs/index.cjs",

"dependencies": {
"@poap-xyz/providers": "0.2.1-beta-v5",
"@poap-xyz/utils": "0.2.1-beta-v5"
"@poap-xyz/providers": "0.2.1-beta-v6",
"@poap-xyz/utils": "0.2.1-beta-v6"
},

@@ -33,0 +33,0 @@ "engines": {

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