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

angular-es-utils

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-es-utils - npm Package Compare versions

Comparing version 1.2.31 to 1.2.32

polyfills/http/index.js

2

factory-creator/index.js

@@ -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 @@

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