@qnxg/request
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -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; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
111031
66
2546
2
1
+ Addedqs@^6.9.1
+ Addedcall-bind-apply-helpers@1.0.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.6(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedqs@6.13.1(transitive)
+ Addedside-channel@1.1.0(transitive)
+ Addedside-channel-list@1.0.0(transitive)
+ Addedside-channel-map@1.0.1(transitive)
+ Addedside-channel-weakmap@1.0.2(transitive)