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

@contract-case/case-core-plugin-http-dsl

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

@contract-case/case-core-plugin-http-dsl - npm Package Compare versions

Comparing version 0.16.3 to 0.17.0

2

dist/src/mocks/definitions.types.d.ts

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

import { AnyCaseMatcher, HasTypeForMockDescriptor } from '@contract-case/case-plugin-base';
import { AnyCaseMatcher, HasTypeForMockDescriptor } from '@contract-case/case-plugin-dsl-types';
import { MOCK_HTTP_SERVER, MOCK_HTTP_CLIENT } from './constants.types';

@@ -3,0 +3,0 @@ export interface CoreHttpRequestResponseMatcherPair {

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

import { AnyCaseMatcher, AnyCaseMatcherOrData } from '@contract-case/case-plugin-base';
import { AnyCaseMatcher, AnyCaseMatcherOrData } from '@contract-case/case-plugin-dsl-types';
import { CoreHttpBasicAuthValueMatcher, CoreHttpRequestMatcher, CoreHttpResponseMatcher, CoreHttpStatusCodeMatcher, CoreUrlEncodedStringMatcher } from './matchers.types';

@@ -3,0 +3,0 @@ import { HttpMockRequest, HttpMockResponse } from './http.types';

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

import { AnyData, AnyCaseMatcherOrData, AnyCaseMatcher } from '@contract-case/case-plugin-base';
import { AnyData, AnyCaseMatcherOrData, AnyCaseMatcher } from '@contract-case/case-plugin-dsl-types';
import { CoreHttpStatusCodeMatcher } from './matchers.types';

@@ -3,0 +3,0 @@ interface QueryObject {

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

import { AnyCaseMatcher, AnyCaseMatcherOrData } from '@contract-case/case-plugin-base';
import { AnyCaseMatcherOrData, AnyCaseMatcher } from '@contract-case/case-plugin-dsl-types';
import { HTTP_BASIC_AUTH_TYPE, HTTP_REQUEST_MATCHER_TYPE, HTTP_RESPONSE_MATCHER_TYPE, HTTP_STATUS_CODE_MATCHER_TYPE, URL_ENCODED_STRING_TYPE } from './constants.types';

@@ -3,0 +3,0 @@ export interface CoreUrlEncodedStringMatcher {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateCodes = void 0;
const case_plugin_base_1 = require("@contract-case/case-plugin-base");
const validateCodeNumber = (code) => {
if (code < 100 || code >= 600) {
throw new case_plugin_base_1.CaseConfigurationError(`HTTP status code '${code}' is outside the valid range (100-599) for status codes`);
throw new Error(`HTTP status code '${code}' is outside the valid range (100-599) for status codes`);
}
if (Math.abs(code) !== code) {
throw new case_plugin_base_1.CaseConfigurationError(`HTTP status code '${code}' must be a whole integer`);
throw new Error(`HTTP status code '${code}' must be a whole integer`);
}

@@ -21,3 +20,3 @@ return code;

default:
throw new case_plugin_base_1.CaseConfigurationError(`'${typeof code}' is not a valid type for an HTTP status code`);
throw new Error(`'${typeof code}' is not a valid type for an HTTP status code`);
}

@@ -28,3 +27,3 @@ };

if (codes.length === 0) {
throw new case_plugin_base_1.CaseConfigurationError(`An empty array isn't a valid list of HTTP status codes`);
throw new Error(`An empty array isn't a valid list of HTTP status codes`);
}

@@ -31,0 +30,0 @@ return codes.map(validateCode)[0];

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

import { BaseSetupInfo, HasTypeForMockDescriptor } from '@contract-case/case-plugin-base';
import { BaseSetupInfo, HasTypeForMockDescriptor } from '@contract-case/case-plugin-dsl-types';
import { MOCK_HTTP_SERVER, MOCK_HTTP_CLIENT, HttpMockDescriptorTypes } from './constants.types';

@@ -3,0 +3,0 @@ import { ConsumeHttpResponse, ProduceHttpResponse } from './definitions.types';

{
"name": "@contract-case/case-core-plugin-http-dsl",
"version": "0.16.3",
"version": "0.17.0",
"description": "ContractCase HTTP plugin CaseExample definition DSL",

@@ -67,5 +67,5 @@ "keywords": [

"dependencies": {
"@contract-case/case-plugin-base": "^0.16.3"
"@contract-case/case-plugin-dsl-types": "^0.17.0"
},
"gitHead": "c49c7bfac22bc45b31ca502946d06136dcbc976c"
"gitHead": "8dd87d186d45b9d311b3b2129ae6a81853897d04"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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