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

model-attributes

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

model-attributes - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

27

lib/types.js

@@ -7,3 +7,3 @@ /* jslint node: true, esnext: true */

function DeclareType(name, options) {
options.name = name;
options.name = name;
if (options.parent) {

@@ -18,8 +18,8 @@ options.parent = types[options.parent];

DeclareType('base', {
parse(string,offset) {
return [undefined, offset];
},
toString(value) {
return value;
}
parse(string, offset) {
return [undefined, offset];
},
toString(value) {
return value;
}
});

@@ -43,4 +43,9 @@

DeclareType('hostname', {
parent: 'base',
description: 'fully qualified host name'
});
DeclareType('duration', {
parent: 'base',
parent: 'base',
description: 'time duration in seconds',

@@ -52,4 +57,4 @@ toString(value) {

module.exports.getType = function(name) {
return types[name];
}
module.exports.getType = function (name) {
return types[name];
};
{
"name": "model-attributes",
"version": "1.3.0",
"version": "1.4.0",
"description": "attribute meta description",

@@ -5,0 +5,0 @@ "keywords": [

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