Skip to content

Commit

Permalink
Merge pull request #3 from abcnews/lifeless
Browse files Browse the repository at this point in the history
Remove ABC Life application detection
  • Loading branch information
drzax authored Mar 9, 2021
2 parents 6cb9c47 + 360a9a8 commit 087574e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ console.log(APPLICATIONS);
// PLA: 'pla', // Presentation Layer ABC AMP
// PLC: 'plc', // Presentation Layer Core
// PLE: 'ple', // Presentation Layer Everyday
// PLL: 'pll', // Presentation Layer Life
// PLN: 'pln', // Presentation Layer News Web
// }
console.log(GENERATIONS);
Expand All @@ -71,7 +70,7 @@ console.log(TIERS);

### `getApplication(): string | null`

Return the environment's **application** (Phase 1 Mobile; Phase 1 Standard; Phase 2; Presentation Layer ABC AMP; Presentation Layer Core; Presentation Layer Everyday; Presentation Layer Life; Presentation Layer News Web) as a string value from the `APPLICATIONS` enum, or `null` if the application couldn't be determined.
Return the environment's **application** (Phase 1 Mobile; Phase 1 Standard; Phase 2; Presentation Layer ABC AMP; Presentation Layer Core; Presentation Layer Everyday; Presentation Layer News Web) as a string value from the `APPLICATIONS` enum, or `null` if the application couldn't be determined.

```js
import { APPLICATIONS, getApplication } from '@abcnews/env-utils';
Expand Down
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export enum APPLICATIONS {
PLA = 'pla',
PLC = 'plc',
PLE = 'ple',
PLL = 'pll',
PLN = 'pln',
}

Expand Down Expand Up @@ -114,8 +113,6 @@ export const getApplication = memoize(
? APPLICATIONS.P2
: isGeneratedBy('PL Everyday')
? APPLICATIONS.PLE
: isGeneratedBy('PL LIFE')
? APPLICATIONS.PLL
: isGeneratedBy('PL CORE')
? APPLICATIONS.PLC
: isGeneratedBy('PL ABC AMP')
Expand All @@ -132,7 +129,6 @@ export const getGeneration = memoize(
case APPLICATIONS.PLA:
case APPLICATIONS.PLC:
case APPLICATIONS.PLE:
case APPLICATIONS.PLL:
case APPLICATIONS.PLN:
return GENERATIONS.PL;
case APPLICATIONS.P2:
Expand Down

0 comments on commit 087574e

Please sign in to comment.