@http-forge/core 0.2.10 → 0.2.11
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 +8 -0
- package/dist/index.js +103 -103
- package/dist/index.mjs +111 -111
- package/dist/infrastructure/script/script-executor.d.ts +8 -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,14 @@ export declare class ScriptExecutor implements IScriptExecutor {
|
|
|
37
37
|
* Used by RequestScriptSession for pre-request and test scripts
|
|
38
38
|
*/
|
|
39
39
|
private createCommonContext;
|
|
40
|
+
/**
|
|
41
|
+
* Serialize a value for storage. Non-string values are JSON-stringified (Postman-compatible).
|
|
42
|
+
*/
|
|
43
|
+
private serializeValue;
|
|
44
|
+
/**
|
|
45
|
+
* Deserialize a stored value. Attempts JSON.parse; returns raw string on failure.
|
|
46
|
+
*/
|
|
47
|
+
private deserializeValue;
|
|
40
48
|
/**
|
|
41
49
|
* Create a basic variable scope with get/set/has/unset/clear/toObject
|
|
42
50
|
*/
|
|
@@ -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.11",
|
|
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",
|