New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rubik-pact

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rubik-pact - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

5

classes/Pact.js

@@ -15,2 +15,3 @@ const { Kubik } = require('rubik-main');

const DEFAULT_VERSION = 'v8.0';
const SUCCESS_STATUS_REG = /2\d\d/;

@@ -89,5 +90,5 @@ /**

const res = await fetch(url, { method, body, headers });
if (res.status !== 200) {
if (!SUCCESS_STATUS_REG.test(`${res.status}`)) {
throw new Error(`Invalid status ${res.status}`);
};
}

@@ -94,0 +95,0 @@ const resBody = await res.json();

2

package.json
{
"name": "rubik-pact",
"version": "1.0.8",
"version": "1.0.9",
"description": "Pact Bot Api kubik for the Rubik application system",

@@ -5,0 +5,0 @@ "main": "classes/Pact.js",

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