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

oas-normalize

Package Overview
Dependencies
Maintainers
9
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oas-normalize - npm Package Compare versions

Comparing version 8.3.3 to 8.3.4

28

dist/lib/utils.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = 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) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
exports.__esModule = true;
exports.getAPIDefinitionType = exports.isAPIDefinition = exports.stringToJSON = exports.isSwagger = exports.isPostman = exports.isOpenAPI = exports.getType = exports.normalizeURL = exports.isBuffer = void 0;
var js_yaml_1 = __importDefault(require("js-yaml"));
var js_yaml_1 = __importStar(require("js-yaml"));
/**

@@ -98,3 +118,3 @@ * Determine if a given variable is a `Buffer`.

}
return js_yaml_1["default"].load(string);
return js_yaml_1["default"].load(string, { schema: js_yaml_1.JSON_SCHEMA });
}

@@ -101,0 +121,0 @@ exports.stringToJSON = stringToJSON;

12

package.json
{
"name": "oas-normalize",
"version": "8.3.3",
"version": "8.3.4",
"description": "Tooling for converting, valiating, and parsing OpenAPI, Swagger, and Postman API definitions",

@@ -53,11 +53,11 @@ "main": "dist/index.js",

"devDependencies": {
"@readme/eslint-config": "^10.5.0",
"@readme/eslint-config": "^10.5.1",
"@readme/oas-examples": "^5.8.1",
"@types/jest": "^29.4.0",
"@types/jest": "^29.5.0",
"@types/js-yaml": "^4.0.5",
"@types/node-fetch": "^2.6.2",
"eslint": "^8.33.0",
"jest": "^29.4.1",
"eslint": "^8.36.0",
"jest": "^29.5.0",
"nock": "^13.3.0",
"prettier": "^2.8.3",
"prettier": "^2.8.5",
"ts-jest": "^29.0.5",

@@ -64,0 +64,0 @@ "typescript": "^4.9.5"

@@ -1,3 +0,2 @@

import YAML from 'js-yaml';
import YAML, { JSON_SCHEMA } from 'js-yaml';
/**

@@ -93,3 +92,3 @@ * Determine if a given variable is a `Buffer`.

return YAML.load(string);
return YAML.load(string, { schema: JSON_SCHEMA });
}

@@ -96,0 +95,0 @@

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