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

pactum-swagger-coverage

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pactum-swagger-coverage - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

18

package.json
{
"name": "pactum-swagger-coverage",
"version": "1.0.1",
"version": "1.1.0",
"description": "Swagger api coverage report for pactum tests",

@@ -15,3 +15,3 @@ "main": "./src/index.js",

"type": "git",
"url": "git+https://github.com/leelaprasadv/pactum-swagger-coverage.git"
"url": "git+https://github.com/pactumjs/pactum-swagger-coverage.git"
},

@@ -26,16 +26,16 @@ "keywords": [

"bugs": {
"url": "https://github.com/leelaprasadv/pactum-swagger-coverage/issues"
"url": "https://github.com/pactumjs/pactum-swagger-coverage/issues"
},
"homepage": "https://github.com/leelaprasadv/pactum-swagger-coverage#readme",
"homepage": "https://github.com/pactumjs/pactum-swagger-coverage#readme",
"devDependencies": {
"pactum": "^2.0.10",
"uvu": "^0.3.4"
"pactum": "^3.5.1",
"uvu": "^0.5.6"
},
"dependencies": {
"js-yaml": "^3.14.0",
"phin": "^3.5.0"
"js-yaml": "^4.1.0",
"phin": "^3.7.0"
},
"engines": {
"node": ">=8"
"node": ">=10"
}
}

@@ -0,0 +0,0 @@ # pactum-swagger-coverage

@@ -0,0 +0,0 @@ const config = {

@@ -0,0 +0,0 @@ class PSCConfigurationError extends Error { }

@@ -0,0 +0,0 @@ const phin = require('phin');

@@ -0,0 +0,0 @@ import { name } from "."

@@ -0,0 +0,0 @@ const fs = require('fs');

@@ -20,3 +20,3 @@ const http = require('../helpers/http');

const swaggerYamlDoc = fs.readFileSync(swaggerYAMLPath, 'utf8');
return yaml.safeLoad(swaggerYamlDoc);
return yaml.load(swaggerYamlDoc);
} catch (err) {

@@ -48,3 +48,3 @@ throw new PSCSwaggerLoadError(err)

* Fuction to all get api path's from swagger file
* @param {Object} swaggerInfo
* @param {Object} swaggerInfo
* @returns {Array} Array of API paths

@@ -60,3 +60,3 @@ */

* Function to get swagger coverage stats
* @param {Array} testsCoveredApis
* @param {Array} testsCoveredApis
* @returns {object} Swagger coverage stats

@@ -85,4 +85,4 @@ */

* Function to RegEx match api paths
* @param {String} apiPath
* @param {String} rPath
* @param {String} apiPath
* @param {String} rPath
* @returns {Boolean} Match result

@@ -89,0 +89,0 @@ */

Sorry, the diff of this file is not supported yet

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