model-attributes
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5920
104