schema-markdown 1.2.3 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![npm](https://img.shields.io/npm/v/schema-markdown)](https://www.npmjs.com/package/schema-markdown)
4
4
  [![GitHub](https://img.shields.io/github/license/craigahobbs/schema-markdown-js)](https://github.com/craigahobbs/schema-markdown-js/blob/main/LICENSE)
5
5
 
6
- **schema-markdown** is a schema definition and validation library.
6
+ schema-markdown is a schema definition and validation library.
7
7
 
8
8
 
9
9
  ## Links
package/lib/schema.js CHANGED
@@ -168,9 +168,10 @@ function validateTypeHelper(types, type, value, memberFqn) {
168
168
  // Not a number?
169
169
  } else if (typeof value !== 'number') {
170
170
  throwMemberError(type, value, memberFqn);
171
+ }
171
172
 
172
173
  // Non-int number?
173
- } else if (builtin === 'int' && Math.trunc(value) !== value) {
174
+ if (builtin === 'int' && Math.trunc(valueNew) !== valueNew) {
174
175
  throwMemberError(type, value, memberFqn);
175
176
  }
176
177
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "schema-markdown",
4
- "version": "1.2.3",
4
+ "version": "1.2.4",
5
5
  "description": "A schema definition and validation library",
6
6
  "keywords": [
7
7
  "schema",
@@ -26,7 +26,7 @@
26
26
  "devDependencies": {
27
27
  "ava": "~4.3",
28
28
  "c8": "~7.12",
29
- "eslint": "~8.21",
29
+ "eslint": "~8.24",
30
30
  "jsdoc": "~3.6",
31
31
  "jsdom": "~20.0"
32
32
  }