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

@qnxg/request

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qnxg/request - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

es/cancel/cancel.d.ts

6

es/index.js

@@ -1,1 +0,5 @@

console.log('hello request');
import request, { extend } from './request';
import Onion from './onion';
import { RequestError, ResponseError } from './utils';
export { extend, RequestError, ResponseError, Onion };
export default request;
"use strict";
console.log('hello request');
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "extend", {
enumerable: true,
get: function get() {
return _request.extend;
}
});
Object.defineProperty(exports, "Onion", {
enumerable: true,
get: function get() {
return _onion.default;
}
});
Object.defineProperty(exports, "RequestError", {
enumerable: true,
get: function get() {
return _utils.RequestError;
}
});
Object.defineProperty(exports, "ResponseError", {
enumerable: true,
get: function get() {
return _utils.ResponseError;
}
});
exports.default = void 0;
var _request = _interopRequireWildcard(require("./request"));
var _onion = _interopRequireDefault(require("./onion"));
var _utils = require("./utils");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var _default = _request.default;
exports.default = _default;

12

package.json
{
"name": "@qnxg/request",
"version": "0.0.7",
"description": "小程序版SWR",
"version": "0.0.8",
"description": "对小程序Request与Upload的统一封装,并支持洋葱圈中间件模型",
"main": "./lib/index.js",

@@ -39,3 +39,9 @@ "module": "./es/index.js",

},
"gitHead": "1d4da47ef6c39322819fab0e96d4380d6af70397"
"gitHead": "1c7467bf1e169e2af0ccf46794bd73f8cf843b8f",
"dependencies": {
"qs": "^6.9.1"
},
"devDependencies": {
"@types/qs": "^6.9.1"
}
}

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