@bitblit/ratchet-epsilon-common 5.0.524-alpha → 5.0.525-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ export declare const EpsilonServerMode: {
2
+ Production: string;
3
+ Development: string;
4
+ QA: string;
5
+ Red: string;
6
+ Blue: string;
7
+ Green: string;
8
+ };
9
+ export type EpsilonServerMode = (typeof EpsilonServerMode)[keyof typeof EpsilonServerMode];
@@ -0,0 +1,9 @@
1
+ export const EpsilonServerMode = {
2
+ Production: 'Production',
3
+ Development: 'Development',
4
+ QA: 'QA',
5
+ Red: 'Red',
6
+ Blue: 'Blue',
7
+ Green: 'Green'
8
+ };
9
+ //# sourceMappingURL=espilon-server-mode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"espilon-server-mode.js","sourceRoot":"","sources":["../../src/config/espilon-server-mode.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,aAAa;IAC1B,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACf,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { EpsilonServerMode } from "../config/espilon-server-mode";
2
+ export declare class EpsilonServerUtil {
3
+ static serverMode(envParamName: string, def: EpsilonServerMode): EpsilonServerMode;
4
+ }
@@ -0,0 +1,16 @@
1
+ import { EpsilonServerMode } from "../config/espilon-server-mode";
2
+ import { StringRatchet } from "@bitblit/ratchet-common/lang/string-ratchet";
3
+ import { RequireRatchet } from "@bitblit/ratchet-common/lang/require-ratchet";
4
+ import { MapRatchet } from "@bitblit/ratchet-common/lang/map-ratchet";
5
+ export class EpsilonServerUtil {
6
+ static serverMode(envParamName, def) {
7
+ let rval = def;
8
+ RequireRatchet.notNullUndefinedOrOnlyWhitespaceString(envParamName);
9
+ if (typeof process !== 'undefined') {
10
+ const stVal = StringRatchet.trimToNull(process.env[envParamName]);
11
+ rval = MapRatchet.caseInsensitiveAccess(EpsilonServerMode, stVal) ?? def;
12
+ }
13
+ return rval;
14
+ }
15
+ }
16
+ //# sourceMappingURL=epsilon-server-util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"epsilon-server-util.js","sourceRoot":"","sources":["../../src/util/epsilon-server-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAEtE,MAAM,OAAO,iBAAiB;IACrB,MAAM,CAAC,UAAU,CAAC,YAAoB,EAAE,GAAsB;QACnE,IAAI,IAAI,GAAsB,GAAG,CAAC;QAClC,cAAc,CAAC,sCAAsC,CAAC,YAAY,CAAC,CAAC;QACpE,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;YACnC,MAAM,KAAK,GAAW,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;YAC1E,IAAI,GAAG,UAAU,CAAC,qBAAqB,CAAoB,iBAAiB,EAAE,KAAK,CAAC,IAAI,GAAG,CAAC;QAC9F,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitblit/ratchet-epsilon-common",
3
- "version": "5.0.524-alpha",
3
+ "version": "5.0.525-alpha",
4
4
  "description": "Tiny adapter to simplify building API gateway Lambda APIS",
5
5
  "sideEffects": false,
6
6
  "bin": {
@@ -66,10 +66,10 @@
66
66
  "@aws-sdk/client-sns": "3.679.0",
67
67
  "@aws-sdk/client-sqs": "3.679.0",
68
68
  "@aws-sdk/types": "3.679.0",
69
- "@bitblit/ratchet-aws": "5.0.524-alpha",
70
- "@bitblit/ratchet-common": "5.0.524-alpha",
71
- "@bitblit/ratchet-misc": "5.0.524-alpha",
72
- "@bitblit/ratchet-node-only": "5.0.524-alpha",
69
+ "@bitblit/ratchet-aws": "5.0.525-alpha",
70
+ "@bitblit/ratchet-common": "5.0.525-alpha",
71
+ "@bitblit/ratchet-misc": "5.0.525-alpha",
72
+ "@bitblit/ratchet-node-only": "5.0.525-alpha",
73
73
  "@smithy/abort-controller": "3.1.6",
74
74
  "@smithy/smithy-client": "3.4.2",
75
75
  "@smithy/util-waiter": "3.1.7",
@@ -86,10 +86,10 @@
86
86
  },
87
87
  "peerDependencies": {
88
88
  "@apollo/server": "^4.11.0",
89
- "@bitblit/ratchet-aws": "5.0.524-alpha",
90
- "@bitblit/ratchet-common": "5.0.524-alpha",
91
- "@bitblit/ratchet-misc": "5.0.524-alpha",
92
- "@bitblit/ratchet-node-only": "5.0.524-alpha",
89
+ "@bitblit/ratchet-aws": "5.0.525-alpha",
90
+ "@bitblit/ratchet-common": "5.0.525-alpha",
91
+ "@bitblit/ratchet-misc": "5.0.525-alpha",
92
+ "@bitblit/ratchet-node-only": "5.0.525-alpha",
93
93
  "graphql": "^16.9.0"
94
94
  },
95
95
  "peerDependenciesMeta": {