Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
joi-rfc3339ish
Advanced tools
Apple's documentation on the date formats of the dates returned with receipt verification is incorrect. [Some parts of the documentation](https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html#
Apple's documentation on the date formats of the dates returned with receipt verification is incorrect. Some parts of the documentation suggest that the format is based on RFC3339 — which it isn't. Other documentation states it's "a date-time format similar to ISO 8601" — which may sound helpful, but it isn't as it's not quite the same.
That's annoying. Especially if you want to validate if the data that is getting returned is meeting your expectations so that you can parse it.
This library provides an extension of Joi adding support stating that the format is like RFC3339 — but not quite it.
npm install joi-rfc3339ish
yarn add joi-rfc3339ish
const Joi = require('@hapi/joi').extend('joi-rfc3339ish');
const schema = Joi.object().keys({
date: Joi.rfc3339ish(),
});
// Throws
Joi.attempt({ date: '2018-11-13 16:46:31' }, schema);
// Does not throw
const validated = Joi.attempt({ date: '2018-11-13 16:46:31 Etc/GMT' }, schema);
validated.date; // A Moment.js moment with the timezone set correctly.
Is this helpful? Perhaps not. It turns out that the majority of the frameworks
are using the _ms
version of dates also included in the payloads returned by
the Appstore. But if you were ever aiming for a complete Joi schema defining
the payloads returned by Apple, you might still find this helpful.
FAQs
Apple's documentation on the date formats of the dates returned with receipt verification is incorrect. [Some parts of the documentation](https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html#
The npm package joi-rfc3339ish receives a total of 1 weekly downloads. As such, joi-rfc3339ish popularity was classified as not popular.
We found that joi-rfc3339ish demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.