@schematichq/schematic-typescript-node 1.2.1 → 1.2.2
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/README.md +114 -0
- package/dist/index.js +3 -3
- package/dist/wrapper.d.ts +8 -0
- package/package.json +2 -1
package/dist/wrapper.d.ts
CHANGED
|
@@ -49,6 +49,14 @@ export declare class SchematicClient extends BaseClient {
|
|
|
49
49
|
* @throws Will log error and return flag default if check fails
|
|
50
50
|
*/
|
|
51
51
|
checkFlag(evalCtx: api.CheckFlagRequestBody, key: string): Promise<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Checks multiple feature flags with caching optimization
|
|
54
|
+
* @param evalCtx - The context (company and/or user) for evaluating the feature flags
|
|
55
|
+
* @param keys - Optional array of flag keys to check. If empty, calls standard checkFlags API
|
|
56
|
+
* @returns Promise resolving to an array of flag check results
|
|
57
|
+
* @throws Will log error and return default values if check fails
|
|
58
|
+
*/
|
|
59
|
+
checkFlags(evalCtx: api.CheckFlagRequestBody, keys?: string[]): Promise<api.CheckFlagResponseData[]>;
|
|
52
60
|
/**
|
|
53
61
|
* Gracefully shuts down the client by stopping the event buffer
|
|
54
62
|
* @returns Promise that resolves when the event buffer has been stopped
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-typescript-node",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/schematichq/schematic-node",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"format": "prettier . --write --ignore-unknown",
|
|
10
10
|
"build": "node build.js",
|
|
11
|
+
"prepack": "cp -rv dist/. .",
|
|
11
12
|
"test": "jest",
|
|
12
13
|
"build:legacy": "tsc"
|
|
13
14
|
},
|