@nyrra/prismantix-cli 0.0.3-next.30 → 0.0.3-next.31
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/dist/api.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/dist/api.js
CHANGED
|
@@ -140,10 +140,10 @@ export class ApiDecodeError extends Schema.TaggedError()("ApiDecodeError", {
|
|
|
140
140
|
export class PrismantixApiClient extends Context.Service()("@prismantix/cli/PrismantixApiClient") {
|
|
141
141
|
}
|
|
142
142
|
const apiConfig = (apiKeyOverride) => Config.all({
|
|
143
|
-
apiBaseUrl: Config.withDefault(Config.
|
|
143
|
+
apiBaseUrl: Config.withDefault(Config.NonEmptyString("PRISMANTIX_API_BASE"), DEFAULT_API_BASE_URL),
|
|
144
144
|
apiKey: apiKeyOverride
|
|
145
145
|
? Config.succeed(Redacted.make(apiKeyOverride))
|
|
146
|
-
: Config.
|
|
146
|
+
: Config.Redacted("PRISMANTIX_API_KEY"),
|
|
147
147
|
});
|
|
148
148
|
export const makePrismantixApiClientLayer = (options = {}) => Layer.effect(PrismantixApiClient, Effect.gen(function* () {
|
|
149
149
|
const config = yield* apiConfig(options.apiKey).pipe(Effect.mapError(() => new ApiConfigurationError({
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyrra/prismantix-cli",
|
|
3
3
|
"description": "PrismantiX API client CLI.",
|
|
4
|
-
"version": "0.0.3-next.
|
|
4
|
+
"version": "0.0.3-next.31",
|
|
5
5
|
"author": "NYRRA Inc.",
|
|
6
6
|
"bin": {
|
|
7
7
|
"prismantix": "bin/run.js"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@oclif/core": "^4.11.14",
|
|
14
14
|
"@oclif/plugin-help": "^6.2.53",
|
|
15
15
|
"@oclif/plugin-plugins": "5.4.86",
|
|
16
|
-
"effect": "4.0.0-
|
|
16
|
+
"effect": "4.0.0-rc.116"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@oclif/test": "^4.1.20",
|