@launchtray/hatch-util
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,2 +5,14 @@ { | ||
{ | ||
"version": "0.1.2", | ||
"tag": "@launchtray/hatch-util_v0.1.2", | ||
"date": "Tue, 14 Jan 2020 09:51:30 GMT", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "Bug fixes following initial test release" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"version": "0.1.1", | ||
@@ -7,0 +19,0 @@ "tag": "@launchtray/hatch-util_v0.1.1", |
# Change Log - @launchtray/hatch-util | ||
This log was last generated on Tue, 14 Jan 2020 09:17:35 GMT and should not be manually modified. | ||
This log was last generated on Tue, 14 Jan 2020 09:51:30 GMT and should not be manually modified. | ||
## 0.1.2 | ||
Tue, 14 Jan 2020 09:51:30 GMT | ||
### Patches | ||
- Bug fixes following initial test release | ||
## 0.1.1 | ||
@@ -6,0 +13,0 @@ Tue, 14 Jan 2020 09:17:35 GMT |
{ | ||
"name": "@launchtray/hatch-util", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Utilities used by several other hatch modules", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -105,2 +105,10 @@ import 'reflect-metadata'; | ||
const resolveAll = (container: DependencyContainer, token: InjectionToken<any>) => { | ||
try { | ||
return container.resolveAll(token) | ||
} catch { | ||
return []; | ||
} | ||
}; | ||
// This is adapted from tsyringe's autoInjectable | ||
@@ -120,3 +128,3 @@ export const resolveArgs = ( | ||
return type.multiple | ||
? container.resolveAll(type.token) | ||
? resolveAll(container, type.token) | ||
: container.resolve(type.token); | ||
@@ -123,0 +131,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
46360
877