openapi-schemas
Advanced tools
Comparing version 1.0.3 to 2.0.0
{ | ||
"name": "openapi-schemas", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"description": "JSON Schemas for every version of the OpenAPI Specification", | ||
@@ -27,48 +27,14 @@ "keywords": [ | ||
}, | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"lib", | ||
"schemas" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"clean": "shx rm -rf .nyc_output coverage lib .tmp schemas", | ||
"clone": "git clone https://github.com/OAI/OpenAPI-Specification.git .tmp", | ||
"copy": "shx cp -r .tmp/schemas schemas", | ||
"lint": "npm run lint:typescript && npm run lint:javascript", | ||
"lint:typescript": "tslint -p tsconfig.json", | ||
"lint:javascript": "eslint test", | ||
"build": "npm run build:schemas && npm run build:typescript", | ||
"build:schemas": "npm run clean && npm run clone && npm run copy", | ||
"build:typescript": "tsc", | ||
"watch": "tsc --watch", | ||
"test": "mocha && npm run lint", | ||
"coverage": "nyc node_modules/mocha/bin/mocha", | ||
"upgrade": "npm-check -u && npm audit fix", | ||
"bump": "bump --tag --push --all", | ||
"release": "npm run upgrade && npm run clean && npm run build && npm test && npm run bump" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=10" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.2.4", | ||
"@types/command-line-args": "^5.0.0", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.11.6", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.7", | ||
"eslint": "^6.5.1", | ||
"eslint-config-modular": "^7.0.1", | ||
"mocha": "^6.2.2", | ||
"npm-check": "^5.9.0", | ||
"nyc": "^14.1.1", | ||
"shx": "^0.3.2", | ||
"tslint": "^5.20.0", | ||
"tslint-modular": "^1.6.0", | ||
"typescript": "^3.6.4", | ||
"typescript-tslint-plugin": "^0.5.4", | ||
"version-bump-prompt": "^5.0.5" | ||
}, | ||
"dependencies": {} | ||
"dependencies": { | ||
"@apidevtools/openapi-schemas": "2.0.0" | ||
} | ||
} |
# OpenAPI Specification Schemas | ||
[![Cross-Platform Compatibility](https://apitools.dev/img/badges/os-badges.svg)](https://travis-ci.com/APIDevTools/openapi-schemas) | ||
[![Build Status](https://api.travis-ci.com/APIDevTools/openapi-schemas.svg?branch=master)](https://travis-ci.com/APIDevTools/openapi-schemas) | ||
[![Cross-Platform Compatibility](https://apitools.dev/img/badges/os-badges.svg)](https://github.com/APIDevTools/openapi-schemas/blob/master/.github/workflows/CI-CD.yaml) | ||
[![Build Status](https://github.com/APIDevTools/openapi-schemas/workflows/CI-CD/badge.svg?branch=master)](https://github.com/APIDevTools/openapi-schemas/blob/master/.github/workflows/CI-CD.yaml) | ||
@@ -9,4 +9,4 @@ [![Coverage Status](https://coveralls.io/repos/github/APIDevTools/openapi-schemas/badge.svg?branch=master)](https://coveralls.io/github/APIDevTools/openapi-schemas) | ||
[![npm](https://img.shields.io/npm/v/openapi-schemas.svg)](https://www.npmjs.com/package/openapi-schemas) | ||
[![License](https://img.shields.io/npm/l/openapi-schemas.svg)](LICENSE) | ||
[![npm](https://img.shields.io/npm/v/@apidevtools/openapi-schemas.svg)](https://www.npmjs.com/package/@apidevtools/openapi-schemas) | ||
[![License](https://img.shields.io/npm/l/@apidevtools/openapi-schemas.svg)](LICENSE) | ||
@@ -27,6 +27,6 @@ | ||
-------------------------- | ||
You can install `openapi-schemas` via [npm](https://docs.npmjs.com/about-npm/). | ||
You can install OpenAPI Schemas via [npm](https://docs.npmjs.com/about-npm/). | ||
```bash | ||
npm install openapi-schemas | ||
npm install @apidevtools/openapi-schemas | ||
``` | ||
@@ -42,3 +42,3 @@ | ||
```javascript | ||
const openapi = require("openapi-schemas"); | ||
const openapi = require("@apidevtools/openapi-schemas"); | ||
@@ -53,3 +53,3 @@ console.log(openapi.v1); // { $schema, id, properties, definitions, ... } | ||
```javascript | ||
const { openapiV1, openapiV2, openapiV3 } = require("openapi-schemas"); | ||
const { openapiV1, openapiV2, openapiV3 } = require("@apidevtools/openapi-schemas"); | ||
@@ -64,3 +64,3 @@ console.log(openapiV1); // { $schema, id, properties, definitions, ... } | ||
```javascript | ||
const { openapiV3 } = require("openapi-schemas"); | ||
const { openapiV3 } = require("@apidevtools/openapi-schemas"); | ||
const ZSchema = require("z-schema"); | ||
@@ -100,3 +100,3 @@ | ||
-------------------------- | ||
openapi-schemas is 100% free and open-source, under the [MIT license](LICENSE). Use it however you want. | ||
OpenAPI Schemas is 100% free and open-source, under the [MIT license](LICENSE). Use it however you want. | ||
@@ -103,0 +103,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
0
6998
1
6
5
2
+ Added@apidevtools/openapi-schemas@2.0.0(transitive)