feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

View File

@@ -4,7 +4,7 @@ env:
browser: true
rules:
block-scoped-var: 2
complexity: [2, 13]
complexity: [2, 15]
curly: [2, multi-or-nest, consistent]
dot-location: [2, property]
dot-notation: 2

View File

@@ -1,8 +0,0 @@
language: node_js
node_js:
- "4"
- "6"
- "7"
- "8"
after_script:
- coveralls < coverage/lcov.info

View File

@@ -1,9 +1,9 @@
# json-schema-traverse
Traverse JSON Schema passing each schema object to callback
[![Build Status](https://travis-ci.org/epoberezkin/json-schema-traverse.svg?branch=master)](https://travis-ci.org/epoberezkin/json-schema-traverse)
[![npm version](https://badge.fury.io/js/json-schema-traverse.svg)](https://www.npmjs.com/package/json-schema-traverse)
[![Coverage Status](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master)
[![build](https://github.com/epoberezkin/json-schema-traverse/workflows/build/badge.svg)](https://github.com/epoberezkin/json-schema-traverse/actions?query=workflow%3Abuild)
[![npm](https://img.shields.io/npm/v/json-schema-traverse)](https://www.npmjs.com/package/json-schema-traverse)
[![coverage](https://coveralls.io/repos/github/epoberezkin/json-schema-traverse/badge.svg?branch=master)](https://coveralls.io/github/epoberezkin/json-schema-traverse?branch=master)
## Install
@@ -78,6 +78,18 @@ traverse(schema, {allKeys: true, cb});
Without option `allKeys: true` callback will be called only with root schema.
## Enterprise support
json-schema-traverse package is a part of [Tidelift enterprise subscription](https://tidelift.com/subscription/pkg/npm-json-schema-traverse?utm_source=npm-json-schema-traverse&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - it provides a centralised commercial support to open-source software users, in addition to the support provided by software maintainers.
## Security contact
To report a security vulnerability, please use the
[Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure. Please do NOT report security vulnerability via GitHub issues.
## License
[MIT](https://github.com/epoberezkin/json-schema-traverse/blob/master/LICENSE)

View File

@@ -21,7 +21,10 @@ traverse.keywords = {
contains: true,
additionalProperties: true,
propertyNames: true,
not: true
not: true,
if: true,
then: true,
else: true
};
traverse.arrayKeywords = {
@@ -32,6 +35,7 @@ traverse.arrayKeywords = {
};
traverse.propsKeywords = {
$defs: true,
definitions: true,
properties: true,
patternProperties: true,

View File

@@ -1,8 +1,9 @@
{
"name": "json-schema-traverse",
"version": "0.4.1",
"version": "1.0.0",
"description": "Traverse JSON Schema passing each schema object to callback",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"eslint": "eslint index.js spec",
"test-spec": "mocha spec -R spec",
@@ -24,10 +25,9 @@
},
"homepage": "https://github.com/epoberezkin/json-schema-traverse#readme",
"devDependencies": {
"coveralls": "^2.13.1",
"eslint": "^3.19.0",
"mocha": "^3.4.2",
"nyc": "^11.0.2",
"eslint": "^7.3.1",
"mocha": "^8.0.1",
"nyc": "^15.0.0",
"pre-commit": "^1.2.2"
},
"nyc": {