New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alaska-field-select

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alaska-field-select - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

17

index.js

@@ -31,3 +31,18 @@ /**

exports.initSchema = function (field, schema, Model) {
schema.path(field.path, field.number ? Number : String);
let options = {
type: field.number ? Number : field.boolean ? Boolean : String
};
[
'get',
'set',
'default',
'index',
'select'
].forEach(function (key) {
if (field[key] !== undefined) {
options[key] = field[key];
}
});
schema.path(field.path, options);
};

@@ -34,0 +49,0 @@

2

package.json
{
"name": "alaska-field-select",
"version": "0.1.0",
"version": "0.2.0",
"description": "Alaska select 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