@poap-xyz/utils
Advanced tools
Comparing version 0.0.38 to 0.0.39
@@ -0,1 +1,2 @@ | ||
export { MintingStatus } from './types/mintingStatus'; | ||
export { Chain } from './types/chain'; | ||
@@ -7,2 +8,2 @@ export { Order } from './types/filter'; | ||
export { nextCursor } from './functions/nextCursor'; | ||
export { filterUndefinedProperties, creatUndefinedOrder, createFilter, creatEqFilter, creatNeqFilter, filterZeroAddress, creatAddressFilter, createInFilter, createBetweenFilter, creatPrivateFilter, } from './queries/utils'; | ||
export { filterUndefinedProperties, createUndefinedOrder, createFilter, creatEqFilter, creatNeqFilter, filterZeroAddress, creatAddressFilter, createInFilter, createBetweenFilter, creatPrivateFilter, } from './queries/utils'; |
export declare function filterUndefinedProperties<T extends Record<string, any>>(obj: T): Partial<T>; | ||
export declare function creatUndefinedOrder(key: string | undefined, value?: string | undefined): Record<string, any>; | ||
export declare function createUndefinedOrder(key: string | undefined, value?: string | undefined): Record<string, any>; | ||
export declare function createFilter(key: string, value?: string): Record<string, any>; | ||
@@ -4,0 +4,0 @@ export declare function creatEqFilter(key: string, value?: string | number): Record<string, any>; |
@@ -0,1 +1,2 @@ | ||
export { MintingStatus } from './types/mintingStatus'; | ||
export { Chain } from './types/chain'; | ||
@@ -7,2 +8,2 @@ export { Order } from './types/filter'; | ||
export { nextCursor } from './functions/nextCursor'; | ||
export { filterUndefinedProperties, creatUndefinedOrder, createFilter, creatEqFilter, creatNeqFilter, filterZeroAddress, creatAddressFilter, createInFilter, createBetweenFilter, creatPrivateFilter, } from './queries/utils'; | ||
export { filterUndefinedProperties, createUndefinedOrder, createFilter, creatEqFilter, creatNeqFilter, filterZeroAddress, creatAddressFilter, createInFilter, createBetweenFilter, creatPrivateFilter, } from './queries/utils'; |
export declare function filterUndefinedProperties<T extends Record<string, any>>(obj: T): Partial<T>; | ||
export declare function creatUndefinedOrder(key: string | undefined, value?: string | undefined): Record<string, any>; | ||
export declare function createUndefinedOrder(key: string | undefined, value?: string | undefined): Record<string, any>; | ||
export declare function createFilter(key: string, value?: string): Record<string, any>; | ||
@@ -4,0 +4,0 @@ export declare function creatEqFilter(key: string, value?: string | number): Record<string, any>; |
@@ -0,1 +1,2 @@ | ||
export { MintingStatus } from './types/mintingStatus'; | ||
export { Chain } from './types/chain'; | ||
@@ -7,2 +8,2 @@ export { Order } from './types/filter'; | ||
export { nextCursor } from './functions/nextCursor'; | ||
export { filterUndefinedProperties, creatUndefinedOrder, createFilter, creatEqFilter, creatNeqFilter, filterZeroAddress, creatAddressFilter, createInFilter, createBetweenFilter, creatPrivateFilter, } from './queries/utils'; | ||
export { filterUndefinedProperties, createUndefinedOrder, createFilter, creatEqFilter, creatNeqFilter, filterZeroAddress, creatAddressFilter, createInFilter, createBetweenFilter, creatPrivateFilter, } from './queries/utils'; |
@@ -7,2 +7,10 @@ (function (global, factory) { | ||
exports.MintingStatus = void 0; | ||
(function (MintingStatus) { | ||
MintingStatus["PENDING"] = "PENDING"; | ||
MintingStatus["IN_PROCESS"] = "IN_PROCESS"; | ||
MintingStatus["FINISH"] = "FINISH"; | ||
MintingStatus["FINISH_WITH_ERROR"] = "FINISH_WITH_ERROR"; | ||
})(exports.MintingStatus || (exports.MintingStatus = {})); | ||
exports.Chain = void 0; | ||
@@ -41,3 +49,3 @@ (function (Chain) { | ||
} | ||
function creatUndefinedOrder(key, value) { | ||
function createUndefinedOrder(key, value) { | ||
return key && value ? { [key]: value } : {}; | ||
@@ -92,6 +100,6 @@ } | ||
exports.creatPrivateFilter = creatPrivateFilter; | ||
exports.creatUndefinedOrder = creatUndefinedOrder; | ||
exports.createBetweenFilter = createBetweenFilter; | ||
exports.createFilter = createFilter; | ||
exports.createInFilter = createInFilter; | ||
exports.createUndefinedOrder = createUndefinedOrder; | ||
exports.filterUndefinedProperties = filterUndefinedProperties; | ||
@@ -98,0 +106,0 @@ exports.filterZeroAddress = filterZeroAddress; |
export declare function filterUndefinedProperties<T extends Record<string, any>>(obj: T): Partial<T>; | ||
export declare function creatUndefinedOrder(key: string | undefined, value?: string | undefined): Record<string, any>; | ||
export declare function createUndefinedOrder(key: string | undefined, value?: string | undefined): Record<string, any>; | ||
export declare function createFilter(key: string, value?: string): Record<string, any>; | ||
@@ -4,0 +4,0 @@ export declare function creatEqFilter(key: string, value?: string | number): Record<string, any>; |
{ | ||
"name": "@poap-xyz/utils", | ||
"version": "0.0.38", | ||
"version": "0.0.39", | ||
"description": "Utils module for the poap.js library", | ||
@@ -27,4 +27,3 @@ "type": "module", | ||
"build": "rollup -c --bundleConfigAsCjs" | ||
}, | ||
"stableVersion": "0.0.38" | ||
} | ||
} |
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
37916
35
407