factory-girl-default
Advanced tools
Comparing version 1.0.6 to 1.0.7
14
index.js
@@ -145,9 +145,17 @@ /* global window, define */ | ||
factory.adapterFor = function (name) { | ||
console.log('=============== START: adapterFor ==============='); | ||
let adapter; | ||
if (adapters[name] !== undefined) { | ||
return adapters[name]; | ||
console.log('1 - ', adapters[name]); | ||
adapter = adapters[name]; | ||
} else if (adapters.length > 0) { | ||
return adapters[0]; | ||
console.log('2 - ', adapters[0], adapters); | ||
adapter = adapters[0]; | ||
} else { | ||
return defaultAdapter; | ||
console.log('3 - ', defaultAdapter); | ||
adapter = defaultAdapter; | ||
} | ||
console.log('=============== END: adapterFor ==============='); | ||
return adapter; | ||
}; | ||
@@ -154,0 +162,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"author": "Gonzalo Santome", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"keywords": [ | ||
@@ -9,0 +9,0 @@ "factory", |
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
70595
1438