assets-manager
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -527,6 +527,26 @@ 'use strict'; | ||
} | ||
if (typeof config === 'string') { | ||
return { | ||
defination: config, | ||
options: {} | ||
}; | ||
} | ||
if (Array.isArray(config)) { | ||
if (typeof config[0] !== 'string') { | ||
return { | ||
defination: config[0], | ||
options: config[1] || {} | ||
}; | ||
} | ||
if (config[1] && (0, _isPlainObject2.default)(config[1])) { | ||
return { | ||
defination: config[0], | ||
options: config[1] | ||
}; | ||
} | ||
return { | ||
defination: config[0], | ||
options: config[1] || {} | ||
defination: config, | ||
options: {} | ||
}; | ||
@@ -533,0 +553,0 @@ } |
{ | ||
"name": "assets-manager", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Copy packages files based on manifest file", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/amazingSurge/assets-manager", |
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
71086
1531