@poap-xyz/utils
Advanced tools
Comparing version 0.4.0 to 0.4.1-beta-v0
export * from './removeSpecialCharacters'; | ||
export * from './toPOAPDate'; |
export * from './removeSpecialCharacters'; | ||
export * from './toPOAPDate'; |
export * from './removeSpecialCharacters'; | ||
export * from './toPOAPDate'; |
@@ -132,2 +132,12 @@ (function (global, factory) { | ||
function toPOAPDate(date) { | ||
return date | ||
.toLocaleDateString('en-US', { | ||
month: '2-digit', | ||
day: '2-digit', | ||
year: 'numeric', | ||
}) | ||
.replace(/\//g, '-'); | ||
} | ||
function isNumeric(value, allowNegative = false) { | ||
@@ -163,4 +173,5 @@ if (typeof value === 'string') { | ||
exports.removeSpecialCharacters = removeSpecialCharacters; | ||
exports.toPOAPDate = toPOAPDate; | ||
})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@poap-xyz/utils", | ||
"version": "0.4.0", | ||
"version": "0.4.1-beta-v0", | ||
"description": "Utils module for the poap.js library", | ||
@@ -30,3 +30,4 @@ "main": "dist/cjs/index.cjs", | ||
"node": ">=18" | ||
} | ||
}, | ||
"stableVersion": "0.5.4" | ||
} |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
78704
70
819