angular-es-utils
Advanced tools
Comparing version 1.2.31 to 1.2.32
@@ -17,3 +17,3 @@ 'use strict'; | ||
console.warn('该方法在下一版本即将废弃,请尽快使用别的替代解决方案!'); | ||
console.warn('FactoryCreator.create 方法将在下一版本废弃,请尽快使用别的替代解决方案!'); | ||
@@ -20,0 +20,0 @@ function factory() { |
{ | ||
"name": "angular-es-utils", | ||
"version": "1.2.31", | ||
"version": "1.2.32", | ||
"description": "es utils design for angular1.x", | ||
@@ -15,2 +15,3 @@ "main": "./index.js", | ||
"author": "Kuitos<kuitos.lau@gmail.com>", | ||
"homepage": "https://github.com/kuitos/angular-es-utils", | ||
"devDependencies": { | ||
@@ -37,2 +38,3 @@ "babel-cli": "^6.7.7", | ||
"mocha": "^2.4.5", | ||
"sinon": "^2.0.0-pre", | ||
"webpack": "^1.13.0" | ||
@@ -39,0 +41,0 @@ }, |
@@ -40,7 +40,7 @@ 'use strict'; | ||
additionalHttpConfigs = _extends({}, defaultHttpConfigs, additionalHttpConfigs); | ||
var requestConfigs = _extends({}, defaultHttpConfigs, additionalHttpConfigs); | ||
// 将默认配置复制到新添加的action里 | ||
Object.keys(additionalActions).forEach(function (action) { | ||
additionalActions[action] = Object.assign(defaultHttpConfigs, additionalActions[action]); | ||
additionalActions[action] = _extends({}, requestConfigs, additionalActions[action]); | ||
}); | ||
@@ -52,15 +52,15 @@ | ||
// 查询,结果为对象 | ||
'get': _extends({ method: 'GET', cache: cache }, additionalHttpConfigs), | ||
'get': _extends({ method: 'GET', cache: cache }, requestConfigs), | ||
// 查询,结果为数组 | ||
'query': _extends({ method: 'GET', isArray: true, cache: cache }, additionalHttpConfigs), | ||
'query': _extends({ method: 'GET', isArray: true, cache: cache }, requestConfigs), | ||
// 保存(新增) | ||
'save': _extends({ method: 'POST', cache: cache }, additionalHttpConfigs), | ||
'save': _extends({ method: 'POST', cache: cache }, requestConfigs), | ||
// 修改(全量) | ||
'update': _extends({ method: 'PUT', cache: cache }, additionalHttpConfigs), | ||
'update': _extends({ method: 'PUT', cache: cache }, requestConfigs), | ||
// 修改(部分) | ||
'patch': _extends({ method: 'PATCH', cache: cache }, additionalHttpConfigs), | ||
'patch': _extends({ method: 'PATCH', cache: cache }, requestConfigs), | ||
// 逻辑删除 | ||
'remove': _extends({ method: 'DELETE', cache: cache }, additionalHttpConfigs), | ||
'remove': _extends({ method: 'DELETE', cache: cache }, requestConfigs), | ||
// 物理删除 | ||
'delete': _extends({ method: 'DELETE', cache: cache }, additionalHttpConfigs) | ||
'delete': _extends({ method: 'DELETE', cache: cache }, requestConfigs) | ||
}; | ||
@@ -67,0 +67,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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
27267
19
604
0
22