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

alaska-field-number

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alaska-field-number - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

22

index.js

@@ -33,9 +33,19 @@ /**

let options = {
type: Number,
min: field.min,
max: field.max
type: Number
};
if (field.default !== undefined) {
options.default = field.default;
}
[
'get',
'set',
'default',
'index',
'required',
'select',
'min',
'max'
].forEach(function (key) {
if (field[key] !== undefined) {
options[key] = field[key];
}
});
schema.path(field.path, options);

@@ -42,0 +52,0 @@

{
"name": "alaska-field-number",
"version": "0.1.0",
"version": "0.2.0",
"description": "Alaska number field",

@@ -5,0 +5,0 @@ "main": "index.js",

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