@devvit/settings 0.12.6-next-2025-12-02-16-00-52-0d1d9db59.0 → 0.12.6-next-2025-12-03-16-13-58-fa6d0e137.0
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/SettingsClient.d.ts +0 -1
- package/SettingsClient.d.ts.map +1 -1
- package/SettingsClient.js +0 -1
- package/index.d.ts +3 -1
- package/index.d.ts.map +1 -1
- package/index.js +2 -1
- package/package.json +8 -8
package/SettingsClient.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare class SettingsClient {
|
|
|
7
7
|
get<T = string | number | boolean | string[] | undefined>(name: string): Promise<T | undefined>;
|
|
8
8
|
getAll<T extends object = SettingsValues>(): Promise<T>;
|
|
9
9
|
}
|
|
10
|
-
export declare const settings: SettingsClient;
|
|
11
10
|
export declare function cleanAppSettings(response: SettingsResponse): void;
|
|
12
11
|
export declare function getSettingsValues(results: {
|
|
13
12
|
readonly [key: string]: FormFieldValue;
|
package/SettingsClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsClient.d.ts","sourceRoot":"","sources":["../src/SettingsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAIpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iEAAiE,CAAC;AAExG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,qBAAa,cAAc;;IAGnB,GAAG,CAAC,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,EAC5D,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAKnB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC;CA0B9D;AAED,
|
|
1
|
+
{"version":3,"file":"SettingsClient.d.ts","sourceRoot":"","sources":["../src/SettingsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAIpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iEAAiE,CAAC;AAExG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,qBAAa,cAAc;;IAGnB,GAAG,CAAC,CAAC,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,SAAS,EAC5D,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAKnB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC;CA0B9D;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAsCjE;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;CAAE,EACnD,mBAAmB,EAAE,SAAS,EAAE,GAAG,SAAS,GAC3C,cAAc,CAWhB;AAED,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,cAAc,EAC9B,mBAAmB,EAAE,SAAS,EAAE,GAC/B,IAAI,CAeN"}
|
package/SettingsClient.js
CHANGED
|
@@ -42,7 +42,6 @@ _SettingsClient_pluginCache = new WeakMap(), _SettingsClient_instances = new Wea
|
|
|
42
42
|
}, _SettingsClient_plugin_get = function _SettingsClient_plugin_get() {
|
|
43
43
|
return (__classPrivateFieldSet(this, _SettingsClient_pluginCache, __classPrivateFieldGet(this, _SettingsClient_pluginCache, "f") ?? getDevvitConfig().use(SettingsDefinition), "f"));
|
|
44
44
|
};
|
|
45
|
-
export const settings = new SettingsClient();
|
|
46
45
|
export function cleanAppSettings(response) {
|
|
47
46
|
if (!response.appSettings) {
|
|
48
47
|
throw new Error('Could not get app settings');
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { SettingsClient } from './SettingsClient.js';
|
|
2
|
+
export type { SettingsClient };
|
|
2
3
|
export * from './types/settings.js';
|
|
4
|
+
export declare const settings: SettingsClient;
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,YAAY,EAAE,cAAc,EAAE,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAEpC,eAAO,MAAM,QAAQ,EAAE,cAAqC,CAAC"}
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/settings",
|
|
3
|
-
"version": "0.12.6-next-2025-12-
|
|
3
|
+
"version": "0.12.6-next-2025-12-03-16-13-58-fa6d0e137.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"test:unit-with-coverage": "vitest run --coverage"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@devvit/protos": "0.12.6-next-2025-12-
|
|
35
|
-
"@devvit/shared": "0.12.6-next-2025-12-
|
|
36
|
-
"@devvit/shared-types": "0.12.6-next-2025-12-
|
|
34
|
+
"@devvit/protos": "0.12.6-next-2025-12-03-16-13-58-fa6d0e137.0",
|
|
35
|
+
"@devvit/shared": "0.12.6-next-2025-12-03-16-13-58-fa6d0e137.0",
|
|
36
|
+
"@devvit/shared-types": "0.12.6-next-2025-12-03-16-13-58-fa6d0e137.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@devvit/server": "*"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@devvit/repo-tools": "0.12.6-next-2025-12-
|
|
43
|
-
"@devvit/server": "0.12.6-next-2025-12-
|
|
44
|
-
"@devvit/tsconfig": "0.12.6-next-2025-12-
|
|
42
|
+
"@devvit/repo-tools": "0.12.6-next-2025-12-03-16-13-58-fa6d0e137.0",
|
|
43
|
+
"@devvit/server": "0.12.6-next-2025-12-03-16-13-58-fa6d0e137.0",
|
|
44
|
+
"@devvit/tsconfig": "0.12.6-next-2025-12-03-16-13-58-fa6d0e137.0",
|
|
45
45
|
"eslint": "9.11.1",
|
|
46
46
|
"typescript": "5.8.3",
|
|
47
47
|
"vitest": "1.6.1"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d48ea30599b57545c5c6e60a36fb92f3d7e491c1"
|
|
50
50
|
}
|