distilled-aws 0.0.7 → 0.0.8
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.
- package/lib/region.d.ts +1 -1
- package/lib/region.d.ts.map +1 -1
- package/lib/region.js +1 -1
- package/lib/region.js.map +1 -1
- package/package.json +3 -2
- package/src/region.ts +7 -6
package/lib/region.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as Layer from "effect/Layer";
|
|
|
3
3
|
declare const Region_base: Context.TagClass<Region, "distilled-aws/Region", RegionName>;
|
|
4
4
|
export declare class Region extends Region_base {
|
|
5
5
|
}
|
|
6
|
-
export declare const fromEnv: Layer.Layer<Region, import("effect/ConfigError").ConfigError, never>;
|
|
6
|
+
export declare const fromEnv: () => Layer.Layer<Region, import("effect/ConfigError").ConfigError, never>;
|
|
7
7
|
export type RegionName = "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-east-1" | "ap-south-2" | "ap-southeast-3" | "ap-southeast-5" | "ap-southeast-4" | "ap-south-1" | "ap-southeast-6" | "ap-northeast-3" | "ap-northeast-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-east-2" | "ap-southeast-7" | "ap-northeast-1" | "ca-central-1" | "ca-west-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-south-1" | "eu-west-3" | "eu-south-2" | "eu-north-1" | "eu-central-2" | "il-central-1" | "mx-central-1" | "me-south-1" | "me-central-1" | "sa-east-1" | (string & {});
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=region.d.ts.map
|
package/lib/region.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"region.d.ts","sourceRoot":"","sources":["../src/region.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;;AAEtC,qBAAa,MAAO,SAAQ,WAGzB;CAAG;AAEN,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"region.d.ts","sourceRoot":"","sources":["../src/region.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;;AAEtC,qBAAa,MAAO,SAAQ,WAGzB;CAAG;AAEN,eAAO,MAAM,OAAO,4EAMjB,CAAC;AAEJ,MAAM,MAAM,UAAU,GAClB,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,WAAW,GACX,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,WAAW,GACX,cAAc,GACd,WAAW,GACX,WAAW,GACX,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,cAAc,GACd,cAAc,GACd,cAAc,GACd,YAAY,GACZ,cAAc,GACd,WAAW,GACX,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
|
package/lib/region.js
CHANGED
|
@@ -3,5 +3,5 @@ import * as Context from "effect/Context";
|
|
|
3
3
|
import * as Layer from "effect/Layer";
|
|
4
4
|
export class Region extends Context.Tag("distilled-aws/Region")() {
|
|
5
5
|
}
|
|
6
|
-
export const fromEnv = Layer.effect(Region, Config.string("AWS_REGION").pipe(Config.orElse(() => Config.string("AWS_DEFAULT_REGION"))));
|
|
6
|
+
export const fromEnv = () => Layer.effect(Region, Config.string("AWS_REGION").pipe(Config.orElse(() => Config.string("AWS_DEFAULT_REGION"))));
|
|
7
7
|
//# sourceMappingURL=region.js.map
|
package/lib/region.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"region.js","sourceRoot":"","sources":["../src/region.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,MAAM,OAAO,MAAO,SAAQ,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAG5D;CAAG;AAEN,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"region.js","sourceRoot":"","sources":["../src/region.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,MAAM,OAAO,MAAO,SAAQ,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAG5D;CAAG;AAEN,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,EAAE,CAC1B,KAAK,CAAC,MAAM,CACV,MAAM,EACN,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,CAC9B,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CACzD,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "distilled-aws",
|
|
3
3
|
"module": "index.ts",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"aws:clean": "bun run scripts/aws-clean.ts",
|
|
16
16
|
"build:clean": "bun run install:clean && bun run build",
|
|
17
|
+
"bump": "bun run ./scripts/bump.ts",
|
|
17
18
|
"build": "bun generate && bun oxfmt ./src/services/* && tsgo -b",
|
|
18
19
|
"bundle:report": "bun run scripts/bundle-size-report.ts",
|
|
19
20
|
"clean": "git clean -fqdx -e .env",
|
|
@@ -110,4 +111,4 @@
|
|
|
110
111
|
"pathe": "^2.0.3",
|
|
111
112
|
"typescript": "^5"
|
|
112
113
|
}
|
|
113
|
-
}
|
|
114
|
+
}
|
package/src/region.ts
CHANGED
|
@@ -7,12 +7,13 @@ export class Region extends Context.Tag("distilled-aws/Region")<
|
|
|
7
7
|
RegionName
|
|
8
8
|
>() {}
|
|
9
9
|
|
|
10
|
-
export const fromEnv =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Config.
|
|
14
|
-
|
|
15
|
-
)
|
|
10
|
+
export const fromEnv = () =>
|
|
11
|
+
Layer.effect(
|
|
12
|
+
Region,
|
|
13
|
+
Config.string("AWS_REGION").pipe(
|
|
14
|
+
Config.orElse(() => Config.string("AWS_DEFAULT_REGION")),
|
|
15
|
+
),
|
|
16
|
+
);
|
|
16
17
|
|
|
17
18
|
export type RegionName =
|
|
18
19
|
| "us-east-1"
|