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

@next-core/http

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@next-core/http - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

28

dist/cjs/http.js

@@ -12,8 +12,8 @@ "use strict";

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _classPrivateFieldGet2 = _interopRequireDefault(require("@babel/runtime/helpers/classPrivateFieldGet2"));
var _assertClassBrand2 = _interopRequireDefault(require("@babel/runtime/helpers/assertClassBrand"));
var _classPrivateFieldSet2 = _interopRequireDefault(require("@babel/runtime/helpers/classPrivateFieldSet2"));
var _fetch2 = require("./fetch.js");
var _errors = require("./errors.js");
var _InterceptorManager = _interopRequireDefault(require("./InterceptorManager.js"));
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
function isNil(value) {

@@ -196,3 +196,3 @@ return value === undefined || value === null;

} = init || {};
return _assertClassBrand(_Http_brand, this, _fetch).call(this, {
return (0, _assertClassBrand2.default)(_Http_brand, this, _fetch).call(this, {
url,

@@ -208,3 +208,3 @@ data: body,

(0, _defineProperty2.default)(this, "simpleRequest", (method, url, options = {}) => {
return _assertClassBrand(_Http_brand, this, _fetch).call(this, {
return (0, _assertClassBrand2.default)(_Http_brand, this, _fetch).call(this, {
url,

@@ -216,3 +216,3 @@ method,

(0, _defineProperty2.default)(this, "requestWithBody", (method, url, data, options = {}) => {
return _assertClassBrand(_Http_brand, this, _fetch).call(this, {
return (0, _assertClassBrand2.default)(_Http_brand, this, _fetch).call(this, {
url,

@@ -229,3 +229,3 @@ method,

if (_config !== null && _config !== void 0 && _config.adapter) {
_classPrivateFieldSet(_adapter, this, _config.adapter);
(0, _classPrivateFieldSet2.default)(_adapter, this, _config.adapter);
}

@@ -240,3 +240,3 @@ }

get(url, options) {
return _assertClassBrand(_Http_brand, this, _fetch).call(this, {
return (0, _assertClassBrand2.default)(_Http_brand, this, _fetch).call(this, {
url,

@@ -248,3 +248,3 @@ method: "GET",

delete(url, options) {
return _assertClassBrand(_Http_brand, this, _fetch).call(this, {
return (0, _assertClassBrand2.default)(_Http_brand, this, _fetch).call(this, {
url,

@@ -256,3 +256,3 @@ method: "DELETE",

head(url, options) {
return _assertClassBrand(_Http_brand, this, _fetch).call(this, {
return (0, _assertClassBrand2.default)(_Http_brand, this, _fetch).call(this, {
url,

@@ -264,3 +264,3 @@ method: "HEAD",

post(url, data, options) {
return _assertClassBrand(_Http_brand, this, _fetch).call(this, {
return (0, _assertClassBrand2.default)(_Http_brand, this, _fetch).call(this, {
url,

@@ -273,3 +273,3 @@ method: "POST",

put(url, data, options) {
return _assertClassBrand(_Http_brand, this, _fetch).call(this, {
return (0, _assertClassBrand2.default)(_Http_brand, this, _fetch).call(this, {
url,

@@ -282,3 +282,3 @@ method: "PUT",

patch(url, data, options) {
return _assertClassBrand(_Http_brand, this, _fetch).call(this, {
return (0, _assertClassBrand2.default)(_Http_brand, this, _fetch).call(this, {
url,

@@ -297,3 +297,3 @@ method: "PATCH",

});
chain.push(config => _classPrivateFieldGet(_adapter, this).call(this, config), undefined);
chain.push(config => (0, _classPrivateFieldGet2.default)(_adapter, this).call(this, config), undefined);
this.interceptors.response.forEach(interceptor => {

@@ -300,0 +300,0 @@ chain.push(res => {

import _classPrivateMethodInitSpec from "@babel/runtime/helpers/classPrivateMethodInitSpec";
import _classPrivateFieldInitSpec from "@babel/runtime/helpers/classPrivateFieldInitSpec";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
import _classPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet2";
import _assertClassBrand from "@babel/runtime/helpers/assertClassBrand";
import _classPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet2";
import _objectSpread from "@babel/runtime/helpers/objectSpread2";

@@ -10,5 +13,2 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";

_excluded3 = ["body", "method"];
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); }
import { fetch } from "./fetch.js";

@@ -15,0 +15,0 @@ import { HttpAbortError, HttpFetchError, HttpParseError, HttpResponseError } from "./errors.js";

{
"name": "@next-core/http",
"version": "1.1.10",
"version": "1.1.11",
"description": "> TODO: description",

@@ -41,7 +41,7 @@ "homepage": "https://github.com/easyops-cn/next-core/tree/v3/packages/http",

"devDependencies": {
"@next-core/build-next-libs": "^1.0.13",
"@next-core/test-next": "^1.0.16",
"@next-core/build-next-libs": "^1.0.14",
"@next-core/test-next": "^1.0.17",
"whatwg-fetch": "^3.6.20"
},
"gitHead": "7794348c3503d686fbdd8595be9c51191aa2de5d"
"gitHead": "f1d78a35e4b72b99008750be9741fa0ec1772916"
}

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

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