@http-forge/core 0.2.10 → 0.2.12
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 +16 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +116 -116
- package/dist/index.mjs +122 -122
- package/dist/infrastructure/script/script-executor.d.ts +11 -0
- package/dist/infrastructure/test-suite/interfaces.d.ts +1 -0
- package/dist/infrastructure/test-suite/test-suite-service.d.ts +8 -0
- package/package.json +1 -1
|
@@ -37,6 +37,17 @@ export declare class ScriptExecutor implements IScriptExecutor {
|
|
|
37
37
|
* Used by RequestScriptSession for pre-request and test scripts
|
|
38
38
|
*/
|
|
39
39
|
private createCommonContext;
|
|
40
|
+
/** Prefix marking a JSON-serialized non-string value */
|
|
41
|
+
private static readonly JSON_TYPE_MARKER;
|
|
42
|
+
/**
|
|
43
|
+
* Serialize a value for storage. Non-string values are JSON-stringified with a type marker.
|
|
44
|
+
*/
|
|
45
|
+
private serializeValue;
|
|
46
|
+
/**
|
|
47
|
+
* Deserialize a stored value. Values with the type marker are JSON-parsed back to native types.
|
|
48
|
+
* Values without the marker (plain strings) are returned as-is.
|
|
49
|
+
*/
|
|
50
|
+
private deserializeValue;
|
|
40
51
|
/**
|
|
41
52
|
* Create a basic variable scope with get/set/has/unset/clear/toObject
|
|
42
53
|
*/
|
|
@@ -143,6 +143,7 @@ export interface ITestSuiteService {
|
|
|
143
143
|
getAllSuites(): Promise<TestSuite[]>;
|
|
144
144
|
updateSuite(suite: TestSuite): Promise<void>;
|
|
145
145
|
deleteSuite(id: string): Promise<boolean>;
|
|
146
|
+
duplicateSuite(sourceId: string, newName: string): Promise<TestSuite>;
|
|
146
147
|
createTempSuiteFromCollection(collectionId: string): Promise<TestSuite | undefined>;
|
|
147
148
|
saveTempSuite(suite: TestSuite, name: string): Promise<TestSuite>;
|
|
148
149
|
}
|
|
@@ -63,6 +63,14 @@ export declare class TestSuiteService implements ITestSuiteService {
|
|
|
63
63
|
* Update an existing suite
|
|
64
64
|
*/
|
|
65
65
|
updateSuite(suite: TestSuite): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Duplicate a suite including its request folders
|
|
68
|
+
*/
|
|
69
|
+
duplicateSuite(sourceId: string, newName: string): Promise<TestSuite>;
|
|
70
|
+
/**
|
|
71
|
+
* Recursively copy a directory
|
|
72
|
+
*/
|
|
73
|
+
private copyDirRecursive;
|
|
66
74
|
/**
|
|
67
75
|
* Delete a suite
|
|
68
76
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@http-forge/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "Headless HTTP testing engine with Postman collection support, dynamic variables, and script-based automation.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|