schema-inspector
Advanced tools
Comparing version 1.6.10 to 1.7.0
@@ -197,3 +197,4 @@ /* | ||
'upperString': /^[A-Z ]*$/, | ||
'lowerString': /^[a-z ]*$/ | ||
'lowerString': /^[a-z ]*$/, | ||
'v4uuid': /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/i | ||
}; | ||
@@ -200,0 +201,0 @@ |
{ | ||
"name": "schema-inspector", | ||
"description": "Schema-Inspector is a powerful tool to sanitize and validate JS objects.", | ||
"version": "1.6.10", | ||
"version": "1.7.0", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -293,3 +293,3 @@ [![schema-inspector logo](https://raw.githubusercontent.com/Atinux/schema-inspector/master/misc/schema-inspector.png)](http://atinux.github.io/schema-inspector/) | ||
* Possible values as a string: `void`, `url`, `date-time`, `date`, | ||
`coolDateTime`, `time`, `color`, `email`, `numeric`, `integer`, `decimal`, | ||
`coolDateTime`, `time`, `color`, `email`, `numeric`, `integer`, `decimal`, `v4uuid`, | ||
`alpha`, `alphaNumeric`, `alphaDash`, `javascript`, `upperString`, `lowerString`. | ||
@@ -296,0 +296,0 @@ |
@@ -502,2 +502,3 @@ var should = require('should'); | ||
{ type: 'string', pattern: 'color' }, | ||
{ type: 'string', pattern: 'v4uuid' } | ||
] | ||
@@ -514,3 +515,4 @@ }; | ||
'3.1459', | ||
'#123456789ABCDEF0' | ||
'#123456789ABCDEF0', | ||
'0e0fa279-e041-442e-a182-30c9db270894' | ||
]; | ||
@@ -533,3 +535,4 @@ | ||
'.1459', | ||
'#123456789abcdef0' | ||
'#123456789abcdef0', | ||
'e5a2afe3-a398-4e49-8fe0-99dc8997119e' | ||
]; | ||
@@ -552,3 +555,4 @@ | ||
'0.1459.', | ||
'#123456789abcdef0q' | ||
'#123456789abcdef0q', | ||
'c8ddb0d154eb-48e9-af48-9e59477c7895' | ||
]; | ||
@@ -560,3 +564,3 @@ | ||
result.should.have.property('error').with.be.an.instanceof(Array) | ||
.and.be.lengthOf(6); | ||
.and.be.lengthOf(7); | ||
result.error[0].property.should.equal('@[0]'); | ||
@@ -568,2 +572,3 @@ result.error[1].property.should.equal('@[1]'); | ||
result.error[5].property.should.equal('@[6]'); | ||
result.error[6].property.should.equal('@[7]'); | ||
}); | ||
@@ -579,3 +584,4 @@ | ||
'.0.1459', | ||
'12' | ||
'12', | ||
'bc9ffc8e-2d5b' | ||
]; | ||
@@ -587,3 +593,3 @@ | ||
result.should.have.property('error').with.be.an.instanceof(Array) | ||
.and.be.lengthOf(7); | ||
.and.be.lengthOf(8); | ||
result.error[0].property.should.equal('@[0]'); | ||
@@ -595,2 +601,4 @@ result.error[1].property.should.equal('@[1]'); | ||
result.error[5].property.should.equal('@[5]'); | ||
result.error[6].property.should.equal('@[6]'); | ||
result.error[7].property.should.equal('@[7]'); | ||
}); | ||
@@ -606,3 +614,4 @@ | ||
'0,1459', | ||
'123#123' | ||
'123#123', | ||
'@1da1602-#30c-$c33-&dbb-8d88*1796db3' | ||
]; | ||
@@ -614,3 +623,3 @@ | ||
result.should.have.property('error').with.be.an.instanceof(Array) | ||
.and.be.lengthOf(7); | ||
.and.be.lengthOf(8); | ||
result.error[0].property.should.equal('@[0]'); | ||
@@ -622,2 +631,4 @@ result.error[1].property.should.equal('@[1]'); | ||
result.error[5].property.should.equal('@[5]'); | ||
result.error[6].property.should.equal('@[6]'); | ||
result.error[7].property.should.equal('@[7]'); | ||
}); | ||
@@ -624,0 +635,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
310767
5603
1