Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openapi-police

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-police - npm Package Compare versions

Comparing version 1.1.6 to 2.0.0

6

dist/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

6

dist/schema-object.js

@@ -107,6 +107,6 @@ "use strict";

if (disc.match(meta_1.LII_RE)) {
disc = jsonref_1.normalizeUri(`#/components/schemas/${disc}`, jsonpolice_1.Schema.scope(spec));
disc = (0, jsonref_1.normalizeUri)(`#/components/schemas/${disc}`, jsonpolice_1.Schema.scope(spec));
}
else {
disc = jsonref_1.normalizeUri(disc, jsonpolice_1.Schema.scope(spec));
disc = (0, jsonref_1.normalizeUri)(disc, jsonpolice_1.Schema.scope(spec));
}

@@ -119,3 +119,3 @@ let subSpec;

else {
subSpec = ref_1.resolve({ $ref: disc }, jsonref_1.getMeta(spec));
subSpec = (0, ref_1.resolve)({ $ref: disc }, (0, jsonref_1.getMeta)(spec));
}

@@ -122,0 +122,0 @@ if (typeof subSpec === 'undefined') {

{
"name": "openapi-police",
"version": "1.1.6",
"version": "2.0.0",
"description": "OpenAPI v3 validators and utilities",

@@ -50,28 +50,31 @@ "main": "dist/index.js",

"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/chai": "^4.2.14",
"@types/chai-as-promised": "7.1.3",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.25",
"@types/request": "^2.48.5",
"@types/request-promise-native": "^1.0.17",
"chai": "^4.3.0",
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@types/chai": "^4.3.0",
"@types/chai-as-promised": "7.1.5",
"@types/mocha": "^9.1.0",
"@types/node": "^16.11.26",
"@types/request": "^2.48.8",
"@types/request-promise-native": "^1.0.18",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"commitizen": "^4.2.3",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"husky": "^5.0.9",
"mocha": "^8.2.1",
"mochawesome": "^6.2.1",
"nodemon": "^2.0.7",
"husky": "^7.0.4",
"mocha": "^9.2.1",
"mochawesome": "^7.1.0",
"nodemon": "^2.0.15",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"semantic-release": "^17.3.8",
"typescript": "^4.1.4",
"yaml": "^1.10.0"
"semantic-release": "^19.0.2",
"typescript": "^4.6.2",
"yaml": "^1.10.2"
},
"dependencies": {
"jsonpolice": "^8.2.1",
"jsonref": "^6.0.0"
"jsonpolice": "^9.0.0",
"jsonref": "^7.0.0"
},
"engines": {
"node": ">=16.14.0"
},
"config": {

@@ -78,0 +81,0 @@ "commitizen": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc