Skip to content

Commit

Permalink
v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Oct 21, 2020
1 parent 6e8b4aa commit ec63ca7
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/joiprops.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/joiprops.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/joiprops.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion joiprops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const JO = (JoiProps.JO = (o: any | Symbol) =>
const JA = (JoiProps.JA = (a: any | Symbol) =>
null == a ? ja : Jr === a ? ja.required() : ja.items(a).default([]))
const JOu = (JoiProps.JOu = (o: any) =>
null == o ? jo.unknown() : Joi.object(o).unknown())
null == o ? jo.unknown().default() : Joi.object(o).unknown().default())
const JAd = (JoiProps.JAd = (a: any) => ja.default(a))
const JOd = (JoiProps.JOd = (o: any) => jo.unknown().default(o))

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "joiprops",
"version": "0.5.0",
"version": "0.5.1",
"description": "Use Joi Schemas for your Vue component prop validation (and deep structure defaults).",
"main": "dist/joiprops.js",
"browser": "dist/joiprops.min.js",
Expand Down
4 changes: 3 additions & 1 deletion test-web/test-web.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions test/coverage.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ <h1>Test Report</h1>
<div class="failures">0</div>
<div class="skipped">0</div>
<div class="test-count">4</div>
<div class="duration">42</div>
<div class="duration">32</div>
</div>
<div id="filters">
<input type="checkbox" checked="" onchange="filter(this)" value="success" id="show-success">
Expand All @@ -572,7 +572,7 @@ <h1>Test Report</h1>
<td class="test-title">joiprops happy

</td>
<td class="test-duration">18</td>
<td class="test-duration">13</td>
</tr>
<tr class="show joiprops success">
<td class="test-id">2</td>
Expand All @@ -586,14 +586,14 @@ <h1>Test Report</h1>
<td class="test-title">joiprops errors

</td>
<td class="test-duration">3</td>
<td class="test-duration">2</td>
</tr>
<tr class="show joiprops success">
<td class="test-id">4</td>
<td class="test-title">joiprops shortcuts

</td>
<td class="test-duration">9</td>
<td class="test-duration">6</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -1174,7 +1174,7 @@ <h2 id="dist/joiprops.js">dist/joiprops.js </h2>
<td class="line" data-tooltip>91</td>
<td class="lint empty"></td>
<td class="hits" data-tooltip>1</td>
<td class="source">const JOu &#x3D; (JoiProps.JOu &#x3D; (o) &#x3D;&gt; null &#x3D;&#x3D; o ? jo.unknown() : joi_1.default.object(o).unknown());</td>
<td class="source">const JOu &#x3D; (JoiProps.JOu &#x3D; (o) &#x3D;&gt; null &#x3D;&#x3D; o ? jo.unknown().default() : joi_1.default.object(o).unknown().default());</td>
<td class="original-line" data-tooltip="../joiprops.ts"><a href="#../joiprops.ts__102">102</a></td>
</tr> <tr id="dist/joiprops.js__92" class="hit">
<td class="line" data-tooltip>92</td>
Expand Down
2 changes: 2 additions & 0 deletions test/joiprops.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ describe('joiprops', function () {
p: JAd([1, 2]),
//q: JOu({x: Joi.string().required()}),
q: JOu({ x: JS() }),
u: JOu({ x: JOu({ y: JS('Y') }) }),
})

expect(
Expand Down Expand Up @@ -163,6 +164,7 @@ describe('joiprops', function () {
o: { x: 1 },
p: [1, 2],
q: { y: 1, x: 'X' },
u: { x: { y: 'Y' } },
})

try {
Expand Down

0 comments on commit ec63ca7

Please sign in to comment.