Methods
_handleSnykDepTypeBugPrdWhitelist({) → {object}
traverse tree, marking all prd pkgs as prd, s.t. dev marker won't erroronesously flag as dev
Parameters:
Name | Type | Description |
---|---|---|
{ |
any | pkgs, root } |
Returns:
pkgs
- Type
- object
flattenPkgs(pkgs) → {any}
flatten deps and devDep into key:value pairs where key ~= name;version. this function is atrocious. it should be ashamed of itself. and me! i'm sorry, other guy/girl.
Parameters:
Name | Type | Description |
---|---|---|
pkgs |
any |
- Source:
Returns:
flatSet new set
- Type
- any
getDependencies(opts) → {Promise}
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
any |
Properties
|
Returns:
Promise
- Type
- Promise
handleSnykDepTypeBug(opts) → {IPkgSet}
see https://github.com/Snyk/resolve-deps/issues/28
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
Properties
|
Returns:
pkgs
- Type
- IPkgSet
normalizeYarnLock() → {IPkgSet}
Apply missing fields to parsed yarn.lock object
- Source:
Returns:
- Type
- IPkgSet
twFormat(deps) → {object}
apply formatting to snyk deps
Parameters:
Name | Type | Description |
---|---|---|
deps |
object | snyk deps |
Returns:
deps
- Type
- object
validatePrereqs() → {boolean}
validates if we are ready to publish. throws on error, or returns bool ~= readyToCycle
- Source:
Returns:
readyToCycle
- Type
- boolean