Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

joi-browser

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi-browser - npm Package Compare versions

Comparing version 10.0.5 to 10.0.6

4

package.json
{
"name": "joi-browser",
"version": "10.0.5",
"version": "10.0.6",
"description": "joi object schema validation bundled for the browser",

@@ -46,3 +46,3 @@ "main": "./dist/joi-browser.js",

"babel-preset-es2015": "^6.1.18",
"joi": "10.0.5",
"joi": "10.0.6",
"json-loader": "^0.5.4",

@@ -49,0 +49,0 @@ "ngzip": "^1.1.3",

@@ -5,2 +5,4 @@ # joi-browser

[![NPM Version Badge](https://img.shields.io/npm/v/joi-browser.svg)](https://www.npmjs.com/package/joi-browser)
## Why?

@@ -92,3 +94,9 @@

## joi-full
joi@10 moved some date validation logic into an extension `joi-date-extensions` so I built the equivalent [joi-date-extensions-browser](https://github.com/jeffbski/joi-date-extensions-browser) but there are currently issues with the build when trying to integrate `joi-browser` and `joi-date-extensions-browser`.
As an alternative, I created [joi-full](https://github.com/jeffbski/joi-full) which is a universal/isomorphic version of joi that includes extensions (namely joi-date-extensions). It can be used for Node.js or in the browser by bundling with webpack or browserify. Since `joi-full` already bundles both `joi` and `joi-date-extensions` it works around the build issue previously encountered.
## Development

@@ -107,3 +115,3 @@

- 10.0.5 - Joi split momentjs date format functionality into `joi-date-extensions`. The equivalent version for the browser is `joi-date-extensions-browser`. If you install it you will need to also install its peer dependency momentjs. See [joi-date-extensions-browser repo](https://github.com/jeffbski/joi-date-extensions-browser)
- 10.0.5 - Joi split momentjs date format functionality into `joi-date-extensions`. The equivalent version for the browser is [joi-date-extensions-browser](https://github.com/jeffbski/joi-date-extensions-browser), but there are building issues. You can instead use [joi-full](https://github.com/jeffbski/joi-full) which includes the extension and is a universal/isomorphic package that will work in either Node.js or bundled with webpack/browserify. If you install `joi-full` you will need to also install its peer dependency `moment`. See [joi-full](https://github.com/jeffbski/joi-full) for all the details.

@@ -110,0 +118,0 @@ - 7.1.0 - excludes `moment` from the `joi-browser` bundle, so it must be imported into your project from elsewhere. Bundle was renamed to `dist/joi-browser.js` and `dist/joi-browser.min.js`

@@ -8,3 +8,3 @@ 'use strict';

output: {
libary: 'Joi',
library: 'Joi',
libraryTarget: 'umd',

@@ -11,0 +11,0 @@ umdNamedDefine: true,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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