angular-es-utils
Advanced tools
Comparing version 1.2.29 to 1.2.30
{ | ||
"name": "angular-es-utils", | ||
"version": "1.2.29", | ||
"version": "1.2.30", | ||
"description": "es utils design for angular1.x", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -36,6 +36,6 @@ 'use strict'; | ||
exports.default = function (url, cache, params, additionalActions) { | ||
var additionalConfigs = arguments.length <= 4 || arguments[4] === undefined ? {} : arguments[4]; | ||
var additionalHttpConfigs = arguments.length <= 4 || arguments[4] === undefined ? {} : arguments[4]; | ||
additionalConfigs = _extends({}, commonConfigs, additionalConfigs); | ||
additionalHttpConfigs = _extends({}, commonConfigs, additionalHttpConfigs); | ||
@@ -46,15 +46,15 @@ // 默认cache为defaultRestCache | ||
// 查询,结果为对象 | ||
'get': _extends({ method: 'GET', cache: cache }, additionalConfigs), | ||
'get': _extends({ method: 'GET', cache: cache }, additionalHttpConfigs), | ||
// 查询,结果为数组 | ||
'query': _extends({ method: 'GET', isArray: true, cache: cache }, additionalConfigs), | ||
'query': _extends({ method: 'GET', isArray: true, cache: cache }, additionalHttpConfigs), | ||
// 保存(新增) | ||
'save': _extends({ method: 'POST', cache: cache }, additionalConfigs), | ||
'save': _extends({ method: 'POST', cache: cache }, additionalHttpConfigs), | ||
// 修改(全量) | ||
'update': _extends({ method: 'PUT', cache: cache }, additionalConfigs), | ||
'update': _extends({ method: 'PUT', cache: cache }, additionalHttpConfigs), | ||
// 修改(部分) | ||
'patch': _extends({ method: 'PATCH', cache: cache }, additionalConfigs), | ||
'patch': _extends({ method: 'PATCH', cache: cache }, additionalHttpConfigs), | ||
// 逻辑删除 | ||
'remove': _extends({ method: 'DELETE', cache: cache }, additionalConfigs), | ||
'remove': _extends({ method: 'DELETE', cache: cache }, additionalHttpConfigs), | ||
// 物理删除 | ||
'delete': _extends({ method: 'DELETE', cache: cache }, additionalConfigs) | ||
'delete': _extends({ method: 'DELETE', cache: cache }, additionalHttpConfigs) | ||
}; | ||
@@ -61,0 +61,0 @@ |
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
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
25955