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

ajax-manager

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajax-manager - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

README.md

2

package.json
{
"name": "ajax-manager",
"version": "1.0.0",
"version": "1.0.1",
"description": "An jQuery ajax management tool",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -76,4 +76,14 @@ // use global count instead of jquery global event because it does't support cross domain request

let apiRegister = function (models = {}, registerConfig = {}, jquery) {
let apiRegister = function (modelsArray = [], registerConfig = {}, jquery) {
let $ = jquery
// merge all models
let models = {}
modelsArray.forEach((m, i) => {
for (let key in m) {
let model = m[key]
// test if there are api useing same name
if (key in models) throw new Error(`model: api should not have same name "${key}".`)
models[key] = model
}
})
// globle config

@@ -80,0 +90,0 @@ $.ajaxSetup(Object.assign({}, models.__globlal || {}, {

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