@poap-xyz/utils
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -9,1 +9,3 @@ export { TransactionRequestStatus } from './types/TransactionRequestStatus'; | ||
export { filterUndefinedProperties, createUndefinedOrder, createFilter, creatEqFilter, creatNeqFilter, filterZeroAddress, creatAddressFilter, createInFilter, createBetweenFilter, creatPrivateFilter, } from './queries/utils'; | ||
export * from './format'; | ||
export * from './validation'; |
@@ -9,1 +9,3 @@ export { TransactionRequestStatus } from './types/TransactionRequestStatus'; | ||
export { filterUndefinedProperties, createUndefinedOrder, createFilter, creatEqFilter, creatNeqFilter, filterZeroAddress, creatAddressFilter, createInFilter, createBetweenFilter, creatPrivateFilter, } from './queries/utils'; | ||
export * from './format'; | ||
export * from './validation'; |
@@ -9,1 +9,3 @@ export { TransactionRequestStatus } from './types/TransactionRequestStatus'; | ||
export { filterUndefinedProperties, createUndefinedOrder, createFilter, creatEqFilter, creatNeqFilter, filterZeroAddress, creatAddressFilter, createInFilter, createBetweenFilter, creatPrivateFilter, } from './queries/utils'; | ||
export * from './format'; | ||
export * from './validation'; |
@@ -93,2 +93,16 @@ (function (global, factory) { | ||
function removeSpecialCharacters(str) { | ||
return str.replace(/[^a-zA-Z0-9 ]/g, ''); | ||
} | ||
function isNumeric(value, allowNegative = false) { | ||
if (typeof value === 'string') { | ||
return (allowNegative ? /^-?\d+$/ : /^\d+$/).test(value); | ||
} | ||
if (typeof value === 'number') { | ||
return true; | ||
} | ||
return false; | ||
} | ||
exports.PaginatedResult = PaginatedResult; | ||
@@ -105,5 +119,7 @@ exports.creatAddressFilter = creatAddressFilter; | ||
exports.filterZeroAddress = filterZeroAddress; | ||
exports.isNumeric = isNumeric; | ||
exports.nextCursor = nextCursor; | ||
exports.removeSpecialCharacters = removeSpecialCharacters; | ||
})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@poap-xyz/utils", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Utils module for the poap.js library", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
44499
47
466