@theholocron/doppler-client 1.31.0 → 1.32.1
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/index.d.mts +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@theholocron/http-client";
|
|
2
2
|
import { ErrorSink, Logger } from "@theholocron/observability/core";
|
|
3
|
-
//#region src/utils.d.ts
|
|
3
|
+
//#region ../../../../../src/utils.d.ts
|
|
4
4
|
interface DopplerClientOptions {
|
|
5
5
|
/** Doppler service token or personal token. */
|
|
6
6
|
token: string;
|
|
@@ -14,7 +14,7 @@ interface DopplerClientOptions {
|
|
|
14
14
|
errors?: ErrorSink;
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region src/environments/environments.d.ts
|
|
17
|
+
//#region ../../../../../src/environments/environments.d.ts
|
|
18
18
|
interface DopplerEnvironment {
|
|
19
19
|
id?: string;
|
|
20
20
|
name?: string;
|
|
@@ -24,7 +24,7 @@ interface DopplerEnvironmentsResponse {
|
|
|
24
24
|
environments?: DopplerEnvironment[];
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region src/me/me.d.ts
|
|
27
|
+
//#region ../../../../../src/me/me.d.ts
|
|
28
28
|
interface DopplerMe {
|
|
29
29
|
/** Token type: "cli" | "personal" | "service" | "service_account". */
|
|
30
30
|
type?: string;
|
|
@@ -39,7 +39,7 @@ interface DopplerMe {
|
|
|
39
39
|
name?: string;
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region src/projects/projects.d.ts
|
|
42
|
+
//#region ../../../../../src/projects/projects.d.ts
|
|
43
43
|
interface DopplerProject {
|
|
44
44
|
id?: string;
|
|
45
45
|
name?: string;
|
|
@@ -50,7 +50,7 @@ interface DopplerProjectResponse {
|
|
|
50
50
|
project?: DopplerProject;
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
53
|
-
//#region src/secrets/secrets.d.ts
|
|
53
|
+
//#region ../../../../../src/secrets/secrets.d.ts
|
|
54
54
|
interface DopplerSecretValue {
|
|
55
55
|
raw?: string;
|
|
56
56
|
computed?: string;
|
|
@@ -63,7 +63,7 @@ interface DopplerSecretsMap {
|
|
|
63
63
|
secrets?: Record<string, DopplerSecretValue | null>;
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region src/index.d.ts
|
|
66
|
+
//#region ../../../../../src/index.d.ts
|
|
67
67
|
declare function createDopplerClient(opts: DopplerClientOptions): {
|
|
68
68
|
environments: {
|
|
69
69
|
list: (project: string) => Promise<DopplerEnvironmentsResponse>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRestClient } from "@theholocron/http-client";
|
|
2
|
-
//#region src/environments/environments.ts
|
|
2
|
+
//#region ../../../../../src/environments/environments.ts
|
|
3
3
|
function environments(rest) {
|
|
4
4
|
return {
|
|
5
5
|
list: (project) => rest.request("/environments", { query: { project } }),
|
|
@@ -14,12 +14,12 @@ function environments(rest) {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region src/me/me.ts
|
|
17
|
+
//#region ../../../../../src/me/me.ts
|
|
18
18
|
function me(rest) {
|
|
19
19
|
return { get: () => rest.request("/me") };
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
|
-
//#region src/projects/projects.ts
|
|
22
|
+
//#region ../../../../../src/projects/projects.ts
|
|
23
23
|
function projects(rest) {
|
|
24
24
|
return { create: (name, description) => rest.request("/projects", {
|
|
25
25
|
method: "POST",
|
|
@@ -30,7 +30,7 @@ function projects(rest) {
|
|
|
30
30
|
}) };
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region src/secrets/secrets.ts
|
|
33
|
+
//#region ../../../../../src/secrets/secrets.ts
|
|
34
34
|
function secrets(rest) {
|
|
35
35
|
return {
|
|
36
36
|
get: (project, config, name) => rest.request("/configs/config/secret", { query: {
|
|
@@ -58,7 +58,7 @@ function secrets(rest) {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
//#region src/utils.ts
|
|
61
|
+
//#region ../../../../../src/utils.ts
|
|
62
62
|
function createDopplerRestClient(opts) {
|
|
63
63
|
return createRestClient({
|
|
64
64
|
baseUrl: opts.baseUrl ?? "https://api.doppler.com/v3",
|
|
@@ -70,7 +70,7 @@ function createDopplerRestClient(opts) {
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
//#endregion
|
|
73
|
-
//#region src/index.ts
|
|
73
|
+
//#region ../../../../../src/index.ts
|
|
74
74
|
function createDopplerClient(opts) {
|
|
75
75
|
const rest = createDopplerRestClient(opts);
|
|
76
76
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/doppler-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.1",
|
|
4
4
|
"description": "A TypeScript client for the Doppler API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"doppler",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@theholocron/observability": "^0.3.0",
|
|
36
|
-
"@theholocron/http-client": "^1.
|
|
36
|
+
"@theholocron/http-client": "^1.32.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
39
|
+
"@theholocron/cli": "5.0.0-alpha.79",
|
|
40
40
|
"@theholocron/eslint-config": "^8.4.3",
|
|
41
41
|
"@theholocron/tsconfig": "^8.2.0",
|
|
42
|
-
"@theholocron/tsdown-config": "^8.
|
|
42
|
+
"@theholocron/tsdown-config": "^8.6.1",
|
|
43
43
|
"@theholocron/vitest-config": "^8.2.0",
|
|
44
44
|
"@types/node": "^26.4.1",
|
|
45
45
|
"@vitest/coverage-v8": "^5.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"releases": "https://github.com/theholocron/clients/releases",
|
|
62
62
|
"wiki": "https://github.com/theholocron/clients/wiki",
|
|
63
63
|
"scripts": {
|
|
64
|
-
"delivery.build": "
|
|
64
|
+
"delivery.build": "holocron run delivery.build -- && node ../../scripts/check-bundle-size.mjs",
|
|
65
65
|
"sourceQuality.staticAnalysis": "holocron run sourceQuality.staticAnalysis --",
|
|
66
66
|
"test:watch": "vitest",
|
|
67
67
|
"verification.typeSafety": "holocron run verification.typeSafety --",
|